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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6471cb2d8ac8a7a7b9d42f36bcc4a809bfb47a0
4
- data.tar.gz: 55ef69f6f9f9ea2e6d9705acb840449b9e6b4517
3
+ metadata.gz: c9ae3f28cf525a5131ba5ed7c8d6f6f50c873723
4
+ data.tar.gz: df52b64686c1112f20e03ae3bb556b39b15904c3
5
5
  SHA512:
6
- metadata.gz: 2e67aa9e9655c74cdab648d7b340b5a929c26c85a5a218137f0eff9107f760b18b0d909a9dd8f77b60cbc9f1df2e118bc4de4fd60e9d5507d92e736788f533e2
7
- data.tar.gz: 7c61a04b487beb7103384f106d2c00a5f0452c91cec931c349e1c0dbb10b380c07e58b2645d1c57f5bdb8aebf701c686ace7614034fd7384c1a30215002cf70b
6
+ metadata.gz: 57c72ccb2170167c1d1eeb4417ea0e85368b30ad8b6f5683ea4825a2260fc8cd05b1c3f6d91e3ae8844695b1f45cae252e062bb290517eb4f169e03636d31040
7
+ data.tar.gz: 15514c172a889ae321322cd92c8c964cd733a4634568363d52a6b70136e6703c1fbb69c8393da5ffc9076797734ca70b66b263398f6e12a49a6060d17413d337
@@ -1,7 +1,14 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
- - "1.9.3"
4
- - "2.0.0"
5
- - "2.1.1"
4
+ - 1.9.3
5
+ - 2.0
6
+ - 2.1
7
+ - 2.2
8
+ - 2.3.0
6
9
  - jruby-19mode
7
- script: bundle exec rspec spec
10
+
11
+ sudo: false
12
+
13
+ script:
14
+ - bundle exec rspec spec
@@ -1,3 +1,8 @@
1
+ ## 1.6.0 - December 23, 2016
2
+
3
+ - Add 2017 BACS holiday definitions
4
+ - Add 2017 and 2018 TARGET holiday definitions
5
+
1
6
  ## 1.5.0 - June 2, 2015
2
7
 
3
8
  - Add 2016 holiday definitions
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in business.gemspec
4
3
  gemspec
@@ -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 = ["engineering@gocardless.com"]
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.0"
22
+ spec.add_development_dependency "rspec", "~> 3.1"
23
23
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Business
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.0"
3
3
  end
@@ -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 raise_exception }
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.5.0
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: 2015-06-03 00:00:00.000000000 Z
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.0'
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.0'
40
+ version: '3.1'
41
41
  description: Date calculations based on business calendars
42
42
  email:
43
- - engineering@gocardless.com
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.4.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: