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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56fb88b43862ee4f6f162950a21d7c84cbdf7b8e
4
- data.tar.gz: 25733b6599e5c04f52e1501ce3dc276255f96c6d
3
+ metadata.gz: 42068c3a84b2879b16eec84694323bec90db2b22
4
+ data.tar.gz: a419f08eb37767a5c977848e963532d8a9d28e90
5
5
  SHA512:
6
- metadata.gz: 111959f9f98523ced19818eae7859268e0b3d9d57a58da4ce488f5637161ee1459db2f3ed3e8a638d23dd4413e84fed3890c9e907adb5bac3030272467bb9669
7
- data.tar.gz: 96d5af1b97db6a4e02fad472d39143ccd301ef509c44cc490c303721dab7daa8dae364b0949629765627b8a78fd31061488c78056d37f98f24a179008c3065c4
6
+ metadata.gz: 69574a4abf0874b67a44739fcaee6b59f8b9a207a1a1bbce401821655276ca7184d9d580379e121defc518c6062246b4bd89bbf2ee8942f22b3a6e5c5beba830
7
+ data.tar.gz: 558bf28a737ac02e7045284a3113b15c5b442b4200e2ddfc56e93e33d316c0234bb7416f07fe7f3954bff00d7470d9ba00aa9397efb27e9f80b95fc3e91e84a1
@@ -1,3 +1,3 @@
1
1
  module SkiplanClient
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -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.0
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-10-23 00:00:00.000000000 Z
12
+ date: 2015-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler