Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Rails 7.1 and 7.2 #705

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions gemfiles/rails7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
source 'https://rubygems.org'

gem 'rails', '~> 7.1.0'
gem 'sprockets-rails'
gem 'i18n', '~> 1.6'

platforms :jruby do
gem "activerecord-jdbc-adapter"
gem "activerecord-jdbcsqlite3-adapter"
gem "jruby-openssl"
end

platforms :ruby do
gem "sqlite3", "~> 1.4"
end

gemspec path: '../'
17 changes: 17 additions & 0 deletions gemfiles/rails7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
source 'https://rubygems.org'

gem 'rails', '~> 7.2.0'
gem 'sprockets-rails'
gem 'i18n', '~> 1.6'

platforms :jruby do
gem "activerecord-jdbc-adapter"
gem "activerecord-jdbcsqlite3-adapter"
gem "jruby-openssl"
end

platforms :ruby do
gem "sqlite3", "~> 2.0"
end

gemspec path: '../'
6 changes: 3 additions & 3 deletions money-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Gem::Specification.new do |s|
s.add_dependency "railties", ">= 3.0"
s.add_dependency "mime-types", "< 3" if RUBY_VERSION < '2.0' # mime-types > 3 depends on mime-types-data, which doesn't support ruby 1.9

s.add_development_dependency "rails", ">= 3.0", "< 7.0"
s.add_development_dependency "rspec-rails", "~> 3.0"
s.add_development_dependency 'database_cleaner', '~> 1.6.1'
s.add_development_dependency "rails", ">= 3.0", "< 8"
s.add_development_dependency "rspec-rails", "~> 6.1.0"
s.add_development_dependency 'database_cleaner', '~> 2.0.2'
s.add_development_dependency 'test-unit', '~> 3.0' if RUBY_VERSION >= '2.2'
s.add_development_dependency 'bundler'

Expand Down
2 changes: 1 addition & 1 deletion spec/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

context "when passed an invalid value" do
it "should raise an ArgumentError" do
expect(lambda{MoneyRails.rounding_mode = "booyakasha"}).to raise_error(ArgumentError, 'booyakasha is not a valid rounding mode')
expect { MoneyRails.rounding_mode = "booyakasha" }.to raise_error(ArgumentError, 'booyakasha is not a valid rounding mode')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an RSpec deprecation warning

end
end
end
Expand Down
Loading