ninoxe 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +5 -13
  2. data/app/models/chouette/footnote.rb +7 -0
  3. data/app/models/chouette/line.rb +6 -1
  4. data/app/models/chouette/vehicle_journey.rb +7 -4
  5. data/db/migrate/20150115153453_create_footnotes.rb +11 -0
  6. data/db/migrate/20150119160029_create_vehicle_journey_footnotes.rb +8 -0
  7. data/lib/factories/chouette_footnotes.rb +6 -0
  8. data/lib/ninoxe/version.rb +1 -1
  9. data/spec/dummy/README.rdoc +261 -0
  10. data/spec/dummy/Rakefile +6 -0
  11. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  12. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  13. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  14. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  15. data/spec/dummy/app/mailers/.gitkeep +0 -0
  16. data/spec/dummy/app/models/.gitkeep +0 -0
  17. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  18. data/spec/dummy/config/application.rb +56 -0
  19. data/spec/dummy/config/boot.rb +10 -0
  20. data/{config/database.yml.me → spec/dummy/config/database.yml} +2 -2
  21. data/spec/dummy/config/environment.rb +7 -0
  22. data/spec/dummy/config/environments/development.rb +37 -0
  23. data/spec/dummy/config/environments/production.rb +67 -0
  24. data/spec/dummy/config/environments/test.rb +37 -0
  25. data/spec/dummy/config/initializers/active_record.rb +2 -0
  26. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  27. data/spec/dummy/config/initializers/inflections.rb +15 -0
  28. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  29. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  30. data/spec/dummy/config/initializers/session_store.rb +8 -0
  31. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  32. data/spec/dummy/config/locales/en.yml +5 -0
  33. data/spec/dummy/config/routes.rb +4 -0
  34. data/spec/dummy/config.ru +4 -0
  35. data/spec/dummy/db/schema.rb +485 -0
  36. data/spec/dummy/db/test.sqlite3 +0 -0
  37. data/spec/dummy/lib/assets/.gitkeep +0 -0
  38. data/spec/dummy/log/.gitkeep +0 -0
  39. data/spec/dummy/public/404.html +26 -0
  40. data/spec/dummy/public/422.html +26 -0
  41. data/spec/dummy/public/500.html +25 -0
  42. data/spec/dummy/public/favicon.ico +0 -0
  43. data/spec/dummy/script/rails +6 -0
  44. data/spec/models/chouette/access_link_spec.rb +78 -0
  45. data/spec/models/chouette/access_point_spec.rb +266 -0
  46. data/spec/models/chouette/active_record_spec.rb +121 -0
  47. data/spec/models/chouette/area_type_spec.rb +53 -0
  48. data/spec/models/chouette/company_spec.rb +51 -0
  49. data/spec/models/chouette/connection_link_spec.rb +56 -0
  50. data/spec/models/chouette/direction_spec.rb +60 -0
  51. data/spec/models/chouette/exporter_spec.rb +28 -0
  52. data/spec/models/chouette/file_validator_spec.rb +28 -0
  53. data/spec/models/chouette/footnote_spec.rb +9 -0
  54. data/spec/models/chouette/group_of_line_spec.rb +31 -0
  55. data/spec/models/chouette/journey_pattern_spec.rb +62 -0
  56. data/spec/models/chouette/line_spec.rb +119 -0
  57. data/spec/models/chouette/loader_spec.rb +69 -0
  58. data/spec/models/chouette/network_spec.rb +22 -0
  59. data/spec/models/chouette/object_id_spec.rb +146 -0
  60. data/spec/models/chouette/route_spec.rb +234 -0
  61. data/spec/models/chouette/stop_area_spec.rb +440 -0
  62. data/spec/models/chouette/stop_point_spec.rb +38 -0
  63. data/spec/models/chouette/time_table_period_spec.rb +66 -0
  64. data/spec/models/chouette/time_table_spec.rb +1218 -0
  65. data/spec/models/chouette/transport_mode_spec.rb +64 -0
  66. data/spec/models/chouette/trident_active_record_spec.rb +115 -0
  67. data/spec/models/chouette/vehicle_journey_at_stop_spec.rb +46 -0
  68. data/spec/models/chouette/vehicle_journey_spec.rb +223 -0
  69. data/spec/presenters/chouette/geometry/general_presenter.rb +1 -0
  70. data/spec/presenters/chouette/geometry/line_presenter_spec.rb +13 -0
  71. data/spec/spec_helper.rb +45 -0
  72. metadata +160 -33
  73. data/app/models/chouette/time_table_vehicle_journey.rb +0 -5
  74. data/lib/ninoxe.rb~ +0 -7
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninoxe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Florisson
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-01-20 00:00:00.000000000 Z
14
+ date: 2015-02-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: georuby-ext
@@ -45,28 +45,28 @@ dependencies:
45
45
  name: acts_as_list
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ! '>='
48
+ - - '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: 0.1.6
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ! '>='
55
+ - - '>='
56
56
  - !ruby/object:Gem::Version
