enrico 0.1.1 → 0.1.2

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 (5) hide show
  1. data/README.md +119 -0
  2. data/Rakefile +2 -2
  3. data/VERSION +1 -1
  4. data/enrico.gemspec +4 -4
  5. metadata +5 -5
data/README.md CHANGED
@@ -0,0 +1,119 @@
1
+ enrico
2
+ ===========
3
+
4
+ enrico is a small wrapper around the JSON API from [enrico](http://kayaposoft.com/enrico/json/)
5
+
6
+ The Enrico Service
7
+ ------------------
8
+
9
+ ```
10
+ Enrico Service is a free service written in PHP providing public holidays for several
11
+ countries. You can use either web service or json to get public holidays from Enrico.
12
+ Each provided public holiday includes date and name of the holiday in the local language
13
+ and English. Public holidays for the countries like U.S. or Germany are provided separately for each state.
14
+ You can use Enrico Service to display public holidays on your website or in your desktop application written in any programming language.
15
+ lthough Enrico is free to use, we do not provide the source code for download. If you are interested in hosting Enrico on your
16
+ server, please contact us on enrico@kayaposoft.com.
17
+ ```
18
+
19
+ Getting Started
20
+ ---------------
21
+
22
+ To get all supported countries:
23
+
24
+ ```ruby
25
+ require "rubygems"
26
+ require "enrico"
27
+
28
+ Enrico::Country.all
29
+ ```
30
+
31
+ If you want to get in more details for a country, initial Enrico with the ’country_code’
32
+
33
+ <<<<<<< HEAD
34
+ country = Enrico::Country.new("ger")
35
+ country.details
36
+ country.regions
37
+
38
+ Enrico implements only a couple of methods, which are pretty much self explenatory:
39
+
40
+ ```
41
+ country.public_holidays_for_month(Date.today)
42
+ ```
43
+
44
+ ```
45
+ country.public_holidays_for_year(Date.today)
46
+ ```
47
+
48
+ ```
49
+ country.public_holidays_for_date_range(Date.today, Date.today + 2.month)
50
+ ```
51
+
52
+ ```
53
+ country.is_public_holiday?(date)
54
+ ```
55
+ =======
56
+ ```ruby
57
+ country = Enrico::Country.new("ger")
58
+ country.details
59
+ country.regions
60
+ ```
61
+
62
+ Enrico implements only a couple of methods, which are pretty much self explenatory:
63
+
64
+ ```
65
+ country.public_holidays_for_month(Date.today)
66
+ ```
67
+
68
+ ```
69
+ country.public_holidays_for_year(Date.today)
70
+ ```
71
+
72
+ ```
73
+ country.public_holidays_for_date_range(Date.today, Date.today + 2.month)
74
+ ```
75
+
76
+ ```
77
+ country.is_public_holiday?(date)
78
+ ```
79
+ >>>>>>> a4214e5fbbb2b9df5a0110e2a93e0b1913fec159
80
+
81
+ Installation
82
+ ------------
83
+
84
+ gem install enrico
85
+
86
+ or in your Gemfile:
87
+
88
+ gem 'enrico'
89
+
90
+
91
+ Documentation
92
+ -------------
93
+
94
+ ### More Resources
95
+
96
+ + [Enrico](http://kayaposoft.com/enrico/)
97
+ + [Enrico JSON API](http://kayaposoft.com/enrico/json/)
98
+
99
+
100
+ License
101
+ -------
102
+
103
+ Copyright (c) 2012 easyPEP UG
104
+
105
+ Permission is hereby granted, free of charge, to any person obtaining
106
+ a copy of this software and associated documentation files (the
107
+ "Software"), to use, copy and modify copies of the Software, subject
108
+ to the following conditions:
109
+
110
+ The above copyright notice and this permission notice shall be
111
+ included in all copies or substantial portions of the Software.
112
+
113
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
114
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
115
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
116
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
117
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
118
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
119
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -15,10 +15,10 @@ require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "enrico"
18
- gem.homepage = "http://github.com/fluxsaas/enrico"
18
+ gem.homepage = "http://github.com/easyPEP/enrico"
19
19
  gem.license = "MIT"
20
20
  gem.summary = "A ruby wrapper around enrico holiday API"
21
- gem.description = "http://github.com/fluxsaas/enrico"
21
+ gem.description = "http://github.com/easyPEP/enrico"
22
22
  gem.email = "kalle@easypep.de"
23
23
  gem.authors = ["Kalle Saas"]
24
24
  # dependencies defined in Gemfile
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "enrico"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kalle Saas"]
12
- s.date = "2012-11-29"
13
- s.description = "http://github.com/fluxsaas/enrico"
12
+ s.date = "2012-11-30"
13
+ s.description = "http://github.com/easyPEP/enrico"
14
14
  s.email = "kalle@easypep.de"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
41
41
  "spec/lib/enrico/vacation_day_spec.rb",
42
42
  "spec/spec_helper.rb"
43
43
  ]
44
- s.homepage = "http://github.com/fluxsaas/enrico"
44
+ s.homepage = "http://github.com/easyPEP/enrico"
45
45
  s.licenses = ["MIT"]
46
46
  s.require_paths = ["lib"]
47
47
  s.rubygems_version = "1.8.23"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enrico
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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: 2012-11-29 00:00:00.000000000 Z
12
+ date: 2012-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -123,7 +123,7 @@ dependencies:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
- description: http://github.com/fluxsaas/enrico
126
+ description: http://github.com/easyPEP/enrico
127
127
  email: kalle@easypep.de
128
128
  executables: []
129
129
  extensions: []
@@ -154,7 +154,7 @@ files:
154
154
  - spec/lib/enrico/is_public_holiday_spec.rb
155
155
  - spec/lib/enrico/vacation_day_spec.rb
156
156
  - spec/spec_helper.rb
157
- homepage: http://github.com/fluxsaas/enrico
157
+ homepage: http://github.com/easyPEP/enrico
158
158
  licenses:
159
159
  - MIT
160
160
  post_install_message:
@@ -169,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  segments:
171
171
  - 0
172
- hash: 4062427779535511263
172
+ hash: 1576117388882456692
173
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  none: false
175
175
  requirements: