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.
@@ -6,62 +6,66 @@ require_relative '../../spec_helper'
6
6
 
7
7
  describe Enrico::Country do
8
8
 
9
- describe "GET getPublicHolidaysForMonth" do
9
+ describe "GET getHolidaysForMonth" do
10
10
  before(:each) do
11
- VCR.insert_cassette 'public_holidays_in_month', :record => :new_episodes
11
+ VCR.insert_cassette 'holidays_in_month'
12
12
  end
13
13
 
14
14
  after(:each) do
15
15
  VCR.eject_cassette
16
16
  end
17
- let(:country) { Enrico::Country.new("ger") }
17
+ let(:country) { Enrico::Country.new("deu") }
18
18
  it "should return all holidays in month" do
19
- date = Date.today.beginning_of_year
20
- dates = country.public_holidays_for_month(date)
21
- dates.first.date = Date.today.beginning_of_year
22
- dates.first.local_name = "Neujahrstag"
23
- dates.first.english_name = "New Year's Day"
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 getPublicHolidaysForYear" do
27
+ describe "GET getHolidaysForYear" do
28
28
  before(:each) do
29
- VCR.insert_cassette 'public_holidays_in_year', :record => :new_episodes
29
+ VCR.insert_cassette 'holidays_in_year'
30
30
  end
31
31
 
32
32
  after(:each) do
33
33
  VCR.eject_cassette
34
34
  end
35
- let(:country) { Enrico::Country.new("ger") }
36
- it "should return all holidays in month" do
37
- date = Date.today.beginning_of_year
38
- dates = country.public_holidays_for_year(date)
39
- dates.first.date = Date.today.beginning_of_year
40
- dates.first.local_name = "Neujahrstag"
41
- dates.first.english_name = "New Year's Day"
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 getPublicHolidaysForDateRange" do
49
+ describe "GET getForDateRange" do
46
50
  before(:each) do
47
- VCR.insert_cassette 'public_holidays_in_date_range', :record => :new_episodes
51
+ VCR.insert_cassette 'holidays_in_date_range'
48
52
  end
49
53
 
50
54
  after(:each) do
51
55
  VCR.eject_cassette
52
56
  end
53
- let(:country) { Enrico::Country.new("ger") }
57
+ let(:country) { Enrico::Country.new("deu") }
54
58
  it "should return all holidays in date range" do
55
- start_date = Date.today.beginning_of_year
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 = country.public_holidays_for_date_range(start_date, end_date)
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.first.date = Date.today.beginning_of_year
61
- dates.first.local_name = "Neujahrstag"
62
- dates.first.english_name = "New Year's Day"
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
-
@@ -7,7 +7,7 @@ require_relative '../../spec_helper'
7
7
  describe Enrico::Country do
8
8
 
9
9
  before(:each) do
10
- VCR.insert_cassette 'supported_countries', :record => :new_episodes
10
+ VCR.insert_cassette 'supported_countries'
11
11
  end
12
12
 
13
13
  after(:each) do
@@ -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 'http://kayaposoft.com/enrico/json/v1.0'
22
+ _(Enrico::Country.base_uri).must_equal 'https://kayaposoft.com/enrico/json/v2.0'
23
23
  end
24
24
  end
25
25
 
@@ -30,61 +30,132 @@ 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 Array
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("ger") }
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 'ger'
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("ger") }
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 = ["Baden-Württemberg", "Bavaria", "Berlin", "Brandenburg", "Bremen", "Hamburg", "Hesse", "Mecklenburg-Vorpommern", "Lower Saxony", "North Rhine-Westphalia", "Rhineland-Palatinate", "Saarland", "Saxony", "Saxony-Anhalt", "Schleswig-Holstein", "Thuringia"]
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
86
87
 
87
88
  end
88
89
 
