Skip to content

Commit

Permalink
Merge pull request #2731 from rspec/update-rspec-version
Browse files Browse the repository at this point in the history
Setup rspec-rails to allow main to be used without requiring git rspec
  • Loading branch information
JonRowe committed Feb 23, 2024
1 parent 129bcc5 commit 7da16da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rspec-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,9 @@ Gem::Specification.new do |s|
# get released.
%w[core expectations mocks support].each do |name|
if ENV['RSPEC_CI']
s.add_runtime_dependency "rspec-#{name}", ENV.fetch('RSPEC_VERSION', '3.13.0.pre')
elsif RSpec::Rails::Version::STRING =~ /pre/ # prerelease builds
expected_rspec_version = "3.13.0.pre"
s.add_runtime_dependency "rspec-#{name}", "= #{expected_rspec_version}"
s.add_runtime_dependency "rspec-#{name}", ENV.fetch('RSPEC_VERSION', '3.14.0.pre')
else
expected_rspec_version = "3.12.0"
expected_rspec_version = "3.13.0"
s.add_runtime_dependency "rspec-#{name}", "~> #{expected_rspec_version.split(".")[0..1].join(".")}"
end
end
Expand Down

0 comments on commit 7da16da

Please sign in to comment.