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
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.openweathermap.org/data/2.5/group?id=42,1000
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.openweathermap.org
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Thu, 03 Sep 2015 18:55:49 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Source:
|
34
|
+
- redis
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Access-Control-Allow-Credentials:
|
38
|
+
- 'true'
|
39
|
+
Access-Control-Allow-Methods:
|
40
|
+
- GET, POST
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: |
|
44
|
+
{"cnt":0,"list":[]}
|
45
|
+
http_version:
|
46
|
+
recorded_at: Thu, 03 Sep 2015 18:55:48 GMT
|
47
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.openweathermap.org/data/2.5/group?id=524901,703448,2643743
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.openweathermap.org
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Thu, 03 Sep 2015 18:55:49 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Source:
|
34
|
+
- redis
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Access-Control-Allow-Credentials:
|
38
|
+
- 'true'
|
39
|
+
Access-Control-Allow-Methods:
|
40
|
+
- GET, POST
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: |
|
44
|
+
{"cnt":3,"list":[{"coord":{"lon":37.62,"lat":55.75},"sys":{"type":1,"id":7323,"message":0.0092,"country":"RU","sunrise":1441247914,"sunset":1441297148},"weather":[{"id":520,"main":"Rain","description":"light intensity shower rain","icon":"09n"}],"main":{"temp":286.95,"pressure":1014,"humidity":82,"temp_min":286.15,"temp_max":287.15},"visibility":10000,"wind":{"speed":3,"deg":110},"clouds":{"all":75},"dt":1441305544,"id":524901,"name":"Moscow"},{"coord":{"lon":30.52,"lat":50.43},"sys":{"type":1,"id":7358,"message":0.0036,"country":"UA","sunrise":1441250136,"sunset":1441298334},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01n"}],"main":{"temp":294.91,"pressure":1013,"humidity":69,"temp_min":294.15,"temp_max":296.15},"wind":{"speed":2,"deg":350,"var_beg":300,"var_end":20},"clouds":{"all":0},"dt":1441305454,"id":703448,"name":"Kiev"},{"coord":{"lon":-0.13,"lat":51.51},"sys":{"type":1,"id":5093,"message":0.0047,"country":"GB","sunrise":1441257404,"sunset":1441305770},"weather":[{"id":520,"main":"Rain","description":"light intensity shower rain","icon":"09d"}],"main":{"temp":285.86,"pressure":1016,"humidity":76,"temp_min":284.15,"temp_max":287.15},"wind":{"speed":2.6,"deg":10,"var_beg":330,"var_end":40},"clouds":{"all":40},"dt":1441305650,"id":2643743,"name":"London"}]}
|
45
|
+
http_version:
|
46
|
+
recorded_at: Thu, 03 Sep 2015 18:55:48 GMT
|
47
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.openweathermap.org/data/2.5/box/city?bbox=-5,-5,-5,-5,-5
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.openweathermap.org
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Fri, 04 Sep 2015 14:51:02 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Source:
|
34
|
+
- back
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Access-Control-Allow-Credentials:
|
38
|
+
- 'true'
|
39
|
+
Access-Control-Allow-Methods:
|
40
|
+
- GET, POST
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: |
|
44
|
+
{"message":"","cod":"200","cnt":0,"list":[]}
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 04 Sep 2015 14:51:01 GMT
|
47
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.openweathermap.org/data/2.5/box/city?bbox=12,32,15,37,10
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.openweathermap.org
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Fri, 04 Sep 2015 14:51:02 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Source:
|
34
|
+
- back
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Access-Control-Allow-Credentials:
|
38
|
+
- 'true'
|
39
|
+
Access-Control-Allow-Methods:
|
40
|
+
- GET, POST
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: |
|
44
|
+
{"cod":"200","calctime":0.52,"cnt":15,"list":[{"id":2208791,"name":"Yafran","coord":{"lon":12.52859,"lat":32.06329},"main":{"temp":39.75,"temp_min":39.747,"temp_max":39.747,"pressure":1006.69,"sea_level":1026.3,"grnd_level":1006.69,"humidity":21},"dt":1441374580,"wind":{"speed":2.71,"deg":38.5002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2208425,"name":"Zuwarah","coord":{"lon":12.08199,"lat":32.931198},"main":{"temp":35.42,"temp_min":35.416,"temp_max":35.416,"pressure":1024.08,"sea_level":1025.06,"grnd_level":1024.08,"humidity":45},"dt":1441374579,"wind":{"speed":4.27,"deg":91.0012},"clouds":{"all":36},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}]},{"id":2212771,"name":"Sabratah","coord":{"lon":12.48845,"lat":32.79335},"main":{"temp":39.75,"temp_min":39.747,"temp_max":39.747,"pressure":1006.69,"sea_level":1026.3,"grnd_level":1006.69,"humidity":21},"dt":1441374580,"wind":{"speed":2.71,"deg":38.5002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2217362,"name":"Gharyan","coord":{"lon":13.02028,"lat":32.172218},"main":{"temp":38.82,"temp_min":38.816,"temp_max":38.816,"pressure":994.49,"sea_level":1025.88,"grnd_level":994.49,"humidity":18},"dt":1441374580,"wind":{"speed":1.67,"deg":202.001},"clouds":{"all":20},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}]},{"id":2216885,"name":"Zawiya","coord":{"lon":12.72778,"lat":32.75222},"main":{"temp":39.75,"temp_min":39.747,"temp_max":39.747,"pressure":1006.69,"sea_level":1026.3,"grnd_level":1006.69,"humidity":21},"dt":1441374580,"wind":{"speed":2.71,"deg":38.5002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2210247,"name":"Tripoli","coord":{"lon":13.18746,"lat":32.875191},"main":{"temp":30.87,"temp_min":30.866,"temp_max":30.866,"pressure":1024.65,"sea_level":1025.96,"grnd_level":1024.65,"humidity":80},"dt":1441374580,"wind":{"speed":7.87,"deg":75.0012},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2210221,"name":"Tarhuna","coord":{"lon":13.6332,"lat":32.43502},"main":{"temp":39.37,"temp_min":39.366,"temp_max":39.366,"pressure":994.33,"sea_level":1026.32,"grnd_level":994.33,"humidity":16},"dt":1441374580,"wind":{"speed":2.82,"deg":135.501},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2215163,"name":"Masallatah","coord":{"lon":14,"lat":32.616669},"main":{"temp":37.6,"temp_min":37.597,"temp_max":37.597,"pressure":1014.56,"sea_level":1027.72,"grnd_level":1014.56,"humidity":23},"dt":1441374580,"wind":{"speed":4.06,"deg":81.0002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2219905,"name":"Al Khums","coord":{"lon":14.26191,"lat":32.648609},"main":{"temp":37.6,"temp_min":37.597,"temp_max":37.597,"pressure":1014.56,"sea_level":1027.72,"grnd_level":1014.56,"humidity":23},"dt":1441374581,"wind":{"speed":4.06,"deg":81.0002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2208485,"name":"Zlitan","coord":{"lon":14.56874,"lat":32.467381},"main":{"temp":38.22,"temp_min":38.216,"temp_max":38.216,"pressure":1013.62,"sea_level":1026.85,"grnd_level":1013.62,"humidity":24},"dt":1441374580,"wind":{"speed":3.87,"deg":91.5012},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2563191,"name":"Birkirkara","coord":{"lon":14.46111,"lat":35.897221},"main":{"temp":33.65,"pressure":1015,"humidity":36,"temp_min":32.6,"temp_max":34.44},"dt":1441374636,"wind":{"speed":3.1,"deg":240,"var_beg":190,"var_end":270},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2523650,"name":"Ragusa","coord":{"lon":14.71719,"lat":36.928242},"main":{"temp":34.26,"pressure":1013,"humidity":35,"temp_min":31,"temp_max":37},"dt":1441374630,"wind":{"speed":6.2,"deg":60},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2523693,"name":"Pozzallo","coord":{"lon":14.84989,"lat":36.730541},"main":{"temp":28.35,"temp_min":28.347,"temp_max":28.347,"pressure":1026.39,"sea_level":1028.41,"grnd_level":1026.39,"humidity":94},"dt":1441374630,"wind":{"speed":4.11,"deg":242.5},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2524119,"name":"Modica","coord":{"lon":14.77399,"lat":36.84594},"main":{"temp":28.35,"temp_min":28.347,"temp_max":28.347,"pressure":1026.39,"sea_level":1028.41,"grnd_level":1026.39,"humidity":94},"dt":1441374631,"wind":{"speed":4.11,"deg":242.5},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2523581,"name":"Rosolini","coord":{"lon":14.94779,"lat":36.824242},"main":{"temp":28.35,"temp_min":28.347,"temp_max":28.347,"pressure":1026.39,"sea_level":1028.41,"grnd_level":1026.39,"humidity":94},"dt":1441374630,"wind":{"speed":4.11,"deg":242.5},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]}]}
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 04 Sep 2015 14:51:01 GMT
|
47
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.openweathermap.org/data/2.5/find?APPID=1111111111&cnt=10&lat=55.5&lon=37.5&units=metric
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.openweathermap.org
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Fri, 04 Sep 2015 15:08:59 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Source:
|
34
|
+
- back
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Access-Control-Allow-Credentials:
|
38
|
+
- 'true'
|
39
|
+
Access-Control-Allow-Methods:
|
40
|
+
- GET, POST
|
41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iOnsibG9uIjozNy41ODMzMjgsImxh
|
105
|
+
dCI6NTUuNTY2NjY5fSwibWFpbiI6eyJ0ZW1wIjoxNS4zNywicHJlc3N1cmUi
|
106
|
+
OjEwMTIsImh1bWlkaXR5Ijo3NywidGVtcF9taW4iOjExLjExLCJ0ZW1wX21h
|
107
|
+
eCI6MTcuNH0sImR0IjoxNDQxMzc5MTU2LCJ3aW5kIjp7InNwZWVkIjozLCJk
|
108
|
+
ZWciOjMyMH0sInN5cyI6eyJjb3VudHJ5IjoiIn0sImNsb3VkcyI6eyJhbGwi
|
109
|
+
Ojc1fSwid2VhdGhlciI6W3siaWQiOjgwMywibWFpbiI6IkNsb3VkcyIsImRl
|
110
|
+
c2NyaXB0aW9uIjoiYnJva2VuIGNsb3VkcyIsImljb24iOiIwNGQifV19LHsi
|
111
|
+
aWQiOjUwODEwMSwibmFtZSI6IlBvZG9sc2siLCJjb29yZCI6eyJsb24iOjM3
|
112
|
+
LjU1NDcyMiwibGF0Ijo1NS40MjQxNzl9LCJtYWluIjp7InRlbXAiOjE1LjY2
|
113
|
+
LCJwcmVzc3VyZSI6MTAxMiwiaHVtaWRpdHkiOjc3LCJ0ZW1wX21pbiI6MTEu
|
114
|
+
MTEsInRlbXBfbWF4IjoxNy40fSwiZHQiOjE0NDEzNzg2MjEsIndpbmQiOnsi
|
115
|
+
c3BlZWQiOjMsImRlZyI6MzIwfSwic3lzIjp7ImNvdW50cnkiOiIifSwiY2xv
|
116
|
+
dWRzIjp7ImFsbCI6NzV9LCJ3ZWF0aGVyIjpbeyJpZCI6ODAzLCJtYWluIjoi
|
117
|
+
Q2xvdWRzIiwiZGVzY3JpcHRpb24iOiJicm9rZW4gY2xvdWRzIiwiaWNvbiI6
|
118
|
+
IjA0ZCJ9XX1dfQo=
|
119
|
+
http_version:
|
120
|
+
recorded_at: Fri, 04 Sep 2015 15:08:58 GMT
|
121
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.openweathermap.org/data/2.5/group?APPID=1111111111&id=524901,703448,2643743&units=metric
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.openweathermap.org
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Thu, 03 Sep 2015 18:55:49 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Source:
|
34
|
+
- back
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Access-Control-Allow-Credentials:
|
38
|
+
- 'true'
|
39
|
+
Access-Control-Allow-Methods:
|
40
|
+
- GET, POST
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: |
|
44
|
+
{"cnt":3,"list":[{"coord":{"lon":37.62,"lat":55.75},"sys":{"type":1,"id":7323,"message":0.0059,"country":"RU","sunrise":1441247914,"sunset":1441297148},"weather":[{"id":520,"main":"Rain","description":"light intensity shower rain","icon":"09n"}],"main":{"temp":13.41,"pressure":1014,"humidity":82,"temp_min":11.11,"temp_max":14.8},"wind":{"speed":3,"deg":110},"clouds":{"all":75},"dt":1441306336,"id":524901,"name":"Moscow"},{"coord":{"lon":30.52,"lat":50.43},"sys":{"type":1,"id":7358,"message":0.0036,"country":"UA","sunrise":1441250136,"sunset":1441298334},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01n"}],"main":{"temp":21.76,"pressure":1013,"humidity":69,"temp_min":21,"temp_max":23},"wind":{"speed":2,"deg":350,"var_beg":300,"var_end":20},"clouds":{"all":0},"dt":1441305454,"id":703448,"name":"Kiev"},{"coord":{"lon":-0.13,"lat":51.51},"sys":{"type":1,"id":5093,"message":0.0037,"country":"GB","sunrise":1441257404,"sunset":1441305770},"weather":[{"id":520,"main":"Rain","description":"light intensity shower rain","icon":"09n"}],"main":{"temp":12.76,"pressure":1016,"humidity":76,"temp_min":11,"temp_max":15},"wind":{"speed":2.6,"deg":10,"var_beg":330,"var_end":40},"clouds":{"all":40},"dt":1441306250,"id":2643743,"name":"London"}]}
|
45
|
+
http_version:
|
46
|
+
recorded_at: Thu, 03 Sep 2015 18:55:48 GMT
|
47
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.openweathermap.org/data/2.5/box/city?APPID=1111111111&units=metric
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.openweathermap.org
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Fri, 04 Sep 2015 14:48:25 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Source:
|
34
|
+
- redis
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Access-Control-Allow-Credentials:
|
38
|
+
- 'true'
|
39
|
+
Access-Control-Allow-Methods:
|
40
|
+
- GET, POST
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: |
|
44
|
+
{"message":"","cod":"500"}
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 04 Sep 2015 14:48:24 GMT
|
47
|
+
- request:
|
48
|
+
method: get
|
49
|
+
uri: http://api.openweathermap.org/data/2.5/box/city?APPID=1111111111&bbox=12,32,15,37,10&units=metric
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ''
|
53
|
+
headers:
|
54
|
+
Accept-Encoding:
|
55
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
56
|
+
Accept:
|
57
|
+
- "*/*"
|
58
|
+
User-Agent:
|
59
|
+
- Ruby
|
60
|
+
Host:
|
61
|
+
- api.openweathermap.org
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
Server:
|
68
|
+
- nginx
|
69
|
+
Date:
|
70
|
+
- Fri, 04 Sep 2015 14:51:01 GMT
|
71
|
+
Content-Type:
|
72
|
+
- application/json; charset=utf8
|
73
|
+
Transfer-Encoding:
|
74
|
+
- chunked
|
75
|
+
Connection:
|
76
|
+
- keep-alive
|
77
|
+
X-Source:
|
78
|
+
- back
|
79
|
+
Access-Control-Allow-Origin:
|
80
|
+
- "*"
|
81
|
+
Access-Control-Allow-Credentials:
|
82
|
+
- 'true'
|
83
|
+
Access-Control-Allow-Methods:
|
84
|
+
- GET, POST
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: |
|
88
|
+
{"cod":"200","calctime":1.152,"cnt":15,"list":[{"id":2208791,"name":"Yafran","coord":{"lon":12.52859,"lat":32.06329},"main":{"temp":39.75,"temp_min":39.747,"temp_max":39.747,"pressure":1006.69,"sea_level":1026.3,"grnd_level":1006.69,"humidity":21},"dt":1441374580,"wind":{"speed":2.71,"deg":38.5002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2208425,"name":"Zuwarah","coord":{"lon":12.08199,"lat":32.931198},"main":{"temp":35.42,"temp_min":35.416,"temp_max":35.416,"pressure":1024.08,"sea_level":1025.06,"grnd_level":1024.08,"humidity":45},"dt":1441374579,"wind":{"speed":4.27,"deg":91.0012},"clouds":{"all":36},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}]},{"id":2212771,"name":"Sabratah","coord":{"lon":12.48845,"lat":32.79335},"main":{"temp":39.75,"temp_min":39.747,"temp_max":39.747,"pressure":1006.69,"sea_level":1026.3,"grnd_level":1006.69,"humidity":21},"dt":1441374580,"wind":{"speed":2.71,"deg":38.5002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2217362,"name":"Gharyan","coord":{"lon":13.02028,"lat":32.172218},"main":{"temp":38.82,"temp_min":38.816,"temp_max":38.816,"pressure":994.49,"sea_level":1025.88,"grnd_level":994.49,"humidity":18},"dt":1441374580,"wind":{"speed":1.67,"deg":202.001},"clouds":{"all":20},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}]},{"id":2216885,"name":"Zawiya","coord":{"lon":12.72778,"lat":32.75222},"main":{"temp":39.75,"temp_min":39.747,"temp_max":39.747,"pressure":1006.69,"sea_level":1026.3,"grnd_level":1006.69,"humidity":21},"dt":1441374580,"wind":{"speed":2.71,"deg":38.5002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2210247,"name":"Tripoli","coord":{"lon":13.18746,"lat":32.875191},"main":{"temp":30.87,"temp_min":30.866,"temp_max":30.866,"pressure":1024.65,"sea_level":1025.96,"grnd_level":1024.65,"humidity":80},"dt":1441374580,"wind":{"speed":7.87,"deg":75.0012},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2210221,"name":"Tarhuna","coord":{"lon":13.6332,"lat":32.43502},"main":{"temp":39.37,"temp_min":39.366,"temp_max":39.366,"pressure":994.33,"sea_level":1026.32,"grnd_level":994.33,"humidity":16},"dt":1441374580,"wind":{"speed":2.82,"deg":135.501},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2215163,"name":"Masallatah","coord":{"lon":14,"lat":32.616669},"main":{"temp":37.6,"temp_min":37.597,"temp_max":37.597,"pressure":1014.56,"sea_level":1027.72,"grnd_level":1014.56,"humidity":23},"dt":1441374580,"wind":{"speed":4.06,"deg":81.0002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2219905,"name":"Al Khums","coord":{"lon":14.26191,"lat":32.648609},"main":{"temp":37.6,"temp_min":37.597,"temp_max":37.597,"pressure":1014.56,"sea_level":1027.72,"grnd_level":1014.56,"humidity":23},"dt":1441374581,"wind":{"speed":4.06,"deg":81.0002},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2208485,"name":"Zlitan","coord":{"lon":14.56874,"lat":32.467381},"main":{"temp":38.22,"temp_min":38.216,"temp_max":38.216,"pressure":1013.62,"sea_level":1026.85,"grnd_level":1013.62,"humidity":24},"dt":1441374580,"wind":{"speed":3.87,"deg":91.5012},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2563191,"name":"Birkirkara","coord":{"lon":14.46111,"lat":35.897221},"main":{"temp":33.65,"pressure":1015,"humidity":36,"temp_min":32.6,"temp_max":34.44},"dt":1441374636,"wind":{"speed":3.1,"deg":240,"var_beg":190,"var_end":270},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2523650,"name":"Ragusa","coord":{"lon":14.71719,"lat":36.928242},"main":{"temp":34.26,"pressure":1013,"humidity":35,"temp_min":31,"temp_max":37},"dt":1441374630,"wind":{"speed":6.2,"deg":60},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2523693,"name":"Pozzallo","coord":{"lon":14.84989,"lat":36.730541},"main":{"temp":28.35,"temp_min":28.347,"temp_max":28.347,"pressure":1026.39,"sea_level":1028.41,"grnd_level":1026.39,"humidity":94},"dt":1441374630,"wind":{"speed":4.11,"deg":242.5},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2524119,"name":"Modica","coord":{"lon":14.77399,"lat":36.84594},"main":{"temp":28.35,"temp_min":28.347,"temp_max":28.347,"pressure":1026.39,"sea_level":1028.41,"grnd_level":1026.39,"humidity":94},"dt":1441374631,"wind":{"speed":4.11,"deg":242.5},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]},{"id":2523581,"name":"Rosolini","coord":{"lon":14.94779,"lat":36.824242},"main":{"temp":28.35,"temp_min":28.347,"temp_max":28.347,"pressure":1026.39,"sea_level":1028.41,"grnd_level":1026.39,"humidity":94},"dt":1441374630,"wind":{"speed":4.11,"deg":242.5},"clouds":{"all":0},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}]}]}
|
89
|
+
http_version:
|
90
|
+
recorded_at: Fri, 04 Sep 2015 14:51:00 GMT
|
91
|
+
recorded_with: VCR 2.9.3
|