cta_redux 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +37 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +16 -0
- data/Rakefile +2 -0
- data/cta_redux.gemspec +32 -0
- data/data/.gitkeep +0 -0
- data/data/cta-gtfs.db.gz +0 -0
- data/lib/cta_redux/api/api_response.rb +45 -0
- data/lib/cta_redux/api/bus_tracker.rb +178 -0
- data/lib/cta_redux/api/customer_alerts.rb +68 -0
- data/lib/cta_redux/api/train_tracker.rb +89 -0
- data/lib/cta_redux/bus_tracker.rb +183 -0
- data/lib/cta_redux/customer_alerts.rb +72 -0
- data/lib/cta_redux/faraday_middleware/bus_tracker_parser.rb +46 -0
- data/lib/cta_redux/faraday_middleware/customer_alerts_parser.rb +39 -0
- data/lib/cta_redux/faraday_middleware/simple_cache.rb +32 -0
- data/lib/cta_redux/faraday_middleware/train_tracker_parser.rb +37 -0
- data/lib/cta_redux/models/agency.rb +4 -0
- data/lib/cta_redux/models/bus.rb +46 -0
- data/lib/cta_redux/models/calendar.rb +7 -0
- data/lib/cta_redux/models/route.rb +62 -0
- data/lib/cta_redux/models/shape.rb +4 -0
- data/lib/cta_redux/models/stop.rb +66 -0
- data/lib/cta_redux/models/stop_time.rb +6 -0
- data/lib/cta_redux/models/train.rb +74 -0
- data/lib/cta_redux/models/transfer.rb +6 -0
- data/lib/cta_redux/models/trip.rb +64 -0
- data/lib/cta_redux/train_tracker.rb +103 -0
- data/lib/cta_redux/version.rb +3 -0
- data/lib/cta_redux.rb +50 -0
- data/script/gtfs_to_sqlite.rb +137 -0
- data/spec/bus_tracker_spec.rb +149 -0
- data/spec/customer_alerts_spec.rb +48 -0
- data/spec/spec_helper.rb +16 -0
- data/spec/stubs/alerts_response.xml +362 -0
- data/spec/stubs/getdirections_response.xml +16 -0
- data/spec/stubs/getpatterns_rt22_response.xml +2768 -0
- data/spec/stubs/getpredictions_rt22stpid15895_response.xml +59 -0
- data/spec/stubs/getpredictions_vid4361_response.xml +647 -0
- data/spec/stubs/getroutes_response.xml +774 -0
- data/spec/stubs/getservicebulletins_rt8_response.xml +110 -0
- data/spec/stubs/getstops_response.xml +614 -0
- data/spec/stubs/gettime_response.xml +2 -0
- data/spec/stubs/getvehicles_rt22_response.xml +239 -0
- data/spec/stubs/getvehicles_vid4394_response.xml +23 -0
- data/spec/stubs/route_status8_response.xml +1 -0
- data/spec/stubs/routes_response.xml +1 -0
- data/spec/stubs/ttarivals_stpid30141_response.xml +1 -0
- data/spec/stubs/ttfollow_run217_response.xml +1 -0
- data/spec/stubs/ttpositions_response.xml +1 -0
- data/spec/train_tracker_spec.rb +70 -0
- metadata +234 -0
metadata
ADDED
@@ -0,0 +1,234 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cta_redux
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Hayworth
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.2.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.2.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sequel
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.19.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.19.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sqlite3
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.3.10
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.3.10
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: faraday
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.9.1
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.9.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: faraday_middleware
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.9.1
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.9.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: multi_xml
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.5.5
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.5.5
|
125
|
+
description: |-
|
126
|
+
cta_redux takes the data provided by the CTA in its various forms, and turns it into a clean,
|
127
|
+
cohesive client API that can be used to easily build a transit related project. Using Sequel,
|
128
|
+
we integrate GTFS scheduled service data with live data provided by the CTA's various APIs (like
|
129
|
+
BusTracker, TrainTracker, and the CTA customer alerts feed.
|
130
|
+
email:
|
131
|
+
- ahayworth@gmail.com
|
132
|
+
executables: []
|
133
|
+
extensions: []
|
134
|
+
extra_rdoc_files: []
|
135
|
+
files:
|
136
|
+
- ".gitignore"
|
137
|
+
- ".rspec"
|
138
|
+
- Gemfile
|
139
|
+
- LICENSE
|
140
|
+
- README.md
|
141
|
+
- Rakefile
|
142
|
+
- cta_redux.gemspec
|
143
|
+
- data/.gitkeep
|
144
|
+
- data/cta-gtfs.db.gz
|
145
|
+
- lib/cta_redux.rb
|
146
|
+
- lib/cta_redux/api/api_response.rb
|
147
|
+
- lib/cta_redux/api/bus_tracker.rb
|
148
|
+
- lib/cta_redux/api/customer_alerts.rb
|
149
|
+
- lib/cta_redux/api/train_tracker.rb
|
150
|
+
- lib/cta_redux/bus_tracker.rb
|
151
|
+
- lib/cta_redux/customer_alerts.rb
|
152
|
+
- lib/cta_redux/faraday_middleware/bus_tracker_parser.rb
|
153
|
+
- lib/cta_redux/faraday_middleware/customer_alerts_parser.rb
|
154
|
+
- lib/cta_redux/faraday_middleware/simple_cache.rb
|
155
|
+
- lib/cta_redux/faraday_middleware/train_tracker_parser.rb
|
156
|
+
- lib/cta_redux/models/agency.rb
|
157
|
+
- lib/cta_redux/models/bus.rb
|
158
|
+
- lib/cta_redux/models/calendar.rb
|
159
|
+
- lib/cta_redux/models/route.rb
|
160
|
+
- lib/cta_redux/models/shape.rb
|
161
|
+
- lib/cta_redux/models/stop.rb
|
162
|
+
- lib/cta_redux/models/stop_time.rb
|
163
|
+
- lib/cta_redux/models/train.rb
|
164
|
+
- lib/cta_redux/models/transfer.rb
|
165
|
+
- lib/cta_redux/models/trip.rb
|
166
|
+
- lib/cta_redux/train_tracker.rb
|
167
|
+
- lib/cta_redux/version.rb
|
168
|
+
- script/gtfs_to_sqlite.rb
|
169
|
+
- spec/bus_tracker_spec.rb
|
170
|
+
- spec/customer_alerts_spec.rb
|
171
|
+
- spec/spec_helper.rb
|
172
|
+
- spec/stubs/alerts_response.xml
|
173
|
+
- spec/stubs/getdirections_response.xml
|
174
|
+
- spec/stubs/getpatterns_rt22_response.xml
|
175
|
+
- spec/stubs/getpredictions_rt22stpid15895_response.xml
|
176
|
+
- spec/stubs/getpredictions_vid4361_response.xml
|
177
|
+
- spec/stubs/getroutes_response.xml
|
178
|
+
- spec/stubs/getservicebulletins_rt8_response.xml
|
179
|
+
- spec/stubs/getstops_response.xml
|
180
|
+
- spec/stubs/gettime_response.xml
|
181
|
+
- spec/stubs/getvehicles_rt22_response.xml
|
182
|
+
- spec/stubs/getvehicles_vid4394_response.xml
|
183
|
+
- spec/stubs/route_status8_response.xml
|
184
|
+
- spec/stubs/routes_response.xml
|
185
|
+
- spec/stubs/ttarivals_stpid30141_response.xml
|
186
|
+
- spec/stubs/ttfollow_run217_response.xml
|
187
|
+
- spec/stubs/ttpositions_response.xml
|
188
|
+
- spec/train_tracker_spec.rb
|
189
|
+
homepage: http://ctaredux.ahayworth.com
|
190
|
+
licenses:
|
191
|
+
- MIT
|
192
|
+
metadata: {}
|
193
|
+
post_install_message:
|
194
|
+
rdoc_options: []
|
195
|
+
require_paths:
|
196
|
+
- lib
|
197
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
requirements: []
|
208
|
+
rubyforge_project:
|
209
|
+
rubygems_version: 2.4.5
|
210
|
+
signing_key:
|
211
|
+
specification_version: 4
|
212
|
+
summary: A clean, integrated API for CTA BusTracker, TrainTracker, customer alerts,
|
213
|
+
and GTFS data.
|
214
|
+
test_files:
|
215
|
+
- spec/bus_tracker_spec.rb
|
216
|
+
- spec/customer_alerts_spec.rb
|
217
|
+
- spec/spec_helper.rb
|
218
|
+
- spec/stubs/alerts_response.xml
|
219
|
+
- spec/stubs/getdirections_response.xml
|
220
|
+
- spec/stubs/getpatterns_rt22_response.xml
|
221
|
+
- spec/stubs/getpredictions_rt22stpid15895_response.xml
|
222
|
+
- spec/stubs/getpredictions_vid4361_response.xml
|
223
|
+
- spec/stubs/getroutes_response.xml
|
224
|
+
- spec/stubs/getservicebulletins_rt8_response.xml
|
225
|
+
- spec/stubs/getstops_response.xml
|
226
|
+
- spec/stubs/gettime_response.xml
|
227
|
+
- spec/stubs/getvehicles_rt22_response.xml
|
228
|
+
- spec/stubs/getvehicles_vid4394_response.xml
|
229
|
+
- spec/stubs/route_status8_response.xml
|
230
|
+
- spec/stubs/routes_response.xml
|
231
|
+
- spec/stubs/ttarivals_stpid30141_response.xml
|
232
|
+
- spec/stubs/ttfollow_run217_response.xml
|
233
|
+
- spec/stubs/ttpositions_response.xml
|
234
|
+
- spec/train_tracker_spec.rb
|