gtfs-realtime 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.travis.yml +2 -0
- data/README.md +1 -1
- data/gtfs-realtime.gemspec +1 -0
- data/lib/gtfs/realtime.rb +1 -0
- data/lib/gtfs/realtime/stop.rb +2 -2
- data/lib/gtfs/realtime/stop_time_update.rb +2 -2
- data/lib/gtfs/realtime/trip.rb +1 -1
- data/lib/gtfs/realtime/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d45dda0edeb7b008c75af74843fe4ef014a7baf2
|
4
|
+
data.tar.gz: 5226c23ff360cca5e244ccc6acadc98686b1e533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fffd4ac53ffee604318ea5e8a6c2375cdc36d99b175729872ebc3e8b6aca14a015e68c3a350d64438a7451d467d8c81b1ed9b4ae32db1209fbf7aed7bd3e03af
|
7
|
+
data.tar.gz: f3128ac25af2abbabab4872d97a46d42a1249d8d6d0351d855aefb3acef2e188b13b4bc420c51ce6be312eb3260614c35c5dbe76b33508222c109dbc7bd9acea
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# gtfs-realtime
|
1
|
+
# gtfs-realtime [![Build Status](https://travis-ci.org/rofreg/gtfs-realtime.svg?branch=master)](https://travis-ci.org/rofreg/gtfs-realtime)
|
2
2
|
|
3
3
|
gfts-realtime is a gem to interact with realtime transit data presented in the [GTFS Realtime format](https://developers.google.com/transit/gtfs-realtime/). It was built in order to interact with the RIPTA realtime data API for the public bus system in Providence, RI.
|
4
4
|
|
data/gtfs-realtime.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.13"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
26
|
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "webmock"
|
27
28
|
|
28
29
|
spec.add_dependency "gtfs-realtime-bindings"
|
29
30
|
spec.add_dependency "gtfs"
|
data/lib/gtfs/realtime.rb
CHANGED
data/lib/gtfs/realtime/stop.rb
CHANGED
@@ -8,8 +8,8 @@ module GTFS
|
|
8
8
|
one_to_many :service_alerts
|
9
9
|
one_to_many :stop_times
|
10
10
|
one_to_many :stop_time_updates
|
11
|
-
many_to_many :trip_updates, join_table: :
|
12
|
-
many_to_many :trips, join_table: :
|
11
|
+
many_to_many :trip_updates, join_table: :gtfs_realtime_stop_time_updates
|
12
|
+
many_to_many :trips, join_table: :gtfs_realtime_stop_times
|
13
13
|
many_through_many :routes, through: [
|
14
14
|
[:stop_times, :stop_id, :trip_id],
|
15
15
|
[:trips, :id, :route_id]
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module GTFS
|
2
2
|
class Realtime
|
3
3
|
class StopTimeUpdate < GTFS::Realtime::Model
|
4
|
-
one_through_one :route, join_table: :
|
4
|
+
one_through_one :route, join_table: :gtfs_realtime_trip_updates, left_key: :id, left_primary_key: :trip_update_id, right_key: :route_id
|
5
5
|
many_to_one :stop
|
6
|
-
one_through_one :trip, join_table: :
|
6
|
+
one_through_one :trip, join_table: :gtfs_realtime_trip_updates, left_key: :id, left_primary_key: :trip_update_id, right_key: :trip_id
|
7
7
|
many_to_one :trip_update
|
8
8
|
end
|
9
9
|
end
|
data/lib/gtfs/realtime/trip.rb
CHANGED
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.
|
4
|
+
version: 0.2.1
|
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-
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: webmock
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: gtfs-realtime-bindings
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|