business 1.10.0 → 1.11.1

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: 38d7c459347f1741d925e77a8f359aed43320ac7
4
- data.tar.gz: 45c96913b44c0e52db052928ff2fcc2229777c02
3
+ metadata.gz: 3004b0f5a90dbb38f3db0b68b7579deb8ca543ba
4
+ data.tar.gz: 7eb94eadf6c86c9365bcb6b5d67a7a0ad94e916d
5
5
  SHA512:
6
- metadata.gz: fc3ca27a207f527ea0049e0f654d9b90f173824cefc06cd0397da811b17594988a0d7a5c30c9686902492a923fee263c490e5fff51096dceb060f249c0f951c0
7
- data.tar.gz: 57097df722e522ad352dbca41cc1e109b0ffd5cf7f415df14fda5e34310a3ae4be57eeb42649a2224ef10f0277ea408e794ade3efedaf6583b09dfa55d2b7e92
6
+ metadata.gz: e75fe5d2695b4a80b20b1aa65fe39d566ccd26949edac06a5d70ee22e97759901d531ea790989cb22b58e680c1fb37400bc928b303939163346ad82ef3e324f2
7
+ data.tar.gz: 2778f6ec3a5d24d07c411b09931d921547436f70cf228bf992c26fdece9c425ebefed09a587bff30f662184fa6bc411567f9c486cb837ab72cb547167327c3e0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.11.1 - December 20, 2017
2
+
3
+ - Add 2017-2018 BECS holiday definitions
4
+
1
5
  ## 1.10.0 - September 20, 2017
2
6
 
3
7
  - Add 2018-2019 Betalingsservice holiday definitions
data/README.md CHANGED
@@ -63,7 +63,7 @@ You can then load the calendar as normal.
63
63
  ### Business day arithmetic
64
64
 
65
65
  The `add_business_days` and `subtract_business_days` are used to perform
66
- business day arithemtic on dates.
66
+ business day arithmetic on dates.
67
67
 
68
68
  ```ruby
69
69
  date = Date.parse("Thursday, 12 June 2014")
@@ -97,6 +97,18 @@ calendar.business_days_between(date, date + 7)
97
97
  # => 5
98
98
  ```
99
99
 
100
+ ### Included Calendars
101
+
102
+ We include some calendar data with this Gem but give no guarantees of its
103
+ accuracy.
104
+ The calendars that we include are:
105
+
106
+ * Bacs
107
+ * Bankgirot
108
+ * BECS
109
+ * Betalingsservice
110
+ * Target (SEPA)
111
+
100
112
  ## But other libraries already do this
101
113
 
102
114
  Another gem, [business_time](https://github.com/bokmann/business_time), also
@@ -0,0 +1,22 @@
1
+ working_days:
2
+ - monday
3
+ - tuesday
4
+ - wednesday
5
+ - thursday
6
+ - friday
7
+
8
+ holidays:
9
+ - January 1st, 2017
10
+ - January 26th, 2017
11
+ - April 14th, 2017
12
+ - April 17th, 2017
13
+ - April 25th, 2017
14
+ - December 25th, 2017
15
+ - December 26th, 2017
16
+ - January 1st, 2018
17
+ - January 26th, 2018
18
+ - March 30th, 2018
19
+ - April 2nd, 2018
20
+ - April 25th, 2018
21
+ - December 25th, 2018
22
+ - December 26th, 2018
@@ -26,7 +26,6 @@ holidays:
26
26
  - May 11th, 2018
27
27
  - May 21st, 2018
28
28
  - June 5th, 2018
29
- - December 24th, 2018
30
29
  - December 25th, 2018
31
30
  - December 26th, 2018
32
31
  - December 31st, 2018
@@ -39,7 +38,6 @@ holidays:
39
38
  - May 31st, 2019
40
39
  - June 5th, 2019
41
40
  - June 10th, 2019
42
- - December 24th, 2019
43
41
  - December 25th, 2019
44
42
  - December 26th, 2019
45
43
  - December 31st, 2019
@@ -1,3 +1,3 @@
1
1
  module Business
2
- VERSION = "1.10.0"
2
+ VERSION = "1.11.1"
3
3
  end
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.10.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Marr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-21 00:00:00.000000000 Z
11
+ date: 2017-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -57,6 +57,7 @@ files:
57
57
  - lib/business/calendar.rb
58
58
  - lib/business/data/bacs.yml
59
59
  - lib/business/data/bankgirot.yml
60
+ - lib/business/data/becs.yml
60
61
  - lib/business/data/betalingsservice.yml
61
62
  - lib/business/data/target.yml
62
63
  - lib/business/data/weekdays.yml
@@ -85,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
86
  version: '0'
86
87
  requirements: []
87
88
  rubyforge_project:
88
- rubygems_version: 2.6.11
89
+ rubygems_version: 2.6.14
89
90
  signing_key:
90
91
  specification_version: 4
91
92
  summary: Date calculations based on business calendars