From 666a1ce8a520f4265bde3a5a3dd11dd1b0823bea Mon Sep 17 00:00:00 2001 From: Paul Friedman Date: Fri, 19 Jan 2024 11:00:07 -0800 Subject: [PATCH] chore(deps): Fix CI; update dependencies; bump version to 2.0 (#9) * chore(deps): Update dependencies * chore(ci): Use GitHub Actions for tests; remove Rails <5 support * Remove Travis badge * Fix branch name * Drop Rails 5; add Rails 7 * Update RSpec config * Bump version --- .github/workflows/test.yml | 19 ++ .ruby-version | 1 + .travis.yml | 9 - Appraisals | 15 +- README.md | 2 +- bigcartel-currency-locales.gemspec | 4 +- gemfiles/.bundle/config | 2 + gemfiles/rails_2.3.gemfile | 9 - gemfiles/rails_2.3.gemfile.lock | 109 --------- gemfiles/rails_4.gemfile.lock | 134 ----------- gemfiles/rails_5.gemfile.lock | 141 ------------ gemfiles/{rails_5.gemfile => rails_6.gemfile} | 2 +- gemfiles/rails_6.gemfile.lock | 179 +++++++++++++++ gemfiles/{rails_4.gemfile => rails_7.gemfile} | 2 +- gemfiles/rails_7.gemfile.lock | 216 ++++++++++++++++++ lib/currency-locales/version.rb | 2 +- spec/spec_helper.rb | 26 +-- 17 files changed, 435 insertions(+), 437 deletions(-) create mode 100644 .github/workflows/test.yml create mode 100644 .ruby-version delete mode 100755 .travis.yml create mode 100644 gemfiles/.bundle/config delete mode 100644 gemfiles/rails_2.3.gemfile delete mode 100644 gemfiles/rails_2.3.gemfile.lock delete mode 100644 gemfiles/rails_4.gemfile.lock delete mode 100644 gemfiles/rails_5.gemfile.lock rename gemfiles/{rails_5.gemfile => rails_6.gemfile} (81%) create mode 100644 gemfiles/rails_6.gemfile.lock rename gemfiles/{rails_4.gemfile => rails_7.gemfile} (81%) create mode 100644 gemfiles/rails_7.gemfile.lock diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a7883a9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + - run: bundle install + - run: bundle exec appraisal install + - run: bundle exec appraisal rake diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..1f7da99 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.7.7 diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index 4a11580..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: ruby -rvm: - - 2.4 -gemfile: - - gemfiles/rails_2.3.gemfile - - gemfiles/rails_4.gemfile - - gemfiles/rails_5.gemfile -notifications: - email: false diff --git a/Appraisals b/Appraisals index 8c03d66..6e6fb23 100755 --- a/Appraisals +++ b/Appraisals @@ -1,14 +1,7 @@ -appraise "rails-5" do - gem "rails", "~> 5" +appraise "rails-7" do + gem "rails", "~> 7" end -appraise "rails-4" do - gem "rails", "~> 4" -end - -appraise "rails-2.3" do - gem "rails", "~> 2.3" - gem 'rake', '< 11' - gem 'rspec', '~> 1.3.1' - gem 'rspec-rails', '~> 1.3.2' +appraise "rails-6" do + gem "rails", "~> 6" end diff --git a/README.md b/README.md index 5db6dff..bae5663 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Big Cartel Currency Locales [![Build Status](https://travis-ci.org/bigcartel/bigcartel-currency-locales.png?branch=master)](https://travis-ci.org/bigcartel/bigcartel-currency-locales) [![Gem Version](https://badge.fury.io/rb/bigcartel-currency-locales.png)](http://badge.fury.io/rb/bigcartel-currency-locales) +# Big Cartel Currency Locales Loads locale data for all of Big Cartel's supported currencies so that we can format the currency amounts with the I18n gem. Used internally by [Big diff --git a/bigcartel-currency-locales.gemspec b/bigcartel-currency-locales.gemspec index e77fb7b..5f043da 100755 --- a/bigcartel-currency-locales.gemspec +++ b/bigcartel-currency-locales.gemspec @@ -16,6 +16,6 @@ Gem::Specification.new do |s| s.require_path = 'lib' s.add_development_dependency "appraisal" - s.add_development_dependency "rails", "= 3.2.9" - s.add_development_dependency "rspec-rails", ">= 2.0" + s.add_development_dependency "rails", "= 6.0.6.1" + s.add_development_dependency "rspec-rails", ">= 3.0" end diff --git a/gemfiles/.bundle/config b/gemfiles/.bundle/config new file mode 100644 index 0000000..c127f80 --- /dev/null +++ b/gemfiles/.bundle/config @@ -0,0 +1,2 @@ +--- +BUNDLE_RETRY: "1" diff --git a/gemfiles/rails_2.3.gemfile b/gemfiles/rails_2.3.gemfile deleted file mode 100644 index 1474217..0000000 --- a/gemfiles/rails_2.3.gemfile +++ /dev/null @@ -1,9 +0,0 @@ -# This file was generated by Appraisal - -source "http://rubygems.org" - -gem "rake", "< 11" -gem "rspec", "~> 1.3.1" -gem "rspec-rails", "~> 1.3.2" - -gemspec path: "../" diff --git a/gemfiles/rails_2.3.gemfile.lock b/gemfiles/rails_2.3.gemfile.lock deleted file mode 100644 index ce16b39..0000000 --- a/gemfiles/rails_2.3.gemfile.lock +++ /dev/null @@ -1,109 +0,0 @@ -PATH - remote: .. - specs: - bigcartel-currency-locales (1.5.0) - -GEM - remote: http://rubygems.org/ - specs: - actionmailer (3.2.9) - actionpack (= 3.2.9) - mail (~> 2.4.4) - actionpack (3.2.9) - activemodel (= 3.2.9) - activesupport (= 3.2.9) - builder (~> 3.0.0) - erubis (~> 2.7.0) - journey (~> 1.0.4) - rack (~> 1.4.0) - rack-cache (~> 1.2) - rack-test (~> 0.6.1) - sprockets (~> 2.2.1) - activemodel (3.2.9) - activesupport (= 3.2.9) - builder (~> 3.0.0) - activerecord (3.2.9) - activemodel (= 3.2.9) - activesupport (= 3.2.9) - arel (~> 3.0.2) - tzinfo (~> 0.3.29) - activeresource (3.2.9) - activemodel (= 3.2.9) - activesupport (= 3.2.9) - activesupport (3.2.9) - i18n (~> 0.6) - multi_json (~> 1.0) - appraisal (2.2.0) - bundler - rake - thor (>= 0.14.0) - arel (3.0.3) - builder (3.0.4) - concurrent-ruby (1.0.5) - erubis (2.7.0) - hike (1.2.3) - i18n (0.9.3) - concurrent-ruby (~> 1.0) - journey (1.0.4) - json (1.8.6) - mail (2.4.4) - i18n (>= 0.4.0) - mime-types (~> 1.16) - treetop (~> 1.4.8) - mime-types (1.25.1) - multi_json (1.13.1) - polyglot (0.3.5) - rack (1.4.7) - rack-cache (1.7.1) - rack (>= 0.4) - rack-ssl (1.3.4) - rack - rack-test (0.6.3) - rack (>= 1.0) - rails (3.2.9) - actionmailer (= 3.2.9) - actionpack (= 3.2.9) - activerecord (= 3.2.9) - activeresource (= 3.2.9) - activesupport (= 3.2.9) - bundler (~> 1.0) - railties (= 3.2.9) - railties (3.2.9) - actionpack (= 3.2.9) - activesupport (= 3.2.9) - rack-ssl (~> 1.3.2) - rake (>= 0.8.7) - rdoc (~> 3.4) - thor (>= 0.14.6, < 2.0) - rake (10.5.0) - rdoc (3.12.2) - json (~> 1.4) - rspec (1.3.2) - rspec-rails (1.3.4) - rack (>= 1.0.0) - rspec (~> 1.3.1) - sprockets (2.2.3) - hike (~> 1.2) - multi_json (~> 1.0) - rack (~> 1.0) - tilt (~> 1.1, != 1.3.0) - thor (0.20.0) - tilt (1.4.1) - treetop (1.4.15) - polyglot - polyglot (>= 0.3.1) - tzinfo (0.3.53) - -PLATFORMS - ruby - -DEPENDENCIES - appraisal - bigcartel-currency-locales! - rails (= 3.2.9) - rake (< 11) - rspec (~> 1.3.1) - rspec-rails (~> 1.3.2) - -BUNDLED WITH - 1.16.0 diff --git a/gemfiles/rails_4.gemfile.lock b/gemfiles/rails_4.gemfile.lock deleted file mode 100644 index e5de487..0000000 --- a/gemfiles/rails_4.gemfile.lock +++ /dev/null @@ -1,134 +0,0 @@ -PATH - remote: .. - specs: - bigcartel-currency-locales (1.5.0) - -GEM - remote: http://rubygems.org/ - specs: - actionmailer (4.2.10) - actionpack (= 4.2.10) - actionview (= 4.2.10) - activejob (= 4.2.10) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.10) - actionview (= 4.2.10) - activesupport (= 4.2.10) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.10) - activesupport (= 4.2.10) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (4.2.10) - activesupport (= 4.2.10) - globalid (>= 0.3.0) - activemodel (4.2.10) - activesupport (= 4.2.10) - builder (~> 3.1) - activerecord (4.2.10) - activemodel (= 4.2.10) - activesupport (= 4.2.10) - arel (~> 6.0) - activesupport (4.2.10) - i18n (~> 0.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - appraisal (2.2.0) - bundler - rake - thor (>= 0.14.0) - arel (6.0.4) - builder (3.2.3) - concurrent-ruby (1.0.5) - crass (1.0.3) - diff-lcs (1.3) - erubis (2.7.0) - globalid (0.4.1) - activesupport (>= 4.2.0) - i18n (0.9.3) - concurrent-ruby (~> 1.0) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.11.3) - nokogiri (1.8.2) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.10) - actionmailer (= 4.2.10) - actionpack (= 4.2.10) - actionview (= 4.2.10) - activejob (= 4.2.10) - activemodel (= 4.2.10) - activerecord (= 4.2.10) - activesupport (= 4.2.10) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.10) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.9) - activesupport (>= 4.2.0, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.10) - actionpack (= 4.2.10) - activesupport (= 4.2.10) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rspec-core (3.7.1) - rspec-support (~> 3.7.0) - rspec-expectations (3.7.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.7.0) - rspec-mocks (3.7.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.7.0) - rspec-rails (3.7.2) - actionpack (>= 3.0) - activesupport (>= 3.0) - railties (>= 3.0) - rspec-core (~> 3.7.0) - rspec-expectations (~> 3.7.0) - rspec-mocks (~> 3.7.0) - rspec-support (~> 3.7.0) - rspec-support (3.7.1) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - thor (0.20.0) - thread_safe (0.3.6) - tzinfo (1.2.5) - thread_safe (~> 0.1) - -PLATFORMS - ruby - -DEPENDENCIES - appraisal - bigcartel-currency-locales! - rails (~> 4) - rspec-rails (>= 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/gemfiles/rails_5.gemfile.lock b/gemfiles/rails_5.gemfile.lock deleted file mode 100644 index e856a4c..0000000 --- a/gemfiles/rails_5.gemfile.lock +++ /dev/null @@ -1,141 +0,0 @@ -PATH - remote: .. - specs: - bigcartel-currency-locales (1.5.0) - -GEM - remote: http://rubygems.org/ - specs: - actioncable (5.1.4) - actionpack (= 5.1.4) - nio4r (~> 2.0) - websocket-driver (~> 0.6.1) - actionmailer (5.1.4) - actionpack (= 5.1.4) - actionview (= 5.1.4) - activejob (= 5.1.4) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (5.1.4) - actionview (= 5.1.4) - activesupport (= 5.1.4) - rack (~> 2.0) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.1.4) - activesupport (= 5.1.4) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (5.1.4) - activesupport (= 5.1.4) - globalid (>= 0.3.6) - activemodel (5.1.4) - activesupport (= 5.1.4) - activerecord (5.1.4) - activemodel (= 5.1.4) - activesupport (= 5.1.4) - arel (~> 8.0) - activesupport (5.1.4) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (~> 0.7) - minitest (~> 5.1) - tzinfo (~> 1.1) - appraisal (2.2.0) - bundler - rake - thor (>= 0.14.0) - arel (8.0.0) - builder (3.2.3) - concurrent-ruby (1.0.5) - crass (1.0.3) - diff-lcs (1.3) - erubi (1.7.0) - globalid (0.4.1) - activesupport (>= 4.2.0) - i18n (0.9.3) - concurrent-ruby (~> 1.0) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - method_source (0.9.0) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.11.3) - nio4r (2.2.0) - nokogiri (1.8.2) - mini_portile2 (~> 2.3.0) - rack (2.0.4) - rack-test (0.8.2) - rack (>= 1.0, < 3) - rails (5.1.4) - actioncable (= 5.1.4) - actionmailer (= 5.1.4) - actionpack (= 5.1.4) - actionview (= 5.1.4) - activejob (= 5.1.4) - activemodel (= 5.1.4) - activerecord (= 5.1.4) - activesupport (= 5.1.4) - bundler (>= 1.3.0) - railties (= 5.1.4) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (5.1.4) - actionpack (= 5.1.4) - activesupport (= 5.1.4) - method_source - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rspec-core (3.7.1) - rspec-support (~> 3.7.0) - rspec-expectations (3.7.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.7.0) - rspec-mocks (3.7.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.7.0) - rspec-rails (3.7.2) - actionpack (>= 3.0) - activesupport (>= 3.0) - railties (>= 3.0) - rspec-core (~> 3.7.0) - rspec-expectations (~> 3.7.0) - rspec-mocks (~> 3.7.0) - rspec-support (~> 3.7.0) - rspec-support (3.7.1) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - thor (0.20.0) - thread_safe (0.3.6) - tzinfo (1.2.5) - thread_safe (~> 0.1) - websocket-driver (0.6.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.3) - -PLATFORMS - ruby - -DEPENDENCIES - appraisal - bigcartel-currency-locales! - rails (~> 5) - rspec-rails (>= 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/gemfiles/rails_5.gemfile b/gemfiles/rails_6.gemfile similarity index 81% rename from gemfiles/rails_5.gemfile rename to gemfiles/rails_6.gemfile index d1c4f9c..ec9bf32 100644 --- a/gemfiles/rails_5.gemfile +++ b/gemfiles/rails_6.gemfile @@ -2,6 +2,6 @@ source "http://rubygems.org" -gem "rails", "~> 5" +gem "rails", "~> 6" gemspec path: "../" diff --git a/gemfiles/rails_6.gemfile.lock b/gemfiles/rails_6.gemfile.lock new file mode 100644 index 0000000..02a7453 --- /dev/null +++ b/gemfiles/rails_6.gemfile.lock @@ -0,0 +1,179 @@ +PATH + remote: .. + specs: + bigcartel-currency-locales (1.6.0) + +GEM + remote: http://rubygems.org/ + specs: + actioncable (6.0.6.1) + actionpack (= 6.0.6.1) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (6.0.6.1) + actionpack (= 6.0.6.1) + activejob (= 6.0.6.1) + activerecord (= 6.0.6.1) + activestorage (= 6.0.6.1) + activesupport (= 6.0.6.1) + mail (>= 2.7.1) + actionmailer (6.0.6.1) + actionpack (= 6.0.6.1) + actionview (= 6.0.6.1) + activejob (= 6.0.6.1) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (6.0.6.1) + actionview (= 6.0.6.1) + activesupport (= 6.0.6.1) + rack (~> 2.0, >= 2.0.8) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (6.0.6.1) + actionpack (= 6.0.6.1) + activerecord (= 6.0.6.1) + activestorage (= 6.0.6.1) + activesupport (= 6.0.6.1) + nokogiri (>= 1.8.5) + actionview (6.0.6.1) + activesupport (= 6.0.6.1) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activejob (6.0.6.1) + activesupport (= 6.0.6.1) + globalid (>= 0.3.6) + activemodel (6.0.6.1) + activesupport (= 6.0.6.1) + activerecord (6.0.6.1) + activemodel (= 6.0.6.1) + activesupport (= 6.0.6.1) + activestorage (6.0.6.1) + actionpack (= 6.0.6.1) + activejob (= 6.0.6.1) + activerecord (= 6.0.6.1) + marcel (~> 1.0) + activesupport (6.0.6.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + zeitwerk (~> 2.2, >= 2.2.2) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + builder (3.2.4) + concurrent-ruby (1.2.3) + crass (1.0.6) + date (3.3.4) + diff-lcs (1.5.0) + erubi (1.12.0) + globalid (1.1.0) + activesupport (>= 5.0) + i18n (1.14.1) + concurrent-ruby (~> 1.0) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.2) + method_source (1.0.0) + mini_mime (1.1.5) + minitest (5.21.2) + net-imap (0.4.9.1) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nokogiri (1.15.5-arm64-darwin) + racc (~> 1.4) + racc (1.7.3) + rack (2.2.8) + rack-test (2.1.0) + rack (>= 1.3) + rails (6.0.6.1) + actioncable (= 6.0.6.1) + actionmailbox (= 6.0.6.1) + actionmailer (= 6.0.6.1) + actionpack (= 6.0.6.1) + actiontext (= 6.0.6.1) + actionview (= 6.0.6.1) + activejob (= 6.0.6.1) + activemodel (= 6.0.6.1) + activerecord (= 6.0.6.1) + activestorage (= 6.0.6.1) + activesupport (= 6.0.6.1) + bundler (>= 1.3.0) + railties (= 6.0.6.1) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (6.0.6.1) + actionpack (= 6.0.6.1) + activesupport (= 6.0.6.1) + method_source + rake (>= 0.8.7) + thor (>= 0.20.3, < 2.0) + rake (13.1.0) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.6) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-rails (5.1.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + railties (>= 5.2) + rspec-core (~> 3.10) + rspec-expectations (~> 3.10) + rspec-mocks (~> 3.10) + rspec-support (~> 3.10) + rspec-support (3.12.1) + sprockets (4.2.1) + concurrent-ruby (~> 1.0) + rack (>= 2.2.4, < 4) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + thor (1.3.0) + thread_safe (0.3.6) + timeout (0.4.1) + tzinfo (1.2.11) + thread_safe (~> 0.1) + websocket-driver (0.7.6) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.12) + +PLATFORMS + ruby + +DEPENDENCIES + appraisal + bigcartel-currency-locales! + rails (~> 6) + rspec-rails (>= 3.0) + +BUNDLED WITH + 2.1.4 diff --git a/gemfiles/rails_4.gemfile b/gemfiles/rails_7.gemfile similarity index 81% rename from gemfiles/rails_4.gemfile rename to gemfiles/rails_7.gemfile index f2fd1f6..db4108c 100644 --- a/gemfiles/rails_4.gemfile +++ b/gemfiles/rails_7.gemfile @@ -2,6 +2,6 @@ source "http://rubygems.org" -gem "rails", "~> 4" +gem "rails", "~> 7" gemspec path: "../" diff --git a/gemfiles/rails_7.gemfile.lock b/gemfiles/rails_7.gemfile.lock new file mode 100644 index 0000000..b650e22 --- /dev/null +++ b/gemfiles/rails_7.gemfile.lock @@ -0,0 +1,216 @@ +PATH + remote: .. + specs: + bigcartel-currency-locales (1.6.0) + +GEM + remote: http://rubygems.org/ + specs: + actioncable (7.1.3) + actionpack (= 7.1.3) + activesupport (= 7.1.3) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + zeitwerk (~> 2.6) + actionmailbox (7.1.3) + actionpack (= 7.1.3) + activejob (= 7.1.3) + activerecord (= 7.1.3) + activestorage (= 7.1.3) + activesupport (= 7.1.3) + mail (>= 2.7.1) + net-imap + net-pop + net-smtp + actionmailer (7.1.3) + actionpack (= 7.1.3) + actionview (= 7.1.3) + activejob (= 7.1.3) + activesupport (= 7.1.3) + mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp + rails-dom-testing (~> 2.2) + actionpack (7.1.3) + actionview (= 7.1.3) + activesupport (= 7.1.3) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4) + rack-session (>= 1.0.1) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actiontext (7.1.3) + actionpack (= 7.1.3) + activerecord (= 7.1.3) + activestorage (= 7.1.3) + activesupport (= 7.1.3) + globalid (>= 0.6.0) + nokogiri (>= 1.8.5) + actionview (7.1.3) + activesupport (= 7.1.3) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (7.1.3) + activesupport (= 7.1.3) + globalid (>= 0.3.6) + activemodel (7.1.3) + activesupport (= 7.1.3) + activerecord (7.1.3) + activemodel (= 7.1.3) + activesupport (= 7.1.3) + timeout (>= 0.4.0) + activestorage (7.1.3) + actionpack (= 7.1.3) + activejob (= 7.1.3) + activerecord (= 7.1.3) + activesupport (= 7.1.3) + marcel (~> 1.0) + activesupport (7.1.3) + base64 + bigdecimal + concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + minitest (>= 5.1) + mutex_m + tzinfo (~> 2.0) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + base64 (0.2.0) + bigdecimal (3.1.6) + builder (3.2.4) + concurrent-ruby (1.2.3) + connection_pool (2.4.1) + crass (1.0.6) + date (3.3.4) + diff-lcs (1.5.0) + drb (2.2.0) + ruby2_keywords + erubi (1.12.0) + globalid (1.2.1) + activesupport (>= 6.1) + i18n (1.14.1) + concurrent-ruby (~> 1.0) + io-console (0.7.2) + irb (1.11.1) + rdoc + reline (>= 0.4.2) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.2) + mini_mime (1.1.5) + mini_portile2 (2.8.5) + minitest (5.21.2) + mutex_m (0.2.0) + net-imap (0.4.9.1) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nokogiri (1.15.5) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + psych (5.1.2) + stringio + racc (1.7.3) + rack (3.0.8) + rack-session (2.0.0) + rack (>= 3.0.0) + rack-test (2.1.0) + rack (>= 1.3) + rackup (2.1.0) + rack (>= 3) + webrick (~> 1.8) + rails (7.1.3) + actioncable (= 7.1.3) + actionmailbox (= 7.1.3) + actionmailer (= 7.1.3) + actionpack (= 7.1.3) + actiontext (= 7.1.3) + actionview (= 7.1.3) + activejob (= 7.1.3) + activemodel (= 7.1.3) + activerecord (= 7.1.3) + activestorage (= 7.1.3) + activesupport (= 7.1.3) + bundler (>= 1.15.0) + railties (= 7.1.3) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.1.3) + actionpack (= 7.1.3) + activesupport (= 7.1.3) + irb + rackup (>= 1.0.0) + rake (>= 12.2) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) + rake (13.1.0) + rdoc (6.6.2) + psych (>= 4.0.0) + reline (0.4.2) + io-console (~> 0.5) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.6) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-rails (6.1.0) + actionpack (>= 6.1) + activesupport (>= 6.1) + railties (>= 6.1) + rspec-core (~> 3.12) + rspec-expectations (~> 3.12) + rspec-mocks (~> 3.12) + rspec-support (~> 3.12) + rspec-support (3.12.1) + ruby2_keywords (0.0.5) + stringio (3.1.0) + thor (1.3.0) + timeout (0.4.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + webrick (1.8.1) + websocket-driver (0.7.6) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.12) + +PLATFORMS + ruby + +DEPENDENCIES + appraisal + bigcartel-currency-locales! + rails (~> 7) + rspec-rails (>= 3.0) + +BUNDLED WITH + 2.1.4 diff --git a/lib/currency-locales/version.rb b/lib/currency-locales/version.rb index ff02e5b..f0896ae 100755 --- a/lib/currency-locales/version.rb +++ b/lib/currency-locales/version.rb @@ -1,5 +1,5 @@ module BigCartel module CurrencyLocales - VERSION = "1.6.0" + VERSION = "2.0.0" end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index af22aa6..1c320c1 100755 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,27 +1,17 @@ ENV["RAILS_ENV"] = "test" require 'bigcartel-currency-locales' +require 'action_controller/railtie' -begin - require 'action_controller/railtie' - $stdout.puts "Testing against Rails #{ Rails::VERSION::STRING }" -rescue LoadError - gem 'rails' - require 'action_pack' - require 'action_controller' - $stdout.puts "Testing against Rails #{ ActionPack::VERSION::STRING }" -end +$stdout.puts "\nTesting against Rails #{Rails::VERSION::STRING}" BigCartel::CurrencyLocales.insert -if Module.const_defined?("RSpec") - RSpec.configure do |config| - config.mock_with :rspec - config.fail_fast = true - end -else - require 'spec' - Spec::Runner.configure do |config| - config.mock_with :rspec +RSpec.configure do |config| + config.mock_with :rspec + config.fail_fast = true + + config.expect_with(:rspec) do |c| + c.syntax = :should end end