holiday_tools 0.0.14 → 0.1.0
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.
- data/README.md +9 -3
- data/lib/holiday_tools/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -7,12 +7,14 @@ This is a wrapper around the alexdunae/holidays gem with a more intuitive API (a
|
|
7
7
|
### Class methods
|
8
8
|
|
9
9
|
* **show_regions**
|
10
|
-
|
10
|
+
Generates a list of region-id's and names of that region (country in Englich and sub-region in local name, e.g. Germany/Sachsen)
|
11
11
|
|
12
12
|
### Instance methods
|
13
13
|
|
14
14
|
* **new(filter=[])**
|
15
|
-
You may supply an array of region-id's (see
|
15
|
+
You may supply an array of filter strings. This strings are region-id's (see
|
16
|
+
above show_regions) or patterns, which will be expanded as regular expressions
|
17
|
+
to match region-id's
|
16
18
|
|
17
19
|
* **show\_holiday( date )**
|
18
20
|
Generates a list of all public holidays for _date_, which is a Date object (e.g. Date.today)
|
@@ -42,7 +44,8 @@ Or install it yourself as:
|
|
42
44
|
|
43
45
|
## Usage
|
44
46
|
|
45
|
-
Included in the gem is an executable, which can be used as CLI command.
|
47
|
+
Included in the gem is an executable, which can be used as CLI command.
|
48
|
+
Examples:
|
46
49
|
|
47
50
|
$ holiday_tools
|
48
51
|
shows all regions which observe today a public holiday
|
@@ -53,6 +56,9 @@ shows all holidays in all regions in May, 2013
|
|
53
56
|
$ holiday_tools --mode y at ge
|
54
57
|
shows all holidays in the current year in Austria and Germany
|
55
58
|
|
59
|
+
$ holiday_tools --date 2013-05-01 --mode m es_.
|
60
|
+
shows all holidays in May, 2013 which are observed only in subregions of Spain
|
61
|
+
|
56
62
|
$ holiday_tools --help
|
57
63
|
shows the usage hints
|
58
64
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: holiday_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: holidays
|