national-rail 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/national-rail/journey_planner.rb +1 -1
- metadata +2 -2
@@ -136,7 +136,7 @@ module NationalRail
|
|
136
136
|
raise (times_page.doc/".error-message").first.inner_text.gsub(/\s+/, " ").strip
|
137
137
|
end
|
138
138
|
|
139
|
-
date = Date.parse((times_page.doc/".journey-details span
|
139
|
+
date = Date.parse((times_page.doc/".journey-details span").first.children.first.inner_text.gsub(/\s+/, " ").gsub(/\+ 1 day/, '').strip)
|
140
140
|
|
141
141
|
(times_page.doc/"table#outboundJourneyTable > tbody > tr").reject { |tr| %w(status changes).include?(tr.attributes["class"].value) }.each do |tr|
|
142
142
|
|