barometer 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. data/.gitignore +1 -0
  2. data/.travis.yml +7 -0
  3. data/LICENSE +1 -1
  4. data/{README.rdoc → README.md} +124 -110
  5. data/Rakefile +1 -21
  6. data/TODO +8 -9
  7. data/barometer.gemspec +20 -19
  8. data/bin/barometer +36 -83
  9. data/lib/barometer.rb +13 -11
  10. data/lib/barometer/base.rb +10 -10
  11. data/lib/barometer/data.rb +1 -1
  12. data/lib/barometer/data/distance.rb +25 -25
  13. data/lib/barometer/data/geo.rb +9 -9
  14. data/lib/barometer/data/local_datetime.rb +24 -20
  15. data/lib/barometer/data/local_time.rb +13 -13
  16. data/lib/barometer/data/location.rb +6 -6
  17. data/lib/barometer/data/pressure.rb +24 -24
  18. data/lib/barometer/data/speed.rb +28 -28
  19. data/lib/barometer/data/sun.rb +7 -7
  20. data/lib/barometer/data/temperature.rb +29 -29
  21. data/lib/barometer/data/units.rb +9 -9
  22. data/lib/barometer/data/zone.rb +19 -19
  23. data/lib/barometer/formats.rb +1 -1
  24. data/lib/barometer/formats/coordinates.rb +7 -7
  25. data/lib/barometer/formats/format.rb +6 -6
  26. data/lib/barometer/formats/geocode.rb +5 -5
  27. data/lib/barometer/formats/icao.rb +6 -6
  28. data/lib/barometer/formats/postalcode.rb +3 -3
  29. data/lib/barometer/formats/short_zipcode.rb +2 -2
  30. data/lib/barometer/formats/weather_id.rb +10 -10
  31. data/lib/barometer/formats/woe_id.rb +20 -20
  32. data/lib/barometer/formats/zipcode.rb +3 -3
  33. data/lib/barometer/key_file_parser.rb +20 -0
  34. data/lib/barometer/measurements/measurement.rb +32 -32
  35. data/lib/barometer/measurements/result.rb +39 -39
  36. data/lib/barometer/measurements/result_array.rb +12 -12
  37. data/lib/barometer/query.rb +15 -15
  38. data/lib/barometer/services.rb +3 -3
  39. data/lib/barometer/translations/icao_country_codes.yml +20 -20
  40. data/lib/barometer/translations/weather_country_codes.yml +1 -1
  41. data/lib/barometer/translations/zone_codes.yml +2 -2
  42. data/lib/barometer/version.rb +3 -0
  43. data/lib/barometer/weather.rb +27 -27
  44. data/lib/barometer/weather_services/noaa.rb +314 -3
  45. data/lib/barometer/weather_services/service.rb +32 -30
  46. data/lib/barometer/weather_services/weather_bug.rb +35 -33
  47. data/lib/barometer/weather_services/wunderground.rb +31 -29
  48. data/lib/barometer/weather_services/yahoo.rb +36 -35
  49. data/lib/barometer/web_services/geocode.rb +5 -7
  50. data/lib/barometer/web_services/noaa_station_id.rb +53 -0
  51. data/lib/barometer/web_services/placemaker.rb +11 -13
  52. data/lib/barometer/web_services/timezone.rb +5 -7
  53. data/lib/barometer/web_services/weather_id.rb +4 -6
  54. data/lib/barometer/web_services/web_service.rb +4 -4
  55. data/spec/barometer_spec.rb +25 -27
  56. data/spec/cassettes/Barometer.json +1 -0
  57. data/spec/cassettes/Query.json +1 -0
  58. data/spec/cassettes/Query_Format_Coordinates.json +1 -0
  59. data/spec/cassettes/Query_Format_Geocode.json +1 -0
  60. data/spec/cassettes/Query_Format_WeatherID.json +1 -0
  61. data/spec/cassettes/Query_Format_WoeID.json +1 -0
  62. data/spec/cassettes/WeatherService.json +1 -0
  63. data/spec/cassettes/WeatherService_Noaa.json +1 -0
  64. data/spec/cassettes/WeatherService_WeatherBug.json +1 -0
  65. data/spec/cassettes/WeatherService_Wunderground.json +1 -0
  66. data/spec/cassettes/WeatherService_Yahoo.json +1 -0
  67. data/spec/cassettes/WebService_Geocode.json +1 -0
  68. data/spec/cassettes/WebService_NoaaStation.json +1 -0
  69. data/spec/data/distance_spec.rb +60 -60
  70. data/spec/data/geo_spec.rb +23 -23
  71. data/spec/data/local_datetime_spec.rb +44 -44
  72. data/spec/data/local_time_spec.rb +47 -47
  73. data/spec/data/location_spec.rb +16 -16
  74. data/spec/data/pressure_spec.rb +61 -61
  75. data/spec/data/speed_spec.rb +69 -69
  76. data/spec/data/sun_spec.rb +25 -25
  77. data/spec/data/temperature_spec.rb +68 -68
  78. data/spec/data/units_spec.rb +21 -21
  79. data/spec/data/zone_spec.rb +35 -35
  80. data/spec/formats/coordinates_spec.rb +27 -27
  81. data/spec/formats/format_spec.rb +17 -25
  82. data/spec/formats/geocode_spec.rb +23 -31
  83. data/spec/formats/icao_spec.rb +26 -32
  84. data/spec/formats/postalcode_spec.rb +22 -28
  85. data/spec/formats/short_zipcode_spec.rb +20 -26
  86. data/spec/formats/weather_id_spec.rb +57 -67
  87. data/spec/formats/woe_id_spec.rb +59 -59
  88. data/spec/formats/zipcode_spec.rb +39 -47
  89. data/spec/key_file_parser_spec.rb +28 -0
  90. data/spec/measurements/measurement_spec.rb +79 -133
  91. data/spec/measurements/result_array_spec.rb +23 -38
  92. data/spec/measurements/result_spec.rb +100 -128
  93. data/spec/query_spec.rb +83 -100
  94. data/spec/spec_helper.rb +24 -6
  95. data/spec/weather_services/noaa_spec.rb +179 -0
  96. data/spec/weather_services/services_spec.rb +28 -36
  97. data/spec/weather_services/weather_bug_spec.rb +57 -77
  98. data/spec/weather_services/wunderground_spec.rb +36 -65
  99. data/spec/weather_services/yahoo_spec.rb +38 -60
  100. data/spec/weather_spec.rb +79 -79
  101. data/spec/web_services/geocode_spec.rb +7 -11
  102. data/spec/web_services/noaa_station_id_spec.rb +33 -0
  103. data/spec/web_services/placemaker_spec.rb +7 -12
  104. data/spec/web_services/web_services_spec.rb +3 -9
  105. metadata +214 -163
  106. data/VERSION.yml +0 -5
  107. data/lib/barometer/weather_services/google.rb +0 -142
  108. data/lib/barometer/weather_services/weather_dot_com.rb +0 -279
  109. data/spec/fakeweb_helper.rb +0 -179
  110. data/spec/fixtures/formats/weather_id/90210.xml +0 -7
  111. data/spec/fixtures/formats/weather_id/from_USGA0028.xml +0 -3
  112. data/spec/fixtures/formats/weather_id/ksfo.xml +0 -1
  113. data/spec/fixtures/formats/weather_id/manhattan.xml +0 -7
  114. data/spec/fixtures/formats/weather_id/new_york.xml +0 -1
  115. data/spec/fixtures/formats/weather_id/the_hills.xml +0 -1
  116. data/spec/fixtures/geocode/40_73_v3.json +0 -497
  117. data/spec/fixtures/geocode/90210_v3.json +0 -63
  118. data/spec/fixtures/geocode/T5B4M9_v3.json +0 -68
  119. data/spec/fixtures/geocode/atlanta_v3.json +0 -58
  120. data/spec/fixtures/geocode/calgary_ab_v3.json +0 -58
  121. data/spec/fixtures/geocode/ksfo_v3.json +0 -73
  122. data/spec/fixtures/geocode/newyork_ny_v3.json +0 -58
  123. data/spec/fixtures/services/google/calgary_ab.xml +0 -1
  124. data/spec/fixtures/services/placemaker/T5B4M9.xml +0 -65
  125. data/spec/fixtures/services/placemaker/atlanta.xml +0 -65
  126. data/spec/fixtures/services/placemaker/coords.xml +0 -65
  127. data/spec/fixtures/services/placemaker/ksfo.xml +0 -65
  128. data/spec/fixtures/services/placemaker/new_york.xml +0 -65
  129. data/spec/fixtures/services/placemaker/the_hills.xml +0 -65
  130. data/spec/fixtures/services/placemaker/w615702.xml +0 -47
  131. data/spec/fixtures/services/weather_bug/90210_current.xml +0 -93
  132. data/spec/fixtures/services/weather_bug/90210_forecast.xml +0 -76
  133. data/spec/fixtures/services/weather_dot_com/90210.xml +0 -1
  134. data/spec/fixtures/services/wunderground/current_calgary_ab.xml +0 -9
  135. data/spec/fixtures/services/wunderground/forecast_calgary_ab.xml +0 -13
  136. data/spec/fixtures/services/yahoo/90210.xml +0 -3
  137. data/spec/weather_services/google_spec.rb +0 -181
  138. data/spec/weather_services/weather_dot_com_spec.rb +0 -224
@@ -1,15 +1,14 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
 
3
- describe "Query::Geocode" do
4
-
3
+ describe Barometer::WebService::Geocode, :vcr => {
4
+ :cassette_name => "WebService::Geocode"
5
+ } do
5
6
  before(:each) do
6
7
  @zipcode = "90210"
7
8
  end
8
-
9
+
9
10
  describe "and the class methods" do
10
-
11
11
  describe "fetch," do
12
-
13
12
  it "requires a Query object" do
14
13
  lambda { Barometer::WebService::Geocode.fetch }.should raise_error(ArgumentError)
15
14
  lambda { Barometer::WebService::Geocode.fetch("invalid") }.should raise_error(ArgumentError)
@@ -17,19 +16,16 @@ describe "Query::Geocode" do
17
16
  query.is_a?(Barometer::Query).should be_true
18
17
  lambda { Barometer::WebService::Geocode.fetch(query) }.should_not raise_error(ArgumentError)
19
18
  end
20
-
19
+
21
20
  it "queries (key no longer required)" do
22
21
  query = Barometer::Query.new(@zipcode)
23
22
  Barometer::WebService::Geocode.fetch(query).should_not be_nil
24
23
  end
25
-
24
+
26
25
  it "returns a Geo object" do
27
26
  query = Barometer::Query.new(@zipcode)
