diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..62a3b60 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Ruby + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: ['2.7'] + gemfile: + - gemfiles/Gemfile-activemodel-5.0.x + - gemfiles/Gemfile-activemodel-5.1.x + - gemfiles/Gemfile-activemodel-5.2.x + - gemfiles/Gemfile-activemodel-6.0.x + - gemfiles/Gemfile-activemodel-6.1.x + - gemfiles/Gemfile-activemodel-7.0.x + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 + with: + ruby-version: ${{ matrix.ruby-version }} + - name: Install dependencies for ${{ matrix.gemfile}} + run: bundle install --gemfile=${{ matrix.gemfile }} + - name: Run tests + run: bundle exec rspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2066a1c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -rvm: - - 2.4.4 - - 2.5.1 - - 2.6.3 -gemfile: - - gemfiles/Gemfile-activemodel-4.2.x - - gemfiles/Gemfile-activemodel-5.0.x - - gemfiles/Gemfile-activemodel-5.1.x - - gemfiles/Gemfile-activemodel-5.2.x - - gemfiles/Gemfile-activemodel-6.0.x - - gemfiles/Gemfile-activemodel-6.1.x -matrix: - exclude: - - rvm: 2.4.4 - gemfile: gemfiles/Gemfile-activemodel-4.2.x -sudo: false diff --git a/LICENSE.txt b/LICENSE.txt index e0823c8..d7ac56b 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2018-2020 viafintech GmbH +Copyright (c) 2018-2023 viafintech GmbH Copyright (c) 2013-2017 Georg Leciejewski (Sales King GmbH) & Georg Ledermann for portions of this project copied from sepa_king diff --git a/README.md b/README.md index cc8bc70..a668313 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Ruby gem for creating SPS XML files -[![Build Status](https://travis-ci.org/Barzahlen/sps_king.svg)](http://travis-ci.org/Barzahlen/sps_king) +![Build Status](https://github.com/viafintech/sps_king/actions/workflows/test.yml/badge.svg) [![Gem Version](https://badge.fury.io/rb/sps_king.svg)](http://badge.fury.io/rb/sps_king) sps_king is a Ruby gem which implements **pain** (**Pa**yment **In**itiation) file building for the Swiss Payment Standard, which is a subset of the ISO 20022 standard. @@ -11,8 +11,8 @@ This gem is forked of `sepa_king` and therefore heavily inspired by the structur ## Requirements -* Ruby 2.1 or newer -* ActiveModel 3.1 or newer +* Ruby 2.7 or newer +* ActiveModel 5.0 or newer ## Installation @@ -241,6 +241,6 @@ https://github.com/Barzahlen/sps_king/graphs/contributors Released under the MIT license -Copyright (c) 2018 Tobias Schoknecht +Copyright (c) 2018-2023 Tobias Schoknecht Copyright (c) 2013-2017 Georg Leciejewski (Sales King GmbH) & Georg Ledermann for portions of this project copied from sepa_king diff --git a/gemfiles/Gemfile-activemodel-3.1.x b/gemfiles/Gemfile-activemodel-3.1.x deleted file mode 100644 index e91c3df..0000000 --- a/gemfiles/Gemfile-activemodel-3.1.x +++ /dev/null @@ -1,5 +0,0 @@ -source 'https://rubygems.org' - -gemspec path: '..' - -gem 'activemodel', '~>3.1.12' diff --git a/gemfiles/Gemfile-activemodel-3.2.x b/gemfiles/Gemfile-activemodel-3.2.x deleted file mode 100644 index 9c5e44e..0000000 --- a/gemfiles/Gemfile-activemodel-3.2.x +++ /dev/null @@ -1,5 +0,0 @@ -source 'https://rubygems.org' - -gemspec path: '..' - -gem 'activemodel', '~>3.2.22.2' diff --git a/gemfiles/Gemfile-activemodel-4.0.x b/gemfiles/Gemfile-activemodel-4.0.x deleted file mode 100644 index cda996e..0000000 --- a/gemfiles/Gemfile-activemodel-4.0.x +++ /dev/null @@ -1,5 +0,0 @@ -source 'https://rubygems.org' - -gemspec path: '..' - -gem 'activemodel', '~>4.0.13' diff --git a/gemfiles/Gemfile-activemodel-4.2.x b/gemfiles/Gemfile-activemodel-4.2.x deleted file mode 100644 index 1d2a084..0000000 --- a/gemfiles/Gemfile-activemodel-4.2.x +++ /dev/null @@ -1,5 +0,0 @@ -source 'https://rubygems.org' - -gemspec path: '..' - -gem 'activemodel', '~>4.2.6' diff --git a/gemfiles/Gemfile-activemodel-4.1.x b/gemfiles/Gemfile-activemodel-7.0.x similarity index 62% rename from gemfiles/Gemfile-activemodel-4.1.x rename to gemfiles/Gemfile-activemodel-7.0.x index 9ba9296..2c1f8fe 100644 --- a/gemfiles/Gemfile-activemodel-4.1.x +++ b/gemfiles/Gemfile-activemodel-7.0.x @@ -2,4 +2,4 @@ source 'https://rubygems.org' gemspec path: '..' -gem 'activemodel', '~>4.1.15' +gem 'activemodel', '~> 7.0.0' diff --git a/lib/sps_king/version.rb b/lib/sps_king/version.rb index 283eb5f..d393f34 100644 --- a/lib/sps_king/version.rb +++ b/lib/sps_king/version.rb @@ -1,3 +1,3 @@ module SPS - VERSION = '0.1.1' + VERSION = '0.2.0' end diff --git a/sps_king.gemspec b/sps_king.gemspec index 80176a1..04b3ea7 100644 --- a/sps_king.gemspec +++ b/sps_king.gemspec @@ -17,9 +17,9 @@ Gem::Specification.new do |s| s.test_files = s.files.grep(%r{^(test|spec|features)/}) s.require_paths = ['lib'] - s.required_ruby_version = '>= 2.1' + s.required_ruby_version = '>= 2.7' - s.add_runtime_dependency 'activemodel', '>= 3.1' + s.add_runtime_dependency 'activemodel', '>= 5.0' s.add_runtime_dependency 'nokogiri' s.add_runtime_dependency 'iban-tools'