business 1.17.1 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +34 -0
- data/CHANGELOG.md +7 -1
- data/README.md +2 -1
- data/business.gemspec +1 -0
- data/lib/business/data/betalingsservice.yml +4 -2
- data/lib/business/version.rb +1 -1
- metadata +18 -5
- data/.travis.yml +0 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fad5838b063c06bb387463f1a0e1e3347c4d9db5ac5c2fda1311c69a335d73d7
|
|
4
|
+
data.tar.gz: fd61cdc6231f6797fe36e4651e963dd55d8dae98e1e94e16b7c9fc1d39d1aa5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27ebf542df48be5ed61ce2dc6e00e5d6ecb1fcd193ed7beadbeba57aea2d8d1ba7c81900b1ebe8cb3fa6c9dc319b4a72776fd5da104b1fec04804da0a0df1e47
|
|
7
|
+
data.tar.gz: b33280d7a90e55562ff170dfac3968deb317657320e6baad622ac265e8c2a9bda87afc046215c711ce0b2e11ac2967ab2600376dbff3cf31dcfb97ef57568f2d
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
version: 2.1
|
|
2
|
+
|
|
3
|
+
jobs:
|
|
4
|
+
test:
|
|
5
|
+
docker:
|
|
6
|
+
- image: circleci/ruby:<< parameters.ruby-version >>
|
|
7
|
+
parameters:
|
|
8
|
+
ruby-version:
|
|
9
|
+
type: string
|
|
10
|
+
steps:
|
|
11
|
+
- checkout
|
|
12
|
+
- restore_cache:
|
|
13
|
+
keys:
|
|
14
|
+
- bundle-v1-<< parameters.ruby-version >>-{{ checksum "business.gemspec" }}
|
|
15
|
+
- bundle-v1-<< parameters.ruby-version >>-
|
|
16
|
+
- run:
|
|
17
|
+
name: Install dependencies
|
|
18
|
+
command: bundle install --clean --no-cache --path vendor/bundle --jobs=4 --retry=3
|
|
19
|
+
- save_cache:
|
|
20
|
+
key: bundle-v1-<< parameters.ruby-version >>-{{ checksum "business.gemspec" }}
|
|
21
|
+
paths:
|
|
22
|
+
- vendor/bundle
|
|
23
|
+
- run:
|
|
24
|
+
name: Run tests
|
|
25
|
+
command: bundle exec rspec
|
|
26
|
+
|
|
27
|
+
workflows:
|
|
28
|
+
default:
|
|
29
|
+
jobs:
|
|
30
|
+
- test:
|
|
31
|
+
name: Ruby << matrix.ruby-version >>
|
|
32
|
+
matrix:
|
|
33
|
+
parameters:
|
|
34
|
+
ruby-version: ["2.4.9", "2.5.8", "2.6.6", "2.7.1"]
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
## 1.18.0 - April 30, 2020
|
|
2
|
+
|
|
3
|
+
### Note we have dropped support for Ruby < 2.4.x
|
|
4
|
+
|
|
5
|
+
- Correct Danish public holidays
|
|
6
|
+
|
|
1
7
|
## 1.17.1 - November 19, 2019
|
|
2
8
|
|
|
3
9
|
- Change May Bank Holiday 2020 for UK (Bacs) - this was moved to the 8th.
|
|
4
10
|
- Add 2020 holidays for PAD.
|
|
5
11
|
|
|
6
|
-
## 1.17.0 -
|
|
12
|
+
## 1.17.0 - October 30, 2019
|
|
7
13
|
|
|
8
14
|
- Add holiday calendar for France (Target(SEPA) + French bank holidays)
|
|
9
15
|
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Business
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/business)
|
|
4
|
-
[](https://circleci.com/gh/gocardless/business)
|
|
5
5
|
|
|
6
6
|
Date calculations based on business calendars.
|
|
7
7
|
|
|
@@ -126,6 +126,7 @@ The calendars that we include are:
|
|
|
126
126
|
* Betalingsservice
|
|
127
127
|
* Target (SEPA)
|
|
128
128
|
* TargetFrance (SEPA + French bank holidays)
|
|
129
|
+
* US Banking (ACH)
|
|
129
130
|
|
|
130
131
|
## But other libraries already do this
|
|
131
132
|
|
data/business.gemspec
CHANGED
|
@@ -44,11 +44,13 @@ holidays:
|
|
|
44
44
|
- January 1st, 2020
|
|
45
45
|
- April 9th, 2020
|
|
46
46
|
- April 10th, 2020
|
|
47
|
-
- April 12th, 2020
|
|
48
47
|
- April 13th, 2020
|
|
49
48
|
- May 8th, 2020
|
|
50
|
-
- May
|
|
49
|
+
- May 21st, 2020
|
|
50
|
+
- May 22nd, 2020
|
|
51
51
|
- June 1st, 2020
|
|
52
52
|
- June 5th, 2020
|
|
53
|
+
- December 24th, 2020
|
|
53
54
|
- December 25th, 2020
|
|
54
55
|
- December 26th, 2020
|
|
56
|
+
- December 31st, 2020
|
data/lib/business/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: business
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.18.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Harry Marr
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -24,6 +24,20 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '3.1'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rspec_junit_formatter
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 0.4.1
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 0.4.1
|
|
27
41
|
description: Date calculations based on business calendars
|
|
28
42
|
email:
|
|
29
43
|
- developers@gocardless.com
|
|
@@ -31,9 +45,9 @@ executables: []
|
|
|
31
45
|
extensions: []
|
|
32
46
|
extra_rdoc_files: []
|
|
33
47
|
files:
|
|
48
|
+
- ".circleci/config.yml"
|
|
34
49
|
- ".gitignore"
|
|
35
50
|
- ".ruby-version"
|
|
36
|
-
- ".travis.yml"
|
|
37
51
|
- CHANGELOG.md
|
|
38
52
|
- Gemfile
|
|
39
53
|
- LICENSE
|
|
@@ -75,8 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
89
|
- !ruby/object:Gem::Version
|
|
76
90
|
version: '0'
|
|
77
91
|
requirements: []
|
|
78
|
-
|
|
79
|
-
rubygems_version: 2.7.6
|
|
92
|
+
rubygems_version: 3.0.3
|
|
80
93
|
signing_key:
|
|
81
94
|
specification_version: 4
|
|
82
95
|
summary: Date calculations based on business calendars
|
data/.travis.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
|
|
3
|
-
rvm:
|
|
4
|
-
- 2.5.1
|
|
5
|
-
- 2.4.3
|
|
6
|
-
- 2.3.7
|
|
7
|
-
- 2.2.10
|
|
8
|
-
- 2.1.10
|
|
9
|
-
|
|
10
|
-
sudo: false
|
|
11
|
-
|
|
12
|
-
before_install:
|
|
13
|
-
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
|
14
|
-
- gem install bundler -v '< 2'
|
|
15
|
-
|
|
16
|
-
script:
|
|
17
|
-
- bundle exec rspec spec
|