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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5597d78fa89ff21aa3906b0a8fb777d15f07b9ac
4
- data.tar.gz: 8b428b5ed3157e00eb9c61f5608d075ae0c9af7c
3
+ metadata.gz: 23c81c48b649f5b760e174c08309d12d119cae17
4
+ data.tar.gz: 53b1579b42ff69132e8ee639cd0e5ae3acdddc86
5
5
  SHA512:
6
- metadata.gz: 77cbc9b850e8c4a83ddc86c6f7f07a97b41cf6f37881ab126002b7fd1edf0f1fb7af0b677b2ed6df48dd6ad712e44c5b9cc7fdbb47f8aa2012036417bce360ad
7
- data.tar.gz: 2d50ff271c6344661a951a9899e59cd02a87c897e0ed8e532590362223fdca833afd806973531f0f9961feb30e9842bacf897d2192b71300eeff37bdaabca116
6
+ metadata.gz: 54b494bb5ab0673afe29bfc691281f4e73a6de3e4ae884203fe458d8030a7f64d1e24ade48a83fdeb233b07fe89a67e0d5cb568e88a75477c034ac75f7ecbd56
7
+ data.tar.gz: f930647a678f585c6564848d0ec28743fe878f575d6a73930d3cfc6989859bfd1161722fd3fb82cbe579eb6e96c72f6476d9a58bc38128cbf1b82c94b7b0d633
@@ -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,
@@ -1,3 +1,3 @@
1
1
  module Snowreports
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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: 2017-07-23 00:00:00.000000000 Z
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: