ninoxe 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/README.md +4 -0
  2. data/app/models/chouette/access_link.rb +5 -1
  3. data/app/models/chouette/access_point.rb +14 -10
  4. data/app/models/chouette/connection_link.rb +5 -1
  5. data/app/models/chouette/group_of_line.rb +1 -1
  6. data/app/models/chouette/journey_pattern.rb +1 -1
  7. data/app/models/chouette/line.rb +5 -1
  8. data/app/models/chouette/mobility_need.rb +4 -0
  9. data/app/models/chouette/network.rb +1 -1
  10. data/app/models/chouette/pt_link.rb +1 -1
  11. data/app/models/chouette/route.rb +5 -1
  12. data/app/models/chouette/stop_area.rb +21 -13
  13. data/app/models/chouette/stop_point.rb +1 -1
  14. data/app/models/chouette/suitability.rb +5 -0
  15. data/app/models/chouette/time_table.rb +11 -2
  16. data/app/models/chouette/time_table_date.rb +1 -1
  17. data/app/models/chouette/time_table_period.rb +1 -1
  18. data/app/models/chouette/vehicle_journey.rb +1 -1
  19. data/app/models/chouette/vehicle_journey_at_stop.rb +1 -1
  20. data/app/presenters/chouette/geometry/access_link_presenter.rb +11 -0
  21. data/app/presenters/chouette/geometry/access_point_presenter.rb +11 -0
  22. data/app/presenters/chouette/geometry/connection_link_presenter.rb +11 -0
  23. data/app/presenters/chouette/geometry/general_presenter.rb +20 -0
  24. data/app/presenters/chouette/geometry/line_presenter.rb +42 -0
  25. data/app/presenters/chouette/geometry/route_presenter.rb +22 -0
  26. data/app/presenters/chouette/geometry/stop_area_presenter.rb +13 -0
  27. data/db/migrate/20130628124932_remove_projection_from_stop_areas.rb +19 -0
  28. data/db/migrate/20130628124951_remove_projection_from_access_points.rb +19 -0
  29. data/db/migrate/20130708081951_add_accessibility_to_stop_areas.rb +30 -0
  30. data/db/migrate/20130710122648_set_accessibiliity_to_existing_stop_area.rb +16 -0
  31. data/lib/factories/chouette_lines.rb +11 -0
  32. data/lib/ninoxe/version.rb +1 -1
  33. data/spec/models/chouette/access_point_spec.rb +0 -29
  34. data/spec/models/chouette/stop_area_spec.rb +0 -28
  35. data/spec/models/chouette/time_table_spec.rb +35 -13
  36. data/spec/presenters/chouette/geometry/general_presenter.rb +1 -0
  37. data/spec/presenters/chouette/geometry/line_presenter_spec.rb +13 -0
  38. data/spec/spec_helper.rb +0 -17
  39. metadata +242 -206
  40. data/README.rdoc +0 -3
metadata CHANGED
@@ -1,245 +1,267 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ninoxe
3
- version: !ruby/object:Gem::Version
4
- hash: 31
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Marc Florisson
14
9
  - Michel Etienne
15
10
  - Luc Donnet
16
11
  autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
-
20
- date: 2013-04-12 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
14
+ date: 2013-07-12 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: georuby-ext
18
+ requirement: !ruby/object:Gem::Requirement
24
19
  none: false
25
- requirements:
26
- - - "="
27
- - !ruby/object:Gem::Version
28
- hash: 27
29
- segments:
30
- - 0
31
- - 0
32
- - 2
20
+ requirements:
21
+ - - '='
22
+ - !ruby/object:Gem::Version
33
23
  version: 0.0.2
34
- prerelease: false
35
24
  type: :runtime
36
- name: georuby-ext
37
- requirement: *id001
38
- - !ruby/object:Gem::Dependency
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 5
45
- segments:
46
- - 3
47
- - 1
48
- - 3
49
- version: 3.1.3
50
25
  prerelease: false
51
- type: :runtime
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - '='
30
+ - !ruby/object:Gem::Version
31
+ version: 0.0.2
32
+ - !ruby/object:Gem::Dependency
52
33
  name: activerecord
53
- requirement: *id002
54
- - !ruby/object:Gem::Dependency
55
- version_requirements: &id003 !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
56
35
  none: false
57
- requirements:
58
- - - "="
59
- - !ruby/object:Gem::Version
60
- hash: 23
61
- segments:
62
- - 0
63
- - 1
64
- - 6
65
- version: 0.1.6
66
- prerelease: false
36
+ requirements:
37
+ - - ~>
38
+ - !ruby/object:Gem::Version
39
+ version: '3.1'
67
40
  type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.1'
48
+ - !ruby/object:Gem::Dependency
68
49
  name: acts_as_list
69
- requirement: *id003
70
- - !ruby/object:Gem::Dependency
71
- version_requirements: &id004 !ruby/object:Gem::Requirement
50
+ requirement: !ruby/object:Gem::Requirement
72
51
  none: false
73
- requirements:
74
- - - "="
75
- - !ruby/object:Gem::Version
76
- hash: 7
77
- segments:
78
- - 1
79
- - 4
80
- - 0
81
- version: 1.4.0
82
- prerelease: false
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 0.1.6
83
56
  type: :runtime
84
- name: foreigner
85
- requirement: *id004
86
- - !ruby/object:Gem::Dependency
87
- version_requirements: &id005 !ruby/object:Gem::Requirement
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
88
59
  none: false
89
- requirements:
60
+ requirements:
90
61
  - - ~>
91
- - !ruby/object:Gem::Version
92
- hash: 25
93
- segments:
94
- - 0
95
- - 9
96
- version: "0.9"
62
+ - !ruby/object:Gem::Version
63
+ version: 0.1.6
64
+ - !ruby/object:Gem::Dependency
65
+ name: foreigner
66
+ requirement: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - '='
70
+ - !ruby/object:Gem::Version
71
+ version: 1.4.0
72
+ type: :runtime
97
73
  prerelease: false
98
- type: :development
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - '='
78
+ - !ruby/object:Gem::Version
79
+ version: 1.4.0
80
+ - !ruby/object:Gem::Dependency
99
81
  name: rake
100
- requirement: *id005
101
- - !ruby/object:Gem::Dependency
102
- version_requirements: &id006 !ruby/object:Gem::Requirement
82
+ requirement: !ruby/object:Gem::Requirement
103
83
  none: false
104
- requirements:
105
- - - ">="
106
- - !ruby/object:Gem::Version
107
- hash: 3
108
- segments:
109
- - 0
110
- version: "0"
111
- prerelease: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: '0.9'
112
88
  type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ~>
94
+ - !ruby/object:Gem::Version
95
+ version: '0.9'
96
+ - !ruby/object:Gem::Dependency
113
97
  name: jquery-rails
114
- requirement: *id006
115
- - !ruby/object:Gem::Dependency
116
- version_requirements: &id007 !ruby/object:Gem::Requirement
98
+ requirement: !ruby/object:Gem::Requirement
117
99
  none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- hash: 3
122
- segments:
123
- - 0
124
- version: "0"
125
- prerelease: false
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
126
104
  type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
127
113
  name: guard
128
- requirement: *id007
129
- - !ruby/object:Gem::Dependency
130
- version_requirements: &id008 !ruby/object:Gem::Requirement
114
+ requirement: !ruby/object:Gem::Requirement
131
115
  none: false
132
- requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
135
- hash: 3
136
- segments:
137
- - 0
138
- version: "0"
139
- prerelease: false
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
140
120
  type: :development
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ! '>='
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ - !ruby/object:Gem::Dependency
141
129
  name: guard-rspec
