holiday_japan 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/holiday_japan.rb +5 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2105a9ddbfa397b697e57d61ddf5e22e8a6df3b2
|
4
|
+
data.tar.gz: 0dd34389a1f2f52e5c9fb4fe9a621f2f0aef16c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adaa5333ad5a9160cc9485321bbe9c5a56b3915d1fa82c488f34c35147565bef4e7581fb9f9d12a5d18cb6115d98ac7c196c3d96bca37e10c9d3516f73244bbb
|
7
|
+
data.tar.gz: 99e7df5fedc7139e0b21f9ebc51f00c454d5503602d2184a9bd7c734d27267bc2b214317e702cc692912b7d5d462a1691e111395049264eb87fa05834e1d66f8
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
gem install holiday_japan
|
16
16
|
|
17
|
-
* または、[holiday_japan.rb](https://github.com/masa16/holiday_japan/blob/master/lib/holiday_japan.rb)
|
17
|
+
* または、[holiday_japan.rb](https://github.com/masa16/holiday_japan/blob/master/lib/holiday_japan.rb)
|
18
18
|
のファイルを ruby のライブラリパスに置く
|
19
19
|
* 自分のスクリプトの初めに次のように書いて、 holiday_japan.rb をロードする
|
20
20
|
|
@@ -67,7 +67,7 @@
|
|
67
67
|
## 祝日データ
|
68
68
|
|
69
69
|
* 1948年7月20日(祝日法発令) 以降の祝日に対応
|
70
|
-
*
|
70
|
+
* 2015年の暦要項まで確認(法改正がない限り以降も有効)
|
71
71
|
|
72
72
|
## Author:
|
73
73
|
Masahiro TANAKA
|
@@ -79,6 +79,7 @@
|
|
79
79
|
NO WARRANTY.
|
80
80
|
|
81
81
|
## Version:
|
82
|
+
2014-05-23 ver 1.1 「山の日」追加
|
82
83
|
2012-12-23 ver 1.0 モジュール名を Holiday から HolidayJapan に変更
|
83
84
|
2007-08-02 ver 0.9 リファクタリング
|
84
85
|
2007-03-08 ver 0.8 祝日データクラスを統一、データを配列で記述
|
data/lib/holiday_japan.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
+
# (C) Copyright 2003-2013 by Masahiro TANAKA
|
3
|
+
# This program is free software under MIT license.
|
4
|
+
# NO WARRANTY.
|
2
5
|
require "date"
|
3
6
|
|
4
7
|
module HolidayJapan
|
5
8
|
|
6
|
-
VERSION = "1.0
|
9
|
+
VERSION = "1.1.0"
|
7
10
|
|
8
11
|
WEEK1 = 1..7
|
9
12
|
WEEK2 = 8..14
|
@@ -26,6 +29,7 @@ module HolidayJapan
|
|
26
29
|
["こどもの日", 1949..INF , 5, 5 ],
|
27
30
|
["海の日", 1996..2002, 7, 20 ],
|
28
31
|
["海の日", 2003..INF , 7, WEEK3, MON ],
|
32
|
+
["山の日", 2016..INF , 8, 11 ],
|
29
33
|
["敬老の日", 1966..2002, 9, 15 ],
|
30
34
|
["敬老の日", 2003..INF , 9, WEEK3, MON ],
|
31
35
|
["体育の日", 1966..1999, 10, 10 ],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: holiday_japan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro TANAKA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Calculate National Holidays of Japan
|
14
14
|
email:
|
@@ -17,7 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- .gitignore
|
20
|
+
- ".gitignore"
|
21
21
|
- Gemfile
|
22
22
|
- LICENSE.txt
|
23
23
|
- README.md
|
@@ -34,17 +34,17 @@ require_paths:
|
|
34
34
|
- lib
|
35
35
|
required_ruby_version: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0'
|
40
40
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
|
-
- -
|
42
|
+
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
46
|
rubyforge_project:
|
47
|
-
rubygems_version: 2.
|
47
|
+
rubygems_version: 2.2.2
|
48
48
|
signing_key:
|
49
49
|
specification_version: 4
|
50
50
|
summary: Calculate National Holidays of Japan
|