weather-api 1.1.1 → 1.2.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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -3
  3. data/README.md +1 -1
  4. data/lib/weather-api.rb +13 -7
  5. data/lib/weather-api/astronomy.rb +1 -1
  6. data/lib/weather-api/condition.rb +1 -1
  7. data/lib/weather-api/forecast.rb +1 -1
  8. data/lib/weather-api/image.rb +1 -1
  9. data/lib/weather-api/location.rb +1 -1
  10. data/lib/weather-api/response.rb +1 -1
  11. data/lib/weather-api/units.rb +3 -3
  12. data/lib/weather-api/utils.rb +1 -1
  13. data/lib/weather-api/version.rb +1 -1
  14. data/lib/weather-api/wind.rb +1 -1
  15. data/spec/fixtures/cassettes/Weather_Astronomy/should_contain_Time_objects_for_sunrise_and_sunset.yml +61 -1
  16. data/spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_float_indicating_atmospheric_pressure.yml +61 -1
  17. data/spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_string_indicating_barometric_pressure.yml +61 -1
  18. data/spec/fixtures/cassettes/Weather_Atmosphere/should_contain_integers_representing_humidity_and_visibility.yml +61 -1
  19. data/spec/fixtures/cassettes/Weather_Condition/should_contain_a_weather_condition_code_a_date_a_temperature_and_a_description.yml +61 -1
  20. data/spec/fixtures/cassettes/Weather_Forecast/should_contain_high_and_low_forecasts.yml +61 -1
  21. data/spec/fixtures/cassettes/Weather_Forecast/should_contain_the_name_of_the_day_associated_with_the_forecast.yml +61 -1
  22. data/spec/fixtures/cassettes/Weather_Forecast/should_have_a_brief_description_of_the_forecasted_conditions.yml +61 -1
  23. data/spec/fixtures/cassettes/Weather_Forecast/should_have_a_weather_condition_code.yml +61 -1
  24. data/spec/fixtures/cassettes/Weather_Forecast/should_have_an_associated_date.yml +61 -1
  25. data/spec/fixtures/cassettes/Weather_Image/should_contain_a_string_for_the_image_url.yml +61 -1
  26. data/spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Nice_France.yml +61 -1
  27. data/spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Seattle_WA.yml +61 -1
  28. data/spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Victoria_BC.yml +61 -1
  29. data/spec/fixtures/cassettes/Weather_Location/should_contain_city_country_and_region_as_strings.yml +61 -1
  30. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_HTML_description_summarizing_weather_conditions.yml +61 -1
  31. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_String_title.yml +61 -1
  32. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Astronomy_object.yml +61 -1
  33. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Atmosphere_object.yml +61 -1
  34. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Condition_object.yml +61 -1
  35. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Image_object.yml +61 -1
  36. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Location_object.yml +61 -1
  37. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Units_object.yml +61 -1
  38. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Wind_object.yml +61 -1
  39. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_collection_of_Weather_Forecast_objects.yml +61 -1
  40. data/spec/fixtures/cassettes/Weather_Response/should_contain_latitude_and_longitude_in_floats.yml +61 -1
  41. data/spec/fixtures/cassettes/Weather_Response/should_contain_the_WOEID_of_the_request_location_and_the_requested_URL.yml +61 -1
  42. data/spec/fixtures/cassettes/Weather_Response/should_return_a_RuntimeError_for_an_invalid_WOEID.yml +50 -0
  43. data/spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_imperial_units.yml +61 -1
  44. data/spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_metric_units.yml +63 -0
  45. data/spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_imperial_if_specified.yml +63 -0
  46. data/spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_metric_if_specified.yml +62 -1
  47. data/spec/fixtures/cassettes/Weather_Wind/should_contain_chill_direction_and_speed_as_integers.yml +61 -1
  48. data/spec/lib/astronomy_spec.rb +3 -4
  49. data/spec/lib/atmosphere_spec.rb +5 -6
  50. data/spec/lib/condition_spec.rb +5 -6
  51. data/spec/lib/forecast_spec.rb +7 -8
  52. data/spec/lib/image_spec.rb +2 -3
  53. data/spec/lib/response_spec.rb +19 -16
  54. data/spec/lib/units_spec.rb +12 -12
  55. data/spec/lib/wind_spec.rb +4 -5
  56. data/weather-api.gemspec +20 -18
  57. metadata +42 -21
