zetabot 0.0.12 → 0.0.13
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 +4 -4
- data/Gemfile.lock +1 -1
- data/bin/zeta +1 -1
- data/lib/Zeta/plugins/weather.rb +2 -3
- data/lib/Zeta/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0205ef1813634045b0fa5be1cb80e9736698d070
|
|
4
|
+
data.tar.gz: 34a90a690b5580cb08047a157478c5197c76faf2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 299b167c7079485657189935ff0d916783c4414814ea7f72d51702ecdde05aeaafd8a4f2846d96a164836b1c7b5cd9b0dd0dfa7519373058ad3fc860b80c291a
|
|
7
|
+
data.tar.gz: ed8cf07f7122a20f9f66aafb1721367678cdbd8d70ad6e9b0eae27aa17a2d2c8ab98492e3f01a0be8e3bfa0307b851f576a98166a1f389115f22be8de62574fa
|
data/Gemfile.lock
CHANGED
data/bin/zeta
CHANGED
data/lib/Zeta/plugins/weather.rb
CHANGED
|
@@ -58,8 +58,9 @@ module Plugins
|
|
|
58
58
|
#[ Clarkston, WA, United States | Cloudy | Temp: 34 F (1 C) | Humidity: 73% | Winds: 8 mph ]
|
|
59
59
|
reply_data = "∴ #{data.county}, #{data.country} " \
|
|
60
60
|
"≈ #{data.weather} #{data.temperature} " \
|
|
61
|
+
"≈ Feels like #{data.feels_like} " \
|
|
61
62
|
"≈ Humidity: #{data.relative_humidity} " \
|
|
62
|
-
"≈ Pressure: #{data.pressure_in} psi (#{data.pressure_mb}
|
|
63
|
+
"≈ Pressure: #{data.pressure_in} psi (#{data.pressure_mb} mb) " \
|
|
63
64
|
"≈ Wind: #{data.wind} ≈ Alerts: #{data.alerts} ∴"
|
|
64
65
|
msg.reply(reply_data)
|
|
65
66
|
end
|
|
@@ -131,7 +132,6 @@ module Plugins
|
|
|
131
132
|
def geolookup(locale)
|
|
132
133
|
url = URI.encode "http://api.wunderground.com/api/#{Config.secrets[:wunderground]}/geolookup/q/#{locale}.json"
|
|
133
134
|
location = JSON.parse(
|
|
134
|
-
# RestClient.get(url).force_encoding("UTF-8")
|
|
135
135
|
open(url).read
|
|
136
136
|
)
|
|
137
137
|
location['location']['l']
|
|
@@ -142,7 +142,6 @@ module Plugins
|
|
|
142
142
|
def get_conditions(location)
|
|
143
143
|
data = JSON.parse(
|
|
144
144
|
open("http://api.wunderground.com/api/#{Config.secrets[:wunderground]}/alerts/conditions#{location}.json").read
|
|
145
|
-
#RestClient.get("http://api.wunderground.com/api/#{Zsec.wunderground}/conditions#{location}.json")
|
|
146
145
|
)
|
|
147
146
|
current = data['current_observation']
|
|
148
147
|
alerts = data['alerts'].empty? ? 'none' : data['alerts'].map { |l| l['type'] }.join(',')
|
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: 0.0.
|
|
4
|
+
version: 0.0.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Liothen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|