business 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +0 -1
- data/business.gemspec +2 -2
- data/lib/business/data/bacs.yml +8 -0
- data/lib/business/data/target.yml +12 -0
- data/lib/business/version.rb +1 -1
- data/spec/calendar_spec.rb +2 -2
- metadata +14 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9ae3f28cf525a5131ba5ed7c8d6f6f50c873723
|
4
|
+
data.tar.gz: df52b64686c1112f20e03ae3bb556b39b15904c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57c72ccb2170167c1d1eeb4417ea0e85368b30ad8b6f5683ea4825a2260fc8cd05b1c3f6d91e3ae8844695b1f45cae252e062bb290517eb4f169e03636d31040
|
7
|
+
data.tar.gz: 15514c172a889ae321322cd92c8c964cd733a4634568363d52a6b70136e6703c1fbb69c8393da5ffc9076797734ca70b66b263398f6e12a49a6060d17413d337
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/business.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "business"
|
8
8
|
spec.version = Business::VERSION
|
9
9
|
spec.authors = ["Harry Marr"]
|
10
|
-
spec.email = ["
|
10
|
+
spec.email = ["developers@gocardless.com"]
|
11
11
|
spec.summary = %q{Date calculations based on business calendars}
|
12
12
|
spec.description = %q{Date calculations based on business calendars}
|
13
13
|
spec.homepage = "https://github.com/gocardless/business"
|
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
-
spec.add_development_dependency "rspec", "~> 3.
|
22
|
+
spec.add_development_dependency "rspec", "~> 3.1"
|
23
23
|
end
|
data/lib/business/data/bacs.yml
CHANGED
@@ -38,3 +38,11 @@ holidays:
|
|
38
38
|
- August 29th, 2016
|
39
39
|
- December 26th, 2016
|
40
40
|
- December 27th, 2016
|
41
|
+
- January 2nd, 2017
|
42
|
+
- April 14th, 2017
|
43
|
+
- April 17th, 2017
|
44
|
+
- May 1st, 2017
|
45
|
+
- May 29th, 2017
|
46
|
+
- August 28th, 2017
|
47
|
+
- December 25th, 2017
|
48
|
+
- December 26th, 2017
|
@@ -30,3 +30,15 @@ holidays:
|
|
30
30
|
- May 1st, 2016
|
31
31
|
- December 25th, 2016
|
32
32
|
- December 26th, 2016
|
33
|
+
- January 1st, 2017
|
34
|
+
- April 14th, 2017
|
35
|
+
- April 17th, 2017
|
36
|
+
- May 1st, 2017
|
37
|
+
- December 25th, 2017
|
38
|
+
- December 26th, 2017
|
39
|
+
- January 1st, 2018
|
40
|
+
- March 30th, 2018
|
41
|
+
- April 2nd, 2018
|
42
|
+
- May 1st, 2018
|
43
|
+
- December 25th, 2018
|
44
|
+
- December 26th, 2018
|
data/lib/business/version.rb
CHANGED
data/spec/calendar_spec.rb
CHANGED
@@ -51,7 +51,7 @@ describe Business::Calendar do
|
|
51
51
|
|
52
52
|
context "when given an invalid calendar" do
|
53
53
|
subject { Business::Calendar.load("invalid-calendar") }
|
54
|
-
specify { expect{ subject }.to raise_error }
|
54
|
+
specify { expect { subject }.to raise_error(/No such calendar/) }
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
@@ -78,7 +78,7 @@ describe Business::Calendar do
|
|
78
78
|
|
79
79
|
context "when given an invalid business day" do
|
80
80
|
let(:working_days) { %w( Notaday ) }
|
81
|
-
specify { expect{ subject }.to
|
81
|
+
specify { expect { subject }.to raise_error(/Invalid day/) }
|
82
82
|
end
|
83
83
|
|
84
84
|
context "when given nil" do
|
metadata
CHANGED
@@ -1,52 +1,52 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: business
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.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: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3.
|
33
|
+
version: '3.1'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '3.
|
40
|
+
version: '3.1'
|
41
41
|
description: Date calculations based on business calendars
|
42
42
|
email:
|
43
|
-
-
|
43
|
+
- developers@gocardless.com
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- .travis.yml
|
48
|
+
- ".gitignore"
|
49
|
+
- ".travis.yml"
|
50
50
|
- CHANGELOG.md
|
51
51
|
- Gemfile
|
52
52
|
- LICENSE
|
@@ -71,17 +71,17 @@ require_paths:
|
|
71
71
|
- lib
|
72
72
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.5.1
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: Date calculations based on business calendars
|
@@ -89,4 +89,3 @@ test_files:
|
|
89
89
|
- spec/calendar_spec.rb
|
90
90
|
- spec/fixtures/calendars/bacs.yml
|
91
91
|
- spec/fixtures/calendars/ecb.yml
|
92
|
-
has_rdoc:
|