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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3be4baa4e009b7dbdf9120e638a568f28d1f83aa
4
- data.tar.gz: 888d3e0ef8843e26721edfc4d544d04fdecb052b
3
+ metadata.gz: e120ea61a9a52fba40a34874dffc579f4ba6846d
4
+ data.tar.gz: 449a66eab204d154b3c5a0fa955dd38d91b73f09
5
5
  SHA512:
6
- metadata.gz: f288e941eb1758ac4c9efd4e00e59db47445026d17c7a95558dfe6329be6a9314d61485bd044934f8031a6f2415fdc4ff4a6118566e8b5b9f87a3520c6b83bfe
7
- data.tar.gz: 72bf6b62e1ca38474017b318a6dd4e22df257b9264a7016451f727a0a0bf8c70127bfbcdf303998a2ae390dcdca0b55f6686fbf7ae2d55df60a73d839402b722
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
- @base_url 'http://api.wunderground.com/api/' + @@api_key.to_s + '/conditions/q/' + state.to_s + '/' + city.to_s + '.json'
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
@@ -1,3 +1,3 @@
1
1
  module SnowWeather
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SnowWeather
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Snow