snowreports 0.6.1 → 0.6.3
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 +6 -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: 7f6101b20da706f2eec03b26a1d901fdc63c378e48d0be17b4a4eb3d7f98f74b
|
4
|
+
data.tar.gz: 288f2247b6518a16d4d5e06bca518163b1998aaec7886997e4ae84c98d90e7ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f541e71ca59ca87460a4964909e016ee1c379d25097143fc864ef5c9f50d4f373b99a9ff9eee8b2695590f240777514d1a99da7e69527eba06ebe1fda715d2e
|
7
|
+
data.tar.gz: 56d2e611df7dbdcb52d65da9477d4325e1da062f82bed7595adbfab8cdd2d26877bdce36cd7c8f4679f968f997bf8a9ad9c2c35aed8eb131f4796b74e95d64d1
|
data/lib/snowreports/builder.rb
CHANGED
@@ -14,8 +14,13 @@ 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
|
-
|
17
|
+
|
18
|
+
snow_min = parsed.xpath("//snow/mindepth").text
|
19
|
+
snow_min = snow_min.empty? ? parsed.xpath("//fields/field[@name='snow-base-lower']").text : snow_min
|
20
|
+
|
18
21
|
snow_base = parsed.xpath("//snow/base").text
|
22
|
+
snow_base = snow_base.empty? ? snow_min : snow_base
|
23
|
+
|
19
24
|
mountain_status = parsed.xpath("//skiarea/status/label").text
|
20
25
|
|
21
26
|
if mountain_status == "Opening On"
|
data/lib/snowreports/version.rb
CHANGED