zetabot 2.0.5 → 2.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/plugins/weather.rb +5 -5
- data/lib/Zeta/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16c1d1f4332b4e23e28a90842e9f6ac17f2bfd929f71e6e43876214468a48eff
|
4
|
+
data.tar.gz: 74ddd8fdbb93519876d5e0c3d3388a28cef310142ac41fb70e09d30bf5f93289
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a1a4b0261e13073b9301d8526579d2b8a9edfb933e5788843961c6cc4856e3adf0be9d05874b42cb951d458bc6f58a2fcaf48feb52b75413882655df6062413
|
7
|
+
data.tar.gz: 2d824fc1a8eb17815a903d386385f77ef5253175f77a64c37c3952ff11e89bcdf368760cecaf15c51f8045e8c9bd7211b6bfd545f4abb81e9c79b4156c4f7712
|
data/Gemfile.lock
CHANGED
data/lib/Zeta/plugins/weather.rb
CHANGED
@@ -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 =
|
134
|
-
lon =
|
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 =
|
175
|
-
lon =
|
174
|
+
lat = ac.geometry.location.lat
|
175
|
+
lon = ac.geometry.location.lng
|
176
176
|
|
177
177
|
stations = JSON.parse(
|
178
|
-
open(
|
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
|
data/lib/Zeta/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|