holiday_japan 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/holiday_japan.gemspec +1 -1
- data/lib/holiday_japan.rb +6 -4
- data/test/holiday.csv +4 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 726269abbeb3b1416db1333ef33a1ed85bd93221b6654a280b360926a773f671
|
4
|
+
data.tar.gz: 37514c34b1a602d0ea499eba8dc468486b396d6056c9bba1b556bdbde7408be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1270c6086d552e8ea9fd86245611b2f40f3fbb76307ef2647f443b3d3682fb922b5bcc3b6b74e9dc6bcbc2f6e9ae6b2d593871d968fbb8b8625833258b8c3bbc
|
7
|
+
data.tar.gz: 512ada76ed1555d96061a0c8323b47690283f4411193256735fcac96b35b6fc680b84a245f3de7602807c909b185bdab7e53f575521c97edc268b2b2daeefbd4
|
data/holiday_japan.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.authors = ["Masahiro TANAKA"]
|
10
10
|
gem.email = ["masa16.tanaka@gmail.com"]
|
11
11
|
gem.summary = %q{Calculate National Holidays of Japan}
|
12
|
-
gem.description = %q{Calculate National Holidays of Japan
|
12
|
+
gem.description = %q{Calculate National Holidays of Japan after 1948}
|
13
13
|
gem.homepage = "http://masa16.github.io/holiday_japan/"
|
14
14
|
gem.license = "MIT"
|
15
15
|
|
data/lib/holiday_japan.rb
CHANGED
@@ -6,7 +6,7 @@ require "date"
|
|
6
6
|
|
7
7
|
module HolidayJapan
|
8
8
|
|
9
|
-
VERSION = "1.4.
|
9
|
+
VERSION = "1.4.2"
|
10
10
|
|
11
11
|
WEEK1 = 1
|
12
12
|
WEEK2 = 8
|
@@ -52,10 +52,12 @@ module HolidayJapan
|
|
52
52
|
[1948..1979, 9, proc{|y|(23.2588+0.242194*(y-1980)).to_i-((y-1983)/4.0).to_i} ],
|
53
53
|
[2100..2150, 9, proc{|y|(24.2488+0.242194*(y-1980)).to_i-((y-1980)/4.0).to_i} ],
|
54
54
|
],
|
55
|
-
["
|
56
|
-
|
57
|
-
["
|
55
|
+
["即位礼正殿の儀", [2019, 10, 22 ],
|
56
|
+
[1990, 11, 12 ]],
|
57
|
+
["即位の日(名称未定)", [2019, 5, 1 ]],
|
58
58
|
["皇太子徳仁親王の結婚の儀", [1993, 6, 9 ]],
|
59
|
+
["昭和天皇の大喪の礼", [1989, 2, 24 ]],
|
60
|
+
["皇太子明仁親王の結婚の儀", [1959, 4, 10 ]]
|
59
61
|
]
|
60
62
|
DATA.each{|x| x.each{|y| y .freeze}}
|
61
63
|
DATA.freeze
|
data/test/holiday.csv
CHANGED
@@ -962,6 +962,9 @@
|
|
962
962
|
2019-02-11,建国記念の日
|
963
963
|
2019-03-21,春分の日
|
964
964
|
2019-04-29,昭和の日
|
965
|
+
2019-04-30,国民の休日
|
966
|
+
2019-05-01,即位の日(名称未定)
|
967
|
+
2019-05-02,国民の休日
|
965
968
|
2019-05-03,憲法記念日
|
966
969
|
2019-05-04,みどりの日
|
967
970
|
2019-05-05,こどもの日
|
@@ -972,6 +975,7 @@
|
|
972
975
|
2019-09-16,敬老の日
|
973
976
|
2019-09-23,秋分の日
|
974
977
|
2019-10-14,体育の日
|
978
|
+
2019-10-22,即位礼正殿の儀
|
975
979
|
2019-11-03,文化の日
|
976
980
|
2019-11-04,振替休日
|
977
981
|
2019-11-23,勤労感謝の日
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: holiday_japan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro TANAKA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Calculate National Holidays of Japan
|
13
|
+
description: Calculate National Holidays of Japan after 1948
|
14
14
|
email:
|
15
15
|
- masa16.tanaka@gmail.com
|
16
16
|
executables: []
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
46
|
version: '0'
|
47
47
|
requirements: []
|
48
48
|
rubyforge_project:
|
49
|
-
rubygems_version: 2.7.
|
49
|
+
rubygems_version: 2.7.8
|
50
50
|
signing_key:
|
51
51
|
specification_version: 4
|
52
52
|
summary: Calculate National Holidays of Japan
|