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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +13 -1
- data/lib/business/data/becs.yml +22 -0
- data/lib/business/data/betalingsservice.yml +0 -2
- data/lib/business/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3004b0f5a90dbb38f3db0b68b7579deb8ca543ba
|
4
|
+
data.tar.gz: 7eb94eadf6c86c9365bcb6b5d67a7a0ad94e916d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e75fe5d2695b4a80b20b1aa65fe39d566ccd26949edac06a5d70ee22e97759901d531ea790989cb22b58e680c1fb37400bc928b303939163346ad82ef3e324f2
|
7
|
+
data.tar.gz: 2778f6ec3a5d24d07c411b09931d921547436f70cf228bf992c26fdece9c425ebefed09a587bff30f662184fa6bc411567f9c486cb837ab72cb547167327c3e0
|
data/CHANGELOG.md
CHANGED
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
|
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
|
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.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-
|
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.
|
89
|
+
rubygems_version: 2.6.14
|
89
90
|
signing_key:
|
90
91
|
specification_version: 4
|
91
92
|
summary: Date calculations based on business calendars
|