@@ -2,19 +2,18 @@ require 'spec_helper'
2
2
 
3
3
  describe Weather::Atmosphere, :vcr do
4
4
  let(:response) { Weather.lookup 9848 }
5
-
6
- subject { response.atmosphere }
5
+ let(:atmosphere) { response.atmosphere }
7
6
 
8
7
  it 'should contain a string indicating barometric pressure' do
9
- expect(subject.barometer).to be_a String
8
+ expect(atmosphere.barometer).to be_a String
10
9
  end
11
10
 
12
11
  it 'should contain integers representing humidity and visibility' do
13
- expect(subject.humidity).to be_a Integer
14
- expect(subject.visibility).to be_a Integer
12
+ expect(atmosphere.humidity).to be_a Integer
13
+ expect(atmosphere.visibility).to be_a Integer
15
14
  end
16
15
 
17
16
  it 'should contain a float indicating atmospheric pressure' do
18
- expect(subject.pressure).to be_a Float
17
+ expect(atmosphere.pressure).to be_a Float
19
18
  end
20
19
  end
@@ -2,13 +2,12 @@ require 'spec_helper'
2
2
 
3
3
  describe Weather::Condition, :vcr do
4
4
  let(:response) { Weather.lookup 9848 }
5
-
6
- subject { response.condition }
5
+ let(:condition) { response.condition }
7
6
 
8
7
  it 'should contain a weather condition code, a date, a temperature, and a description' do
9
- expect(subject.code).to be_a Integer
10
- expect(subject.date).to be_a Time
11
- expect(subject.temp).to be_a Integer
12
- expect(subject.text).to be_a String
8
+ expect(condition.code).to be_a Integer
9
+ expect(condition.date).to be_a Time
10
+ expect(condition.temp).to be_a Integer
11
+ expect(condition.text).to be_a String
13
12
  end
14
13
  end
@@ -2,27 +2,26 @@ require 'spec_helper'
2
2
 
3
3
  describe Weather::Forecast, :vcr do
4
4
  let(:response) { Weather.lookup 9848 }
5
-
6
- subject { response.forecasts[0] }
5
+ let(:forecast) { response.forecasts[0] }
7
6
 
8
7
  it 'should have an associated date' do
9
- expect(subject.date).to be_a Time
8
+ expect(forecast.date).to be_a Time
10
9
  end
11
10
 
12
11
  it 'should contain high and low forecasts' do
13
- expect(subject.high).to be_a Integer
14
- expect(subject.low).to be_a Integer
12
+ expect(forecast.high).to be_a Integer
13
+ expect(forecast.low).to be_a Integer
15
14
  end
16
15
 
17
16
  it 'should contain the name of the day associated with the forecast' do
18
- expect(subject.day).to be_a String
17
+ expect(forecast.day).to be_a String
19
18
  end
20
19
 
21
20
  it 'should have a weather condition code' do
22
- expect(subject.code).to be_a Integer
21
+ expect(forecast.code).to be_a Integer
23
22
  end
24
23
 
25
24
  it 'should have a brief description of the forecasted conditions' do
26
- expect(subject.text).to be_a String
25
+ expect(forecast.text).to be_a String
27
26
  end
28
27
  end
@@ -2,10 +2,9 @@ require 'spec_helper'
2
2
 
3
3
  describe Weather::Image, :vcr do
4
4
  let(:response) { Weather.lookup 9848 }
5
-
6
- subject { response.image }
5
+ let(:image) { response.image }
7
6
 
8
7
  it 'should contain a string for the image url' do
9
- expect(subject.url).to be_a String
8
+ expect(image.url).to be_a String
10
9
  end
11
10
  end
@@ -2,56 +2,59 @@ require 'spec_helper'
2
2
 
3
3
  describe Weather::Response, :vcr do
4
4
  let(:response) { Weather.lookup 9848 }
