open-weather 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.travis.yml +5 -0
- data/CONTRIBUTORS.md +17 -0
- data/Gemfile +2 -3
- data/README.md +12 -1
- data/lib/open_weather.rb +7 -7
- data/lib/open_weather/api.rb +46 -8
- data/lib/open_weather/base.rb +18 -14
- data/lib/open_weather/current.rb +1 -1
- data/lib/open_weather/version.rb +1 -1
- data/open_weather.gemspec +8 -7
- data/spec/fixtures/cassettes/api/current_circle_zone_invalid.yml +47 -0
- data/spec/fixtures/cassettes/api/current_circle_zone_valid.yml +122 -0
- data/spec/fixtures/cassettes/api/current_cities_invalid.yml +47 -0
- data/spec/fixtures/cassettes/api/current_cities_valid.yml +47 -0
- data/spec/fixtures/cassettes/api/current_rectangle_zone_invalid.yml +47 -0
- data/spec/fixtures/cassettes/api/current_rectangle_zone_valid.yml +47 -0
- data/spec/fixtures/cassettes/integration/current_by_circle_zone.yml +121 -0
- data/spec/fixtures/cassettes/integration/current_by_cities.yml +47 -0
- data/spec/fixtures/cassettes/integration/current_by_rectangle_zone.yml +91 -0
- data/spec/integration/current_spec.rb +69 -21
- data/spec/open_weather/api_spec.rb +89 -41
- data/spec/open_weather/version_spec.rb +3 -3
- metadata +53 -15
- data/Gemfile.lock +0 -28
data/Gemfile.lock
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
addressable (2.3.6)
|
5
|
-
crack (0.4.2)
|
6
|
-
safe_yaml (~> 1.0.0)
|
7
|
-
diff-lcs (1.2.2)
|
8
|
-
rspec (2.13.0)
|
9
|
-
rspec-core (~> 2.13.0)
|
10
|
-
rspec-expectations (~> 2.13.0)
|
11
|
-
rspec-mocks (~> 2.13.0)
|
12
|
-
rspec-core (2.13.1)
|
13
|
-
rspec-expectations (2.13.0)
|
14
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
15
|
-
rspec-mocks (2.13.0)
|
16
|
-
safe_yaml (1.0.3)
|
17
|
-
vcr (2.9.2)
|
18
|
-
webmock (1.18.0)
|
19
|
-
addressable (>= 2.3.6)
|
20
|
-
crack (>= 0.3.2)
|
21
|
-
|
22
|
-
PLATFORMS
|
23
|
-
ruby
|
24
|
-
|
25
|
-
DEPENDENCIES
|
26
|
-
rspec
|
27
|
-
vcr
|
28
|
-
webmock
|