snowreports 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snowreports/builder.rb +2 -1
- data/lib/snowreports/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1acb098c3c2640588e815393ad10938b5e62dfa4986439e63417ef60029c6e6f
|
4
|
+
data.tar.gz: 6a57863eca3aca95034b7961315dc790c3f55d1b7ce5a94237b74c803a5c1824
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05f5502bd516b5cdea756592a26912ce55d6972fdc787a5c3233a94c8335a1e5e34c52102fb2d116535d43407de4e703a679e3b198621a0113d1676aaf2ea228
|
7
|
+
data.tar.gz: 0ae223c3cd23d52e6af036fa59634258ddec887e453f9cf99deb731ba9aa5cadaace2fb6533db3e923d5099ed9c0781ab8fcb5516cb365caa787151b74e25271
|
data/lib/snowreports/builder.rb
CHANGED
@@ -14,7 +14,8 @@ module Snowreports
|
|
14
14
|
snowreports_field_id = parsed.xpath("//skiarea/id").text
|
15
15
|
snowreports_field_name = parsed.xpath("//skiarea/name").text
|
16
16
|
information = parsed.xpath("//information").text
|
17
|
-
snow_min = parsed.xpath("//snow/mindepth").text
|
17
|
+
snow_min = parsed.xpath("//snow/mindepth").text
|
18
|
+
snow_min = snow_min.empty? ? parsed.xpath("//fields/field[@name='snow-base-lower']").text : snow_min
|
18
19
|
snow_base = parsed.xpath("//snow/base").text
|
19
20
|
mountain_status = parsed.xpath("//skiarea/status/label").text
|
20
21
|
|
data/lib/snowreports/version.rb
CHANGED