89
- end
90
+ describe "method_missing" do
91
+ let(:country) { Enrico::Country.new("deu") }
92
+
93
+ before do
94
+ # Mock the details method to return a hash with test data
95
+ def country.details
96
+ {
97
+ "fullName" => "Germany",
98
+ "countryCode" => "deu",
99
+ "fromDate" => {"day"=>1, "month"=>1, "year"=>2011},
100
+ "toDate" => {"day"=>31, "month"=>12, "year"=>32767}
101
+ }
102
+ end
103
+ end
104
+
105
+ it "converts snake_case method names to camelCase for accessing details" do
106
+ _(country.full_name).must_equal "Germany"
107
+ _(country.country_code).must_equal "deu"
108
+ end
109
+
110
+ it "handles already camelCase properties" do
111
+ _(country.fromDate).must_equal({"day"=>1, "month"=>1, "year"=>2011})
112
+ _(country.toDate).must_equal({"day"=>31, "month"=>12, "year"=>32767})
113
+ end
90
114
 
115
+ it "raises NoMethodError for non-existent properties" do
116
+ assert_raises(NoMethodError) do
117
+ country.non_existent_property
118
+ end
119
+ end
120
+ end
121
+
122
+ describe "country_parameters" do
123
+ let(:country) { Enrico::Country.new("deu", "by") }
124
+ let(:country_no_region) { Enrico::Country.new("deu") }
125
+
126
+ it "includes country code and region in parameters" do
127
+ params = country.country_parameters({month: 1, year: 2024})
128
+ _(params).must_include "country=deu"
129
+ _(params).must_include "region=by"
130
+ _(params).must_include "month=1"
131
+ _(params).must_include "year=2024"
132
+ end
133
+
134
+ it "excludes nil region from parameters" do
135
+ params = country_no_region.country_parameters({month: 1, year: 2024})
136
+ _(params).must_include "country=deu"
137
+ _(params).wont_include "region="
138
+ end
139
+
140
+ it "includes holiday_type when provided and not empty" do
141
+ params = country.country_parameters({month: 1}, holiday_type: "public_holiday")
142
+ _(params).must_include "holidayType=public_holiday"
143
+ end
144
+
145
+ it "excludes holiday_type when nil" do
146
+ params = country.country_parameters({month: 1}, holiday_type: nil)
147
+ _(params).wont_include "holidayType"
148
+ end
149
+
150
+ it "excludes holiday_type when empty string" do
151
+ params = country.country_parameters({month: 1}, holiday_type: "")
152
+ _(params).wont_include "holidayType"
153
+ end
154
+
155
+ it "properly encodes parameters for URL" do
156
+ params = country.country_parameters({date: "01-01-2024"})
157
+ _(params).must_equal "country=deu&region=by&date=01-01-2024"
158
+ end
159
+ end
160
+
161
+ end
@@ -8,25 +8,24 @@ describe Enrico::Country do
8
8
 
9
9
  describe "GET isPublicHoliday" do
10
10
  before(:each) do
11
- VCR.insert_cassette 'is_public_holiday', :record => :new_episodes
11
+ VCR.insert_cassette 'is_public_holiday'
12
12
  end
13
13
  after(:each) do
14
14
  VCR.eject_cassette
15
15
  end
16
16
 
17
- let(:country) { Enrico::Country.new("ger") }
17
+ let(:country) { Enrico::Country.new("deu") }
18
18
 
19
19
  it "should trueify that date is public holiday" do
20
- date = Date.today.beginning_of_year
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.today.beginning_of_year + 28.days
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
-
@@ -1,34 +1,95 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require_relative '../../spec_helper'
4
- # For Ruby < 1.9.3, use this instead of require_relative
5
- # require (File.expand_path('./../../../spec_helper', __FILE__))
6
4
 
7
5
  describe Enrico::VacationDay do
6
+ describe "initialization" do
7
+ before(:each) do
8
+ VCR.insert_cassette 'holidays_in_month'
9
+ end
10
+
11
+ after(:each) do
12
+ VCR.eject_cassette
13
+ end
8
14
 
9
- describe "default instance attributes" do
10
- let(:vacatin_date) {
11
- Enrico::VacationDay.new(Date.today.beginning_of_year, "Neujahrstag", "New Year's Day")
12
- }
15
+ it "creates VacationDay from real API response" do
16
+ country = Enrico::Country.new("deu")
17
+ vacation_days = country.holidays_for_month(Date.parse('2020-01-15'))
18
+
19
+ day = vacation_days.first
20
+ _(day).must_be_instance_of Enrico::VacationDay
21
+ _(day.date).must_equal Date.new(2020, 1, 1)
22
+ _(day.local_name).must_equal "Neujahrstag"
23
+ _(day.english_name).must_equal "New Year's Day"
24
+ end
13
25
 
14
- it "test initializer methods" do
15
- beginning_of_year = Date.today.beginning_of_year
16
- rsp = {"date"=>{"day"=> beginning_of_year.day, "month" => beginning_of_year.month, "year"=>beginning_of_year.year, "dayOfWeek"=>beginning_of_year.wday}, "localName"=>"Neujahrstag", "englishName"=>"New Year's Day"}
26
+ it "handles multi-language holidays" do
27
+ rsp = {
28
+ "date"=>{"day"=>1, "month"=>1, "year"=>2020, "dayOfWeek"=>3},
29
+ "name"=>[
30
+ {"lang"=>"de", "text"=>"Neujahrstag"},
31
+ {"lang"=>"en", "text"=>"New Year's Day"}
32
+ ],
33
+ "holidayType"=>"public_holiday"
34
+ }
17
35
  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"
36
+ _(day.date).must_equal Date.new(2020, 1, 1)
37
+ _(day.local_name).must_equal "Neujahrstag"
38
+ _(day.english_name).must_equal "New Year's Day"
21
39
  end
22
40
 
23
- it "test initializer methods" do
24
- beginning_of_year = Date.today.beginning_of_year
25
- rsp = {"date"=>{"day"=> beginning_of_year.day, "month" => beginning_of_year.month, "year"=>beginning_of_year.year, "dayOfWeek"=>beginning_of_year.wday}, "localName"=>"Neujahrstag", "englishName"=>"New Year's Day"}
41
+ it "handles single-language holidays" do
42
+ rsp = {
43
+ "date"=>{"day"=>4, "month"=>7, "year"=>2020, "dayOfWeek"=>6},
44
+ "name"=>[
45
+ {"lang"=>"en", "text"=>"Independence Day"}
46
+ ],
47
+ "holidayType"=>"public_holiday"
48
+ }
26
49
  day = Enrico::VacationDay.new(rsp)
27
- day.date.must_equal Date.today.beginning_of_year
28
- day.local_name.must_equal "Neujahrstag"
29
- day.english_name.must_equal "New Year's Day"
50
+ _(day.date).must_equal Date.new(2020, 7, 4)
51
+ _(day.local_name).must_equal "Independence Day"
52
+ _(day.english_name).must_equal "Independence Day"
30
53
  end
31
54
 
32
- end
55
+ it "falls back to local name when second language is nil" do
56
+ rsp = {
57
+ "date"=>{"day"=>25, "month"=>12, "year"=>2020, "dayOfWeek"=>5},
58
+ "name"=>[
59
+ {"lang"=>"fr", "text"=>"Noël"},
60
+ nil
61
+ ],
62
+ "holidayType"=>"public_holiday"
63
+ }
64
+ day = Enrico::VacationDay.new(rsp)
65
+ _(day.local_name).must_equal "Noël"
66
+ _(day.english_name).must_equal "Noël"
67
+ end
33
68
 
