zetabot 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/Zeta/gems.locked +10 -0
- data/lib/Zeta/plugins/weather.rb +11 -9
- data/lib/Zeta/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6455a410f956467b4bf17a90eb1f0fed283f7e0f10fca5587bdb6acbfb8d611a
|
4
|
+
data.tar.gz: abc8f0b2e0596803b485a701d7ae3cbc532b8e455cfd60f324e6be61c3f483c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3270394aec37a97cde76e2b1f697913b14796c245a2a967f141d90b85a1da7224ef3d4aa959212f6bcf4558208c600e9ee88bbfdd06401de99728ad6f26537b
|
7
|
+
data.tar.gz: f744a11bc66df3fd0384677378b82e86c714f0b2af83ba4a4106722eb0015887596f2ed6408b8a4e350c905950baf05868f8f290cc34c3154bc9c8aa2f898f3b
|
data/Gemfile.lock
CHANGED
data/lib/Zeta/plugins/weather.rb
CHANGED
@@ -102,12 +102,14 @@ module Plugins
|
|
102
102
|
else
|
103
103
|
|
104
104
|
ac = JSON.parse(
|
105
|
-
open(URI.encode("
|
105
|
+
open(URI.encode("https://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
|
106
106
|
object_class: OpenStruct
|
107
107
|
)
|
108
|
+
|
109
|
+
puts ac.status
|
108
110
|
return nil if ac.results.nil?
|
109
|
-
if ac.status
|
110
|
-
|
111
|
+
if ac.status == "OVER_QUERY_LIMIT"
|
112
|
+
msg.reply("Google API - Over query Limit")
|
111
113
|
return nil
|
112
114
|
end
|
113
115
|
|
@@ -155,13 +157,13 @@ module Plugins
|
|
155
157
|
else
|
156
158
|
|
157
159
|
ac = JSON.parse(
|
158
|
-
open(URI.encode("
|
160
|
+
open(URI.encode("https://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
|
159
161
|
object_class: OpenStruct
|
160
162
|
)
|
161
163
|
return nil if ac.results.nil? ## Unable to locate
|
162
164
|
|
163
165
|
if ac.status = "OVER_QUERY_LIMIT"
|
164
|
-
|
166
|
+
msg.reply("Google API - Over query Limit")
|
165
167
|
return nil
|
166
168
|
end
|
167
169
|
|
@@ -201,13 +203,13 @@ module Plugins
|
|
201
203
|
def darksky_src(msg,location,stored=false)
|
202
204
|
|
203
205
|
ac = JSON.parse(
|
204
|
-
open(URI.encode("
|
206
|
+
open(URI.encode("https://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
|
205
207
|
object_class: OpenStruct
|
206
208
|
)
|
207
209
|
return nil if ac.results.nil? ## Unable to locate
|
208
210
|
|
209
211
|
if ac.status = "OVER_QUERY_LIMIT"
|
210
|
-
|
212
|
+
msg.reply("Google API - Over query Limit")
|
211
213
|
return nil
|
212
214
|
end
|
213
215
|
|
@@ -262,13 +264,13 @@ module Plugins
|
|
262
264
|
else
|
263
265
|
|
264
266
|
ac = JSON.parse(
|
265
|
-
open(URI.encode("
|
267
|
+
open(URI.encode("https://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
|
266
268
|
object_class: OpenStruct
|
267
269
|
)
|
268
270
|
return nil if ac.results.nil? ## Unable to locate
|
269
271
|
|
270
272
|
if ac.status = "OVER_QUERY_LIMIT"
|
271
|
-
|
273
|
+
msg.reply("Google API - Over query Limit")
|
272
274
|
return nil
|
273
275
|
end
|
274
276
|
|
data/lib/Zeta/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zetabot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liothen
|
@@ -591,6 +591,7 @@ files:
|
|
591
591
|
- lib/Zeta/cache.rb
|
592
592
|
- lib/Zeta/cinch.rb
|
593
593
|
- lib/Zeta/config.rb
|
594
|
+
- lib/Zeta/gems.locked
|
594
595
|
- lib/Zeta/gems.rb
|
595
596
|
- lib/Zeta/locale.rb
|
596
597
|
- lib/Zeta/locale/en/8ball.yml
|