5
-
6
- subject { response }
5
+ let(:invalid_response) { Weather.lookup 8888888888 }
7
6
 
8
7
  it 'should contain a Weather::Astronomy object' do
9
- expect(subject.astronomy).to be_a Weather::Astronomy
8
+ expect(response.astronomy).to be_a Weather::Astronomy
10
9
  end
11
10
 
12
11
  it 'should contain a Weather::Location object' do
13
- expect(subject.location).to be_a Weather::Location
12
+ expect(response.location).to be_a Weather::Location
14
13
  end
15
14
 
16
15
  it 'should contain a Weather::Units object' do
17
- expect(subject.units).to be_a Weather::Units
16
+ expect(response.units).to be_a Weather::Units
18
17
  end
19
18
 
20
19
  it 'should contain a Weather::Wind object' do
21
- expect(subject.wind).to be_a Weather::Wind
20
+ expect(response.wind).to be_a Weather::Wind
22
21
  end
23
22
 
24
23
  it 'should contain a Weather::Atmosphere object' do
25
- expect(subject.atmosphere).to be_a Weather::Atmosphere
24
+ expect(response.atmosphere).to be_a Weather::Atmosphere
26
25
  end
27
26
 
28
27
  it 'should contain a Weather::Condition object' do
29
- expect(subject.condition).to be_a Weather::Condition
28
+ expect(response.condition).to be_a Weather::Condition
30
29
  end
31
30
 
32
31
  it 'should contain a collection of Weather::Forecast objects' do
33
- expect(subject.forecasts[0]).to be_a Weather::Forecast
32
+ expect(response.forecasts[0]).to be_a Weather::Forecast
34
33
  end
35
34
 
36
35
  it 'should contain a Weather::Image object' do
37
- expect(subject.image).to be_a Weather::Image
36
+ expect(response.image).to be_a Weather::Image
38
37
  end
39
38
 
40
39
  it 'should contain the WOEID of the request location and the requested URL' do
41
- expect(subject.request_location).to eq 9848
42
- expect(subject.request_url).to eq "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%3D9848%20and%20u%3D'f'&format=json"
40
+ expect(response.request_location).to eq 9848
41
+ expect(response.request_url).to eq "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%3D9848%20and%20u%3D'c'&format=json"
42
+ end
43
+
44
+ it 'should return a RuntimeError for an invalid WOEID' do
45
+ expect { invalid_response.location }.to raise_error(RuntimeError, /Failed to get weather/i)
43
46
  end
44
47
 
45
48
  it 'should contain a HTML description summarizing weather conditions' do
46
- expect(subject.description).to be_a String
49
+ expect(response.description).to be_a String
47
50
  end
48
51
 
49
52
  it 'should contain a String title' do
50
- expect(subject.title).to be_a String
53
+ expect(response.title).to be_a String
51
54
  end
52
55
 
53
56
  it 'should contain latitude and longitude in floats' do
54
- expect(subject.latitude).to be_a Float
55
- expect(subject.longitude).to be_a Float
57
+ expect(response.latitude).to be_a Float
58
+ expect(response.longitude).to be_a Float
56
59
  end
57
60
  end
@@ -2,29 +2,29 @@ require 'spec_helper'
2
2
 
3
3
  describe Weather::Units do
4
4
  describe 'constants' do
5
- it 'should have constants for celsius and farenheit' do
6
- expect(Weather::Units::FARENHEIT).to eq 'f'
5
+ it 'should have constants for celsius and fahrenheit' do
6
+ expect(Weather::Units::FAHRENHEIT).to eq 'f'
7
7
  expect(Weather::Units::CELSIUS).to eq 'c'
8
8
  end
9
9
  end
10
10
 
11
11
  describe 'defaults', :vcr do
12
- it 'should default to imperial units' do
12
+ it 'should default to metric units' do
13
13
  response = Weather.lookup 9848
14
14
 
15
- expect(response.units.distance).to eq 'mi'
16
- expect(response.units.pressure).to eq 'in'
17
- expect(response.units.speed).to eq 'mph'
18
- expect(response.units.temperature).to eq 'F'
19
- end
20
-
21
- it 'should switch to metric if specified' do
22
- response = Weather.lookup 9848, 'c'
23
-
24
15
  expect(response.units.distance).to eq 'km'
