zetabot 1.0.5 → 1.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: '0095c8ef988b512fd887075d31ef2cc79f3004a5ddf880665b9af811905cba71'
4
- data.tar.gz: ac4dd898f4b3171ff45fa8994676a57c6671157ab424f8576719609815c7dec1
3
+ metadata.gz: 6455a410f956467b4bf17a90eb1f0fed283f7e0f10fca5587bdb6acbfb8d611a
4
+ data.tar.gz: abc8f0b2e0596803b485a701d7ae3cbc532b8e455cfd60f324e6be61c3f483c1
5
5
  SHA512:
6
- metadata.gz: 00b8725ed887f036f4035ca665a4d2c3caacd3cf97cd7027d6d03ca9aacb9efd2f35cd387e0aee10d94a77cb66929ddadabeccdfa417f79b075201bbf0f13f1c
7
- data.tar.gz: 70a93097c7af9377b5773a3b2edf75cfd7bad5021cf78811d087d9e9788436a58dac9b67f610e4faa7a151716d6a082e168390650f8d2d678416e3649c04321d
6
+ metadata.gz: f3270394aec37a97cde76e2b1f697913b14796c245a2a967f141d90b85a1da7224ef3d4aa959212f6bcf4558208c600e9ee88bbfdd06401de99728ad6f26537b
7
+ data.tar.gz: f744a11bc66df3fd0384677378b82e86c714f0b2af83ba4a4106722eb0015887596f2ed6408b8a4e350c905950baf05868f8f290cc34c3154bc9c8aa2f898f3b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zetabot (1.0.4)
4
+ zetabot (1.0.5)
5
5
  actionview
6
6
  chronic
7
7
  chronic_duration
@@ -0,0 +1,10 @@
1
+ GEM
2
+ specs:
3
+
4
+ PLATFORMS
5
+ ruby
6
+
7
+ DEPENDENCIES
8
+
9
+ BUNDLED WITH
10
+ 1.16.0
@@ -102,12 +102,14 @@ module Plugins
102
102
  else
103
103
 
104
104
  ac = JSON.parse(
105
- open(URI.encode("http://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
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 = "OVER_QUERY_LIMIT"
110
- return msg.reply("Google API - Over query Limit")
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("http://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
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
- return msg.reply("Google API - Over query Limit")
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("http://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
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
- return msg.reply("Google API - Over query Limit")
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("http://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
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
- return msg.reply("Google API - Over query Limit")
273
+ msg.reply("Google API - Over query Limit")
272
274
  return nil
273
275
  end
274
276
 
data/lib/Zeta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zeta
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
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.5
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