isis-plugin-weather 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/isis-plugin-weather.gemspec +1 -1
- data/lib/isis/plugin/weather.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f3efc1ea6f505aaf59ef942be9095b4a1599c83
|
4
|
+
data.tar.gz: 1085126a5493a685a615e0039c8dc8ba5829085c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0abefe8615b3acc66f18f65bac891be8850d5cbc9cc5041a8aeff102976d677bbd9de8eaf67cdced4ce8f6990e3de363a1f046e0958b89d69e71b0739518790a
|
7
|
+
data.tar.gz: 6573ba39909c786339e1b0e836152c10ffcb0edb4b1c94fc9f56cd50074d148be3600266b7120465bf7cadcacfbcb5de76905de8137f2a2be22c58f057692cc0
|
data/isis-plugin-weather.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "isis-plugin-weather"
|
7
|
-
spec.version = "1.
|
7
|
+
spec.version = "1.1.0"
|
8
8
|
spec.authors = ["Brendon Rapp"]
|
9
9
|
spec.email = ["brendon@silentgrowl.com"]
|
10
10
|
spec.license = 'MIT'
|
data/lib/isis/plugin/weather.rb
CHANGED
@@ -18,7 +18,7 @@ module Isis
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def response_html
|
21
|
-
output = %Q[<img src="http://i.imgur.com/wJwbW5q.png">
|
21
|
+
output = %Q[<img src="http://i.imgur.com/wJwbW5q.png"> Weather Report - #{timestamp} #{zone}] +
|
22
22
|
%Q[ (powered by Weather Underground)<br>]
|
23
23
|
@zip_codes.reduce(output) do |a, e|
|
24
24
|
loc = Barometer.new(e).measure
|
@@ -27,7 +27,7 @@ module Isis
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def response_md
|
30
|
-
output = %Q[
|
30
|
+
output = %Q[Weather Report - #{timestamp} #{zone} (powered by Weather Underground)\n]
|
31
31
|
@zip_codes.reduce(output) do |a, e|
|
32
32
|
loc = Barometer.new(e).measure
|
33
33
|
a += "#{forecast_md(loc)}\n"
|
@@ -35,7 +35,7 @@ module Isis
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def response_text
|
38
|
-
output = ["
|
38
|
+
output = ["Weather Report - #{timestamp} #{zone} (powered by Weather Underground"]
|
39
39
|
@zip_codes.reduce(output) do |a, e|
|
40
40
|
loc = Barometer.new(e).measure
|
41
41
|
a.push forecast_text(loc)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isis-plugin-weather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brendon Rapp
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: barometer
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.4.8
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: 'Isis plugin: Weather'
|