28
27
  Barometer::WebService::Geocode.fetch(query).is_a?(Data::Geo).should be_true
29
28
  end
30
-
31
29
  end
32
-
33
30
  end
34
-
35
- end
31
+ end
@@ -0,0 +1,33 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe Barometer::WebService::NoaaStation, :vcr => {
4
+ :cassette_name => "WebService::NoaaStation"
5
+ } do
6
+ before(:each) do
7
+ @latitude = "34.10"
8
+ @longitude = "-118.41"
9
+ end
10
+
11
+ describe "and the class methods" do
12
+ describe "fetch," do
13
+ it "requires latitude" do
14
+ Barometer::WebService::NoaaStation.should_receive("_fetch").never
15
+ Barometer::WebService::NoaaStation.fetch(nil,@longitude)
16
+ end
17
+
18
+ it "requires longitude" do
19
+ Barometer::WebService::NoaaStation.should_receive("_fetch").never
20
+ Barometer::WebService::NoaaStation.fetch(@latitude,nil)
21
+ end
22
+
23
+ it "queries" do
24
+ Barometer::WebService::NoaaStation.fetch(@latitude,@longitude).should_not be_nil
25
+ end
26
+
27
+ it "returns a string" do
28
+ Barometer::WebService::NoaaStation.fetch(@latitude,@longitude).is_a?(String).should be_true
29
+ Barometer::WebService::NoaaStation.fetch(@latitude,@longitude).should == "KSMO"
30
+ end
31
+ end
32
+ end
33
+ end
@@ -1,16 +1,13 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
 
3
- describe "WebService::Placemaker" do
4
-
3
+ describe Barometer::WebService::Placemaker do
5
4
  before(:each) do
6
5
  @coordinates = "40.756054,-73.986951"
7
6
  @geocode = "New York, NY"
8
7
  end
9
-
8
+
10
9
  describe "and the class methods" do
11
-
12
10
  describe "fetch," do
13
-
14
11
  it "requires a Query object" do
15
12
  lambda { Barometer::WebService::Placemaker.fetch }.should raise_error(ArgumentError)