69
+ it "falls back to local name when second language is empty" do
70
+ rsp = {
71
+ "date"=>{"day"=>1, "month"=>5, "year"=>2020, "dayOfWeek"=>5},
72
+ "name"=>[
73
+ {"lang"=>"es", "text"=>"Día del Trabajo"},
74
+ {}
75
+ ],
76
+ "holidayType"=>"public_holiday"
77
+ }
78
+ day = Enrico::VacationDay.new(rsp)
79
+ _(day.local_name).must_equal "Día del Trabajo"
80
+ _(day.english_name).must_equal "Día del Trabajo"
81
+ end
82
+
83
+ it "parses dates with string values" do
84
+ rsp = {
85
+ "date"=>{"day"=>"15", "month"=>"8", "year"=>"2020", "dayOfWeek"=>6},
86
+ "name"=>[
87
+ {"lang"=>"it", "text"=>"Ferragosto"}
88
+ ],
89
+ "holidayType"=>"public_holiday"
90
+ }
91
+ day = Enrico::VacationDay.new(rsp)
92
+ _(day.date).must_equal Date.new(2020, 8, 15)
93
+ end
94
+ end
34
95
  end
metadata CHANGED
@@ -1,118 +1,115 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enrico
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kalle Saas
8
- autorequire:
8
+ - Martin Gregoire
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-12-02 00:00:00.000000000 Z
12
+ date: 2025-07-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: httparty
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - '='
18
+ - - "~>"
18
19
  - !ruby/object:Gem::Version
19
- version: !binary |-
20
- MC4xMi4w
20
+ version: 0.21.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '='
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: !binary |-
28
- MC4xMi4w
27
+ version: 0.21.0
29
28
  - !ruby/object:Gem::Dependency
30
29
  name: bundler
31
30
  requirement: !ruby/object:Gem::Requirement
32
31
  requirements:
33
- - - ! '>='
32
+ - - ">="
34
33
  - !ruby/object:Gem::Version
35
34
  version: '0'
36
35
  type: :development
37
36
  prerelease: false
38
37
  version_requirements: !ruby/object:Gem::Requirement
39
38
  requirements:
40
- - - ! '>='
39
+ - - ">="
41
40
  - !ruby/object:Gem::Version
42
41
  version: '0'
43
42
  - !ruby/object:Gem::Dependency
44
43
  name: jeweler
45
44
  requirement: !ruby/object:Gem::Requirement
46
45
  requirements:
47
- - - '='
46
+ - - ">="
48
47
  - !ruby/object:Gem::Version
49
- version: !binary |-
50
- MS44Ljg=
48
+ version: '0'
51
49
  type: :development
52
50
  prerelease: false
53
51
  version_requirements: !ruby/object:Gem::Requirement
54
52
  requirements:
55
- - - '='
53
+ - - ">="
56
54
  - !ruby/object:Gem::Version
57
- version: !binary |-
58
- MS44Ljg=
55
+ version: '0'
59
56
  - !ruby/object:Gem::Dependency
60
57
  name: simplecov
61
58
  requirement: !ruby/object:Gem::Requirement
62
59
  requirements:
63
- - - ! '>='
60
+ - - ">="
64
61
  - !ruby/object:Gem::Version
65
62
  version: '0'
66
63
  type: :development
67
64
  prerelease: false
68
65
  version_requirements: !ruby/object:Gem::Requirement
69
66
  requirements:
70
- - - ! '>='
67
+ - - ">="
71
68
  - !ruby/object:Gem::Version
72
69
  version: '0'
73
70
  - !ruby/object:Gem::Dependency
74
71
  name: rdoc
75
72
  requirement: !ruby/object:Gem::Requirement
76
73
  requirements:
77
- - - ! '>='
74
+ - - ">="
78
75
  - !ruby/object:Gem::Version
79
76
  version: '0'
80
77
  type: :development
81
78
  prerelease: false
82
79
  version_requirements: !ruby/object:Gem::Requirement
83
80
  requirements:
84
- - - ! '>='
81
+ - - ">="
85
82
  - !ruby/object:Gem::Version
86
83
  version: '0'
87
84
  - !ruby/object:Gem::Dependency