57
57
  version: 0.1.6
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: acts_as_tree
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - ! '>='
62
+ - - '>='
63
63
  - !ruby/object:Gem::Version
64
64
  version: 1.1.0
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ! '>='
69
+ - - '>='
70
70
  - !ruby/object:Gem::Version
71
71
  version: 1.1.0
72
72
  - !ruby/object:Gem::Dependency
@@ -101,14 +101,14 @@ dependencies:
101
101
  name: acts-as-taggable-on
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - ! '>='
104
+ - - '>='
105
105
  - !ruby/object:Gem::Version
106
106
  version: '3'
107
107
  type: :runtime
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ! '>='
111
+ - - '>='
112
112
  - !ruby/object:Gem::Version
113
113
  version: '3'
114
114
  - !ruby/object:Gem::Dependency
@@ -129,84 +129,84 @@ dependencies:
129
129
  name: rake
130
130
  requirement: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - ! '>='
132
+ - - '>='
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0.9'
135
135
  type: :development
136
136
  prerelease: false
137
137
  version_requirements: !ruby/object:Gem::Requirement
138
138
  requirements:
139
- - - ! '>='
139
+ - - '>='
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0.9'
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: jquery-rails
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - ! '>='
146
+ - - '>='
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  type: :development
150
150
  prerelease: false
151
151
  version_requirements: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - ! '>='
153
+ - - '>='
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  - !ruby/object:Gem::Dependency
157
157
  name: guard
158
158
  requirement: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - ! '>='
160
+ - - '>='
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  type: :development
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - ! '>='
167
+ - - '>='
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  - !ruby/object:Gem::Dependency
171
171
  name: guard-rspec
172
172
  requirement: !ruby/object:Gem::Requirement
173
173
  requirements:
174
- - - ! '>='
174
+ - - '>='
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  type: :development
178
178
  prerelease: false
179
179
  version_requirements: !ruby/object:Gem::Requirement
180
180
  requirements:
181
- - - ! '>='
181
+ - - '>='
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  - !ruby/object:Gem::Dependency
185
185
  name: guard-bundler
186
186
  requirement: !ruby/object:Gem::Requirement
187
187
  requirements:
188
- - - ! '>='
188
+ - - '>='
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  type: :development
192
192
  prerelease: false
193
193
  version_requirements: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - ! '>='
195
+ - - '>='
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  - !ruby/object:Gem::Dependency
199
199
  name: guard-migrate
200
200
  requirement: !ruby/object:Gem::Requirement
201
201
  requirements:
202
- - - ! '>='
202
+ - - '>='
203
203
  - !ruby/object:Gem::Version
204
204
  version: '0'
205
205
  type: :development
206
206
  prerelease: false
207
207
  version_requirements: !ruby/object:Gem::Requirement
208
208
  requirements:
209
- - - ! '>='
209
+ - - '>='
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  - !ruby/object:Gem::Dependency
@@ -241,14 +241,14 @@ dependencies:
241
241
  name: shoulda-matchers
242
242
  requirement: !ruby/object:Gem::Requirement
243
243
  requirements:
244
- - - ! '>='
244
+ - - '>='
245
245
  - !ruby/object:Gem::Version
246
246
  version: 1.5.6
247
247
  type: :development
248
248
  prerelease: false
