Skip to content

Commit

Permalink
Merge pull request #3 from viafintech/feature/update-dependencies-and…
Browse files Browse the repository at this point in the history
…-run-tests-on-github

Bump required ruby version to 2.7
  • Loading branch information
martinseener authored Jan 16, 2023
2 parents c60b389 + 49fff46 commit 91399a6
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 45 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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
5 changes: 0 additions & 5 deletions gemfiles/Gemfile-activemodel-3.1.x

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile-activemodel-3.2.x

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile-activemodel-4.0.x

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile-activemodel-4.2.x

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ source 'https://rubygems.org'

gemspec path: '..'

gem 'activemodel', '~>4.1.15'
gem 'activemodel', '~> 7.0.0'
2 changes: 1 addition & 1 deletion lib/sps_king/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SPS
VERSION = '0.1.1'
VERSION = '0.2.0'
end
4 changes: 2 additions & 2 deletions sps_king.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 91399a6

Please sign in to comment.