SnowWeather 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/SnowWeather/conditions.rb +2 -1
- data/lib/SnowWeather/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e120ea61a9a52fba40a34874dffc579f4ba6846d
|
4
|
+
data.tar.gz: 449a66eab204d154b3c5a0fa955dd38d91b73f09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19df526fb757f8b8d29026c4aad6cba566446af65ffb63e8d7e505b8423a54cd976a3b9f163c5bf33a41aa21cabded14ff434aace2d7fa8e88cfe3b891c015be
|
7
|
+
data.tar.gz: e0627a29c6a088fd7b265d7854ba233025cce848c10088fac02d5092941e484c4802d6f1dd6290c10d3611619341ed87ce55071f49eac914f752fbc774c69cae
|
@@ -3,7 +3,8 @@ module SnowWeather
|
|
3
3
|
include SnowWeather
|
4
4
|
|
5
5
|
def self.getConditions(state, city)
|
6
|
-
@
|
6
|
+
@slash = '/'
|
7
|
+
@base_url 'http://api.wunderground.com/api/' + @@api_key.to_s + '/conditions/q/' + state.to_s + @slash.to_s + city.to_s + '.json'
|
7
8
|
@data = open(@base_url.to_s).read
|
8
9
|
@parse_data = JSON.parse(@data)
|
9
10
|
return @parse_data
|
data/lib/SnowWeather/version.rb
CHANGED