Skip to content

Commit 4b65811

Browse files
authored
Merge pull request #327 from rspec/fix-rails-build-3-13
Fix rails build on 3-13-maintenance
2 parents 757ad6e + 7772cd5 commit 4b65811

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ task :update_docs, [:version, :website_path, :branch] do |_t, args|
236236
`git fetch --tags && git tag -l "v#{args[:version]}*" | grep v#{args[:version]} | tail -1`
237237
end
238238

239-
if args[:branch].empty? && latest_release.empty?
239+
if (args[:branch].nil? || args[:branch].empty?) && latest_release.empty?
240240
skipped << project
241-
elsif args[:branch].empty?
241+
elsif args[:branch].nil? || args[:branch].empty?
242242
projects[project] = latest_release
243243
else
244244
projects[project] = args[:branch]

ci/script/predicate_functions.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,8 @@ function is_ruby_31_plus {
109109
}
110110

111111
function rspec_rails_compatible {
112-
if is_ruby_25_plus; then
113-
# TODO remove when RSpec-Rails build is 3.1 safe by default
114-
if is_ruby_31_plus; then
115-
return 1
116-
else
117-
return 0
118-
fi
112+
if is_ruby_27_plus; then
113+
return 0
119114
else
120115
return 1
121116
fi

0 commit comments

Comments
 (0)