enrico 0.1.6 → 0.2.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.
- checksums.yaml +5 -13
- data/.github/workflows/test.yml +21 -0
- data/.ruby-version +1 -0
- data/Gemfile +7 -6
- data/Gemfile.lock +80 -84
- data/README.md +14 -11
- data/Rakefile +0 -14
- data/VERSION +1 -1
- data/enrico.gemspec +40 -39
- data/lib/enrico/country.rb +25 -24
- data/lib/enrico/vacation_day.rb +2 -4
- data/lib/enrico.rb +0 -1
- data/mise.toml +2 -0
- data/spec/fixtures/vcr_cassettes/holidays_in_date_range.yml +48 -0
- data/spec/fixtures/vcr_cassettes/holidays_in_month.yml +44 -0
- data/spec/fixtures/vcr_cassettes/holidays_in_year.yml +61 -0
- data/spec/fixtures/vcr_cassettes/is_public_holiday.yml +41 -19
- data/spec/fixtures/vcr_cassettes/supported_countries.yml +245 -101
- data/spec/lib/enrico/country_public_holidays_for_month_spec.rb +31 -27
- data/spec/lib/enrico/country_spec.rb +89 -18
- data/spec/lib/enrico/is_public_holiday_spec.rb +6 -7
- data/spec/lib/enrico/vacation_day_spec.rb +80 -19
- metadata +36 -39
- data/enrico-0.1.5.gem +0 -0
- data/enrico-0.1.6.gem +0 -0
- data/spec/fixtures/vcr_cassettes/public_holidays_in_date_range.yml +0 -33
- data/spec/fixtures/vcr_cassettes/public_holidays_in_month.yml +0 -33
- data/spec/fixtures/vcr_cassettes/public_holidays_in_year.yml +0 -41
@@ -1,33 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://kayaposoft.com/enrico/json/v1.0/?action=getPublicHolidaysForMonth&country=ger&month=1®ion=&year=2013
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
headers:
|
15
|
-
Server:
|
16
|
-
- nginx
|
17
|
-
Date:
|
18
|
-
- Mon, 02 Dec 2013 17:41:33 GMT
|
19
|
-
Content-Type:
|
20
|
-
- application/json
|
21
|
-
Content-Length:
|
22
|
-
- '113'
|
23
|
-
Connection:
|
24
|
-
- keep-alive
|
25
|
-
Vary:
|
26
|
-
- User-Agent
|
27
|
-
body:
|
28
|
-
encoding: US-ASCII
|
29
|
-
string: ! '[{"date":{"day":1,"month":1,"year":2013,"dayOfWeek":2},"localName":"Neujahrstag","englishName":"New
|
30
|
-
Year''s Day"}]'
|
31
|
-
http_version:
|
32
|
-
recorded_at: Mon, 02 Dec 2013 17:41:33 GMT
|
33
|
-
recorded_with: VCR 2.3.0
|
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://kayaposoft.com/enrico/json/v1.0/?action=getPublicHolidaysForYear&country=ger®ion=&year=2013
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
headers:
|
15
|
-
Server:
|
16
|
-
- nginx
|
17
|
-
Date:
|
18
|
-
- Mon, 02 Dec 2013 17:41:34 GMT
|
19
|
-
Content-Type:
|
20
|
-
- application/json
|
21
|
-
Content-Length:
|
22
|
-
- '1051'
|
23
|
-
Connection:
|
24
|
-
- keep-alive
|
25
|
-
Vary:
|
26
|
-
- User-Agent
|
27
|
-
body:
|
28
|
-
encoding: US-ASCII
|
29
|
-
string: ! '[{"date":{"day":1,"month":1,"year":2013,"dayOfWeek":2},"localName":"Neujahrstag","englishName":"New
|
30
|
-
Year''s Day"},{"date":{"day":29,"month":3,"year":2013,"dayOfWeek":5},"localName":"Karfreitag","englishName":"Good
|
31
|
-
Friday"},{"date":{"day":1,"month":4,"year":2013,"dayOfWeek":1},"localName":"Ostermontag","englishName":"Easter
|
32
|
-
Monday"},{"date":{"day":1,"month":5,"year":2013,"dayOfWeek":3},"localName":"Tag
|
33
|
-
der Arbeit","englishName":"Labour Day"},{"date":{"day":9,"month":5,"year":2013,"dayOfWeek":4},"localName":"Christi
|
34
|
-
Himmelfahrt","englishName":"Ascension Day"},{"date":{"day":20,"month":5,"year":2013,"dayOfWeek":1},"localName":"Pfingstmontag","englishName":"Whit
|
35
|
-
Monday"},{"date":{"day":3,"month":10,"year":2013,"dayOfWeek":4},"localName":"Tag
|
36
|
-
der Deutschen Einheit","englishName":"German Unity Day"},{"date":{"day":25,"month":12,"year":2013,"dayOfWeek":3},"localName":"Weihnachtstag","englishName":"Christmas
|
37
|
-
Day"},{"date":{"day":26,"month":12,"year":2013,"dayOfWeek":4},"localName":"Zweiter
|
38
|
-
Weihnachtsfeiertag","englishName":"St. Stephen''s Day"}]'
|
39
|
-
http_version:
|
40
|
-
recorded_at: Mon, 02 Dec 2013 17:41:34 GMT
|
41
|
-
recorded_with: VCR 2.3.0
|