142
- requirement: *id008
143
- - !ruby/object:Gem::Dependency
144
- version_requirements: &id009 !ruby/object:Gem::Requirement
130
+ requirement: !ruby/object:Gem::Requirement
145
131
  none: false
146
- requirements:
147
- - - ">="
148
- - !ruby/object:Gem::Version
149
- hash: 3
150
- segments:
151
- - 0
152
- version: "0"
153
- prerelease: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
154
136
  type: :development
137
+ prerelease: false
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ - !ruby/object:Gem::Dependency
155
145
  name: guard-bundler
156
- requirement: *id009
157
- - !ruby/object:Gem::Dependency
158
- version_requirements: &id010 !ruby/object:Gem::Requirement
146
+ requirement: !ruby/object:Gem::Requirement
159
147
  none: false
160
- requirements:
161
- - - ">="
162
- - !ruby/object:Gem::Version
163
- hash: 3
164
- segments:
165
- - 0
166
- version: "0"
148
+ requirements:
149
+ - - ! '>='
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
167
153
  prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ - !ruby/object:Gem::Dependency
161
+ name: guard-migrate
162
+ requirement: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
168
  type: :development
169
+ prerelease: false
170
+ version_requirements: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ! '>='
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ - !ruby/object:Gem::Dependency
169
177
  name: rspec-rails
170
- requirement: *id010
171
- - !ruby/object:Gem::Dependency
172
- version_requirements: &id011 !ruby/object:Gem::Requirement
178
+ requirement: !ruby/object:Gem::Requirement
173
179
  none: false
174
- requirements:
175
- - - ">="
176
- - !ruby/object:Gem::Version
177
- hash: 3
178
- segments:
179
- - 0
180
- version: "0"
181
- prerelease: false
180
+ requirements:
181
+ - - ! '>='
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
182
184
  type: :development
185
+ prerelease: false
186
+ version_requirements: !ruby/object:Gem::Requirement
187
+ none: false
188
+ requirements:
189
+ - - ! '>='
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
192
+ - !ruby/object:Gem::Dependency
183
193
  name: shoulda-matchers
184
- requirement: *id011
185
- - !ruby/object:Gem::Dependency
186
- version_requirements: &id012 !ruby/object:Gem::Requirement
194
+ requirement: !ruby/object:Gem::Requirement
187
195
  none: false
188
- requirements:
189
- - - "="
190
- - !ruby/object:Gem::Version
191
- hash: 11
192
- segments:
193
- - 1
194
- - 7
195
- - 0
196
- version: 1.7.0
196
+ requirements:
197
+ - - ~>
198
+ - !ruby/object:Gem::Version
199
+ version: 1.5.6
200
+ type: :development
197
201
  prerelease: false
202
+ version_requirements: !ruby/object:Gem::Requirement
203
+ none: false
204
+ requirements:
205
+ - - ~>
206
+ - !ruby/object:Gem::Version
207
+ version: 1.5.6
208
+ - !ruby/object:Gem::Dependency
209
+ name: nokogiri
210
+ requirement: !ruby/object:Gem::Requirement
211
+ none: false
212
+ requirements:
213
+ - - ~>
214
+ - !ruby/object:Gem::Version
215
+ version: 1.5.9
198
216
  type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ none: false
220
+ requirements:
221
+ - - ~>
222
+ - !ruby/object:Gem::Version
223
+ version: 1.5.9
224
+ - !ruby/object:Gem::Dependency
199
225
  name: factory_girl_rails
200
- requirement: *id012
201
- - !ruby/object:Gem::Dependency
202
- version_requirements: &id013 !ruby/object:Gem::Requirement
226
+ requirement: !ruby/object:Gem::Requirement
203
227
  none: false
204
- requirements:
205
- - - ">="
206
- - !ruby/object:Gem::Version
207
- hash: 3
208
- segments:
209
- - 0
210
- version: "0"
211
- prerelease: false
228
+ requirements:
229
+ - - '='
230
+ - !ruby/object:Gem::Version
231
+ version: 1.7.0
212
232
  type: :development
213
- name: database_cleaner
214
- requirement: *id013
215
- - !ruby/object:Gem::Dependency
216
- version_requirements: &id014 !ruby/object:Gem::Requirement
217
- none: false
218
- requirements:
219
- - - ">="
220
- - !ruby/object:Gem::Version
221
- hash: 5
222
- segments:
223
- - 3
224
- - 1
225
- - 3
226
- version: 3.1.3
227
233
  prerelease: false
228
- type: :development
234
+ version_requirements: !ruby/object:Gem::Requirement
235
+ none: false
236
+ requirements:
237
+ - - '='
238
+ - !ruby/object:Gem::Version
239
+ version: 1.7.0
240
+ - !ruby/object:Gem::Dependency
229
241
  name: rails
230
- requirement: *id014
242
+ requirement: !ruby/object:Gem::Requirement
243
+ none: false
244
+ requirements:
245
+ - - ~>
246
+ - !ruby/object:Gem::Version
247
+ version: '3.1'
248
+ type: :development
249
+ prerelease: false
250
+ version_requirements: !ruby/object:Gem::Requirement
251
+ none: false
252
+ requirements:
253
+ - - ~>
254
+ - !ruby/object:Gem::Version
255
+ version: '3.1'
231
256
  description: This library provides a model to navigate through Chouette database.
232
- email:
257
+ email:
233
258
  - mflorisson@cityway.fr
234
259
  - metienne@cityway.fr
235
260
  - ldonnet@cityway.fr
236
261
  executables: []
237
-
238
262
  extensions: []
239
-
240
263
  extra_rdoc_files: []
241
-
242
- files:
264
+ files:
243
265
  - app/assets/javascripts/ninoxe/application.js
244
266
  - app/assets/stylesheets/ninoxe/application.css
245
267
  - app/controllers/ninoxe/application_controller.rb
@@ -262,12 +284,14 @@ files:
262
284
  - app/models/chouette/line.rb
263
285
  - app/models/chouette/link_orientation_type.rb
264
286
  - app/models/chouette/loader.rb
287
+ - app/models/chouette/mobility_need.rb
265
288
  - app/models/chouette/network.rb
266
289
  - app/models/chouette/object_id.rb
267
290
  - app/models/chouette/pt_link.rb
268
291
  - app/models/chouette/route.rb
269
292
  - app/models/chouette/stop_area.rb
270
293
  - app/models/chouette/stop_point.rb
294
+ - app/models/chouette/suitability.rb
271
295
  - app/models/chouette/time_table.rb
272
296
  - app/models/chouette/time_table_date.rb
273
297
  - app/models/chouette/time_table_period.rb
@@ -277,6 +301,13 @@ files:
277
301
  - app/models/chouette/vehicle_journey.rb
278
302
  - app/models/chouette/vehicle_journey_at_stop.rb
279
303
  - app/models/chouette/wayback.rb
304
+ - app/presenters/chouette/geometry/access_link_presenter.rb
305
+ - app/presenters/chouette/geometry/access_point_presenter.rb
306
+ - app/presenters/chouette/geometry/connection_link_presenter.rb
307
+ - app/presenters/chouette/geometry/general_presenter.rb
308
+ - app/presenters/chouette/geometry/line_presenter.rb
309
+ - app/presenters/chouette/geometry/route_presenter.rb
310
+ - app/presenters/chouette/geometry/stop_area_presenter.rb
280
311
  - app/views/layouts/ninoxe/application.html.erb
281
312
  - config/database.yml
282
313
  - config/database.yml.ci
@@ -314,6 +345,10 @@ files:
314
345
  - db/migrate/20130410063411_add_shortcut_to_time_table.rb
315
346
  - db/migrate/20130410100706_set_shortcut_to_existing_time_table.rb
316
347
  - db/migrate/20130410143542_resize_chouette_columns.rb
