date-holiday 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/date/holiday.rb +7 -4
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34ca05099437828d224ac268aa43bbac9edc8e07
4
- data.tar.gz: 12e7d52baef60edd0cd579c33f180ada72515c85
3
+ metadata.gz: 8c1a61bb51dbd12f7d85dc6b7a9e7f019b297f55
4
+ data.tar.gz: de6de58fa3c04daae3187b338bd1959100981e47
5
5
  SHA512:
6
- metadata.gz: c499057e65367ba0e200860af47c9d7c74830472c925f49be9d035568959c2d9b2ea880755ba7b3f97f2d30cea38c8c93d95746174b7ca6727b44f91cf47c543
7
- data.tar.gz: 86b9b51df7a7c1bb46d79ed0c566337797d74ef7da785e13a5989f8f385f9bfc1a2c1c72cea000a32a2ee53a8f4feb4b35e195555019cc285dff3ab0908f7841
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.18 2014-06-14 17:48:36+09 tadf Exp $
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/PooD)
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.2
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: 2014-06-14 00:00:00.000000000 Z
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.2
51
+ rubygems_version: 2.5.2.1
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: determination of holiday