zetabot 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1838ba19f62fcc77c319ca6633d0ae76b05fb1efd71c7f5d03af10797ca6f49a
4
- data.tar.gz: d311f218e5db54133981d4c1b3232ddc080b08bd95bcdc302910d666fcb7287f
3
+ metadata.gz: 16c1d1f4332b4e23e28a90842e9f6ac17f2bfd929f71e6e43876214468a48eff
4
+ data.tar.gz: 74ddd8fdbb93519876d5e0c3d3388a28cef310142ac41fb70e09d30bf5f93289
5
5
  SHA512:
6
- metadata.gz: 42b61604dc22e33f7b0b436009fcf97d6fe554e02b53738330ff9a312fb3a233877e10eb44f6b8828550c35dfa626494889dfeb98976b3f1e3f6d17372918ce7
7
- data.tar.gz: 2cc08d48c751a1b06dc743684859d5c88452e79f5aab050316300441ef66ed2183df353dab5d4101fbe492708ff143c89a294b93d525951a0188fda05b1d0545
6
+ metadata.gz: 5a1a4b0261e13073b9301d8526579d2b8a9edfb933e5788843961c6cc4856e3adf0be9d05874b42cb951d458bc6f58a2fcaf48feb52b75413882655df6062413
7
+ data.tar.gz: 2d824fc1a8eb17815a903d386385f77ef5253175f77a64c37c3952ff11e89bcdf368760cecaf15c51f8045e8c9bd7211b6bfd545f4abb81e9c79b4156c4f7712
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zetabot (2.0.4)
4
+ zetabot (2.0.5)
5
5
  actionview
6
6
  chronic
7
7
  chronic_duration
@@ -130,8 +130,8 @@ module Plugins
130
130
  return nil if ac.results.nil? ## Unable to locate
131
131
 
132
132
  ac = ac.results[0]
133
- lat = CGI.escape(ac.geometry.location.lat)
134
- lon = CGI.escape(ac.geometry.location.lng)
133
+ lat = ac.geometry.location.lat
134
+ lon = ac.geometry.location.lng
135
135
 
136
136
  data = JSON.parse(
137
137
  open("https://api.darksky.net/forecast/#{Config.secrets[:darksky]}/#{lat},#{lon}").read,
@@ -171,11 +171,11 @@ module Plugins
171
171
  return nil if ac.results.nil? ## Unable to locate
172
172
 
173
173
  ac = ac.results[0]
174
- lat = CGI.escape(ac.geometry.location.lat)
175
- lon = CGI.escape(ac.geometry.location.lng)
174
+ lat = ac.geometry.location.lat
175
+ lon = ac.geometry.location.lng
176
176
 
177
177
  stations = JSON.parse(
178
- open(URI.encode("https://api.weather.gov/points/#{lat},#{lon}/stations/")).read
178
+ open("https://api.weather.gov/points/#{lat},#{lon}/stations/").read
179
179
  ) rescue nil
180
180
 
181
181
  return nil if stations.nil? ## Unable to find station. probably not in the USA
@@ -1,3 +1,3 @@
1
1
  module Zeta
2
- VERSION = '2.0.5'
2
+ VERSION = '2.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zetabot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liothen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-06 00:00:00.000000000 Z
11
+ date: 2019-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler