national-rail 0.4.8 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ module NationalRail
18
18
  end
19
19
  def parse(value)
20
20
  value = value.gsub(%r{&#\d+;}, '').gsub(%r{\*+$}, '')
21
- return value if ['On time', 'Starts here', 'No report'].include?(value)
21
+ return value if ['On time', 'Starts here', 'No report', 'Cancelled', 'Delayed'].include?(value)
22
22
  parts = value.scan(%r{\d{2}})
23
23
  return nil unless parts.length == 2
24
24
  Time.zone.parse("#{@date} #{parts.join(':')}")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: national-rail
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 8
10
- version: 0.4.8
9
+ - 9
10
+ version: 0.4.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Mead