16
13
  lambda { Barometer::WebService::Placemaker.fetch("invalid") }.should raise_error(ArgumentError)
@@ -18,7 +15,7 @@ describe "WebService::Placemaker" do
18
15
  query.is_a?(Barometer::Query).should be_true
19
16
  lambda { Barometer::WebService::Placemaker.fetch(query) }.should_not raise_error(ArgumentError)
20
17
  end
21
-
18
+
22
19
  # it "detects the key" do
23
20
  # query = Barometer::Query.new(@zipcode)
24
21
  # Barometer.google_geocode_key = nil
@@ -26,21 +23,19 @@ describe "WebService::Placemaker" do
26
23
  # Barometer.google_geocode_key = KEY
27
24
  # Barometer::WebService::Geocode.fetch(query).should_not be_nil
28
25
  # end
29
- #
26
+ #
30
27
  # it "returns a Geo object" do
31
28
  # query = Barometer::Query.new(@zipcode)
32
29
  # Barometer::WebService::Geocode.fetch(query).is_a?(Data::Geo).should be_true
33
30
  # end
34
-
31
+
35
32
  end
36
-
33
+
37
34
  # it "detects the Google Geocode Key" do
38
35
  # Barometer.google_geocode_key = nil
39
36
  # Barometer::WebService::Geocode.send("_has_geocode_key?").should be_false
40
37
  # Barometer.google_geocode_key = KEY
41
38
  # Barometer::WebService::Geocode.send("_has_geocode_key?").should be_true
42
39
  # end
43
-
44
40
  end
45
-
46
- end
41
+ end
@@ -1,15 +1,12 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
 
3
- describe "Web Services" do
4
-
3
+ describe Barometer::WebService do
5
4
  describe "and the class method" do
6
-
7
5
  describe "source" do
8
-
9
6
  it "stubs fetch" do
10
7
  lambda { Barometer::WebService.fetch }.should raise_error(NotImplementedError)
11
8
  end
12
-
9
+
13
10
  it "detects a Query object" do
14
11
  invalid = 1
15
12
  Barometer::WebService.send("_is_a_query?").should be_false
@@ -18,9 +15,6 @@ describe "Web Services" do
18
15
  valid.is_a?(Barometer::Query).should be_true
19
16
  Barometer::WebService.send("_is_a_query?", valid).should be_true
20
17
  end
21
-
22
18
  end
23
-
24
19
  end
25
-
26
- end
20
+ end
metadata CHANGED
@@ -1,122 +1,207 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: barometer
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 7
8
- - 3
9
- version: 0.7.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Mark G
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-06-02 00:00:00 -04:00
18
- default_executable: barometer
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-02-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: httparty
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 4
31
- - 5
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
32
21
  version: 0.4.5
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: tzinfo
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
39
25
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 3
46
- - 14
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.4.5
30
+ - !ruby/object:Gem::Dependency
31
+ name: tzinfo
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
47
37
  version: 0.3.14
48
38
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.3.14
46
+ - !ruby/object:Gem::Dependency
51
47
  name: nokogiri
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: yajl-ruby
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
52
71
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
54
73
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: crack
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
61
86
  type: :runtime
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
64
95
  name: rspec
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: webmock
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: rake
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
65
135
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: pry
144
+ requirement: !ruby/object:Gem::Requirement
67
145
  none: false
68
- requirements:
69
- - - ~>
70
- - !ruby/object:Gem::Version
71
- segments:
72
- - 2
73
- - 6
74
- version: "2.6"
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
75
150
  type: :development
76
- version_requirements: *id004
77
- - !ruby/object:Gem::Dependency
78
- name: mocha
79
151
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
152
+ version_requirements: !ruby/object:Gem::Requirement
81
153
  none: false
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- segments:
86
- - 0
87
- version: "0"
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: vcr
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
88
166
  type: :development
89
- version_requirements: *id005
90
- - !ruby/object:Gem::Dependency
91
- name: fakeweb
92
167
  prerelease: false
93
- requirement: &id006 !ruby/object:Gem::Requirement
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: fakefs
176
+ requirement: !ruby/object:Gem::Requirement
94
177
  none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- segments:
99
- - 0
100
- version: "0"
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
101
182
  type: :development
102
- version_requirements: *id006
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
103
190
  description: A multi API consuming weather forecasting superstar.
104
191
  email: barometer@attackcorp.com
105
- executables:
192
+ executables:
106
193
  - barometer
107
194
  extensions: []
108
-
109
195
  extra_rdoc_files: []
110
-
111
- files:
196
+ files:
112
197
  - .document
113
198
  - .gitignore
199
+ - .travis.yml
114
200
  - Gemfile
115
201
  - LICENSE
116
- - README.rdoc
202
+ - README.md
117
203
  - Rakefile
118
204
  - TODO
119
- - VERSION.yml
120
205
  - barometer.gemspec
121
206
  - bin/barometer
122
207
  - lib/barometer.rb
@@ -143,6 +228,7 @@ files:
143
228
  - lib/barometer/formats/weather_id.rb
144
229
  - lib/barometer/formats/woe_id.rb
145
230
  - lib/barometer/formats/zipcode.rb
231
+ - lib/barometer/key_file_parser.rb
146
232
  - lib/barometer/measurements/measurement.rb
147
233
  - lib/barometer/measurements/result.rb
148
234
  - lib/barometer/measurements/result_array.rb
@@ -151,20 +237,33 @@ files:
151
237
  - lib/barometer/translations/icao_country_codes.yml
152
238
  - lib/barometer/translations/weather_country_codes.yml
153
239
  - lib/barometer/translations/zone_codes.yml
240
+ - lib/barometer/version.rb
154
241
  - lib/barometer/weather.rb
155
- - lib/barometer/weather_services/google.rb
156
242
  - lib/barometer/weather_services/noaa.rb
157
243
  - lib/barometer/weather_services/service.rb
158
244
  - lib/barometer/weather_services/weather_bug.rb
159
- - lib/barometer/weather_services/weather_dot_com.rb
160
245
  - lib/barometer/weather_services/wunderground.rb
161
246
  - lib/barometer/weather_services/yahoo.rb
162
247
  - lib/barometer/web_services/geocode.rb
248
+ - lib/barometer/web_services/noaa_station_id.rb
163
249
  - lib/barometer/web_services/placemaker.rb
164
250
  - lib/barometer/web_services/timezone.rb
165
251
  - lib/barometer/web_services/weather_id.rb
166
252
  - lib/barometer/web_services/web_service.rb
167
253
  - spec/barometer_spec.rb
254
+ - spec/cassettes/Barometer.json
255
+ - spec/cassettes/Query.json
256
+ - spec/cassettes/Query_Format_Coordinates.json
257
+ - spec/cassettes/Query_Format_Geocode.json
258
+ - spec/cassettes/Query_Format_WeatherID.json
259
+ - spec/cassettes/Query_Format_WoeID.json
260
+ - spec/cassettes/WeatherService.json
261
+ - spec/cassettes/WeatherService_Noaa.json
262
+ - spec/cassettes/WeatherService_WeatherBug.json
263
+ - spec/cassettes/WeatherService_Wunderground.json
264
+ - spec/cassettes/WeatherService_Yahoo.json
265
+ - spec/cassettes/WebService_Geocode.json
266
+ - spec/cassettes/WebService_NoaaStation.json
168
267
  - spec/data/distance_spec.rb
169
268
  - spec/data/geo_spec.rb
170
269
  - spec/data/local_datetime_spec.rb
@@ -176,34 +275,6 @@ files:
176
275
  - spec/data/temperature_spec.rb
177
276
  - spec/data/units_spec.rb
178
277
  - spec/data/zone_spec.rb