88
85
  name: shoulda
89
86
  requirement: !ruby/object:Gem::Requirement
90
87
  requirements:
91
- - - ! '>='
88
+ - - ">="
92
89
  - !ruby/object:Gem::Version
93
90
  version: '0'
94
91
  type: :development
95
92
  prerelease: false
96
93
  version_requirements: !ruby/object:Gem::Requirement
97
94
  requirements:
98
- - - ! '>='
95
+ - - ">="
99
96
  - !ruby/object:Gem::Version
100
97
  version: '0'
101
98
  - !ruby/object:Gem::Dependency
102
99
  name: minitest
103
100
  requirement: !ruby/object:Gem::Requirement
104
101
  requirements:
105
- - - ! '>='
102
+ - - ">="
106
103
  - !ruby/object:Gem::Version
107
104
  version: '0'
108
105
  type: :development
109
106
  prerelease: false
110
107
  version_requirements: !ruby/object:Gem::Requirement
111
108
  requirements:
112
- - - ! '>='
109
+ - - ">="
113
110
  - !ruby/object:Gem::Version
114
111
  version: '0'
115
- description: http://github.com/easyPEP/enrico
112
+ description: https://github.com/easyPEP/enrico
116
113
  email: kalle@easypep.de
117
114
  executables: []
118
115
  extensions: []
@@ -121,7 +118,9 @@ extra_rdoc_files:
121
118
  - README.md
122
119
  - README.rdoc
123
120
  files:
124
- - .document
121
+ - ".document"
122
+ - ".github/workflows/test.yml"
123
+ - ".ruby-version"
125
124
  - Gemfile
126
125
  - Gemfile.lock
127
126
  - LICENSE.txt
@@ -129,44 +128,42 @@ files:
129
128
  - README.rdoc
130
129
  - Rakefile
131
130
  - VERSION
132
- - enrico-0.1.5.gem
133
- - enrico-0.1.6.gem
134
131
  - enrico.gemspec
135
132
  - lib/enrico.rb
136
133
  - lib/enrico/country.rb
137
134
  - lib/enrico/vacation_day.rb
135
+ - mise.toml
136
+ - spec/fixtures/vcr_cassettes/holidays_in_date_range.yml
137
+ - spec/fixtures/vcr_cassettes/holidays_in_month.yml
138
+ - spec/fixtures/vcr_cassettes/holidays_in_year.yml
138
139
  - 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
140
  - spec/fixtures/vcr_cassettes/supported_countries.yml
143
141
  - spec/lib/enrico/country_public_holidays_for_month_spec.rb
144
142
  - spec/lib/enrico/country_spec.rb
145
143
  - spec/lib/enrico/is_public_holiday_spec.rb
146
144
  - spec/lib/enrico/vacation_day_spec.rb
147
145
  - spec/spec_helper.rb
148
- homepage: http://github.com/easyPEP/enrico
146
+ homepage: https://github.com/easyPEP/enrico
149
147
  licenses:
150
148
  - MIT
151
149
  metadata: {}
152
- post_install_message:
150
+ post_install_message:
153
151
  rdoc_options: []
154
152
  require_paths:
155
153
  - lib
156
154
  required_ruby_version: !ruby/object:Gem::Requirement
157
155
  requirements:
158
- - - ! '>='
156
+ - - ">="
159
157
  - !ruby/object:Gem::Version
160
158
  version: '0'
161
159
  required_rubygems_version: !ruby/object:Gem::Requirement
162
160
  requirements:
163
- - - ! '>='
161
+ - - ">="
164
162
  - !ruby/object:Gem::Version
165
163
  version: '0'
166
164
  requirements: []
167
- rubyforge_project:
168
- rubygems_version: 2.1.5
169
- signing_key:
165
+ rubygems_version: 3.4.19
166
+ signing_key:
170
167
  specification_version: 4
171
168
  summary: A ruby wrapper around enrico holiday API
172
169
  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&region=&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