myweatherfeed 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +5 -1
- data/lib/myweatherfeed.rb +7 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c072bf6e9605ab702c726e64089c866c1cc9d75e
|
4
|
+
data.tar.gz: 5a7e56e66468720e091af4a8bb2543246c31b6fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b6d23386afa86edd7fb2487ec8498fccfa8699149fd8353f519335f1a03efd437e30e6b18ed09b2bc84780ea788daca7ee1b541de6baca1a315f6d4ffd1784c
|
7
|
+
data.tar.gz: 807a8a969728fde3cadf52a3d7133ce4216a634277acafb69c8e63466d7da3fc2a038df0ea4083c1be797946a2485c8ef9a0e1e5b40b852c649a4b00b33fd87a
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,5 @@
|
|
1
|
-
|
1
|
+
�d s�{��^���Itɕ�����:O��op
|
2
|
+
�.#�K�i߹��և����isk�h�ԯ�M�.��1��fP�
|
3
|
+
��,��J]w,��
|
4
|
+
�Iڣ/?��>z��.`���R��"��ɢ��wE�.(���@��ɳ�'V�=��O��K.K���>zi5EZ �vj
|
5
|
+
����MFP�
|
data/lib/myweatherfeed.rb
CHANGED
@@ -13,7 +13,10 @@ class MyWeatherFeed < DailyNotices
|
|
13
13
|
|
14
14
|
super(filepath, url_base: url_base, dx_xslt: dx_xslt, rss_xslt: rss_xslt)
|
15
15
|
|
16
|
-
@
|
16
|
+
@api_key = api_key
|
17
|
+
w = MyWeatherForecast.new location, api_key: api_key
|
18
|
+
@coordinates = w.coordinates
|
19
|
+
|
17
20
|
self.title = 'My weather feed for ' + \
|
18
21
|
(location || @w.coordinates.join(', '))
|
19
22
|
self.description = 'Weather data fetched from forecast.io'
|
@@ -33,9 +36,10 @@ class MyWeatherFeed < DailyNotices
|
|
33
36
|
|
34
37
|
def update()
|
35
38
|
|
36
|
-
return if @refreshrate and Time.parse(@h[:nextrefresh]) > Time.now
|
39
|
+
return if @refreshrate and (Time.parse(@h[:nextrefresh]) > Time.now)
|
37
40
|
|
38
|
-
|
41
|
+
w = MyWeatherForecast.new @coordinates, api_key: @api_key
|
42
|
+
notice = w.now.to_s
|
39
43
|
|
40
44
|
return if notice == @h[:notice]
|
41
45
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myweatherfeed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
OrEo7o+s5IAb1sjnszfTM9z0m8edr9PLFL6DELSDyUrAX82wtOczCfs+FmDFMVi1
|
32
32
|
n+hHOLycC+wnRA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-10-
|
34
|
+
date: 2015-10-28 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: myweatherforecast
|
metadata.gz.sig
CHANGED
Binary file
|