gtfs-realtime 0.2.2 → 0.2.3

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: f61ca284c49d493e298935aa54e94f612767a0ff
4
- data.tar.gz: 66eefa1d79e49915a85d8a720b879fd20f6b5857
3
+ metadata.gz: e44b358f36ed58f6afb79e1ac3bcb293c94328c2
4
+ data.tar.gz: b4e95727479c1c8a9d75c497a82e53eed77ef44b
5
5
  SHA512:
6
- metadata.gz: 95f4fa73102e789c946e10eb6b62822c838f3fe7a5fc52506f8a648f1f390070ad8adc0b959b24a3807620f68554fd46090fad0263b08e70ae0fc92d52a03beb
7
- data.tar.gz: 0763a7901716864e746c802553a2fa623a579be1e3724b056be7944ca87fa764a8bcbf46c2e97a703ce56ae2074d9f2db18177c5482c08a879e56f4077b728f1
6
+ metadata.gz: 651b28031192650142b967199e5b10f8065fde6dcf36391296bc3c10e1d1e6cdc37f91974152c91ca46ff8a953773fa5a87ad7f4cb938d6b8e40890edc07af32
7
+ data.tar.gz: f9e588907904be93a52d4ba7825818633af9d95c3d9cb367cfc8fd9f9bda0cb712e450950a342ec42e01097a9298b941a6d29756cec6f5e9d6327e28e4b338e4
data/README.md CHANGED
@@ -47,10 +47,10 @@ end
47
47
 
48
48
  # load all stop times for today, including updated live information
49
49
  stop.stop_times_for_today.each do |st|
50
- trip_info = st.trip
51
- route_info = trip_info.route
52
- shapes_info = trip_info.shapes
53
- puts "#{st.scheduled_departure_time}: [#{st.trip.route.short_name}] #{st.trip.headsign}"
50
+ trip = st.trip
51
+ route = trip.route
52
+ shapes = shapes
53
+ puts "#{st.scheduled_departure_time}: [#{route.short_name}] #{trip.headsign}"
54
54
 
55
55
  if st.live?
56
56
  delay = st.actual_departure_delay / 60
@@ -43,7 +43,7 @@ module GTFS
43
43
  hour = time[0...2].to_i
44
44
 
45
45
  # handle timestamps like "24:30"
46
- if hour > 24
46
+ if hour >= 24
47
47
  days = hour / 24
48
48
  time[0...2] = (hour % 24).to_s.rjust(2, '0')
49
49
  end
@@ -1,5 +1,5 @@
1
1
  module GTFS
2
2
  class Realtime
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtfs-realtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Laughlin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-25 00:00:00.000000000 Z
11
+ date: 2016-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler