gtfs-engine 1.0.1 → 1.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ccd108054826406648bc14e7db18413757e8f70
4
- data.tar.gz: c4b3429fab2af34f24a797baf641a432f83ac08e
3
+ metadata.gz: a27ee4db55b9a565bef06a618afe7df426fe8ce4
4
+ data.tar.gz: 89a958b39c0ea0dc8058198633c30234c1e1e09b
5
5
  SHA512:
6
- metadata.gz: b2c06f19642fd916cd053eeec9be42b79473a5915bc0f6dac89ad98c7f377e98a8a1d89597d9f2708763a49d0b9f7f1322c729649647228bb24340252a765a0a
7
- data.tar.gz: 035324c3fc3446413c5c02850e7371344716b608625dfcb1da4c880aa384b4dbacc45598557658183dc73e08191824067ce0829d36ea6f318d1db0b5c0a289f6
6
+ metadata.gz: e3769374d0a67009cf466d5693f59fe20fe30418acda7f5580ff0d6f5775ca5a896b877189fe5fa9f99c4c96fc2d6f088c48f41d380658cadbcd6c38e478e231
7
+ data.tar.gz: 0c3f532de447fe10279c48fbb97b0b93a44de8c320f6ea23ca7981771b69336927dab3ac14b3619e664a3c5b4ceab07c691aab967c7eb30b9b9012c6767f34d4
@@ -0,0 +1,11 @@
1
+ h1. gtfs-engine
2
+
3
+ @gtfs-engine@ is a "Rails Engine":http://guides.rubyonrails.org/engines.html which will add GTFS(General Transit Feed Specification) support to your application. It provides both the resources and controller actions necessary to provide a RESTful interface to one or more GTFS data sets.
4
+
5
+ See "*sangster.github.io/gtfs-engine*"://sangster.github.io/gtfs-engine more more information on how to use this engine.
6
+
7
+ h2. Sub-Components
8
+
9
+ This Rails Engine relies on the "gtfs-reader"://github.com/sangster/gtfs-reader rubygem to process the actual ZIP files in which GTFS data sets are provided.
10
+
11
+
@@ -17,7 +17,7 @@ module GtfsEngine
17
17
  include Concerns::Controllers::Gtfs
18
18
 
19
19
  filters :service_id,
20
- :headsign,
20
+ :trip_headsign,
21
21
  :short_name,
22
22
  :direction_id,
23
23
  :block_id,
@@ -20,9 +20,7 @@ module GtfsEngine
20
20
 
21
21
  json.status 'success'
22
22
  json.data do
23
- json.set! controller_name do
24
- json.array!(records) {|record| json.extract! record, *fields }
25
- end
23
+ json.array!(records) {|record| json.extract! record, *fields }
26
24
  end
27
25
  end
28
26
  end
@@ -32,9 +30,7 @@ module GtfsEngine
32
30
  json.ignore_nil! true
33
31
  json.status 'success'
34
32
  json.data do
35
- json.set! controller_name.singularize do
36
- json.extract! record, *fields
37
- end
33
+ json.extract! record, *fields
38
34
  end
39
35
  end
40
36
  end
@@ -17,7 +17,7 @@ module GtfsEngine
17
17
  # The following four lines are generated, so don't mess with them.
18
18
  MAJOR = 1
19
19
  MINOR = 0
20
- PATCH = 1
20
+ PATCH = 5
21
21
  BUILD = nil
22
22
 
23
23
  def self.to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtfs-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Sangster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-22 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.5'
55
- - !ruby/object:Gem::Dependency
56
- name: activesupport
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '4.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.0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: pry-rails
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -142,8 +128,10 @@ email: jon@ertt.ca
142
128
  executables:
143
129
  - rails
144
130
  extensions: []
145
- extra_rdoc_files: []
131
+ extra_rdoc_files:
132
+ - README.textile
146
133
  files:
134
+ - README.textile
147
135
  - Rakefile
148
136
  - app/controllers/gtfs_engine/agencies_controller.rb
149
137
  - app/controllers/gtfs_engine/application_controller.rb