zetabot 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68d78754e661e90b35e886c10b1d8ef7b21b7f9d
4
- data.tar.gz: 4fa6fce72cc93effcae2f371a3cf7e2ea6ced806
3
+ metadata.gz: 0205ef1813634045b0fa5be1cb80e9736698d070
4
+ data.tar.gz: 34a90a690b5580cb08047a157478c5197c76faf2
5
5
  SHA512:
6
- metadata.gz: 76fc0c344ecfe0361ffd282444b387e8d521a0ed8c81aa7d481a390f13964a533b69a10f5e01cf2f74ced191a035f8bd7215733c8ff6b5018800db34eb0ba448
7
- data.tar.gz: 1d8319db93efffd615e206e38bfa5dd72e69c5e5d503baa3ee84911fba90d6ec27281c099b19280aae90f193ca4b5611efec2a570f23dc2e2cbd9e901f689978
6
+ metadata.gz: 299b167c7079485657189935ff0d916783c4414814ea7f72d51702ecdde05aeaafd8a4f2846d96a164836b1c7b5cd9b0dd0dfa7519373058ad3fc860b80c291a
7
+ data.tar.gz: ed8cf07f7122a20f9f66aafb1721367678cdbd8d70ad6e9b0eae27aa17a2d2c8ab98492e3f01a0be8e3bfa0307b851f576a98166a1f389115f22be8de62574fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zetabot (0.0.11)
4
+ zetabot (0.0.12)
5
5
  actionview
6
6
  chronic
7
7
  chronic_duration
data/bin/zeta CHANGED
@@ -3,7 +3,7 @@ require 'Zeta'
3
3
  require 'daemons'
4
4
 
5
5
  # Deamonize this process
6
- # Daemons.daemonize
6
+ #Daemons.daemonize
7
7
 
8
8
  # Start Zeta
9
9
  Bot.start
@@ -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} mmHg) " \
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
@@ -1,3 +1,3 @@
1
1
  module Zeta
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
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.12
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-03-02 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler