weather-api 1.0.1 → 1.1.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.
- checksums.yaml +7 -0
- data/.travis.yml +1 -1
- data/Gemfile +1 -7
- data/README.md +3 -4
- data/Rakefile +1 -1
- data/lib/weather-api.rb +47 -25
- data/lib/weather-api/astronomy.rb +3 -3
- data/lib/weather-api/atmosphere.rb +4 -4
- data/lib/weather-api/condition.rb +5 -5
- data/lib/weather-api/forecast.rb +7 -7
- data/lib/weather-api/image.rb +2 -18
- data/lib/weather-api/location.rb +4 -4
- data/lib/weather-api/response.rb +14 -18
- data/lib/weather-api/units.rb +5 -5
- data/lib/weather-api/utils.rb +3 -3
- data/lib/weather-api/version.rb +2 -2
- data/lib/weather-api/wind.rb +4 -4
- data/spec/fixtures/cassettes/Weather_Astronomy/should_contain_Time_objects_for_sunrise_and_sunset.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_float_indicating_atmospheric_pressure.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_string_indicating_barometric_pressure.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Atmosphere/should_contain_integers_representing_humidity_and_visibility.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Condition/should_contain_a_weather_condition_code_a_date_a_temperature_and_a_description.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Forecast/should_contain_high_and_low_forecasts.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Forecast/should_contain_the_name_of_the_day_associated_with_the_forecast.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Forecast/should_have_a_brief_description_of_the_forecasted_conditions.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Forecast/should_have_a_weather_condition_code.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Forecast/should_have_an_associated_date.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Image/should_contain_a_string_for_the_image_url.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Nice_France.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Seattle_WA.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Victoria_BC.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Location/should_contain_city_country_and_region_as_strings.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_HTML_description_summarizing_weather_conditions.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_String_title.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Astronomy_object.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Atmosphere_object.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Condition_object.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Image_object.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Location_object.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Units_object.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Wind_object.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_a_collection_of_Weather_Forecast_objects.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_latitude_and_longitude_in_floats.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Response/should_contain_the_WOEID_of_the_request_location_and_the_requested_URL.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_imperial_units.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_metric_if_specified.yml +62 -0
- data/spec/fixtures/cassettes/Weather_Wind/should_contain_chill_direction_and_speed_as_integers.yml +62 -0
- data/spec/lib/astronomy_spec.rb +12 -0
- data/spec/lib/atmosphere_spec.rb +20 -0
- data/spec/lib/condition_spec.rb +14 -0
- data/spec/lib/forecast_spec.rb +28 -0
- data/spec/lib/image_spec.rb +11 -0
- data/spec/lib/location_spec.rb +36 -0
- data/spec/lib/response_spec.rb +57 -0
- data/spec/lib/units_spec.rb +30 -0
- data/spec/lib/utils_spec.rb +11 -0
- data/spec/lib/version_spec.rb +7 -0
- data/spec/lib/wind_spec.rb +13 -0
- data/spec/{helper.rb → spec_helper.rb} +3 -5
- data/weather-api.gemspec +9 -11
- metadata +127 -88
- data/Guardfile +0 -19
- data/lib/weather-api/api.rb +0 -33
- data/spec/cases/api_spec.rb +0 -8
- data/spec/cases/astronomy_spec.rb +0 -15
- data/spec/cases/atmosphere_spec.rb +0 -23
- data/spec/cases/condition_spec.rb +0 -17
- data/spec/cases/forecast_spec.rb +0 -32
- data/spec/cases/image_spec.rb +0 -21
- data/spec/cases/location_spec.rb +0 -41
- data/spec/cases/response_spec.rb +0 -60
- data/spec/cases/units_spec.rb +0 -36
- data/spec/cases/utils_spec.rb +0 -13
- data/spec/cases/version_spec.rb +0 -8
- data/spec/cases/wind_spec.rb +0 -16
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Weather::Response, :vcr do
|
4
|
+
let(:response) { Weather.lookup 9848 }
|
5
|
+
|
6
|
+
subject { response }
|
7
|
+
|
8
|
+
it 'should contain a Weather::Astronomy object' do
|
9
|
+
expect(subject.astronomy).to be_a Weather::Astronomy
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'should contain a Weather::Location object' do
|
13
|
+
expect(subject.location).to be_a Weather::Location
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'should contain a Weather::Units object' do
|
17
|
+
expect(subject.units).to be_a Weather::Units
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'should contain a Weather::Wind object' do
|
21
|
+
expect(subject.wind).to be_a Weather::Wind
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'should contain a Weather::Atmosphere object' do
|
25
|
+
expect(subject.atmosphere).to be_a Weather::Atmosphere
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'should contain a Weather::Condition object' do
|
29
|
+
expect(subject.condition).to be_a Weather::Condition
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'should contain a collection of Weather::Forecast objects' do
|
33
|
+
expect(subject.forecasts[0]).to be_a Weather::Forecast
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'should contain a Weather::Image object' do
|
37
|
+
expect(subject.image).to be_a Weather::Image
|
38
|
+
end
|
39
|
+
|
40
|
+
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"
|
43
|
+
end
|
44
|
+
|
45
|
+
it 'should contain a HTML description summarizing weather conditions' do
|
46
|
+
expect(subject.description).to be_a String
|
47
|
+
end
|
48
|
+
|
49
|
+
it 'should contain a String title' do
|
50
|
+
expect(subject.title).to be_a String
|
51
|
+
end
|
52
|
+
|
53
|
+
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
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Weather::Units do
|
4
|
+
describe 'constants' do
|
5
|
+
it 'should have constants for celsius and farenheit' do
|
6
|
+
expect(Weather::Units::FARENHEIT).to eq 'f'
|
7
|
+
expect(Weather::Units::CELSIUS).to eq 'c'
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
describe 'defaults', :vcr do
|
12
|
+
it 'should default to imperial units' do
|
13
|
+
response = Weather.lookup 9848
|
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
|
+
expect(response.units.distance).to eq 'km'
|
25
|
+
expect(response.units.pressure).to eq 'mb'
|
26
|
+
expect(response.units.speed).to eq 'km/h'
|
27
|
+
expect(response.units.temperature).to eq 'C'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Weather::Utils do
|
4
|
+
it 'should parse text into a Time object' do
|
5
|
+
expect(Weather::Utils.parse_time '2007-01-31 12:22:26').to be_a Time
|
6
|
+
end
|
7
|
+
|
8
|
+
it 'should return nil if passed nothing' do
|
9
|
+
expect(Weather::Utils.parse_time).to be_nil
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Weather::Wind, :vcr do
|
4
|
+
let(:response) { Weather.lookup 9848 }
|
5
|
+
|
6
|
+
subject { response.wind }
|
7
|
+
|
8
|
+
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
|
12
|
+
end
|
13
|
+
end
|
@@ -1,6 +1,3 @@
|
|
1
|
-
require "simplecov"
|
2
|
-
SimpleCov.start
|
3
|
-
|
4
1
|
require "weather-api"
|
5
2
|
|
6
3
|
require "rspec"
|
@@ -12,8 +9,9 @@ VCR.configure do |config|
|
|
12
9
|
config.hook_into :webmock
|
13
10
|
config.ignore_localhost = true
|
14
11
|
config.default_cassette_options = { :record => :new_episodes }
|
12
|
+
config.configure_rspec_metadata!
|
15
13
|
end
|
16
14
|
|
17
|
-
RSpec.configure do |
|
18
|
-
|
15
|
+
RSpec.configure do |c|
|
16
|
+
c.treat_symbols_as_metadata_keys_with_true_values = true
|
19
17
|
end
|
data/weather-api.gemspec
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require File.expand_path
|
2
|
+
require File.expand_path '../lib/weather-api/version', __FILE__
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Andrew Stewart"]
|
6
6
|
gem.email = ["andrew@averagestudios.com"]
|
7
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
|
8
|
+
gem.summary = %q{Weather-API provides an object-oriented interface to
|
9
|
+
the Yahoo! Weather XML RSS feed service.}
|
9
10
|
gem.homepage = "https://github.com/stewart/weather-api"
|
10
11
|
|
11
12
|
gem.files = `git ls-files`.split($\)
|
@@ -15,14 +16,11 @@ Gem::Specification.new do |gem|
|
|
15
16
|
gem.require_paths = ["lib"]
|
16
17
|
gem.version = Weather::Version.to_s
|
17
18
|
|
18
|
-
gem.add_dependency "
|
19
|
-
gem.add_dependency "
|
19
|
+
gem.add_dependency "chronic", "~> 0.9.1"
|
20
|
+
gem.add_dependency "map", "~> 6.3.0"
|
20
21
|
|
21
|
-
gem.add_development_dependency "
|
22
|
-
gem.add_development_dependency "
|
23
|
-
gem.add_development_dependency "
|
24
|
-
gem.add_development_dependency "
|
25
|
-
gem.add_development_dependency "guard", "~> 1.0.1"
|
26
|
-
gem.add_development_dependency "rake", "~> 0.9.2.2"
|
27
|
-
gem.add_development_dependency "vcr", "~> 2.0.1"
|
22
|
+
gem.add_development_dependency "rspec", "~> 2.12.0"
|
23
|
+
gem.add_development_dependency "webmock", "~> 1.9.0"
|
24
|
+
gem.add_development_dependency "rake", "~> 10.0.3"
|
25
|
+
gem.add_development_dependency "vcr", "~> 2.4.0"
|
28
26
|
end
|
metadata
CHANGED
@@ -1,115 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weather-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Andrew Stewart
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-04-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement:
|
17
|
-
none: false
|
14
|
+
name: chronic
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: 0.9.1
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: chronic
|
27
|
-
requirement: &70269915144320 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
23
|
requirements:
|
30
24
|
- - ~>
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
33
|
-
type: :runtime
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *70269915144320
|
26
|
+
version: 0.9.1
|
36
27
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
requirement:
|
39
|
-
none: false
|
28
|
+
name: map
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
40
30
|
requirements:
|
41
31
|
- - ~>
|
42
32
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
44
|
-
type: :
|
33
|
+
version: 6.3.0
|
34
|
+
type: :runtime
|
45
35
|
prerelease: false
|
46
|
-
version_requirements:
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: simplecov
|
49
|
-
requirement: &70269915143380 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - ~>
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *70269915143380
|
40
|
+
version: 6.3.0
|
58
41
|
- !ruby/object:Gem::Dependency
|
59
42
|
name: rspec
|
60
|
-
requirement:
|
61
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
62
44
|
requirements:
|
63
45
|
- - ~>
|
64
46
|
- !ruby/object:Gem::Version
|
65
|
-
version: 2.
|
47
|
+
version: 2.12.0
|
66
48
|
type: :development
|
67
49
|
prerelease: false
|
68
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.12.0
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: webmock
|
71
|
-
requirement:
|
72
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
73
58
|
requirements:
|
74
59
|
- - ~>
|
75
60
|
- !ruby/object:Gem::Version
|
76
|
-
version: 1.
|
61
|
+
version: 1.9.0
|
77
62
|
type: :development
|
78
63
|
prerelease: false
|
79
|
-
version_requirements:
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: guard
|
82
|
-
requirement: &70269915141980 !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
84
65
|
requirements:
|
85
66
|
- - ~>
|
86
67
|
- !ruby/object:Gem::Version
|
87
|
-
version: 1.0
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: *70269915141980
|
68
|
+
version: 1.9.0
|
91
69
|
- !ruby/object:Gem::Dependency
|
92
70
|
name: rake
|
93
|
-
requirement:
|
94
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
95
72
|
requirements:
|
96
73
|
- - ~>
|
97
74
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
75
|
+
version: 10.0.3
|
99
76
|
type: :development
|
100
77
|
prerelease: false
|
101
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 10.0.3
|
102
83
|
- !ruby/object:Gem::Dependency
|
103
84
|
name: vcr
|
104
|
-
requirement:
|
105
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
106
86
|
requirements:
|
107
87
|
- - ~>
|
108
88
|
- !ruby/object:Gem::Version
|
109
|
-
version: 2.0
|
89
|
+
version: 2.4.0
|
110
90
|
type: :development
|
111
91
|
prerelease: false
|
112
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.4.0
|
113
97
|
description: A wrapper for the Yahoo! Weather XML RSS feed
|
114
98
|
email:
|
115
99
|
- andrew@averagestudios.com
|
@@ -120,12 +104,10 @@ files:
|
|
120
104
|
- .gitignore
|
121
105
|
- .travis.yml
|
122
106
|
- Gemfile
|
123
|
-
- Guardfile
|
124
107
|
- LICENSE
|
125
108
|
- README.md
|
126
109
|
- Rakefile
|
127
110
|
- lib/weather-api.rb
|
128
|
-
- lib/weather-api/api.rb
|
129
111
|
- lib/weather-api/astronomy.rb
|
130
112
|
- lib/weather-api/atmosphere.rb
|
131
113
|
- lib/weather-api/condition.rb
|
@@ -137,56 +119,113 @@ files:
|
|
137
119
|
- lib/weather-api/utils.rb
|
138
120
|
- lib/weather-api/version.rb
|
139
121
|
- lib/weather-api/wind.rb
|
140
|
-
- spec/
|
141
|
-
- spec/
|
142
|
-
- spec/
|
143
|
-
- spec/
|
144
|
-
- spec/
|
145
|
-
- spec/
|
146
|
-
- spec/
|
147
|
-
- spec/
|
148
|
-
- spec/
|
149
|
-
- spec/
|
150
|
-
- spec/
|
151
|
-
- spec/
|
152
|
-
- spec/
|
122
|
+
- spec/fixtures/cassettes/Weather_Astronomy/should_contain_Time_objects_for_sunrise_and_sunset.yml
|
123
|
+
- spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_float_indicating_atmospheric_pressure.yml
|
124
|
+
- spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_string_indicating_barometric_pressure.yml
|
125
|
+
- spec/fixtures/cassettes/Weather_Atmosphere/should_contain_integers_representing_humidity_and_visibility.yml
|
126
|
+
- spec/fixtures/cassettes/Weather_Condition/should_contain_a_weather_condition_code_a_date_a_temperature_and_a_description.yml
|
127
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_contain_high_and_low_forecasts.yml
|
128
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_contain_the_name_of_the_day_associated_with_the_forecast.yml
|
129
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_have_a_brief_description_of_the_forecasted_conditions.yml
|
130
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_have_a_weather_condition_code.yml
|
131
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_have_an_associated_date.yml
|
132
|
+
- spec/fixtures/cassettes/Weather_Image/should_contain_a_string_for_the_image_url.yml
|
133
|
+
- spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Nice_France.yml
|
134
|
+
- spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Seattle_WA.yml
|
135
|
+
- spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Victoria_BC.yml
|
136
|
+
- spec/fixtures/cassettes/Weather_Location/should_contain_city_country_and_region_as_strings.yml
|
137
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_HTML_description_summarizing_weather_conditions.yml
|
138
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_String_title.yml
|
139
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Astronomy_object.yml
|
140
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Atmosphere_object.yml
|
141
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Condition_object.yml
|
142
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Image_object.yml
|
143
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Location_object.yml
|
144
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Units_object.yml
|
145
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Wind_object.yml
|
146
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_collection_of_Weather_Forecast_objects.yml
|
147
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_latitude_and_longitude_in_floats.yml
|
148
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_the_WOEID_of_the_request_location_and_the_requested_URL.yml
|
149
|
+
- spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_imperial_units.yml
|
150
|
+
- spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_metric_if_specified.yml
|
151
|
+
- spec/fixtures/cassettes/Weather_Wind/should_contain_chill_direction_and_speed_as_integers.yml
|
152
|
+
- spec/lib/astronomy_spec.rb
|
153
|
+
- spec/lib/atmosphere_spec.rb
|
154
|
+
- spec/lib/condition_spec.rb
|
155
|
+
- spec/lib/forecast_spec.rb
|
156
|
+
- spec/lib/image_spec.rb
|
157
|
+
- spec/lib/location_spec.rb
|
158
|
+
- spec/lib/response_spec.rb
|
159
|
+
- spec/lib/units_spec.rb
|
160
|
+
- spec/lib/utils_spec.rb
|
161
|
+
- spec/lib/version_spec.rb
|
162
|
+
- spec/lib/wind_spec.rb
|
163
|
+
- spec/spec_helper.rb
|
153
164
|
- weather-api.gemspec
|
154
165
|
homepage: https://github.com/stewart/weather-api
|
155
166
|
licenses: []
|
167
|
+
metadata: {}
|
156
168
|
post_install_message:
|
157
169
|
rdoc_options: []
|
158
170
|
require_paths:
|
159
171
|
- lib
|
160
172
|
required_ruby_version: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
173
|
requirements:
|
163
|
-
- -
|
174
|
+
- - '>='
|
164
175
|
- !ruby/object:Gem::Version
|
165
176
|
version: '0'
|
166
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
|
-
none: false
|
168
178
|
requirements:
|
169
|
-
- -
|
179
|
+
- - '>='
|
170
180
|
- !ruby/object:Gem::Version
|
171
181
|
version: '0'
|
172
182
|
requirements: []
|
173
183
|
rubyforge_project:
|
174
|
-
rubygems_version:
|
184
|
+
rubygems_version: 2.0.0
|
175
185
|
signing_key:
|
176
|
-
specification_version:
|
186
|
+
specification_version: 4
|
177
187
|
summary: Weather-API provides an object-oriented interface to the Yahoo! Weather XML
|
178
188
|
RSS feed service.
|
179
189
|
test_files:
|
180
|
-
- spec/
|
181
|
-
- spec/
|
182
|
-
- spec/
|
183
|
-
- spec/
|
184
|
-
- spec/
|
185
|
-
- spec/
|
186
|
-
- spec/
|
187
|
-
- spec/
|
188
|
-
- spec/
|
189
|
-
- spec/
|
190
|
-
- spec/
|
191
|
-
- spec/
|
192
|
-
- spec/
|
190
|
+
- spec/fixtures/cassettes/Weather_Astronomy/should_contain_Time_objects_for_sunrise_and_sunset.yml
|
191
|
+
- spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_float_indicating_atmospheric_pressure.yml
|
192
|
+
- spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_string_indicating_barometric_pressure.yml
|
193
|
+
- spec/fixtures/cassettes/Weather_Atmosphere/should_contain_integers_representing_humidity_and_visibility.yml
|
194
|
+
- spec/fixtures/cassettes/Weather_Condition/should_contain_a_weather_condition_code_a_date_a_temperature_and_a_description.yml
|
195
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_contain_high_and_low_forecasts.yml
|
196
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_contain_the_name_of_the_day_associated_with_the_forecast.yml
|
197
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_have_a_brief_description_of_the_forecasted_conditions.yml
|
198
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_have_a_weather_condition_code.yml
|
199
|
+
- spec/fixtures/cassettes/Weather_Forecast/should_have_an_associated_date.yml
|
200
|
+
- spec/fixtures/cassettes/Weather_Image/should_contain_a_string_for_the_image_url.yml
|
201
|
+
- spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Nice_France.yml
|
202
|
+
- spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Seattle_WA.yml
|
203
|
+
- spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Victoria_BC.yml
|
204
|
+
- spec/fixtures/cassettes/Weather_Location/should_contain_city_country_and_region_as_strings.yml
|
205
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_HTML_description_summarizing_weather_conditions.yml
|
206
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_String_title.yml
|
207
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Astronomy_object.yml
|
208
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Atmosphere_object.yml
|
209
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Condition_object.yml
|
210
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Image_object.yml
|
211
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Location_object.yml
|
212
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Units_object.yml
|
213
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Wind_object.yml
|
214
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_a_collection_of_Weather_Forecast_objects.yml
|
215
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_latitude_and_longitude_in_floats.yml
|
216
|
+
- spec/fixtures/cassettes/Weather_Response/should_contain_the_WOEID_of_the_request_location_and_the_requested_URL.yml
|
217
|
+
- spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_imperial_units.yml
|
218
|
+
- spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_metric_if_specified.yml
|
219
|
+
- spec/fixtures/cassettes/Weather_Wind/should_contain_chill_direction_and_speed_as_integers.yml
|
220
|
+
- spec/lib/astronomy_spec.rb
|
221
|
+
- spec/lib/atmosphere_spec.rb
|
222
|
+
- spec/lib/condition_spec.rb
|
223
|
+
- spec/lib/forecast_spec.rb
|
224
|
+
- spec/lib/image_spec.rb
|
225
|
+
- spec/lib/location_spec.rb
|
226
|
+
- spec/lib/response_spec.rb
|
227
|
+
- spec/lib/units_spec.rb
|
228
|
+
- spec/lib/utils_spec.rb
|
229
|
+
- spec/lib/version_spec.rb
|
230
|
+
- spec/lib/wind_spec.rb
|
231
|
+
- spec/spec_helper.rb
|