249
249
  version_requirements: !ruby/object:Gem::Requirement
250
250
  requirements:
251
- - - ! '>='
251
+ - - '>='
252
252
  - !ruby/object:Gem::Version
253
253
  version: 1.5.6
254
254
  - !ruby/object:Gem::Dependency
@@ -289,9 +289,6 @@ executables: []
289
289
  extensions: []
290
290
  extra_rdoc_files: []
291
291
  files:
292
- - MIT-LICENSE
293
- - README.md
294
- - Rakefile
295
292
  - app/assets/javascripts/ninoxe/application.js
296
293
  - app/assets/stylesheets/ninoxe/application.css
297
294
  - app/controllers/ninoxe/application_controller.rb
@@ -309,6 +306,7 @@ files:
309
306
  - app/models/chouette/direction.rb
310
307
  - app/models/chouette/exporter.rb
311
308
  - app/models/chouette/file_validator.rb
309
+ - app/models/chouette/footnote.rb
312
310
  - app/models/chouette/for_alighting_enumerations.rb
313
311
  - app/models/chouette/for_boarding_enumerations.rb
314
312
  - app/models/chouette/group_of_line.rb
@@ -325,7 +323,6 @@ files:
325
323
  - app/models/chouette/time_table.rb
326
324
  - app/models/chouette/time_table_date.rb
327
325
  - app/models/chouette/time_table_period.rb
328
- - app/models/chouette/time_table_vehicle_journey.rb
329
326
  - app/models/chouette/transport_mode.rb
330
327
  - app/models/chouette/trident_active_record.rb
331
328
  - app/models/chouette/vehicle_journey.rb
@@ -341,7 +338,6 @@ files:
341
338
  - app/views/layouts/ninoxe/application.html.erb
342
339
  - config/database.yml
343
340
  - config/database.yml.ci
344
- - config/database.yml.me
345
341
  - config/database.yml.travis
346
342
  - config/locales/en.yml
347
343
  - config/locales/fr.yml
@@ -396,11 +392,14 @@ files:
396
392
  - db/migrate/20141017075627_add_gtfs_fields_to_lines.rb
397
393
  - db/migrate/20141210123519_add_boarding_and_alighting_to_stop_point.rb
398
394
  - db/migrate/20141216084607_add_registration_number_to_group_of_lines.rb
395
+ - db/migrate/20150115153453_create_footnotes.rb
396
+ - db/migrate/20150119160029_create_vehicle_journey_footnotes.rb
399
397
  - lib/chouette_factories.rb
400
398
  - lib/factories/chouette_access_links.rb
401
399
  - lib/factories/chouette_access_points.rb
402
400
  - lib/factories/chouette_companies.rb
403
401
  - lib/factories/chouette_connection_links.rb
402
+ - lib/factories/chouette_footnotes.rb
404
403
  - lib/factories/chouette_group_of_lines.rb
405
404
  - lib/factories/chouette_journey_pattern.rb
406
405
  - lib/factories/chouette_lines.rb
@@ -411,10 +410,75 @@ files:
411
410
  - lib/factories/chouette_time_table.rb
412
411
  - lib/factories/chouette_vehicle_journey.rb
413
412
  - lib/factories/chouette_vehicle_journey_at_stop.rb
414
- - lib/ninoxe.rb
415
- - lib/ninoxe.rb~
416
413
  - lib/ninoxe/engine.rb
417
414
  - lib/ninoxe/version.rb
