skiplan_client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/skiplan_client/version.rb +1 -1
- data/lib/skiplan_client.rb +3 -0
- data/test/skiplan_client/skiplan_client_test.rb +1 -0
- 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: 42068c3a84b2879b16eec84694323bec90db2b22
|
4
|
+
data.tar.gz: a419f08eb37767a5c977848e963532d8a9d28e90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69574a4abf0874b67a44739fcaee6b59f8b9a207a1a1bbce401821655276ca7184d9d580379e121defc518c6062246b4bd89bbf2ee8942f22b3a6e5c5beba830
|
7
|
+
data.tar.gz: 558bf28a737ac02e7045284a3113b15c5b442b4200e2ddfc56e93e33d316c0234bb7416f07fe7f3954bff00d7470d9ba00aa9397efb27e9f80b95fc3e91e84a1
|
data/lib/skiplan_client.rb
CHANGED
@@ -30,6 +30,9 @@ module SkiplanClient
|
|
30
30
|
today_forecast = xml.xpath('//BULLETINS//JOUR//LANGUE[@val="fr"]')
|
31
31
|
skiplan.text_messages['today_forecast'] = Hash.from_xml(today_forecast.to_s)['LANGUE']
|
32
32
|
|
33
|
+
tomorrow_forecast = xml.xpath('//BULLETINS//LENDEMAIN//LANGUE[@val="fr"]')
|
34
|
+
skiplan.text_messages['tomorrow_forecast'] = Hash.from_xml(tomorrow_forecast.to_s)['LANGUE']
|
35
|
+
|
33
36
|
forecasts_comment = xml.xpath('//BULLETINS//COMMENTAIRES//LANGUE[@val="fr"]')
|
34
37
|
skiplan.text_messages['forecasts_comment'] = Hash.from_xml(forecasts_comment.to_s)['LANGUE']
|
35
38
|
|
@@ -85,6 +85,7 @@ class SkiplanClientTest < Test::Unit::TestCase
|
|
85
85
|
text_forecasts = SkiplanClient.weather('CHINAILLON').text_messages
|
86
86
|
|
87
87
|
assert_equal 'Pluie. Vent faible variable.', text_forecasts['today_forecast']
|
88
|
+
assert_equal 'Beau temps sec et ensoleillé. Vent faible variable.', text_forecasts['tomorrow_forecast']
|
88
89
|
assert_equal 'Col de la Colombière ouvert.', text_forecasts['forecasts_comment']
|
89
90
|
end
|
90
91
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skiplan_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SimonRonzani
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|