snowreports 0.5.0 → 0.6.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
  SHA256:
3
- metadata.gz: d38a4371bf59ac3bf908a3f2c47b15046052ed0302018f48993489e3daf4b107
4
- data.tar.gz: 6c3b5c50ad4a538a588051b258225d7a23040dc3d4fb84d9b0e0e12a204ef434
3
+ metadata.gz: 161d3d4e6cd4f1b7316045f17a8b2f9a80f608a50dce5791b18187e6f16a81b4
4
+ data.tar.gz: edcb5767ef7d39d24a3feda491588bd7d5d6772f43b194ba5ed6dd050b072301
5
5
  SHA512:
6
- metadata.gz: 4cfe2f27ad3036f41c4b2f107e3698a5a6e3d8f3b2ceb54c1c00ec3c4959ece7d679fb48518b3c004ed1d1a09a8d920d8c91519ce0b0b459af81e3d7b8638983
7
- data.tar.gz: 12be010d5243912bffde9ff432ff06a2584a7bf6d3c30e5a391239dbfee53fdab8c6b08066a55552f2398c2e2a93e7fa2290d1223796deff6d17c96bf792bb1c
6
+ metadata.gz: '091774a074dc2abc4f6e76c923c1498aacbdc458bd3e70436f2023a5f7415a3ff4412459e378904cadd00a7c8968eba8b99f6e73460c3fcea3f8bf2e436fc98c'
7
+ data.tar.gz: 5de91c3a4802288ad0bf768c15740d5f7ce8ae4998d15fab2d6833903556915797dc89665b736dd6ee339766aaef2ed82cc06d878fe9ecd4e624d3d6b996ae1e
@@ -34,8 +34,13 @@ module Snowreports
34
34
  snow_min: snow_min,
35
35
  snow_base: snow_base,
36
36
  information: information,
37
+ mountain_info: parsed.at_xpath("//field[@name='mountain-info']")&.content,
38
+ snow_comment: parsed.at_xpath("//field[@name='snow-comment']")&.content,
39
+ weather_comment: parsed.at_xpath("//field[@name='weather-comment']")&.content,
40
+ last_snowfall_amount: parsed.at_xpath("//field[@name='last-snowfall-amount']")&.content,
37
41
  field_id: field_id,
38
42
  mountain_status: mountain_status,
43
+ raw_data: parsed
39
44
  )
40
45
  end
41
46
  end
@@ -17,6 +17,11 @@ module Snowreports
17
17
  :snow_base,
18
18
  :snow_min,
19
19
  :information,
20
- :field_id
20
+ :field_id,
21
+ :raw_data,
22
+ :mountain_info,
23
+ :snow_comment,
24
+ :weather_comment,
25
+ :last_snowfall_amount
21
26
  )
22
27
  end
@@ -1,3 +1,3 @@
1
1
  module Snowreports
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.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.5.0
4
+ version: 0.6.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: 2023-03-07 00:00:00.000000000 Z
11
+ date: 2024-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubygems_version: 3.2.22
139
+ rubygems_version: 3.2.33
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Fetches and parses reports from snowreports.co.nz