Skip to content

Commit

Permalink
Merge pull request #326 from rspec/fix-rails-build
Browse files Browse the repository at this point in the history
Fix rails build
  • Loading branch information
JonRowe authored Sep 3, 2024
2 parents 003c16a + 447e895 commit b77372d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ task :update_docs, [:version, :website_path, :branch] do |_t, args|
`git fetch --tags && git tag -l "v#{args[:version]}*" | grep v#{args[:version]} | tail -1`
end

if args[:branch].empty? && latest_release.empty?
if (args[:branch].nil? || args[:branch].empty?) && latest_release.empty?
skipped << project
elsif args[:branch].empty?
elsif args[:branch].nil? || args[:branch].empty?
projects[project] = latest_release
else
projects[project] = args[:branch]
Expand Down
9 changes: 2 additions & 7 deletions ci/script/predicate_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,8 @@ function is_ruby_31_plus {
}

function rspec_rails_compatible {
if is_ruby_25_plus; then
# TODO remove when RSpec-Rails build is 3.1 safe by default
if is_ruby_31_plus; then
return 1
else
return 0
fi
if is_ruby_27_plus; then
return 0
else
return 1
fi
Expand Down

0 comments on commit b77372d

Please sign in to comment.