25
16
  expect(response.units.pressure).to eq 'mb'
26
17
  expect(response.units.speed).to eq 'km/h'
27
18
  expect(response.units.temperature).to eq 'C'
28
19
  end
20
+
21
+ it 'should switch to imperial if specified' do
22
+ response = Weather.lookup 9848, Weather::Units::FAHRENHEIT
23
+
24
+ expect(response.units.distance).to eq 'mi'
25
+ expect(response.units.pressure).to eq 'in'
26
+ expect(response.units.speed).to eq 'mph'
27
+ expect(response.units.temperature).to eq 'F'
28
+ end
29
29
  end
30
30
  end
@@ -2,12 +2,11 @@ require 'spec_helper'
2
2
 
3
3
  describe Weather::Wind, :vcr do
4
4
  let(:response) { Weather.lookup 9848 }
5
-
6
- subject { response.wind }
5
+ let(:wind) { response.wind }
7
6
 
8
7
  it 'should contain chill, direction, and speed as integers' do
9
- expect(subject.chill).to be_a Integer
10
- expect(subject.direction).to be_a Integer
11
- expect(subject.speed).to be_a Integer
8
+ expect(wind.chill).to be_a Integer
9
+ expect(wind.direction).to be_a Integer
10
+ expect(wind.speed).to be_a Integer
12
11
  end
13
12
  end
@@ -1,25 +1,27 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require File.expand_path '../lib/weather-api/version', __FILE__
3
3
 
