zetabot 1.0.6 → 1.0.7

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: 6455a410f956467b4bf17a90eb1f0fed283f7e0f10fca5587bdb6acbfb8d611a
4
- data.tar.gz: abc8f0b2e0596803b485a701d7ae3cbc532b8e455cfd60f324e6be61c3f483c1
3
+ metadata.gz: 29f311e58d91926ad8d83fbe0ac23d94a09787072463f937f8a6fcc0d1249443
4
+ data.tar.gz: 6ec3d0bc906da344bf4398091eee2e0c9190bc4ffdf555cd5851c3700c6b6458
5
5
  SHA512:
6
- metadata.gz: f3270394aec37a97cde76e2b1f697913b14796c245a2a967f141d90b85a1da7224ef3d4aa959212f6bcf4558208c600e9ee88bbfdd06401de99728ad6f26537b
7
- data.tar.gz: f744a11bc66df3fd0384677378b82e86c714f0b2af83ba4a4106722eb0015887596f2ed6408b8a4e350c905950baf05868f8f290cc34c3154bc9c8aa2f898f3b
6
+ metadata.gz: 94d193dbcd70da8bb93e3a93b951c2ec6fd8245dd979c684e31b31353d89f7af6aaee6fe2f63ab3b468c467058283b564f3ff4b7f30fa21bb3089adf58b280fb
7
+ data.tar.gz: ec1a8cf35f69a996cdbe7dbc420ec161f9d6b9fbabb8549a343586ab339a0b946bff54b7368a4e2422f15f3ab7f1a136bea4f918ea7e0b4ce4d5930f6509340f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zetabot (1.0.5)
4
+ zetabot (1.0.6)
5
5
  actionview
6
6
  chronic
7
7
  chronic_duration
@@ -106,7 +106,7 @@ module Plugins
106
106
  object_class: OpenStruct
107
107
  )
108
108
 
109
- puts ac.status
109
+ info(ac.status)
110
110
  return nil if ac.results.nil?
111
111
  if ac.status == "OVER_QUERY_LIMIT"
112
112
  msg.reply("Google API - Over query Limit")
@@ -162,7 +162,8 @@ module Plugins
162
162
  )
163
163
  return nil if ac.results.nil? ## Unable to locate
164
164
 
165
- if ac.status = "OVER_QUERY_LIMIT"
165
+ info(ac.status)
166
+ if ac.status == "OVER_QUERY_LIMIT"
166
167
  msg.reply("Google API - Over query Limit")
167
168
  return nil
168
169
  end
@@ -200,7 +201,7 @@ module Plugins
200
201
  end
201
202
 
202
203
  # DarkSky - https://darksky.net/dev
203
- def darksky_src(msg,location,stored=false)
204
+ def ds_src(msg,location,stored=false)
204
205
 
205
206
  ac = JSON.parse(
206
207
  open(URI.encode("https://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
@@ -208,7 +209,8 @@ module Plugins
208
209
  )
209
210
  return nil if ac.results.nil? ## Unable to locate
210
211
 
211
- if ac.status = "OVER_QUERY_LIMIT"
212
+ info(ac.status)
213
+ if ac.status == "OVER_QUERY_LIMIT"
212
214
  msg.reply("Google API - Over query Limit")
213
215
  return nil
214
216
  end
@@ -269,7 +271,8 @@ module Plugins
269
271
  )
270
272
  return nil if ac.results.nil? ## Unable to locate
271
273
 
272
- if ac.status = "OVER_QUERY_LIMIT"
274
+ info(ac.status)
275
+ if ac.status == "OVER_QUERY_LIMIT"
273
276
  msg.reply("Google API - Over query Limit")
274
277
  return nil
275
278
  end
data/lib/Zeta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zeta
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
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.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liothen