yahoo_weather 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +17 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +92 -67
- data/Rakefile +0 -4
- data/bin/test +13 -0
- data/lib/yahoo_weather.rb +1 -1
- data/lib/yahoo_weather/astronomy.rb +1 -1
- data/lib/yahoo_weather/atmosphere.rb +2 -2
- data/lib/yahoo_weather/client.rb +4 -7
- data/lib/yahoo_weather/condition.rb +2 -2
- data/lib/yahoo_weather/forecast.rb +2 -2
- data/lib/yahoo_weather/location.rb +1 -1
- data/lib/yahoo_weather/response.rb +1 -1
- data/lib/yahoo_weather/version.rb +1 -1
- data/lib/yahoo_weather/wind.rb +4 -3
- data/test/dummy/bin/rails +1 -1
- data/test/dummy/config.ru +1 -1
- data/test/dummy/config/application.rb +1 -2
- data/test/dummy/config/boot.rb +1 -1
- data/test/dummy/config/environments/production.rb +1 -1
- data/test/dummy/config/environments/test.rb +2 -2
- data/test/dummy/config/routes.rb +1 -1
- data/test/test_helper.rb +4 -4
- data/test/yahoo_weather_test.rb +7 -7
- data/yahoo_weather.gemspec +5 -3
- metadata +19 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ecf760484230412ef90ae7c1e03b63a36c11ed9
|
4
|
+
data.tar.gz: 6b5fb598c9e41d6291634fd8c3f744591163cd3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a5d10a1d8695f365751422dfa15e9d56a0bdbe7bab8721200e7baada2dda5c98cba8e543e8dc105860c649b9ea029295c96ba88a78c5c815d59c41a71199d5b
|
7
|
+
data.tar.gz: 36633826cd238b9632d612afdfde64027249ae92f13cbf16d49616f0adf6514946b929db59507d4aa10f8a689469d1c5d1ab2725eef5618d85f6d0f50d120ebc
|
data/.travis.yml
CHANGED
@@ -1,4 +1,19 @@
|
|
1
1
|
language: ruby
|
2
|
+
|
2
3
|
rvm:
|
3
|
-
- 2.
|
4
|
-
-
|
4
|
+
- 2.3.0
|
5
|
+
- 2.2.4
|
6
|
+
- 2.1.8
|
7
|
+
|
8
|
+
gemfile:
|
9
|
+
- Gemfile
|
10
|
+
|
11
|
+
sudo: false
|
12
|
+
|
13
|
+
cache: bundler
|
14
|
+
|
15
|
+
before_install: "rm ${BUNDLE_GEMFILE}.lock"
|
16
|
+
|
17
|
+
before_script: "bundle update"
|
18
|
+
|
19
|
+
script: "bin/test"
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,84 +2,106 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
yahoo_weather (1.1.1)
|
5
|
-
rails (>=
|
5
|
+
rails (>= 4.1.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (4.
|
11
|
-
actionpack (= 4.
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
10
|
+
actionmailer (4.2.6)
|
11
|
+
actionpack (= 4.2.6)
|
12
|
+
actionview (= 4.2.6)
|
13
|
+
activejob (= 4.2.6)
|
14
|
+
mail (~> 2.5, >= 2.5.4)
|
15
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
+
actionpack (4.2.6)
|
17
|
+
actionview (= 4.2.6)
|
18
|
+
activesupport (= 4.2.6)
|
19
|
+
rack (~> 1.6)
|
18
20
|
rack-test (~> 0.6.2)
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
21
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
23
|
+
actionview (4.2.6)
|
24
|
+
activesupport (= 4.2.6)
|
25
|
+
builder (~> 3.1)
|
26
|
+
erubis (~> 2.7.0)
|
27
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
28
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
29
|
+
activejob (4.2.6)
|
30
|
+
activesupport (= 4.2.6)
|
31
|
+
globalid (>= 0.3.0)
|
32
|
+
activemodel (4.2.6)
|
33
|
+
activesupport (= 4.2.6)
|
34
|
+
builder (~> 3.1)
|
35
|
+
activerecord (4.2.6)
|
36
|
+
activemodel (= 4.2.6)
|
37
|
+
activesupport (= 4.2.6)
|
38
|
+
arel (~> 6.0)
|
39
|
+
activesupport (4.2.6)
|
40
|
+
i18n (~> 0.7)
|
41
|
+
json (~> 1.7, >= 1.7.7)
|
42
|
+
minitest (~> 5.1)
|
43
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
44
|
+
tzinfo (~> 1.1)
|
45
|
+
arel (6.0.3)
|
46
|
+
builder (3.2.2)
|
47
|
+
concurrent-ruby (1.0.1)
|
37
48
|
erubis (2.7.0)
|
38
49
|
fakeweb (1.3.0)
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
+
globalid (0.3.6)
|
51
|
+
activesupport (>= 4.1.0)
|
52
|
+
i18n (0.7.0)
|
53
|
+
json (1.8.3)
|
54
|
+
loofah (2.0.3)
|
55
|
+
nokogiri (>= 1.5.9)
|
56
|
+
mail (2.6.4)
|
57
|
+
mime-types (>= 1.16, < 4)
|
58
|
+
mime-types (3.0)
|
59
|
+
mime-types-data (~> 3.2015)
|
60
|
+
mime-types-data (3.2016.0221)
|
61
|
+
mini_portile2 (2.0.0)
|
62
|
+
minitest (5.8.4)
|
63
|
+
nokogiri (1.6.7.2)
|
64
|
+
mini_portile2 (~> 2.0.0.rc2)
|
65
|
+
rack (1.6.4)
|
66
|
+
rack-test (0.6.3)
|
50
67
|
rack (>= 1.0)
|
51
|
-
rails (4.
|
52
|
-
actionmailer (= 4.
|
53
|
-
actionpack (= 4.
|
54
|
-
|
55
|
-
|
68
|
+
rails (4.2.6)
|
69
|
+
actionmailer (= 4.2.6)
|
70
|
+
actionpack (= 4.2.6)
|
71
|
+
actionview (= 4.2.6)
|
72
|
+
activejob (= 4.2.6)
|
73
|
+
activemodel (= 4.2.6)
|
74
|
+
activerecord (= 4.2.6)
|
75
|
+
activesupport (= 4.2.6)
|
56
76
|
bundler (>= 1.3.0, < 2.0)
|
57
|
-
railties (= 4.
|
58
|
-
sprockets-rails
|
59
|
-
|
60
|
-
|
61
|
-
|
77
|
+
railties (= 4.2.6)
|
78
|
+
sprockets-rails
|
79
|
+
rails-deprecated_sanitizer (1.0.3)
|
80
|
+
activesupport (>= 4.2.0.alpha)
|
81
|
+
rails-dom-testing (1.0.7)
|
82
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
83
|
+
nokogiri (~> 1.6.0)
|
84
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
85
|
+
rails-html-sanitizer (1.0.3)
|
86
|
+
loofah (~> 2.0)
|
87
|
+
railties (4.2.6)
|
88
|
+
actionpack (= 4.2.6)
|
89
|
+
activesupport (= 4.2.6)
|
62
90
|
rake (>= 0.8.7)
|
63
91
|
thor (>= 0.18.1, < 2.0)
|
64
|
-
rake (
|
65
|
-
sprockets (
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
atomic
|
78
|
-
tilt (1.4.1)
|
79
|
-
treetop (1.4.15)
|
80
|
-
polyglot
|
81
|
-
polyglot (>= 0.3.1)
|
82
|
-
tzinfo (0.3.37)
|
92
|
+
rake (11.1.2)
|
93
|
+
sprockets (3.5.2)
|
94
|
+
concurrent-ruby (~> 1.0)
|
95
|
+
rack (> 1, < 3)
|
96
|
+
sprockets-rails (3.0.4)
|
97
|
+
actionpack (>= 4.0)
|
98
|
+
activesupport (>= 4.0)
|
99
|
+
sprockets (>= 3.0.0)
|
100
|
+
sqlite3 (1.3.11)
|
101
|
+
thor (0.19.1)
|
102
|
+
thread_safe (0.3.5)
|
103
|
+
tzinfo (1.2.2)
|
104
|
+
thread_safe (~> 0.1)
|
83
105
|
|
84
106
|
PLATFORMS
|
85
107
|
ruby
|
@@ -88,3 +110,6 @@ DEPENDENCIES
|
|
88
110
|
fakeweb (~> 1.3)
|
89
111
|
sqlite3
|
90
112
|
yahoo_weather!
|
113
|
+
|
114
|
+
BUNDLED WITH
|
115
|
+
1.10.6
|
data/Rakefile
CHANGED
@@ -14,9 +14,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
17
|
Bundler::GemHelper.install_tasks
|
21
18
|
|
22
19
|
require 'rake/testtask'
|
@@ -28,5 +25,4 @@ Rake::TestTask.new(:test) do |t|
|
|
28
25
|
t.verbose = false
|
29
26
|
end
|
30
27
|
|
31
|
-
|
32
28
|
task default: :test
|
data/bin/test
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$: << File.expand_path(File.expand_path('../../test', __FILE__))
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
begin
|
6
|
+
require 'rails/test_unit/minitest_plugin'
|
7
|
+
rescue LoadError
|
8
|
+
exec 'rake'
|
9
|
+
end
|
10
|
+
|
11
|
+
Rails::TestUnitReporter.executable = 'bin/test'
|
12
|
+
|
13
|
+
exit Minitest.run(ARGV)
|
data/lib/yahoo_weather.rb
CHANGED
@@ -5,7 +5,7 @@ class YahooWeather::Atmosphere
|
|
5
5
|
FALLING = 'falling'
|
6
6
|
|
7
7
|
# lists all possible barometer constants
|
8
|
-
ALL = [
|
8
|
+
ALL = [STEADY, RISING, FALLING]
|
9
9
|
end
|
10
10
|
|
11
11
|
attr_reader :humidity, :visibility, :pressure, :barometer
|
@@ -26,4 +26,4 @@ class YahooWeather::Atmosphere
|
|
26
26
|
@barometer = Barometer::FALLING
|
27
27
|
end
|
28
28
|
end
|
29
|
-
end
|
29
|
+
end
|
data/lib/yahoo_weather/client.rb
CHANGED
@@ -5,11 +5,7 @@ class YahooWeather::Client
|
|
5
5
|
@units = units
|
6
6
|
@woeid = woeid
|
7
7
|
doc = JSON(read_json)
|
8
|
-
if doc['query']['count'] > 0
|
9
|
-
YahooWeather::Response.new(doc)
|
10
|
-
else
|
11
|
-
nil
|
12
|
-
end
|
8
|
+
YahooWeather::Response.new(doc) if doc['query']['count'] > 0
|
13
9
|
end
|
14
10
|
|
15
11
|
def fetch_by_location(location, units = YahooWeather::Units::FAHRENHEIT)
|
@@ -32,7 +28,8 @@ class YahooWeather::Client
|
|
32
28
|
nil
|
33
29
|
end
|
34
30
|
|
35
|
-
private
|
31
|
+
private
|
32
|
+
|
36
33
|
def get_url
|
37
34
|
"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%3D#{@woeid}%20and%20u%3D%22#{@units}%22&format=json&callback="
|
38
35
|
end
|
@@ -63,4 +60,4 @@ private
|
|
63
60
|
def cache_key
|
64
61
|
"yahoo_weather_#{@woeid}_#{@units}"
|
65
62
|
end
|
66
|
-
end
|
63
|
+
end
|
data/lib/yahoo_weather/wind.rb
CHANGED
@@ -7,7 +7,7 @@ class YahooWeather::Wind
|
|
7
7
|
@speed = payload['speed'].to_f
|
8
8
|
end
|
9
9
|
|
10
|
-
def direction(u='integer')
|
10
|
+
def direction(u = 'integer')
|
11
11
|
return @direction if u == 'integer'
|
12
12
|
|
13
13
|
case @direction
|
@@ -48,8 +48,9 @@ class YahooWeather::Wind
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
private
|
51
|
+
private
|
52
|
+
|
52
53
|
def direction_string(name)
|
53
54
|
I18n.t name, scope: [:yahoo_weather, :wind], default: name.to_s.upcase
|
54
55
|
end
|
55
|
-
end
|
56
|
+
end
|
data/test/dummy/bin/rails
CHANGED
data/test/dummy/config.ru
CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../boot', __FILE__)
|
|
3
3
|
require 'rails/all'
|
4
4
|
|
5
5
|
Bundler.require(*Rails.groups)
|
6
|
-
require
|
6
|
+
require 'yahoo_weather'
|
7
7
|
|
8
8
|
module Dummy
|
9
9
|
class Application < Rails::Application
|
@@ -20,4 +20,3 @@ module Dummy
|
|
20
20
|
# config.i18n.default_locale = :de
|
21
21
|
end
|
22
22
|
end
|
23
|
-
|
data/test/dummy/config/boot.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Set up gems listed in the Gemfile.
|
2
2
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
|
3
3
|
|
4
|
-
require 'bundler/setup' if File.
|
4
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
5
5
|
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
|
@@ -20,7 +20,7 @@ Dummy::Application.configure do
|
|
20
20
|
# config.action_dispatch.rack_cache = true
|
21
21
|
|
22
22
|
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
-
config.
|
23
|
+
config.serve_static_files = false
|
24
24
|
|
25
25
|
# Compress JavaScripts and CSS.
|
26
26
|
config.assets.js_compressor = :uglifier
|
@@ -13,8 +13,8 @@ Dummy::Application.configure do
|
|
13
13
|
config.eager_load = false
|
14
14
|
|
15
15
|
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
-
config.
|
17
|
-
config.static_cache_control =
|
16
|
+
config.serve_static_files = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
18
|
|
19
19
|
# Show full error reports and disable caching.
|
20
20
|
config.consider_all_requests_local = true
|
data/test/dummy/config/routes.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Configure Rails Environment
|
2
|
-
ENV[
|
2
|
+
ENV['RAILS_ENV'] = 'test'
|
3
3
|
|
4
|
-
require File.expand_path(
|
5
|
-
require
|
4
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
5
|
+
require 'rails/test_help'
|
6
6
|
|
7
7
|
Rails.backtrace_cleaner.remove_silencers!
|
8
8
|
|
@@ -11,7 +11,7 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
11
11
|
|
12
12
|
# Load fixtures from the engine
|
13
13
|
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path(
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
|
15
15
|
end
|
16
16
|
|
17
17
|
I18n.load_path += ['config/locales/en.yml']
|
data/test/yahoo_weather_test.rb
CHANGED
@@ -2,7 +2,6 @@ require 'test_helper'
|
|
2
2
|
require 'fakeweb'
|
3
3
|
|
4
4
|
class YahooWeatherTest < ActiveSupport::TestCase
|
5
|
-
|
6
5
|
def setup
|
7
6
|
@client = YahooWeather::Client.new
|
8
7
|
@woeid_sf = '12797168'
|
@@ -75,14 +74,14 @@ class YahooWeatherTest < ActiveSupport::TestCase
|
|
75
74
|
test 'Location' do
|
76
75
|
assert_instance_of YahooWeather::Location, @response.location
|
77
76
|
assert_equal 'San Francisco', @response.location.city
|
78
|
-
assert_equal 'CA', @response.location.region
|
77
|
+
assert_equal ' CA', @response.location.region
|
79
78
|
assert_equal 'United States', @response.location.country
|
80
79
|
end
|
81
80
|
|
82
81
|
test 'Forecasts' do
|
83
82
|
assert_not_nil @response.forecasts
|
84
83
|
assert_kind_of Array, @response.forecasts
|
85
|
-
assert_equal
|
84
|
+
assert_equal 10, @response.forecasts.length
|
86
85
|
@response.forecasts.each do |forecast|
|
87
86
|
assert_instance_of YahooWeather::Forecast, forecast
|
88
87
|
assert(forecast.day && forecast.day.length == 3)
|
@@ -122,14 +121,15 @@ class YahooWeatherTest < ActiveSupport::TestCase
|
|
122
121
|
_assert_test_text @response.description
|
123
122
|
end
|
124
123
|
|
125
|
-
private
|
126
|
-
|
127
|
-
|
124
|
+
private
|
125
|
+
|
126
|
+
def _assert_valid_response(response, _request_location, _units,
|
127
|
+
_city, _region, _country)
|
128
128
|
assert_not_nil response
|
129
129
|
end
|
130
130
|
|
131
131
|
def _test_wind_direction(direction, direction_string)
|
132
|
-
response_wind = YahooWeather::Wind.new(
|
132
|
+
response_wind = YahooWeather::Wind.new('direction' => direction, 'chill' => 0, 'speed' => 0)
|
133
133
|
assert_equal direction, response_wind.direction
|
134
134
|
assert_kind_of String, response_wind.direction('s')
|
135
135
|
assert_equal direction_string, response_wind.direction('s')
|
data/yahoo_weather.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
2
2
|
require 'yahoo_weather/version'
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
@@ -15,7 +15,9 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.files = `git ls-files`.split("\n")
|
16
16
|
s.require_paths = ['lib']
|
17
17
|
s.test_files = Dir['test/**/*']
|
18
|
-
s.
|
18
|
+
s.required_ruby_version = '>= 2.1.0'
|
19
|
+
|
20
|
+
s.add_dependency 'rails', '>= 4.1.0'
|
19
21
|
s.add_development_dependency 'sqlite3'
|
20
22
|
s.add_development_dependency 'fakeweb', '~> 1.3'
|
21
|
-
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yahoo_weather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ildar Manzhikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.1.0
|
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
|
-
version:
|
26
|
+
version: 4.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
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: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: fakeweb
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.3'
|
55
55
|
description: A Ruby object-oriented interface to the Yahoo! Weather JSON API. It supports
|
@@ -59,13 +59,14 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .gitignore
|
63
|
-
- .travis.yml
|
62
|
+
- ".gitignore"
|
63
|
+
- ".travis.yml"
|
64
64
|
- Gemfile
|
65
65
|
- Gemfile.lock
|
66
66
|
- MIT-LICENSE
|
67
67
|
- README.md
|
68
68
|
- Rakefile
|
69
|
+
- bin/test
|
69
70
|
- config/locales/en.yml
|
70
71
|
- config/locales/ru.yml
|
71
72
|
- lib/generators/yahoo_weather/copy_locale_generator.rb
|
@@ -116,26 +117,15 @@ files:
|
|
116
117
|
- test/dummy/lib/assets/.keep
|
117
118
|
- test/dummy/log/.keep
|
118
119
|
- test/dummy/log/development.log
|
120
|
+
- test/dummy/log/test.log
|
119
121
|
- test/dummy/public/404.html
|
120
122
|
- test/dummy/public/422.html
|
121
123
|
- test/dummy/public/500.html
|
122
124
|
- test/dummy/public/favicon.ico
|
125
|
+
- test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f
|
123
126
|
- test/test_helper.rb
|
124
127
|
- test/yahoo_weather_test.rb
|
125
128
|
- yahoo_weather.gemspec
|
126
|
-
- test/dummy/log/test.log
|
127
|
-
- test/dummy/tmp/cache/4BA/650/woeid+for+94025
|
128
|
-
- test/dummy/tmp/cache/62E/480/woeid+for+Moscow
|
129
|
-
- test/dummy/tmp/cache/786/890/yahoo_weather_10001_f
|
130
|
-
- test/dummy/tmp/cache/7FF/F00/yahoo_weather_2459115_f
|
131
|
-
- test/dummy/tmp/cache/82F/B30/yahoo_weather_12794004_f
|
132
|
-
- test/dummy/tmp/cache/831/AD0/yahoo_weather_12761336_f
|
133
|
-
- test/dummy/tmp/cache/838/DA0/yahoo_weather_12797118_f
|
134
|
-
- test/dummy/tmp/cache/839/E20/yahoo_weather_12788173_f
|
135
|
-
- test/dummy/tmp/cache/839/F10/yahoo_weather_29391445_f
|
136
|
-
- test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f
|
137
|
-
- test/dummy/tmp/cache/A79/3C0/yahoo_weather_woeid+for+10004
|
138
|
-
- test/dummy/tmp/cache/C7E/C30/yahoo_weather_woeid+for+New+York
|
139
129
|
homepage: http://github.com/manzhikov/yahoo_weather
|
140
130
|
licenses:
|
141
131
|
- MIT
|
@@ -146,17 +136,17 @@ require_paths:
|
|
146
136
|
- lib
|
147
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
138
|
requirements:
|
149
|
-
- -
|
139
|
+
- - ">="
|
150
140
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
141
|
+
version: 2.1.0
|
152
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
143
|
requirements:
|
154
|
-
- -
|
144
|
+
- - ">="
|
155
145
|
- !ruby/object:Gem::Version
|
156
146
|
version: '0'
|
157
147
|
requirements: []
|
158
148
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.1
|
149
|
+
rubygems_version: 2.4.5.1
|
160
150
|
signing_key:
|
161
151
|
specification_version: 4
|
162
152
|
summary: Ruby interface to the Yahoo! Weather JSON API
|
@@ -195,17 +185,6 @@ test_files:
|
|
195
185
|
- test/dummy/public/favicon.ico
|
196
186
|
- test/dummy/Rakefile
|
197
187
|
- test/dummy/README.rdoc
|
198
|
-
- test/dummy/tmp/cache/4BA/650/woeid+for+94025
|
199
|
-
- test/dummy/tmp/cache/62E/480/woeid+for+Moscow
|
200
|
-
- test/dummy/tmp/cache/786/890/yahoo_weather_10001_f
|
201
|
-
- test/dummy/tmp/cache/7FF/F00/yahoo_weather_2459115_f
|
202
|
-
- test/dummy/tmp/cache/82F/B30/yahoo_weather_12794004_f
|
203
|
-
- test/dummy/tmp/cache/831/AD0/yahoo_weather_12761336_f
|
204
|
-
- test/dummy/tmp/cache/838/DA0/yahoo_weather_12797118_f
|
205
|
-
- test/dummy/tmp/cache/839/E20/yahoo_weather_12788173_f
|
206
|
-
- test/dummy/tmp/cache/839/F10/yahoo_weather_29391445_f
|
207
188
|
- test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f
|
208
|
-
- test/dummy/tmp/cache/A79/3C0/yahoo_weather_woeid+for+10004
|
209
|
-
- test/dummy/tmp/cache/C7E/C30/yahoo_weather_woeid+for+New+York
|
210
189
|
- test/test_helper.rb
|
211
190
|
- test/yahoo_weather_test.rb
|