4
- Gem::Specification.new do |gem|
5
- gem.authors = ["Andrew Stewart"]
6
- gem.email = ["andrew@averagestudios.com"]
7
- gem.description = %q{A wrapper for the Yahoo! Weather XML RSS feed}
8
- gem.summary = %q{Weather-API provides an object-oriented interface to
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "weather-api"
6
+ spec.version = Weather::VERSION
7
+ spec.authors = ["Andrew Stewart"]
8
+ spec.email = ["andrew@stwrt.com"]
9
+ spec.description = %q{A wrapper for the Yahoo! Weather XML RSS feed}
10
+ spec.summary = %q{Weather-API provides an object-oriented interface to
9
11
  the Yahoo! Weather XML RSS feed service.}
10
- gem.homepage = "https://github.com/stewart/weather-api"
12
+ spec.homepage = "https://github.com/stewart/weather-api"
13
+ spec.license = "MIT"
11
14
 
12
- gem.files = `git ls-files`.split($\)
13
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
14
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
- gem.name = "weather-api"
16
- gem.require_paths = ["lib"]
17
- gem.version = Weather::VERSION
15
+ spec.files = `git ls-files`.split($\)
16
+ spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
18
19
 
19
- gem.add_dependency "chronic", "~> 0.10.2"
20
- gem.add_dependency "map", "~> 6.5.1"
21
- gem.add_development_dependency "rspec", "~> 2.14.1"
22
- gem.add_development_dependency "webmock", "~> 1.13.0"
23
- gem.add_development_dependency "rake", "~> 10.1.0"
24
- gem.add_development_dependency "vcr", "~> 2.6.0"
20
+ spec.add_dependency "chronic", "~> 0.10.2"
21
+ spec.add_dependency "map", "~> 6.5.1"
22
+ spec.add_dependency "json"
23
+ spec.add_development_dependency "rspec", "~> 2.14.1"
24
+ spec.add_development_dependency "webmock", "~> 1.13.0"
25
+ spec.add_development_dependency "rake", "~> 10.1.0"
26
+ spec.add_development_dependency "vcr", "~> 2.6.0"
25
27
  end
metadata CHANGED
@@ -1,108 +1,122 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weather-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-29 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.10.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.10.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: map
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 6.5.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 6.5.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ~>
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
61
  version: 2.14.1
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ~>
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: 2.14.1
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: webmock
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ~>
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
75
  version: 1.13.0
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ~>
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
82
  version: 1.13.0
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ~>
87
+ - - "~>"
74
88
  - !ruby/object:Gem::Version
75
89
  version: 10.1.0
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ~>
94
+ - - "~>"
81
95
  - !ruby/object:Gem::Version
82
96
  version: 10.1.0
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: vcr
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - ~>
101
+ - - "~>"
88
102
  - !ruby/object:Gem::Version
89
103
  version: 2.6.0
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - ~>
108
+ - - "~>"
95
109
  - !ruby/object:Gem::Version
96
110
  version: 2.6.0
97
111
  description: A wrapper for the Yahoo! Weather XML RSS feed
98
112
  email:
99
- - andrew@averagestudios.com
113
+ - andrew@stwrt.com
100
114
  executables: []
101
115
  extensions: []
102
116
  extra_rdoc_files: []
103
117
  files:
104
- - .gitignore
105
- - .travis.yml
118
+ - ".gitignore"
119
+ - ".travis.yml"
106
120
  - Gemfile
107
121
  - LICENSE
108
122
  - README.md
@@ -146,7 +160,10 @@ files:
146
160
  - spec/fixtures/cassettes/Weather_Response/should_contain_a_collection_of_Weather_Forecast_objects.yml
147
161
  - spec/fixtures/cassettes/Weather_Response/should_contain_latitude_and_longitude_in_floats.yml
148
162
  - spec/fixtures/cassettes/Weather_Response/should_contain_the_WOEID_of_the_request_location_and_the_requested_URL.yml
163
+ - spec/fixtures/cassettes/Weather_Response/should_return_a_RuntimeError_for_an_invalid_WOEID.yml
149
164
  - spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_imperial_units.yml
165
+ - spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_metric_units.yml
166
+ - spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_imperial_if_specified.yml
150
167
  - spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_metric_if_specified.yml
151
168
  - spec/fixtures/cassettes/Weather_Wind/should_contain_chill_direction_and_speed_as_integers.yml
152
169
  - spec/lib/astronomy_spec.rb
@@ -163,7 +180,8 @@ files:
163
180
  - spec/spec_helper.rb
164
181
  - weather-api.gemspec
165
182
  homepage: https://github.com/stewart/weather-api
166
- licenses: []
183
+ licenses:
184
+ - MIT
167
185
  metadata: {}
168
186
  post_install_message:
169
187
  rdoc_options: []
@@ -171,17 +189,17 @@ require_paths:
171
189
  - lib
172
190
  required_ruby_version: !ruby/object:Gem::Requirement
173
191
  requirements:
174
- - - '>='
192
+ - - ">="
175
193
  - !ruby/object:Gem::Version
176
194
  version: '0'
177
195
  required_rubygems_version: !ruby/object:Gem::Requirement
178
196
  requirements:
179
- - - '>='
197
+ - - ">="
180
198
  - !ruby/object:Gem::Version
181
199
  version: '0'
182
200
  requirements: []
183
201
  rubyforge_project:
184
- rubygems_version: 2.1.5
202
+ rubygems_version: 2.4.5
185
203
  signing_key:
186
204
  specification_version: 4
187
205
  summary: Weather-API provides an object-oriented interface to the Yahoo! Weather XML
@@ -214,7 +232,10 @@ test_files:
214
232
  - spec/fixtures/cassettes/Weather_Response/should_contain_a_collection_of_Weather_Forecast_objects.yml
215
233
  - spec/fixtures/cassettes/Weather_Response/should_contain_latitude_and_longitude_in_floats.yml
216
234
  - spec/fixtures/cassettes/Weather_Response/should_contain_the_WOEID_of_the_request_location_and_the_requested_URL.yml
235
+ - spec/fixtures/cassettes/Weather_Response/should_return_a_RuntimeError_for_an_invalid_WOEID.yml
217
236
  - spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_imperial_units.yml
237
+ - spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_metric_units.yml
238
+ - spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_imperial_if_specified.yml
218
239
  - spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_metric_if_specified.yml
219
240
  - spec/fixtures/cassettes/Weather_Wind/should_contain_chill_direction_and_speed_as_integers.yml
220
241
  - spec/lib/astronomy_spec.rb