179
- - spec/fakeweb_helper.rb
180
- - spec/fixtures/formats/weather_id/90210.xml
181
- - spec/fixtures/formats/weather_id/from_USGA0028.xml
182
- - spec/fixtures/formats/weather_id/ksfo.xml
183
- - spec/fixtures/formats/weather_id/manhattan.xml
184
- - spec/fixtures/formats/weather_id/new_york.xml
185
- - spec/fixtures/formats/weather_id/the_hills.xml
186
- - spec/fixtures/geocode/40_73_v3.json
187
- - spec/fixtures/geocode/90210_v3.json
188
- - spec/fixtures/geocode/T5B4M9_v3.json
189
- - spec/fixtures/geocode/atlanta_v3.json
190
- - spec/fixtures/geocode/calgary_ab_v3.json
191
- - spec/fixtures/geocode/ksfo_v3.json
192
- - spec/fixtures/geocode/newyork_ny_v3.json
193
- - spec/fixtures/services/google/calgary_ab.xml
194
- - spec/fixtures/services/placemaker/T5B4M9.xml
195
- - spec/fixtures/services/placemaker/atlanta.xml
196
- - spec/fixtures/services/placemaker/coords.xml
197
- - spec/fixtures/services/placemaker/ksfo.xml
198
- - spec/fixtures/services/placemaker/new_york.xml
199
- - spec/fixtures/services/placemaker/the_hills.xml
200
- - spec/fixtures/services/placemaker/w615702.xml
201
- - spec/fixtures/services/weather_bug/90210_current.xml
202
- - spec/fixtures/services/weather_bug/90210_forecast.xml
203
- - spec/fixtures/services/weather_dot_com/90210.xml
204
- - spec/fixtures/services/wunderground/current_calgary_ab.xml
205
- - spec/fixtures/services/wunderground/forecast_calgary_ab.xml
206
- - spec/fixtures/services/yahoo/90210.xml
207
278
  - spec/formats/coordinates_spec.rb
208
279
  - spec/formats/format_spec.rb
209
280
  - spec/formats/geocode_spec.rb
@@ -213,55 +284,62 @@ files:
213
284
  - spec/formats/weather_id_spec.rb
214
285
  - spec/formats/woe_id_spec.rb
215
286
  - spec/formats/zipcode_spec.rb
287
+ - spec/key_file_parser_spec.rb
216
288
  - spec/measurements/measurement_spec.rb
217
289
  - spec/measurements/result_array_spec.rb
218
290
  - spec/measurements/result_spec.rb
219
291
  - spec/query_spec.rb
220
292
  - spec/spec_helper.rb
221
- - spec/weather_services/google_spec.rb
293
+ - spec/weather_services/noaa_spec.rb
222
294
  - spec/weather_services/services_spec.rb
223
295
  - spec/weather_services/weather_bug_spec.rb
224
- - spec/weather_services/weather_dot_com_spec.rb
225
296
  - spec/weather_services/wunderground_spec.rb
226
297
  - spec/weather_services/yahoo_spec.rb
227
298
  - spec/weather_spec.rb
228
299
  - spec/web_services/geocode_spec.rb
300
+ - spec/web_services/noaa_station_id_spec.rb
229
301
  - spec/web_services/placemaker_spec.rb
230
302
  - spec/web_services/web_services_spec.rb
231
- has_rdoc: true
232
303
  homepage: http://github.com/attack/barometer
233
304
  licenses: []
234
-
235
305
  post_install_message:
236
- rdoc_options:
306
+ rdoc_options:
237
307
  - --charset=UTF-8
238
- require_paths:
308
+ require_paths:
239
309
  - lib
240
- required_ruby_version: !ruby/object:Gem::Requirement
310
+ required_ruby_version: !ruby/object:Gem::Requirement
241
311
  none: false
242
- requirements:
243
- - - ">="
244
- - !ruby/object:Gem::Version
245
- segments:
246
- - 0
247
- version: "0"
248
- required_rubygems_version: !ruby/object:Gem::Requirement
312
+ requirements:
313
+ - - ! '>='
314
+ - !ruby/object:Gem::Version
315
+ version: '0'
316
+ required_rubygems_version: !ruby/object:Gem::Requirement
249
317
  none: false
250
- requirements:
251
- - - ">="
252
- - !ruby/object:Gem::Version
253
- segments:
254
- - 0
255
- version: "0"
318
+ requirements:
319
+ - - ! '>='
320
+ - !ruby/object:Gem::Version
321
+ version: '0'
256
322
  requirements: []
257
-
258
323
  rubyforge_project:
259
- rubygems_version: 1.3.7
324
+ rubygems_version: 1.8.25
260
325
  signing_key:
261
326
  specification_version: 3
262
327
  summary: A multi API consuming weather forecasting superstar.
263
- test_files:
328
+ test_files:
264
329
  - spec/barometer_spec.rb
