ratis 3.1.7 → 3.1.8
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.
- data/CHANGELOG +4 -1
- data/lib/ratis/next_bus.rb +2 -2
- data/lib/ratis/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -22,4 +22,7 @@
|
|
22
22
|
- Added field 'sign' to Ratis::Timetable::Trip, this is the headsign for a bus running a given trip
|
23
23
|
|
24
24
|
3.1.7
|
25
|
-
- Removed to_hash, instead use better named to_hash_for_xml for use with NextRide SMS service end-point
|
25
|
+
- Removed to_hash, instead use better named to_hash_for_xml for use with NextRide SMS service end-point
|
26
|
+
|
27
|
+
3.1.8
|
28
|
+
- Within to_hash_from_xml, pull route and sign attributes from the service instead of the realtime info (they always seem to be blank)
|
data/lib/ratis/next_bus.rb
CHANGED
@@ -104,9 +104,9 @@ module Ratis
|
|
104
104
|
service.trips.map do |trip|
|
105
105
|
|
106
106
|
{ :time => trip.realtime.estimatedtime,
|
107
|
-
:sign =>
|
107
|
+
:sign => service.sign,
|
108
108
|
:adherence => trip.realtime.adherence,
|
109
|
-
:route =>
|
109
|
+
:route => service.route
|
110
110
|
}
|
111
111
|
end
|
112
112
|
end.flatten
|
data/lib/ratis/version.rb
CHANGED
metadata
CHANGED