snowreports 0.2.0 → 0.3.0
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 -0
- data/lib/snowreports/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23c81c48b649f5b760e174c08309d12d119cae17
|
4
|
+
data.tar.gz: 53b1579b42ff69132e8ee639cd0e5ae3acdddc86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54b494bb5ab0673afe29bfc691281f4e73a6de3e4ae884203fe458d8030a7f64d1e24ade48a83fdeb233b07fe89a67e0d5cb568e88a75477c034ac75f7ecbd56
|
7
|
+
data.tar.gz: f930647a678f585c6564848d0ec28743fe878f575d6a73930d3cfc6989859bfd1161722fd3fb82cbe579eb6e96c72f6476d9a58bc38128cbf1b82c94b7b0d633
|
data/lib/snowreports/builder.rb
CHANGED
@@ -18,6 +18,12 @@ module Snowreports
|
|
18
18
|
snow_base = parsed.xpath("//snow/base").text
|
19
19
|
mountain_status = parsed.xpath("//skiarea/status/label").text
|
20
20
|
|
21
|
+
if mountain_status == "Opening On"
|
22
|
+
opening_date = parsed.xpath("//skiarea/status/openingdate").text
|
23
|
+
mountain_status = "Opening On: #{opening_date}"
|
24
|
+
end
|
25
|
+
|
26
|
+
|
21
27
|
Snowreport.new(updated_date: last_updated_date,
|
22
28
|
updated_time: last_updated_time,
|
23
29
|
road_status: road_status,
|
data/lib/snowreports/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snowreports
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Davey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -142,4 +142,3 @@ signing_key:
|
|
142
142
|
specification_version: 4
|
143
143
|
summary: Fetches and parses reports from snowreports.co.nz
|
144
144
|
test_files: []
|
145
|
-
has_rdoc:
|