415
+ - lib/ninoxe.rb
416
+ - MIT-LICENSE
417
+ - Rakefile
418
+ - README.md
419
+ - spec/dummy/README.rdoc
420
+ - spec/dummy/Rakefile
421
+ - spec/dummy/app/assets/javascripts/application.js
422
+ - spec/dummy/app/assets/stylesheets/application.css
423
+ - spec/dummy/app/controllers/application_controller.rb
424
+ - spec/dummy/app/helpers/application_helper.rb
425
+ - spec/dummy/app/mailers/.gitkeep
426
+ - spec/dummy/app/models/.gitkeep
427
+ - spec/dummy/app/views/layouts/application.html.erb
428
+ - spec/dummy/config.ru
429
+ - spec/dummy/config/application.rb
430
+ - spec/dummy/config/boot.rb
431
+ - spec/dummy/config/database.yml
432
+ - spec/dummy/config/environment.rb
433
+ - spec/dummy/config/environments/development.rb
434
+ - spec/dummy/config/environments/production.rb
435
+ - spec/dummy/config/environments/test.rb
436
+ - spec/dummy/config/initializers/active_record.rb
437
+ - spec/dummy/config/initializers/backtrace_silencers.rb
438
+ - spec/dummy/config/initializers/inflections.rb
439
+ - spec/dummy/config/initializers/mime_types.rb
440
+ - spec/dummy/config/initializers/secret_token.rb
441
+ - spec/dummy/config/initializers/session_store.rb
442
+ - spec/dummy/config/initializers/wrap_parameters.rb
443
+ - spec/dummy/config/locales/en.yml
444
+ - spec/dummy/config/routes.rb
445
+ - spec/dummy/db/schema.rb
446
+ - spec/dummy/db/test.sqlite3
447
+ - spec/dummy/lib/assets/.gitkeep
448
+ - spec/dummy/log/.gitkeep
449
+ - spec/dummy/public/404.html
450
+ - spec/dummy/public/422.html
451
+ - spec/dummy/public/500.html
452
+ - spec/dummy/public/favicon.ico
453
+ - spec/dummy/script/rails
454
+ - spec/models/chouette/access_link_spec.rb
455
+ - spec/models/chouette/access_point_spec.rb
456
+ - spec/models/chouette/active_record_spec.rb
457
+ - spec/models/chouette/area_type_spec.rb
458
+ - spec/models/chouette/company_spec.rb
459
+ - spec/models/chouette/connection_link_spec.rb
460
+ - spec/models/chouette/direction_spec.rb
461
+ - spec/models/chouette/exporter_spec.rb
462
+ - spec/models/chouette/file_validator_spec.rb
463
+ - spec/models/chouette/footnote_spec.rb
464
+ - spec/models/chouette/group_of_line_spec.rb
465
+ - spec/models/chouette/journey_pattern_spec.rb
466
+ - spec/models/chouette/line_spec.rb
467
+ - spec/models/chouette/loader_spec.rb
468
+ - spec/models/chouette/network_spec.rb
469
+ - spec/models/chouette/object_id_spec.rb
470
+ - spec/models/chouette/route_spec.rb
471
+ - spec/models/chouette/stop_area_spec.rb
472
+ - spec/models/chouette/stop_point_spec.rb
473
+ - spec/models/chouette/time_table_period_spec.rb
474
+ - spec/models/chouette/time_table_spec.rb
475
+ - spec/models/chouette/transport_mode_spec.rb
476
+ - spec/models/chouette/trident_active_record_spec.rb
477
+ - spec/models/chouette/vehicle_journey_at_stop_spec.rb
478
+ - spec/models/chouette/vehicle_journey_spec.rb
479
+ - spec/presenters/chouette/geometry/general_presenter.rb
480
+ - spec/presenters/chouette/geometry/line_presenter_spec.rb
481
+ - spec/spec_helper.rb
418
482
  homepage: http://github.com/afimb/ninoxe
419
483
  licenses: []
420
484
  metadata: {}
@@ -424,18 +488,81 @@ require_paths:
424
488
  - lib
425
489
  required_ruby_version: !ruby/object:Gem::Requirement
426
490
  requirements:
427
- - - ! '>='
491
+ - - '>='
428
492
  - !ruby/object:Gem::Version
429
493
  version: '0'
430
494
  required_rubygems_version: !ruby/object:Gem::Requirement
431
495
  requirements:
432
- - - ! '>='
496
+ - - '>='
433
497
  - !ruby/object:Gem::Version
434
498
  version: '0'
435
499
  requirements: []
436
500
  rubyforge_project:
437
- rubygems_version: 2.4.2
501
+ rubygems_version: 2.0.3
438
502
  signing_key:
439
503
  specification_version: 4
440
504
  summary: Library dedicated to Chouette access.
