enrico 0.1.6 → 0.2.1
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 +6 -3
- data/Gemfile.lock +87 -71
- data/README.md +14 -11
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/enrico.gemspec +40 -39
- data/lib/enrico/country.rb +24 -23
- data/lib/enrico/vacation_day.rb +2 -4
- data/mise.toml +2 -0
- data/spec/fixtures/vcr_cassettes/holidays_in_date_range.yml +110 -0
- data/spec/fixtures/vcr_cassettes/holidays_in_month.yml +67 -0
- data/spec/fixtures/vcr_cassettes/holidays_in_year.yml +100 -0
- data/spec/fixtures/vcr_cassettes/is_public_holiday.yml +80 -14
- 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 +17 -17
- data/spec/lib/enrico/is_public_holiday_spec.rb +5 -6
- data/spec/lib/enrico/vacation_day_spec.rb +36 -18
- metadata +35 -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
@@ -6,62 +6,66 @@ require_relative '../../spec_helper'
|
|
6
6
|
|
7
7
|
describe Enrico::Country do
|
8
8
|
|
9
|
-
describe "GET
|
9
|
+
describe "GET getHolidaysForMonth" do
|
10
10
|
before(:each) do
|
11
|
-
VCR.insert_cassette '
|
11
|
+
VCR.insert_cassette 'holidays_in_month', :record => :new_episodes
|
12
12
|
end
|
13
13
|
|
14
14
|
after(:each) do
|
15
15
|
VCR.eject_cassette
|
16
16
|
end
|
17
|
-
let(:country) { Enrico::Country.new("
|
17
|
+
let(:country) { Enrico::Country.new("deu") }
|
18
18
|
it "should return all holidays in month" do
|
19
|
-
|
20
|
-
|
21
|
-
dates.first.date
|
22
|
-
dates.first.local_name
|
23
|
-
dates.first.english_name
|
19
|
+
dates = country.holidays_for_month(Date.parse('2020-01-15'))
|
20
|
+
|
21
|
+
_(dates.first.date).must_equal Date.parse('2020-01-01')
|
22
|
+
_(dates.first.local_name).must_equal "Neujahrstag"
|
23
|
+
_(dates.first.english_name).must_equal "New Year's Day"
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
describe "GET
|
27
|
+
describe "GET getHolidaysForYear" do
|
28
28
|
before(:each) do
|
29
|
-
VCR.insert_cassette '
|
29
|
+
VCR.insert_cassette 'holidays_in_year', :record => :new_episodes
|
30
30
|
end
|
31
31
|
|
32
32
|
after(:each) do
|
33
33
|
VCR.eject_cassette
|
34
34
|
end
|
35
|
-
let(:country) { Enrico::Country.new("
|
36
|
-
it "should return all holidays in
|
37
|
-
|
38
|
-
|
39
|
-
dates.first.date
|
40
|
-
dates.first.local_name
|
41
|
-
dates.first.english_name
|
35
|
+
let(:country) { Enrico::Country.new("deu") }
|
36
|
+
it "should return all holidays in year" do
|
37
|
+
dates = country.holidays_for_year(Date.parse('2020-06-01'))
|
38
|
+
|
39
|
+
_(dates.first.date).must_equal Date.parse('2020-01-01')
|
40
|
+
_(dates.first.local_name).must_equal "Neujahrstag"
|
41
|
+
_(dates.first.english_name).must_equal "New Year's Day"
|
42
|
+
|
43
|
+
_(dates.last.date).must_equal Date.parse('2020-12-26')
|
44
|
+
_(dates.last.local_name).must_equal "Zweiter Weihnachtsfeiertag"
|
45
|
+
_(dates.last.english_name).must_equal "Boxing Day"
|
42
46
|
end
|
43
47
|
end
|
44
48
|
|
45
|
-
describe "GET
|
49
|
+
describe "GET getForDateRange" do
|
46
50
|
before(:each) do
|
47
|
-
VCR.insert_cassette '
|
51
|
+
VCR.insert_cassette 'holidays_in_date_range', :record => :new_episodes
|
48
52
|
end
|
49
53
|
|
50
54
|
after(:each) do
|
51
55
|
VCR.eject_cassette
|
52
56
|
end
|
53
|
-
let(:country) { Enrico::Country.new("
|
57
|
+
let(:country) { Enrico::Country.new("deu") }
|
54
58
|
it "should return all holidays in date range" do
|
55
|
-
|
56
|
-
end_date = Date.today.beginning_of_year + 2.month
|
59
|
+
dates = country.holidays_for_date_range(Date.parse('2020-01-01'), Date.parse('2020-03-31'))
|
57
60
|
|
58
|
-
dates
|
61
|
+
_(dates.first.date).must_equal Date.parse('2020-01-01')
|
62
|
+
_(dates.first.local_name).must_equal "Neujahrstag"
|
63
|
+
_(dates.first.english_name).must_equal "New Year's Day"
|
59
64
|
|
60
|
-
dates.
|
61
|
-
dates.
|
62
|
-
dates.
|
65
|
+
_(dates.last.date).must_equal Date.parse('2020-03-29')
|
66
|
+
_(dates.last.local_name).must_equal "Beginn der Sommerzeit"
|
67
|
+
_(dates.last.english_name).must_equal "Daylight Saving Time Starts"
|
63
68
|
end
|
64
69
|
end
|
65
70
|
|
66
71
|
end
|
67
|
-
|
@@ -16,10 +16,10 @@ describe Enrico::Country do
|
|
16
16
|
|
17
17
|
describe "default attributes" do
|
18
18
|
it "must include httparty methods" do
|
19
|
-
Enrico::Country.must_include HTTParty
|
19
|
+
_(Enrico::Country).must_include HTTParty
|
20
20
|
end
|
21
21
|
it "must have the base url set to the Dribble API endpoint" do
|
22
|
-
Enrico::Country.base_uri.must_equal '
|
22
|
+
_(Enrico::Country.base_uri).must_equal 'https://kayaposoft.com/enrico/json/v2.0'
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -30,56 +30,57 @@ describe Enrico::Country do
|
|
30
30
|
end
|
31
31
|
|
32
32
|
describe "get list of all supported countries" do
|
33
|
-
|
33
|
+
|
34
34
|
it "must have all method" do
|
35
|
-
Enrico::Country.must_respond_to :all
|
35
|
+
_(Enrico::Country).must_respond_to :all
|
36
36
|
end
|
37
37
|
|
38
38
|
it "must parse the api response from JSON to Hash" do
|
39
|
-
Enrico::Country.all.must_be_instance_of
|
39
|
+
_(Enrico::Country.all).must_be_instance_of HTTParty::Response
|
40
|
+
_(Enrico::Country.all.to_a).must_be_instance_of Array
|
40
41
|
end
|
41
42
|
|
42
43
|
end
|
43
44
|
|
44
45
|
describe "default instance attributes" do
|
45
|
-
let(:country) { Enrico::Country.new("
|
46
|
+
let(:country) { Enrico::Country.new("deu") }
|
46
47
|
|
47
48
|
it "must have an country_code attribute" do
|
48
|
-
country.must_respond_to :country_code
|
49
|
+
_(country).must_respond_to :country_code
|
49
50
|
end
|
50
51
|
|
51
52
|
it "must have the right id" do
|
52
|
-
country.country_code.must_equal '
|
53
|
+
_(country.country_code).must_equal 'deu'
|
53
54
|
end
|
54
55
|
|
55
56
|
end
|
56
57
|
|
57
58
|
describe "get list of all supported countries" do
|
58
59
|
|
59
|
-
let(:country) { Enrico::Country.new("
|
60
|
+
let(:country) { Enrico::Country.new("deu") }
|
60
61
|
|
61
62
|
it "must have a country method" do
|
62
|
-
country.must_respond_to :details
|
63
|
+
_(country).must_respond_to :details
|
63
64
|
end
|
64
65
|
|
65
66
|
it "must repond with the details of a country" do
|
66
|
-
country.full_name.must_equal 'Germany'
|
67
|
+
_(country.full_name).must_equal 'Germany'
|
67
68
|
end
|
68
69
|
|
69
70
|
it "should respond with the fromDate" do
|
70
71
|
format = {"day"=>1, "month"=>1, "year"=>2011}
|
71
|
-
country.from_date.must_equal format
|
72
|
+
_(country.from_date).must_equal format
|
72
73
|
end
|
73
74
|
|
74
75
|
it "should respond with toDate" do
|
75
76
|
toDate = {"day"=>31, "month"=>12, "year"=>32767}
|
76
|
-
country.toDate.must_equal toDate
|
77
|
+
_(country.toDate).must_equal toDate
|
77
78
|
end
|
78
79
|
|
79
80
|
it "should respond with regions" do
|
80
|
-
regions = ["
|
81
|
-
country.regions.must_be_instance_of Array
|
82
|
-
country.regions.must_equal regions
|
81
|
+
regions = ["bw", "by", "be", "bb", "hb", "hh", "he", "ni", "mv", "nw", "rp", "sl", "sn", "st", "sh", "th"]
|
82
|
+
_(country.regions).must_be_instance_of Array
|
83
|
+
_(country.regions).must_equal regions
|
83
84
|
end
|
84
85
|
|
85
86
|
end
|
@@ -87,4 +88,3 @@ describe Enrico::Country do
|
|
87
88
|
end
|
88
89
|
|
89
90
|
end
|
90
|
-
|
@@ -14,19 +14,18 @@ describe Enrico::Country do
|
|
14
14
|
VCR.eject_cassette
|
15
15
|
end
|
16
16
|
|
17
|
-
let(:country) { Enrico::Country.new("
|
17
|
+
let(:country) { Enrico::Country.new("deu") }
|
18
18
|
|
19
19
|
it "should trueify that date is public holiday" do
|
20
|
-
date = Date.
|
21
|
-
country.is_public_holiday?(date).must_equal true
|
20
|
+
date = Date.parse('2020-01-01')
|
21
|
+
_(country.is_public_holiday?(date)).must_equal true
|
22
22
|
end
|
23
23
|
|
24
24
|
it "should falsify that date is public holiday" do
|
25
|
-
date = Date.
|
26
|
-
country.is_public_holiday?(date).must_equal false
|
25
|
+
date = Date.parse('2020-01-29')
|
26
|
+
_(country.is_public_holiday?(date)).must_equal false
|
27
27
|
end
|
28
28
|
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
32
|
-
|
@@ -5,30 +5,48 @@ require_relative '../../spec_helper'
|
|
5
5
|
# require (File.expand_path('./../../../spec_helper', __FILE__))
|
6
6
|
|
7
7
|
describe Enrico::VacationDay do
|
8
|
-
|
9
8
|
describe "default instance attributes" do
|
10
|
-
let(:vacatin_date) {
|
11
|
-
Enrico::VacationDay.new(Date.today.beginning_of_year, "Neujahrstag", "New Year's Day")
|
12
|
-
}
|
13
|
-
|
14
9
|
it "test initializer methods" do
|
15
10
|
beginning_of_year = Date.today.beginning_of_year
|
16
|
-
rsp = {
|
11
|
+
rsp = {
|
12
|
+
"date"=>{"day"=> beginning_of_year.day, "month" => beginning_of_year.month, "year"=>beginning_of_year.year, "dayOfWeek"=>beginning_of_year.wday},
|
13
|
+
"name"=>[
|
14
|
+
{
|
15
|
+
"lang"=>"de",
|
16
|
+
"text"=>"Neujahrstag"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"lang"=>"en",
|
20
|
+
"text"=>"New Year's Day"
|
21
|
+
}
|
22
|
+
],
|
23
|
+
"holidayType"=>"public_holiday"
|
24
|
+
}
|
17
25
|
day = Enrico::VacationDay.new(rsp)
|
18
|
-
day.date.must_equal Date.today.beginning_of_year
|
19
|
-
day.local_name.must_equal "Neujahrstag"
|
20
|
-
day.english_name.must_equal "New Year's Day"
|
26
|
+
_(day.date).must_equal Date.today.beginning_of_year
|
27
|
+
_(day.local_name).must_equal "Neujahrstag"
|
28
|
+
_(day.english_name).must_equal "New Year's Day"
|
21
29
|
end
|
22
30
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
+
describe 'when country has only one language' do
|
32
|
+
it "returns same names" do
|
33
|
+
beginning_of_year = Date.today.beginning_of_year
|
34
|
+
rsp = {
|
35
|
+
"date"=>{"day"=> beginning_of_year.day, "month" => beginning_of_year.month, "year"=>beginning_of_year.year, "dayOfWeek"=>beginning_of_year.wday},
|
36
|
+
"name"=>[
|
37
|
+
{
|
38
|
+
"lang"=>"en",
|
39
|
+
"text"=>"New Year's Day"
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"holidayType"=>"public_holiday"
|
43
|
+
}
|
44
|
+
day = Enrico::VacationDay.new(rsp)
|
45
|
+
_(day.date).must_equal Date.today.beginning_of_year
|
46
|
+
_(day.local_name).must_equal "New Year's Day"
|
47
|
+
_(day.english_name).must_equal "New Year's Day"
|
48
|
+
end
|
31
49
|
|
50
|
+
end
|
32
51
|
end
|
33
|
-
|
34
52
|
end
|
metadata
CHANGED
@@ -1,118 +1,114 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enrico
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kalle Saas
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
MC4xMi4w
|
19
|
+
version: 0.21.0
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
|
-
- -
|
24
|
+
- - "~>"
|
26
25
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
28
|
-
MC4xMi4w
|
26
|
+
version: 0.21.0
|
29
27
|
- !ruby/object:Gem::Dependency
|
30
28
|
name: bundler
|
31
29
|
requirement: !ruby/object:Gem::Requirement
|
32
30
|
requirements:
|
33
|
-
- -
|
31
|
+
- - ">="
|
34
32
|
- !ruby/object:Gem::Version
|
35
33
|
version: '0'
|
36
34
|
type: :development
|
37
35
|
prerelease: false
|
38
36
|
version_requirements: !ruby/object:Gem::Requirement
|
39
37
|
requirements:
|
40
|
-
- -
|
38
|
+
- - ">="
|
41
39
|
- !ruby/object:Gem::Version
|
42
40
|
version: '0'
|
43
41
|
- !ruby/object:Gem::Dependency
|
44
42
|
name: jeweler
|
45
43
|
requirement: !ruby/object:Gem::Requirement
|
46
44
|
requirements:
|
47
|
-
- -
|
45
|
+
- - ">="
|
48
46
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
50
|
-
MS44Ljg=
|
47
|
+
version: '0'
|
51
48
|
type: :development
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
54
51
|
requirements:
|
55
|
-
- -
|
52
|
+
- - ">="
|
56
53
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
58
|
-
MS44Ljg=
|
54
|
+
version: '0'
|
59
55
|
- !ruby/object:Gem::Dependency
|
60
56
|
name: simplecov
|
61
57
|
requirement: !ruby/object:Gem::Requirement
|
62
58
|
requirements:
|
63
|
-
- -
|
59
|
+
- - ">="
|
64
60
|
- !ruby/object:Gem::Version
|
65
61
|
version: '0'
|
66
62
|
type: :development
|
67
63
|
prerelease: false
|
68
64
|
version_requirements: !ruby/object:Gem::Requirement
|
69
65
|
requirements:
|
70
|
-
- -
|
66
|
+
- - ">="
|
71
67
|
- !ruby/object:Gem::Version
|
72
68
|
version: '0'
|
73
69
|
- !ruby/object:Gem::Dependency
|
74
70
|
name: rdoc
|
75
71
|
requirement: !ruby/object:Gem::Requirement
|
76
72
|
requirements:
|
77
|
-
- -
|
73
|
+
- - ">="
|
78
74
|
- !ruby/object:Gem::Version
|
79
75
|
version: '0'
|
80
76
|
type: :development
|
81
77
|
prerelease: false
|
82
78
|
version_requirements: !ruby/object:Gem::Requirement
|
83
79
|
requirements:
|
84
|
-
- -
|
80
|
+
- - ">="
|
85
81
|
- !ruby/object:Gem::Version
|
86
82
|
version: '0'
|
87
83
|
- !ruby/object:Gem::Dependency
|
88
84
|
name: shoulda
|
89
85
|
requirement: !ruby/object:Gem::Requirement
|
90
86
|
requirements:
|
91
|
-
- -
|
87
|
+
- - ">="
|
92
88
|
- !ruby/object:Gem::Version
|
93
89
|
version: '0'
|
94
90
|
type: :development
|
95
91
|
prerelease: false
|
96
92
|
version_requirements: !ruby/object:Gem::Requirement
|
97
93
|
requirements:
|
98
|
-
- -
|
94
|
+
- - ">="
|
99
95
|
- !ruby/object:Gem::Version
|
100
96
|
version: '0'
|
101
97
|
- !ruby/object:Gem::Dependency
|
102
98
|
name: minitest
|
103
99
|
requirement: !ruby/object:Gem::Requirement
|
104
100
|
requirements:
|
105
|
-
- -
|
101
|
+
- - ">="
|
106
102
|
- !ruby/object:Gem::Version
|
107
103
|
version: '0'
|
108
104
|
type: :development
|
109
105
|
prerelease: false
|
110
106
|
version_requirements: !ruby/object:Gem::Requirement
|
111
107
|
requirements:
|
112
|
-
- -
|
108
|
+
- - ">="
|
113
109
|
- !ruby/object:Gem::Version
|
114
110
|
version: '0'
|
115
|
-
description:
|
111
|
+
description: https://github.com/easyPEP/enrico
|
116
112
|
email: kalle@easypep.de
|
117
113
|
executables: []
|
118
114
|
extensions: []
|
@@ -121,7 +117,9 @@ extra_rdoc_files:
|
|
121
117
|
- README.md
|
122
118
|
- README.rdoc
|
123
119
|
files:
|
124
|
-
- .document
|
120
|
+
- ".document"
|
121
|
+
- ".github/workflows/test.yml"
|
122
|
+
- ".ruby-version"
|
125
123
|
- Gemfile
|
126
124
|
- Gemfile.lock
|
127
125
|
- LICENSE.txt
|
@@ -129,44 +127,42 @@ files:
|
|
129
127
|
- README.rdoc
|
130
128
|
- Rakefile
|
131
129
|
- VERSION
|
132
|
-
- enrico-0.1.5.gem
|
133
|
-
- enrico-0.1.6.gem
|
134
130
|
- enrico.gemspec
|
135
131
|
- lib/enrico.rb
|
136
132
|
- lib/enrico/country.rb
|
137
133
|
- lib/enrico/vacation_day.rb
|
134
|
+
- mise.toml
|
135
|
+
- spec/fixtures/vcr_cassettes/holidays_in_date_range.yml
|
136
|
+
- spec/fixtures/vcr_cassettes/holidays_in_month.yml
|
137
|
+
- spec/fixtures/vcr_cassettes/holidays_in_year.yml
|
138
138
|
- spec/fixtures/vcr_cassettes/is_public_holiday.yml
|
139
|
-
- spec/fixtures/vcr_cassettes/public_holidays_in_date_range.yml
|
140
|
-
- spec/fixtures/vcr_cassettes/public_holidays_in_month.yml
|
141
|
-
- spec/fixtures/vcr_cassettes/public_holidays_in_year.yml
|
142
139
|
- spec/fixtures/vcr_cassettes/supported_countries.yml
|
143
140
|
- spec/lib/enrico/country_public_holidays_for_month_spec.rb
|
144
141
|
- spec/lib/enrico/country_spec.rb
|
145
142
|
- spec/lib/enrico/is_public_holiday_spec.rb
|
146
143
|
- spec/lib/enrico/vacation_day_spec.rb
|
147
144
|
- spec/spec_helper.rb
|
148
|
-
homepage:
|
145
|
+
homepage: https://github.com/easyPEP/enrico
|
149
146
|
licenses:
|
150
147
|
- MIT
|
151
148
|
metadata: {}
|
152
|
-
post_install_message:
|
149
|
+
post_install_message:
|
153
150
|
rdoc_options: []
|
154
151
|
require_paths:
|
155
152
|
- lib
|
156
153
|
required_ruby_version: !ruby/object:Gem::Requirement
|
157
154
|
requirements:
|
158
|
-
- -
|
155
|
+
- - ">="
|
159
156
|
- !ruby/object:Gem::Version
|
160
157
|
version: '0'
|
161
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
159
|
requirements:
|
163
|
-
- -
|
160
|
+
- - ">="
|
164
161
|
- !ruby/object:Gem::Version
|
165
162
|
version: '0'
|
166
163
|
requirements: []
|
167
|
-
|
168
|
-
|
169
|
-
signing_key:
|
164
|
+
rubygems_version: 3.0.3.1
|
165
|
+
signing_key:
|
170
166
|
specification_version: 4
|
171
167
|
summary: A ruby wrapper around enrico holiday API
|
172
168
|
test_files: []
|
data/enrico-0.1.5.gem
DELETED
File without changes
|
data/enrico-0.1.6.gem
DELETED
Binary file
|
@@ -1,33 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://kayaposoft.com/enrico/json/v1.0/?action=getPublicHolidaysForDateRange&country=ger&fromDate=01-01-2013®ion=&toDate=01-03-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,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
|