348
+ - db/migrate/20130628124932_remove_projection_from_stop_areas.rb
349
+ - db/migrate/20130628124951_remove_projection_from_access_points.rb
350
+ - db/migrate/20130708081951_add_accessibility_to_stop_areas.rb
351
+ - db/migrate/20130710122648_set_accessibiliity_to_existing_stop_area.rb
317
352
  - lib/chouette_factories.rb
318
353
  - lib/factories/chouette_access_links.rb
319
354
  - lib/factories/chouette_access_points.rb
@@ -334,7 +369,7 @@ files:
334
369
  - lib/ninoxe.rb
335
370
  - MIT-LICENSE
336
371
  - Rakefile
337
- - README.rdoc
372
+ - README.md
338
373
  - spec/dummy/README.rdoc
339
374
  - spec/dummy/Rakefile
340
375
  - spec/dummy/app/assets/javascripts/application.js
@@ -391,41 +426,40 @@ files:
391
426
  - spec/models/chouette/transport_mode_spec.rb
392
427
  - spec/models/chouette/vehicle_journey_at_stop_spec.rb
393
428
  - spec/models/chouette/vehicle_journey_spec.rb
429
+ - spec/presenters/chouette/geometry/general_presenter.rb
430
+ - spec/presenters/chouette/geometry/line_presenter_spec.rb
394
431
  - spec/spec_helper.rb
395
- homepage: ""
432
+ homepage: ''
396
433
  licenses: []
397
-
398
434
  post_install_message:
399
435
  rdoc_options: []
400
-
401
- require_paths:
436
+ require_paths:
402
437
  - lib
403
- required_ruby_version: !ruby/object:Gem::Requirement
438
+ required_ruby_version: !ruby/object:Gem::Requirement
404
439
  none: false
405
- requirements:
406
- - - ">="
407
- - !ruby/object:Gem::Version
408
- hash: 3
409
- segments:
440
+ requirements:
441
+ - - ! '>='
442
+ - !ruby/object:Gem::Version
443
+ version: '0'
444
+ segments:
410
445
  - 0
411
- version: "0"
412
- required_rubygems_version: !ruby/object:Gem::Requirement
446
+ hash: 4191513052071173546
447
+ required_rubygems_version: !ruby/object:Gem::Requirement
413
448
  none: false
414
- requirements:
415
- - - ">="
416
- - !ruby/object:Gem::Version
417
- hash: 3
418
- segments:
449
+ requirements:
450
+ - - ! '>='
451
+ - !ruby/object:Gem::Version
452
+ version: '0'
453
+ segments:
419
454
  - 0
420
- version: "0"
455
+ hash: 4191513052071173546
421
456
  requirements: []
422
-
423
457
  rubyforge_project:
424
458
  rubygems_version: 1.8.24
425
459
  signing_key:
426
460
  specification_version: 3
427
461
  summary: Library dedicated to Chouette access.
428
- test_files:
462
+ test_files:
429
463
  - spec/dummy/README.rdoc
430
464
  - spec/dummy/Rakefile
431
465
  - spec/dummy/app/assets/javascripts/application.js
@@ -482,4 +516,6 @@ test_files:
482
516
  - spec/models/chouette/transport_mode_spec.rb
483
517
  - spec/models/chouette/vehicle_journey_at_stop_spec.rb
484
518
  - spec/models/chouette/vehicle_journey_spec.rb
519
+ - spec/presenters/chouette/geometry/general_presenter.rb
520
+ - spec/presenters/chouette/geometry/line_presenter_spec.rb
485
521
  - spec/spec_helper.rb
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = Ninoxe {<img src="https://travis-ci.org/dryade/ninoxe.png?branch=master" alt="Build Status" />}[https://travis-ci.org/dryade/ninoxe] {<img src="https://codeclimate.com/badge.png" />}[https://codeclimate.com/github/dryade/ninoxe]
2
-
3
- This project rocks and uses MIT-LICENSE.