date-holiday 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/date/holiday.rb +7 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c1a61bb51dbd12f7d85dc6b7a9e7f019b297f55
|
4
|
+
data.tar.gz: de6de58fa3c04daae3187b338bd1959100981e47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aaabef89893840820efddcd909cebb0cab47acaa04745e5a3b2602a07c2d09310ec853c659ca6e6ab6ea0ff516fc1cf44cf981835283f46fd4003bd5edc5918
|
7
|
+
data.tar.gz: d1a1acd9d359c6e6c6173a218e7fac743965824db37ee98073ccbee0b820d4585edb7b1d4d499e1f6bff67146631c843a30ea32894ab4ac890a696152e16abc7
|
data/lib/date/holiday.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# date/holiday.rb: Written by Tadayoshi Funaba 1998-2006,2014
|
2
|
-
# $Id: holiday.rb,v 2.
|
1
|
+
# date/holiday.rb: Written by Tadayoshi Funaba 1998-2006,2014,2018
|
2
|
+
# $Id: holiday.rb,v 2.19 2018/05/04 08:53:44 tadf Exp $
|
3
3
|
|
4
4
|
require 'date'
|
5
5
|
|
@@ -13,6 +13,8 @@ class Date
|
|
13
13
|
jd <= 2451544) ||
|
14
14
|
(x == [ 2, 11] && # --02-11 (1966-12-09/PooD)
|
15
15
|
jd >= 2439469) ||
|
16
|
+
(x == [ 2, 23] && # --02-23 (2019-05-01/PooD)
|
17
|
+
jd >= 2458605) ||
|
16
18
|
(x == [ 4, 29]) || # --04-29
|
17
19
|
(x == [ 5, 3]) || # --05-03
|
18
20
|
(x == [ 5, 4] && # --05-04 (2007-01-01/PooD)
|
@@ -31,8 +33,9 @@ class Date
|
|
31
33
|
jd <= 2451544) ||
|
32
34
|
(x == [11, 3]) || # --11-03
|
33
35
|
(x == [11, 23]) || # --11-23
|
34
|
-
(x == [12, 23] && # --12-23 (1989-02-17/
|
35
|
-
jd >= 2447575
|
36
|
+
(x == [12, 23] && # --12-23 (1989-02-17/2019-04-30)
|
37
|
+
jd >= 2447575 &&
|
38
|
+
jd <= 2458604)
|
36
39
|
end
|
37
40
|
|
38
41
|
t = Module.new do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: date-holiday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tadayoshi Funaba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: tadf@funaba.org
|
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project: tadf
|
51
|
-
rubygems_version: 2.2.
|
51
|
+
rubygems_version: 2.5.2.1
|
52
52
|
signing_key:
|
53
53
|
specification_version: 4
|
54
54
|
summary: determination of holiday
|