330
+ - spec/cassettes/Barometer.json
331
+ - spec/cassettes/Query.json
332
+ - spec/cassettes/Query_Format_Coordinates.json
333
+ - spec/cassettes/Query_Format_Geocode.json
334
+ - spec/cassettes/Query_Format_WeatherID.json
335
+ - spec/cassettes/Query_Format_WoeID.json
336
+ - spec/cassettes/WeatherService.json
337
+ - spec/cassettes/WeatherService_Noaa.json
338
+ - spec/cassettes/WeatherService_WeatherBug.json
339
+ - spec/cassettes/WeatherService_Wunderground.json
340
+ - spec/cassettes/WeatherService_Yahoo.json
341
+ - spec/cassettes/WebService_Geocode.json
342
+ - spec/cassettes/WebService_NoaaStation.json
265
343
  - spec/data/distance_spec.rb
266
344
  - spec/data/geo_spec.rb
267
345
  - spec/data/local_datetime_spec.rb
@@ -273,34 +351,6 @@ test_files:
273
351
  - spec/data/temperature_spec.rb
274
352
  - spec/data/units_spec.rb
275
353
  - spec/data/zone_spec.rb
276
- - spec/fakeweb_helper.rb
277
- - spec/fixtures/formats/weather_id/90210.xml
278
- - spec/fixtures/formats/weather_id/from_USGA0028.xml
279
- - spec/fixtures/formats/weather_id/ksfo.xml
280
- - spec/fixtures/formats/weather_id/manhattan.xml
281
- - spec/fixtures/formats/weather_id/new_york.xml
282
- - spec/fixtures/formats/weather_id/the_hills.xml
283
- - spec/fixtures/geocode/40_73_v3.json
284
- - spec/fixtures/geocode/90210_v3.json
285
- - spec/fixtures/geocode/T5B4M9_v3.json
286
- - spec/fixtures/geocode/atlanta_v3.json
287
- - spec/fixtures/geocode/calgary_ab_v3.json
288
- - spec/fixtures/geocode/ksfo_v3.json
289
- - spec/fixtures/geocode/newyork_ny_v3.json
290
- - spec/fixtures/services/google/calgary_ab.xml
291
- - spec/fixtures/services/placemaker/T5B4M9.xml
292
- - spec/fixtures/services/placemaker/atlanta.xml
293
- - spec/fixtures/services/placemaker/coords.xml
294
- - spec/fixtures/services/placemaker/ksfo.xml
295
- - spec/fixtures/services/placemaker/new_york.xml
296
- - spec/fixtures/services/placemaker/the_hills.xml
297
- - spec/fixtures/services/placemaker/w615702.xml
298
- - spec/fixtures/services/weather_bug/90210_current.xml
299
- - spec/fixtures/services/weather_bug/90210_forecast.xml
300
- - spec/fixtures/services/weather_dot_com/90210.xml
301
- - spec/fixtures/services/wunderground/current_calgary_ab.xml
302
- - spec/fixtures/services/wunderground/forecast_calgary_ab.xml
303
- - spec/fixtures/services/yahoo/90210.xml
304
354
  - spec/formats/coordinates_spec.rb
305
355
  - spec/formats/format_spec.rb
306
356
  - spec/formats/geocode_spec.rb
@@ -310,18 +360,19 @@ test_files:
310
360
  - spec/formats/weather_id_spec.rb
311
361
  - spec/formats/woe_id_spec.rb
312
362
  - spec/formats/zipcode_spec.rb
363
+ - spec/key_file_parser_spec.rb
313
364
  - spec/measurements/measurement_spec.rb
314
365
  - spec/measurements/result_array_spec.rb
315
366
  - spec/measurements/result_spec.rb
316
367
  - spec/query_spec.rb
317
368
  - spec/spec_helper.rb
318
- - spec/weather_services/google_spec.rb
369
+ - spec/weather_services/noaa_spec.rb
319
370
  - spec/weather_services/services_spec.rb
320
371
  - spec/weather_services/weather_bug_spec.rb
321
- - spec/weather_services/weather_dot_com_spec.rb
322
372
  - spec/weather_services/wunderground_spec.rb
323
373
  - spec/weather_services/yahoo_spec.rb
324
374
  - spec/weather_spec.rb
325
375
  - spec/web_services/geocode_spec.rb
376
+ - spec/web_services/noaa_station_id_spec.rb
326
377
  - spec/web_services/placemaker_spec.rb
327
378
  - spec/web_services/web_services_spec.rb