yahoo_weather 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/.travis.yml +4 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +94 -0
- data/MIT-LICENSE +20 -0
- data/README.md +51 -0
- data/Rakefile +32 -0
- data/config/locales/en.yml +69 -0
- data/config/locales/ru.yml +69 -0
- data/lib/generators/yahoo_weather/copy_locale_generator.rb +11 -0
- data/lib/yahoo_weather/astronomy.rb +8 -0
- data/lib/yahoo_weather/atmosphere.rb +29 -0
- data/lib/yahoo_weather/client.rb +42 -0
- data/lib/yahoo_weather/condition.rb +15 -0
- data/lib/yahoo_weather/forecast.rb +17 -0
- data/lib/yahoo_weather/location.rb +9 -0
- data/lib/yahoo_weather/response.rb +54 -0
- data/lib/yahoo_weather/units.rb +13 -0
- data/lib/yahoo_weather/version.rb +3 -0
- data/lib/yahoo_weather/wind.rb +55 -0
- data/lib/yahoo_weather.rb +18 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/log/test.log +55 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f +56 -0
- data/test/test_helper.rb +17 -0
- data/test/yahoo_weather_test.rb +159 -0
- data/yahoo_weather.gemspec +22 -0
- metadata +202 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
@@ -0,0 +1,56 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry:@valueI"�
|
2
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
3
|
+
<rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
|
4
|
+
<channel>
|
5
|
+
|
6
|
+
<title>Yahoo! Weather - San Francisco, CA</title>
|
7
|
+
<link>http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html</link>
|
8
|
+
<description>Yahoo! Weather for San Francisco, CA</description>
|
9
|
+
<language>en-us</language>
|
10
|
+
<lastBuildDate>Fri, 06 Sep 2013 1:52 am PDT</lastBuildDate>
|
11
|
+
<ttl>60</ttl>
|
12
|
+
<yweather:location city="San Francisco" region="CA" country="United States"/>
|
13
|
+
<yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
|
14
|
+
<yweather:wind chill="61" direction="100" speed="5" />
|
15
|
+
<yweather:atmosphere humidity="100" visibility="10" pressure="29.99" rising="0" />
|
16
|
+
<yweather:astronomy sunrise="6:42 am" sunset="7:30 pm"/>
|
17
|
+
<image>
|
18
|
+
<title>Yahoo! Weather</title>
|
19
|
+
<width>142</width>
|
20
|
+
<height>18</height>
|
21
|
+
<link>http://weather.yahoo.com</link>
|
22
|
+
<url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
|
23
|
+
</image>
|
24
|
+
<item>
|
25
|
+
<title>Conditions for San Francisco, CA at 1:52 am PDT</title>
|
26
|
+
<geo:lat>37.78</geo:lat>
|
27
|
+
<geo:long>-122.46</geo:long>
|
28
|
+
<link>http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html</link>
|
29
|
+
<pubDate>Fri, 06 Sep 2013 1:52 am PDT</pubDate>
|
30
|
+
<yweather:condition text="Partly Cloudy" code="29" temp="61" date="Fri, 06 Sep 2013 1:52 am PDT" />
|
31
|
+
<description><![CDATA[
|
32
|
+
<img src="http://l.yimg.com/a/i/us/we/52/29.gif"/><br />
|
33
|
+
<b>Current Conditions:</b><br />
|
34
|
+
Partly Cloudy, 61 F<BR />
|
35
|
+
<BR /><b>Forecast:</b><BR />
|
36
|
+
Thu - Partly Cloudy. High: 69 Low: 59<br />
|
37
|
+
Fri - Sunny. High: 78 Low: 65<br />
|
38
|
+
Sat - Sunny. High: 82 Low: 62<br />
|
39
|
+
Sun - Sunny. High: 80 Low: 65<br />
|
40
|
+
Mon - Sunny. High: 80 Low: 64<br />
|
41
|
+
<br />
|
42
|
+
<a href="http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
|
43
|
+
(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
|
44
|
+
]]></description>
|
45
|
+
<yweather:forecast day="Thu" date="5 Sep 2013" low="59" high="69" text="Partly Cloudy" code="29" />
|
46
|
+
<yweather:forecast day="Fri" date="6 Sep 2013" low="65" high="78" text="Sunny" code="32" />
|
47
|
+
<yweather:forecast day="Sat" date="7 Sep 2013" low="62" high="82" text="Sunny" code="32" />
|
48
|
+
<yweather:forecast day="Sun" date="8 Sep 2013" low="65" high="80" text="Sunny" code="32" />
|
49
|
+
<yweather:forecast day="Mon" date="9 Sep 2013" low="64" high="80" text="Sunny" code="32" />
|
50
|
+
<guid isPermaLink="false">USCA0987_2013_09_09_7_00_PDT</guid>
|
51
|
+
</item>
|
52
|
+
</channel>
|
53
|
+
</rss>
|
54
|
+
|
55
|
+
<!-- api6.weather.sg3.yahoo.com Fri Sep 6 10:02:47 PST 2013 -->
|
56
|
+
:ET:@created_atf1378461773.4590971:@expires_inf6e1
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
16
|
+
|
17
|
+
I18n.load_path += ['config/locales/en.yml']
|
@@ -0,0 +1,159 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'fakeweb'
|
3
|
+
|
4
|
+
class YahooWeatherTest < ActiveSupport::TestCase
|
5
|
+
|
6
|
+
def setup
|
7
|
+
@client = YahooWeather::Client.new
|
8
|
+
@woeid_sf = '12797168'
|
9
|
+
@response = @client.fetch(@woeid_sf)
|
10
|
+
end
|
11
|
+
|
12
|
+
test 'Fetch by WOEID' do
|
13
|
+
_assert_valid_response(@response, @woeid_sf,
|
14
|
+
YahooWeather::Units::FAHRENHEIT,
|
15
|
+
'San Francisco', 'CA', 'United States')
|
16
|
+
end
|
17
|
+
|
18
|
+
test 'Fetch with the bad response' do
|
19
|
+
client = YahooWeather::Client.new
|
20
|
+
woeid_sf = '10001'
|
21
|
+
FakeWeb.register_uri(
|
22
|
+
:get,
|
23
|
+
"http://weather.yahooapis.com/forecastrss?w=#{woeid_sf}&u=f",
|
24
|
+
:body => "Nothing to be found 'round here",
|
25
|
+
:status => ["404", "Not Found"]
|
26
|
+
)
|
27
|
+
problem = assert_raise(RuntimeError) {client.fetch(woeid_sf)}
|
28
|
+
assert_equal "Failed to get weather. Got a bad status code 404 Not Found", problem.message
|
29
|
+
FakeWeb.clean_registry
|
30
|
+
end
|
31
|
+
|
32
|
+
test 'Success response' do
|
33
|
+
assert_instance_of YahooWeather::Condition, @response.condition
|
34
|
+
assert_instance_of YahooWeather::Location, @response.location
|
35
|
+
assert_instance_of YahooWeather::Units, @response.units
|
36
|
+
assert_instance_of YahooWeather::Astronomy, @response.astronomy
|
37
|
+
assert_instance_of YahooWeather::Atmosphere, @response.atmosphere
|
38
|
+
assert_instance_of Array, @response.forecasts
|
39
|
+
end
|
40
|
+
|
41
|
+
test 'Condition' do
|
42
|
+
assert_instance_of YahooWeather::Condition, @response.condition
|
43
|
+
_assert_valid_weather_code @response.condition.code
|
44
|
+
assert_instance_of Time, @response.condition.date
|
45
|
+
assert_kind_of Numeric, @response.condition.temp
|
46
|
+
assert(@response.condition.text && @response.condition.text.length > 0)
|
47
|
+
end
|
48
|
+
|
49
|
+
test 'Wind' do
|
50
|
+
assert_instance_of YahooWeather::Wind, @response.wind
|
51
|
+
assert(@response.wind.chill <= @response.condition.temp)
|
52
|
+
assert_kind_of Numeric, @response.wind.direction
|
53
|
+
assert_kind_of Numeric, @response.wind.speed
|
54
|
+
|
55
|
+
_test_wind_direction(0, 'N')
|
56
|
+
_test_wind_direction(12, 'NNE')
|
57
|
+
_test_wind_direction(34, 'NE')
|
58
|
+
_test_wind_direction(57, 'ENE')
|
59
|
+
_test_wind_direction(79, 'E')
|
60
|
+
_test_wind_direction(102, 'ESE')
|
61
|
+
_test_wind_direction(124, 'SE')
|
62
|
+
_test_wind_direction(147, 'SSE')
|
63
|
+
_test_wind_direction(169, 'S')
|
64
|
+
_test_wind_direction(192, 'SSW')
|
65
|
+
_test_wind_direction(214, 'SW')
|
66
|
+
_test_wind_direction(237, 'WSW')
|
67
|
+
_test_wind_direction(259, 'W')
|
68
|
+
_test_wind_direction(282, 'WNW')
|
69
|
+
_test_wind_direction(304, 'NW')
|
70
|
+
_test_wind_direction(327, 'NNW')
|
71
|
+
_test_wind_direction(349, 'N')
|
72
|
+
end
|
73
|
+
|
74
|
+
test 'Astronomy' do
|
75
|
+
assert_instance_of YahooWeather::Astronomy, @response.astronomy
|
76
|
+
assert_instance_of Time, @response.astronomy.sunrise
|
77
|
+
assert_instance_of Time, @response.astronomy.sunset
|
78
|
+
assert(@response.astronomy.sunrise < @response.astronomy.sunset)
|
79
|
+
end
|
80
|
+
|
81
|
+
test 'Atmosphere' do
|
82
|
+
assert_instance_of YahooWeather::Atmosphere, @response.atmosphere
|
83
|
+
assert_kind_of Numeric, @response.atmosphere.humidity
|
84
|
+
assert_kind_of Numeric, @response.atmosphere.visibility
|
85
|
+
assert_kind_of Numeric, @response.atmosphere.pressure
|
86
|
+
assert(YahooWeather::Atmosphere::Barometer::ALL.include?(@response.atmosphere.barometer))
|
87
|
+
end
|
88
|
+
|
89
|
+
test 'Location' do
|
90
|
+
assert_instance_of YahooWeather::Location, @response.location
|
91
|
+
assert_equal 'San Francisco', @response.location.city
|
92
|
+
assert_equal 'CA', @response.location.region
|
93
|
+
assert_equal 'United States', @response.location.country
|
94
|
+
end
|
95
|
+
|
96
|
+
test 'Forecasts' do
|
97
|
+
assert_not_nil @response.forecasts
|
98
|
+
assert_kind_of Array, @response.forecasts
|
99
|
+
assert_equal 5, @response.forecasts.length
|
100
|
+
@response.forecasts.each do |forecast|
|
101
|
+
assert_instance_of YahooWeather::Forecast, forecast
|
102
|
+
assert(forecast.day && forecast.day.length == 3)
|
103
|
+
assert_instance_of Date, forecast.date
|
104
|
+
assert_kind_of Numeric, forecast.low
|
105
|
+
assert_kind_of Numeric, forecast.high
|
106
|
+
_assert_test_text(forecast.code('string'))
|
107
|
+
assert(forecast.low <= forecast.high)
|
108
|
+
assert(forecast.text && forecast.text.length > 0)
|
109
|
+
_assert_valid_weather_code forecast.code
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
test 'Units' do
|
114
|
+
units = @response.units
|
115
|
+
assert_instance_of YahooWeather::Units, units
|
116
|
+
if @client.units == YahooWeather::Units::FAHRENHEIT
|
117
|
+
assert_equal units.temperature, 'F'
|
118
|
+
assert_equal units.distance, 'mi'
|
119
|
+
assert_equal units.pressure, 'in'
|
120
|
+
assert_equal units.speed, 'mph'
|
121
|
+
else
|
122
|
+
assert_equal units.temperature, 'C'
|
123
|
+
assert_equal units.distance, 'km'
|
124
|
+
assert_equal units.pressure, 'mb'
|
125
|
+
assert_equal units.speed, 'km/h'
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
test 'General' do
|
130
|
+
assert_kind_of Numeric, @response.ttl
|
131
|
+
assert_kind_of Float, @response.lat
|
132
|
+
assert_kind_of Float, @response.long
|
133
|
+
assert_kind_of Time, @response.last_build_date
|
134
|
+
_assert_test_text @response.title
|
135
|
+
_assert_test_text @response.link
|
136
|
+
_assert_test_text @response.description
|
137
|
+
end
|
138
|
+
|
139
|
+
private
|
140
|
+
def _assert_valid_response (response, request_location, units,
|
141
|
+
city, region, country)
|
142
|
+
assert_not_nil response
|
143
|
+
end
|
144
|
+
|
145
|
+
def _test_wind_direction(direction, direction_string)
|
146
|
+
response_wind = YahooWeather::Wind.new({'direction' => direction, 'chill'=> 0, 'speed'=>0})
|
147
|
+
assert_equal direction, response_wind.direction
|
148
|
+
assert_kind_of String, response_wind.direction('s')
|
149
|
+
assert_equal direction_string, response_wind.direction('s')
|
150
|
+
end
|
151
|
+
|
152
|
+
def _assert_valid_weather_code(code)
|
153
|
+
(code >= 0 && code <= 47) || (code == 3200)
|
154
|
+
end
|
155
|
+
|
156
|
+
def _assert_test_text(text)
|
157
|
+
text && text.length > 0
|
158
|
+
end
|
159
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
$:.push File.expand_path('../lib', __FILE__)
|
2
|
+
require 'yahoo_weather/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'yahoo_weather'
|
6
|
+
s.version = YahooWeather::VERSION.dup
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.author = 'Ildar Manzhikov'
|
9
|
+
s.email = 'manzhikov@gmail.com'
|
10
|
+
s.homepage = 'http://github.com/manzhikov/yahoo_weather'
|
11
|
+
s.summary = 'YahooWeather fetcher'
|
12
|
+
s.description = 'Weather'
|
13
|
+
s.license = 'MIT'
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.require_paths = ['lib']
|
17
|
+
s.test_files = Dir['test/**/*']
|
18
|
+
s.add_dependency 'rails', '~> 4.0.0'
|
19
|
+
s.add_dependency 'nokogiri'
|
20
|
+
s.add_development_dependency 'sqlite3'
|
21
|
+
s.add_development_dependency 'fakeweb', '~> 1.3'
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: yahoo_weather
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ildar Manzhikov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-09-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: fakeweb
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.3'
|
69
|
+
description: Weather
|
70
|
+
email: manzhikov@gmail.com
|
71
|
+
executables: []
|
72
|
+
extensions: []
|
73
|
+
extra_rdoc_files: []
|
74
|
+
files:
|
75
|
+
- .gitignore
|
76
|
+
- .travis.yml
|
77
|
+
- Gemfile
|
78
|
+
- Gemfile.lock
|
79
|
+
- MIT-LICENSE
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- config/locales/en.yml
|
83
|
+
- config/locales/ru.yml
|
84
|
+
- lib/generators/yahoo_weather/copy_locale_generator.rb
|
85
|
+
- lib/yahoo_weather.rb
|
86
|
+
- lib/yahoo_weather/astronomy.rb
|
87
|
+
- lib/yahoo_weather/atmosphere.rb
|
88
|
+
- lib/yahoo_weather/client.rb
|
89
|
+
- lib/yahoo_weather/condition.rb
|
90
|
+
- lib/yahoo_weather/forecast.rb
|
91
|
+
- lib/yahoo_weather/location.rb
|
92
|
+
- lib/yahoo_weather/response.rb
|
93
|
+
- lib/yahoo_weather/units.rb
|
94
|
+
- lib/yahoo_weather/version.rb
|
95
|
+
- lib/yahoo_weather/wind.rb
|
96
|
+
- test/dummy/README.rdoc
|
97
|
+
- test/dummy/Rakefile
|
98
|
+
- test/dummy/app/assets/images/.keep
|
99
|
+
- test/dummy/app/assets/javascripts/application.js
|
100
|
+
- test/dummy/app/assets/stylesheets/application.css
|
101
|
+
- test/dummy/app/controllers/application_controller.rb
|
102
|
+
- test/dummy/app/controllers/concerns/.keep
|
103
|
+
- test/dummy/app/helpers/application_helper.rb
|
104
|
+
- test/dummy/app/mailers/.keep
|
105
|
+
- test/dummy/app/models/.keep
|
106
|
+
- test/dummy/app/models/concerns/.keep
|
107
|
+
- test/dummy/app/views/layouts/application.html.erb
|
108
|
+
- test/dummy/bin/bundle
|
109
|
+
- test/dummy/bin/rails
|
110
|
+
- test/dummy/bin/rake
|
111
|
+
- test/dummy/config.ru
|
112
|
+
- test/dummy/config/application.rb
|
113
|
+
- test/dummy/config/boot.rb
|
114
|
+
- test/dummy/config/database.yml
|
115
|
+
- test/dummy/config/environment.rb
|
116
|
+
- test/dummy/config/environments/development.rb
|
117
|
+
- test/dummy/config/environments/production.rb
|
118
|
+
- test/dummy/config/environments/test.rb
|
119
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
120
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
121
|
+
- test/dummy/config/initializers/inflections.rb
|
122
|
+
- test/dummy/config/initializers/mime_types.rb
|
123
|
+
- test/dummy/config/initializers/secret_token.rb
|
124
|
+
- test/dummy/config/initializers/session_store.rb
|
125
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
126
|
+
- test/dummy/config/locales/en.yml
|
127
|
+
- test/dummy/config/routes.rb
|
128
|
+
- test/dummy/db/test.sqlite3
|
129
|
+
- test/dummy/lib/assets/.keep
|
130
|
+
- test/dummy/log/.keep
|
131
|
+
- test/dummy/log/development.log
|
132
|
+
- test/dummy/public/404.html
|
133
|
+
- test/dummy/public/422.html
|
134
|
+
- test/dummy/public/500.html
|
135
|
+
- test/dummy/public/favicon.ico
|
136
|
+
- test/test_helper.rb
|
137
|
+
- test/yahoo_weather_test.rb
|
138
|
+
- yahoo_weather.gemspec
|
139
|
+
- test/dummy/log/test.log
|
140
|
+
- test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f
|
141
|
+
homepage: http://github.com/manzhikov/yahoo_weather
|
142
|
+
licenses:
|
143
|
+
- MIT
|
144
|
+
metadata: {}
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
require_paths:
|
148
|
+
- lib
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - '>='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
requirements: []
|
160
|
+
rubyforge_project:
|
161
|
+
rubygems_version: 2.0.3
|
162
|
+
signing_key:
|
163
|
+
specification_version: 4
|
164
|
+
summary: YahooWeather fetcher
|
165
|
+
test_files:
|
166
|
+
- test/dummy/app/assets/javascripts/application.js
|
167
|
+
- test/dummy/app/assets/stylesheets/application.css
|
168
|
+
- test/dummy/app/controllers/application_controller.rb
|
169
|
+
- test/dummy/app/helpers/application_helper.rb
|
170
|
+
- test/dummy/app/views/layouts/application.html.erb
|
171
|
+
- test/dummy/bin/bundle
|
172
|
+
- test/dummy/bin/rails
|
173
|
+
- test/dummy/bin/rake
|
174
|
+
- test/dummy/config/application.rb
|
175
|
+
- test/dummy/config/boot.rb
|
176
|
+
- test/dummy/config/database.yml
|
177
|
+
- test/dummy/config/environment.rb
|
178
|
+
- test/dummy/config/environments/development.rb
|
179
|
+
- test/dummy/config/environments/production.rb
|
180
|
+
- test/dummy/config/environments/test.rb
|
181
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
182
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
183
|
+
- test/dummy/config/initializers/inflections.rb
|
184
|
+
- test/dummy/config/initializers/mime_types.rb
|
185
|
+
- test/dummy/config/initializers/secret_token.rb
|
186
|
+
- test/dummy/config/initializers/session_store.rb
|
187
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
188
|
+
- test/dummy/config/locales/en.yml
|
189
|
+
- test/dummy/config/routes.rb
|
190
|
+
- test/dummy/config.ru
|
191
|
+
- test/dummy/db/test.sqlite3
|
192
|
+
- test/dummy/log/development.log
|
193
|
+
- test/dummy/log/test.log
|
194
|
+
- test/dummy/public/404.html
|
195
|
+
- test/dummy/public/422.html
|
196
|
+
- test/dummy/public/500.html
|
197
|
+
- test/dummy/public/favicon.ico
|
198
|
+
- test/dummy/Rakefile
|
199
|
+
- test/dummy/README.rdoc
|
200
|
+
- test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f
|
201
|
+
- test/test_helper.rb
|
202
|
+
- test/yahoo_weather_test.rb
|