diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..ee7c097 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,29 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake +# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby + +name: Ruby + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['3.0', '3.1'] + + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - run: bundle exec rake \ No newline at end of file diff --git a/Gemfile b/Gemfile index 3c79748..f81f2d6 100644 --- a/Gemfile +++ b/Gemfile @@ -8,8 +8,8 @@ group :test do gem 'coffee-rails' gem 'sass-rails', '~> 6.0.0' gem 'money', '6.13' - gem 'rspec-rails', '~> 2.10' - gem 'shoulda-matchers', '2.2.0' + gem 'rspec-rails', '~> 5.1.0' + gem 'shoulda-matchers', '5.1.0' gem 'simplecov', :require => false gem 'simplecov-rcov' gem 'database_cleaner' diff --git a/Versionfile b/Versionfile deleted file mode 100644 index cc427b4..0000000 --- a/Versionfile +++ /dev/null @@ -1,5 +0,0 @@ -# This file is used to designate compatibilty with different versions of Spree -# Please see http://spreecommerce.com/documentation/extensions.html#versionfile for details - -"2.2.x" => { :branch => "master" } -"2.0.x" => { :branch => "2-0-stable" } diff --git a/spree_affirm.gemspec b/spree_affirm.gemspec index a8ddb50..8339b59 100644 --- a/spree_affirm.gemspec +++ b/spree_affirm.gemspec @@ -8,15 +8,14 @@ Gem::Specification.new do |s| s.version = SpreeAffirm::VERSION s.summary = 'Affirm Spree Payment Gateway' s.description = 'Affirm payment Gateway for Spree' - s.required_ruby_version = '>= 1.9.3' + s.required_ruby_version = '>= 3.0.3' s.author = 'Affirm' s.email = 'mts@affirm.com' s.homepage = 'http://www.affirm.com' - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") - s.require_path = 'lib' + s.files = Dir['README.md', 'lib/**/*', 'spree_affirm.gemspec'] + s.require_paths = ['lib'] s.requirements << 'none' s.add_dependency 'spree_core', '>= 4.4.0'