441
- test_files: []
505
+ test_files:
506
+ - spec/dummy/README.rdoc
507
+ - spec/dummy/Rakefile
508
+ - spec/dummy/app/assets/javascripts/application.js
509
+ - spec/dummy/app/assets/stylesheets/application.css
510
+ - spec/dummy/app/controllers/application_controller.rb
511
+ - spec/dummy/app/helpers/application_helper.rb
512
+ - spec/dummy/app/mailers/.gitkeep
513
+ - spec/dummy/app/models/.gitkeep
514
+ - spec/dummy/app/views/layouts/application.html.erb
515
+ - spec/dummy/config.ru
516
+ - spec/dummy/config/application.rb
517
+ - spec/dummy/config/boot.rb
518
+ - spec/dummy/config/database.yml
519
+ - spec/dummy/config/environment.rb
520
+ - spec/dummy/config/environments/development.rb
521
+ - spec/dummy/config/environments/production.rb
522
+ - spec/dummy/config/environments/test.rb
523
+ - spec/dummy/config/initializers/active_record.rb
524
+ - spec/dummy/config/initializers/backtrace_silencers.rb
525
+ - spec/dummy/config/initializers/inflections.rb
526
+ - spec/dummy/config/initializers/mime_types.rb
527
+ - spec/dummy/config/initializers/secret_token.rb
528
+ - spec/dummy/config/initializers/session_store.rb
529
+ - spec/dummy/config/initializers/wrap_parameters.rb
530
+ - spec/dummy/config/locales/en.yml
531
+ - spec/dummy/config/routes.rb
532
+ - spec/dummy/db/schema.rb
533
+ - spec/dummy/db/test.sqlite3
534
+ - spec/dummy/lib/assets/.gitkeep
535
+ - spec/dummy/log/.gitkeep
536
+ - spec/dummy/public/404.html
537
+ - spec/dummy/public/422.html
538
+ - spec/dummy/public/500.html
539
+ - spec/dummy/public/favicon.ico
540
+ - spec/dummy/script/rails
541
+ - spec/models/chouette/access_link_spec.rb
542
+ - spec/models/chouette/access_point_spec.rb
543
+ - spec/models/chouette/active_record_spec.rb
544
+ - spec/models/chouette/area_type_spec.rb
545
+ - spec/models/chouette/company_spec.rb
546
+ - spec/models/chouette/connection_link_spec.rb
547
+ - spec/models/chouette/direction_spec.rb
548
+ - spec/models/chouette/exporter_spec.rb
549
+ - spec/models/chouette/file_validator_spec.rb
550
+ - spec/models/chouette/footnote_spec.rb
551
+ - spec/models/chouette/group_of_line_spec.rb
552
+ - spec/models/chouette/journey_pattern_spec.rb
553
+ - spec/models/chouette/line_spec.rb
554
+ - spec/models/chouette/loader_spec.rb
555
+ - spec/models/chouette/network_spec.rb
556
+ - spec/models/chouette/object_id_spec.rb
557
+ - spec/models/chouette/route_spec.rb
558
+ - spec/models/chouette/stop_area_spec.rb
559
+ - spec/models/chouette/stop_point_spec.rb
560
+ - spec/models/chouette/time_table_period_spec.rb
561
+ - spec/models/chouette/time_table_spec.rb
562
+ - spec/models/chouette/transport_mode_spec.rb
563
+ - spec/models/chouette/trident_active_record_spec.rb
564
+ - spec/models/chouette/vehicle_journey_at_stop_spec.rb
565
+ - spec/models/chouette/vehicle_journey_spec.rb
566
+ - spec/presenters/chouette/geometry/general_presenter.rb
567
+ - spec/presenters/chouette/geometry/line_presenter_spec.rb
568
+ - spec/spec_helper.rb
@@ -1,5 +0,0 @@
1
- class Chouette::TimeTableVehicleJourney < Chouette::ActiveRecord
2
- belongs_to :time_table
3
- belongs_to :vehicle_journey
4
- end
5
-
data/lib/ninoxe.rb~ DELETED
@@ -1,7 +0,0 @@
1
- require "ninoxe/engine"
2
-
3
- require "acts_as_list"
4
- require "composite_primary_keys"
5
-
6
- module Ninoxe
7
- end