ninoxe 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +13 -5
  2. data/app/models/chouette/company.rb +3 -4
  3. data/app/models/chouette/line.rb +0 -1
  4. data/app/models/chouette/network.rb +4 -5
  5. data/app/models/chouette/stop_area.rb +25 -26
  6. data/config/database.yml.me +11 -0
  7. data/db/migrate/20150630135517_remove_uniqueness_for_registration_number.rb +22 -0
  8. data/lib/ninoxe.rb~ +7 -0
  9. data/lib/ninoxe/version.rb +1 -1
  10. metadata +45 -212
  11. data/spec/dummy/README.rdoc +0 -28
  12. data/spec/dummy/Rakefile +0 -6
  13. data/spec/dummy/app/assets/images/.keep +0 -0
  14. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  15. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  16. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  17. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  18. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  19. data/spec/dummy/app/mailers/.keep +0 -0
  20. data/spec/dummy/app/models/.keep +0 -0
  21. data/spec/dummy/app/models/concerns/.keep +0 -0
  22. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  23. data/spec/dummy/bin/bundle +0 -3
  24. data/spec/dummy/bin/rails +0 -4
  25. data/spec/dummy/bin/rake +0 -4
  26. data/spec/dummy/config.ru +0 -4
  27. data/spec/dummy/config/application.rb +0 -28
  28. data/spec/dummy/config/boot.rb +0 -5
  29. data/spec/dummy/config/database.yml +0 -19
  30. data/spec/dummy/config/environment.rb +0 -5
  31. data/spec/dummy/config/environments/development.rb +0 -29
  32. data/spec/dummy/config/environments/production.rb +0 -80
  33. data/spec/dummy/config/environments/test.rb +0 -36
  34. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  35. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  36. data/spec/dummy/config/initializers/inflections.rb +0 -16
  37. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  38. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  39. data/spec/dummy/config/initializers/session_store.rb +0 -3
  40. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  41. data/spec/dummy/config/locales/en.yml +0 -23
  42. data/spec/dummy/config/locales/fr.yml +0 -23
  43. data/spec/dummy/config/routes.rb +0 -4
  44. data/spec/dummy/db/schema.rb +0 -489
  45. data/spec/dummy/db/test.sqlite3 +0 -0
  46. data/spec/dummy/lib/assets/.keep +0 -0
  47. data/spec/dummy/log/.keep +0 -0
  48. data/spec/dummy/public/404.html +0 -58
  49. data/spec/dummy/public/422.html +0 -58
  50. data/spec/dummy/public/500.html +0 -57
  51. data/spec/dummy/public/favicon.ico +0 -0
  52. data/spec/dummy/script/rails +0 -6
  53. data/spec/factories/chouette_access_links.rb +0 -13
  54. data/spec/factories/chouette_access_points.rb +0 -12
  55. data/spec/factories/chouette_companies.rb +0 -9
  56. data/spec/factories/chouette_connection_links.rb +0 -13
  57. data/spec/factories/chouette_footnotes.rb +0 -10
  58. data/spec/factories/chouette_group_of_lines.rb +0 -9
  59. data/spec/factories/chouette_journey_pattern.rb +0 -40
  60. data/spec/factories/chouette_lines.rb +0 -44
  61. data/spec/factories/chouette_networks.rb +0 -9
  62. data/spec/factories/chouette_routes.rb +0 -26
  63. data/spec/factories/chouette_stop_areas.rb +0 -12
  64. data/spec/factories/chouette_stop_points.rb +0 -10
  65. data/spec/factories/chouette_time_table.rb +0 -37
  66. data/spec/factories/chouette_vehicle_journey.rb +0 -66
  67. data/spec/factories/chouette_vehicle_journey_at_stop.rb +0 -8
  68. data/spec/models/chouette/access_link_spec.rb +0 -82
  69. data/spec/models/chouette/access_point_spec.rb +0 -269
  70. data/spec/models/chouette/active_record_spec.rb +0 -121
  71. data/spec/models/chouette/area_type_spec.rb +0 -53
  72. data/spec/models/chouette/company_spec.rb +0 -51
  73. data/spec/models/chouette/connection_link_spec.rb +0 -60
  74. data/spec/models/chouette/direction_spec.rb +0 -60
  75. data/spec/models/chouette/exporter_spec.rb +0 -28
  76. data/spec/models/chouette/file_validator_spec.rb +0 -28
  77. data/spec/models/chouette/footnote_spec.rb +0 -9
  78. data/spec/models/chouette/group_of_line_spec.rb +0 -31
  79. data/spec/models/chouette/journey_pattern_spec.rb +0 -64
  80. data/spec/models/chouette/line_spec.rb +0 -123
  81. data/spec/models/chouette/loader_spec.rb +0 -69
  82. data/spec/models/chouette/network_spec.rb +0 -22
  83. data/spec/models/chouette/object_id_spec.rb +0 -149
  84. data/spec/models/chouette/route_spec.rb +0 -238
  85. data/spec/models/chouette/stop_area_spec.rb +0 -443
  86. data/spec/models/chouette/stop_point_spec.rb +0 -41
  87. data/spec/models/chouette/time_table_period_spec.rb +0 -66
  88. data/spec/models/chouette/time_table_spec.rb +0 -1266
  89. data/spec/models/chouette/transport_mode_spec.rb +0 -64
  90. data/spec/models/chouette/trident_active_record_spec.rb +0 -115
  91. data/spec/models/chouette/vehicle_journey_at_stop_spec.rb +0 -47
  92. data/spec/models/chouette/vehicle_journey_spec.rb +0 -223
  93. data/spec/presenters/chouette/geometry/general_presenter.rb +0 -1
  94. data/spec/presenters/chouette/geometry/line_presenter_spec.rb +0 -13
  95. data/spec/spec_helper.rb +0 -58
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 00251189c84f005b277cc0237fea8d2d68674e4a
4
- data.tar.gz: 45199b49e8b0e9483cf35d14981542783e4bf7b7
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjIyZGZjMWU1NGQzMzYxOWIzNDQzOTU5YmYwNGFjZjhjZTU3Y2YwYw==
5
+ data.tar.gz: !binary |-
6
+ ZGIwOGEyODc1NWRkMWNiMDRjYTZjN2I2NDU3NTJlNjExNDhkNWZhYw==
5
7
  SHA512:
6
- metadata.gz: 65d6c2a966940aa23f9e1bddc7ddf29c5efa43ec27cacba74759d64c5a74e0fda9e33238bc6e58337d78a126941f331ebe7069c035dd799541e62de04b7b29d4
7
- data.tar.gz: 6abccc002329cc535fe7df7586ea75baf09e80a14af49b2f9ee0f26a6e83f5a6d8a0f32aac45ec40d288e6d651cccdabd96ee83ecf0877d210d213fb4ffd0eb6
8
+ metadata.gz: !binary |-
9
+ ZTBhYjA0MzcxZmQ2ODExNmNlZDIyMjNiZjUzZmZhZDgwNjczODgwMWU3Mzhm
10
+ NjlkMWY1Yzg3NGEzYTk4MzU1ZWExODU1OGNlYTJhYWUyMjU0MmE2ZjRiZDU0
11
+ MmE4MjA4MTFhZmY0ZGVlOTc1ZTQzYTIyOWNiMDQxNDU2NmJmYWU=
12
+ data.tar.gz: !binary |-
13
+ ZDczOTVjNTJlN2I0NjVlNTI3ZTY1YmI2MzlkNzU5Y2E2ZGY5MTAxYzZhMDBh
14
+ NGUwZDM3NjYxZmE5N2IxNTI4MjEyOTRhYTcyMzdkZTBlYzhmYTBjNTJmYWY3
15
+ MDVkOGZjN2RhOWI4YmE5NTFlNmI2OTkxMjQxMGJiYzgxNGIxMzg=
@@ -1,8 +1,7 @@
1
1
  class Chouette::Company < Chouette::TridentActiveRecord
2
2
  has_many :lines
3
-
3
+
4
4
  validates_presence_of :registration_number
5
- validates_uniqueness_of :registration_number
6
5
  validates_format_of :registration_number, :with => %r{\A[0-9A-Za-z_-]+\Z}
7
6
 
8
7
  validates_presence_of :name
@@ -12,11 +11,11 @@ class Chouette::Company < Chouette::TridentActiveRecord
12
11
  # attr_accessible :url, :time_zone
13
12
 
14
13
  validates_format_of :url, :with => %r{\Ahttps?:\/\/([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?\Z}, :allow_nil => true, :allow_blank => true
15
-
14
+
16
15
  def self.nullable_attributes
17
16
  [:organizational_unit, :operating_department_name, :code, :phone, :fax, :email, :url, :time_zone]
18
17
  end
19
-
18
+
20
19
 
21
20
  end
22
21
 
@@ -30,7 +30,6 @@ class Chouette::Line < Chouette::TridentActiveRecord
30
30
  validates_presence_of :company
31
31
 
32
32
  validates_presence_of :registration_number
33
- validates_uniqueness_of :registration_number
34
33
  validates_format_of :registration_number, :with => %r{\A[\d\w_\-]+\Z}
35
34
  validates_format_of :url, :with => %r{\Ahttps?:\/\/([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?\Z}, :allow_nil => true, :allow_blank => true
36
35
  validates_format_of :color, :with => %r{\A[0-9a-fA-F]{6}\Z}, :allow_nil => true, :allow_blank => true
@@ -1,11 +1,10 @@
1
1
  class Chouette::Network < Chouette::TridentActiveRecord
2
2
  # FIXME http://jira.codehaus.org/browse/JRUBY-6358
3
3
  self.primary_key = "id"
4
-
4
+
5
5
  has_many :lines
6
6
 
7
7
  validates_presence_of :registration_number
8
- validates_uniqueness_of :registration_number
9
8
  validates_format_of :registration_number, :with => %r{\A[0-9A-Za-z_-]+\Z}
10
9
 
11
10
  validates_presence_of :name
@@ -16,11 +15,11 @@ class Chouette::Network < Chouette::TridentActiveRecord
16
15
  def self.object_id_key
17
16
  "GroupOfLine"
18
17
  end
19
-
18
+
20
19
  def self.nullable_attributes
21
20
  [:source_name, :source_type, :source_identifier, :comment]
22
21
  end
23
-
22
+
24
23
  def commercial_stop_areas
25
24
  Chouette::StopArea.joins(:children => [:stop_points => [:route => [:line => :network] ] ]).where(:networks => {:id => self.id}).uniq
26
25
  end
@@ -28,6 +27,6 @@ class Chouette::Network < Chouette::TridentActiveRecord
28
27
  def stop_areas
29
28
  Chouette::StopArea.joins(:stop_points => [:route => [:line => :network] ]).where(:networks => {:id => self.id})
30
29
  end
31
-
30
+
32
31
  end
33
32
 
@@ -16,7 +16,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
16
16
  attr_accessor :stop_area_type
17
17
  attr_accessor :children_ids
18
18
  attr_writer :coordinates
19
-
19
+
20
20
  # attr_accessible :routing_stop_ids, :routing_line_ids, :children_ids, :stop_area_type, :parent_id, :objectid
21
21
  # attr_accessible :object_version, :creation_time, :creator_id, :name, :comment, :area_type, :registration_number
22
22
  # attr_accessible :nearest_topic_name, :fare_code, :longitude, :latitude, :long_lat_type
@@ -24,8 +24,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
24
24
  # attr_accessible :mobility_restricted_suitability, :stairs_availability, :lift_availability, :int_user_needs
25
25
  # attr_accessible :coordinates
26
26
  # attr_accessible :url, :time_zone
27
-
28
- validates_uniqueness_of :registration_number, :allow_nil => true, :allow_blank => true
27
+
29
28
  validates_format_of :registration_number, :with => %r{\A[\d\w_\-]+\Z}, :allow_blank => true
30
29
  validates_presence_of :name
31
30
  validates_presence_of :area_type
@@ -39,26 +38,26 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
39
38
  validates_format_of :url, :with => %r{\Ahttps?:\/\/([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?\Z}, :allow_nil => true, :allow_blank => true
40
39
 
41
40
  def self.nullable_attributes
42
- [:registration_number, :street_name, :country_code, :fare_code,
41
+ [:registration_number, :street_name, :country_code, :fare_code,
43
42
  :nearest_topic_name, :comment, :long_lat_type, :zip_code, :city_name, :url, :time_zone]
44
43
  end
45
44
 
46
45
  after_update :clean_invalid_access_links
47
-
46
+
48
47
  before_save :coordinates_to_lat_lng
49
48
 
50
49
  def combine_lat_lng
51
50
  if self.latitude.nil? || self.longitude.nil?
52
51
  ""
53
52
  else
54
- self.latitude.to_s+","+self.longitude.to_s
53
+ self.latitude.to_s+","+self.longitude.to_s
55
54
  end
56
55
  end
57
-
56
+
58
57
  def coordinates
59
58
  @coordinates || combine_lat_lng
60
59
  end
61
-
60
+
62
61
  def coordinates_to_lat_lng
63
62
  if ! @coordinates.nil?
64
63
  if @coordinates.empty?
@@ -68,9 +67,9 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
68
67
  self.latitude = BigDecimal.new(@coordinates.split(",").first)
69
68
  self.longitude = BigDecimal.new(@coordinates.split(",").last)
70
69
  end
71
- @coordinates = nil
70
+ @coordinates = nil
72
71
  end
73
- end
72
+ end
74
73
 
75
74
  def children_in_depth
76
75
  return [] if self.children.empty?
@@ -88,7 +87,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
88
87
  when "StopPlace" then Chouette::StopArea.where(:area_type => ['StopPlace', 'CommercialStopPoint']) - [self]
89
88
  when "ITL" then Chouette::StopArea.where(:area_type => ['Quay', 'BoardingPosition', 'StopPlace', 'CommercialStopPoint'])
90
89
  end
91
-
90
+
92
91
  end
93
92
 
94
93
  def possible_parents
@@ -123,7 +122,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
123
122
  def self.stop_place
124
123
  where :area_type => "StopPlace"
125
124
  end
126
-
125
+
127
126
  def self.physical
128
127
  where :area_type => [ "BoardingPosition", "Quay" ]
129
128
  end
@@ -145,7 +144,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
145
144
  self.latitude, self.longitude, self.long_lat_type = geometry.lat, geometry.lng, "WGS84"
146
145
  end
147
146
 
148
- def position
147
+ def position
149
148
  geometry
150
149
  end
151
150
 
@@ -156,7 +155,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
156
155
  self.longitude = position.lng
157
156
  end
158
157
 
159
- def default_position
158
+ def default_position
160
159
  # for first StopArea ... the bounds is nil :(
161
160
  Chouette::StopArea.bounds and Chouette::StopArea.bounds.center
162
161
  end
@@ -166,7 +165,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
166
165
 
167
166
  lat_degree_units = units_per_latitude_degree(:kms)
168
167
  lng_degree_units = units_per_longitude_degree(origin.lat, :kms)
169
-
168
+
170
169
  where "SQRT(POW(#{lat_degree_units}*(#{origin.lat}-latitude),2)+POW(#{lng_degree_units}*(#{origin.lng}-longitude),2)) <= #{distance}"
171
170
  end
172
171
 
@@ -192,7 +191,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
192
191
  area_type && Chouette::AreaType.new(area_type.underscore)
193
192
  end
194
193
 
195
- def stop_area_type=(stop_area_type)
194
+ def stop_area_type=(stop_area_type)
196
195
  self.area_type = (stop_area_type ? stop_area_type.camelcase : nil)
197
196
  if self.area_type == 'Itl'
198
197
  self.area_type = 'ITL'
@@ -219,7 +218,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
219
218
  child.update_attribute :parent_id, self.id
220
219
  end
221
220
  end
222
-
221
+
223
222
  def routing_stop_ids=(routing_stop_ids)
224
223
  stops = routing_stop_ids.split(',').uniq
225
224
  self.routing_stops.clear
@@ -263,7 +262,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
263
262
  children_geometries = children.with_geometry.map(&:geometry).uniq
264
263
  GeoRuby::SimpleFeatures::Point.centroid children_geometries if children_geometries.present?
265
264
  end
266
-
265
+
267
266
  def generic_access_link_matrix
268
267
  matrix = Array.new
269
268
  access_points.each do |access_point|
@@ -279,17 +278,17 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
279
278
  end
280
279
  matrix
281
280
  end
282
-
281
+
283
282
  def children_at_base
284
283
  list = Array.new
285
284
  children_in_depth.each do |child|
286
285
  if child.area_type == 'Quay' || child.area_type == 'BoardingPosition'
287
286
  list << child
288
- end
287
+ end
289
288
  end
290
289
  list
291
290
  end
292
-
291
+
293
292
  def parents
294
293
  list = Array.new
295
294
  if !parent.nil?
@@ -298,7 +297,7 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
298
297
  end
299
298
  list
300
299
  end
301
-
300
+
302
301
  def clean_invalid_access_links
303
302
  stop_parents = parents
304
303
  access_links.each do |link|
@@ -310,13 +309,13 @@ class Chouette::StopArea < Chouette::TridentActiveRecord
310
309
  child.clean_invalid_access_links
311
310
  end
312
311
  end
313
-
312
+
314
313
  def duplicate
315
- sa = self.deep_clone :except => [:object_version, :parent_id, :registration_number]
314
+ sa = self.deep_clone :except => [:object_version, :parent_id, :registration_number]
316
315
  sa.uniq_objectid
317
316
  sa.name = I18n.t("activerecord.copy", :name => self.name)
318
317
  sa
319
318
  end
320
-
321
-
319
+
320
+
322
321
  end
@@ -0,0 +1,11 @@
1
+ development:
2
+ adapter: postgresql
3
+ database: ninoxe_dev
4
+ username: <%= ENV['USER'] %>
5
+ password: <%= ENV['USER'] %>
6
+
7
+ test:
8
+ adapter: postgresql
9
+ database: ninoxe_test
10
+ username: <%= ENV['USER'] %>
11
+ password: <%= ENV['USER'] %>
@@ -0,0 +1,22 @@
1
+ class RemoveUniquenessForRegistrationNumber < ActiveRecord::Migration
2
+ def up
3
+ remove_index "lines", name: "lines_registration_number_key" if index_exists?(:lines, :registration_number, name: "lines_registration_number_key")
4
+ add_index "lines", ["registration_number"], :name => "lines_registration_number_key"
5
+
6
+ remove_index "companies", name: "companies_registration_number_key" if index_exists?(:companies, :registration_number, name: "companies_registration_number_key")
7
+ add_index "companies", ["registration_number"], :name => "companies_registration_number_key"
8
+
9
+ remove_index "networks", name: "networks_registration_number_key" if index_exists?(:networks, :registration_number, name: "networks_registration_number_key")
10
+ add_index "networks", ["registration_number"], :name => "networks_registration_number_key"
11
+ end
12
+ def down
13
+ remove_index "lines", name: "lines_registration_number_key" if index_exists?(:lines, :registration_number, name: "lines_registration_number_key")
14
+ add_index "lines", ["registration_number"], :name => "lines_registration_number_key", :unique => true
15
+
16
+ remove_index "companies", name: "companies_registration_number_key" if index_exists?(:companies, :registration_number, name: "companies_registration_number_key")
17
+ add_index "companies", ["registration_number"], :name => "companies_registration_number_key", :unique => true
18
+
19
+ remove_index "networks", name: "networks_registration_number_key" if index_exists?(:networks, :registration_number, name: "networks_registration_number_key")
20
+ add_index "networks", ["registration_number"], :name => "networks_registration_number_key", :unique => true
21
+ end
22
+ end
data/lib/ninoxe.rb~ ADDED
@@ -0,0 +1,7 @@
1
+ require "ninoxe/engine"
2
+
3
+ require "acts_as_list"
4
+ require "composite_primary_keys"
5
+
6
+ module Ninoxe
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Ninoxe
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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.2.0
4
+ version: 1.2.1
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-06-11 00:00:00.000000000 Z
14
+ date: 2015-09-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: georuby-ext
@@ -31,42 +31,42 @@ dependencies:
31
31
  name: activerecord
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - "~>"
34
+ - - ~>
35
35
  - !ruby/object:Gem::Version
36
36
  version: 4.1.1
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "~>"
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
43
  version: 4.1.1
44
44
  - !ruby/object:Gem::Dependency
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
@@ -87,182 +87,182 @@ dependencies:
87
87
  name: deep_cloneable
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - "~>"
90
+ - - ~>
91
91
  - !ruby/object:Gem::Version
92
92
  version: 2.0.0
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - "~>"
97
+ - - ~>
98
98
  - !ruby/object:Gem::Version
99
99
  version: 2.0.0
100
100
  - !ruby/object:Gem::Dependency
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
115
115
  name: enumerize
116
116
  requirement: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - "~>"
118
+ - - ~>
119
119
  - !ruby/object:Gem::Version
120
120
  version: 0.10.0
121
121
  type: :runtime
122
122
  prerelease: false
123
123
  version_requirements: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - "~>"
125
+ - - ~>
126
126
  - !ruby/object:Gem::Version
127
127
  version: 0.10.0
128
128
  - !ruby/object:Gem::Dependency
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
213
213
  name: rspec-rails
214
214
  requirement: !ruby/object:Gem::Requirement
215
215
  requirements:
216
- - - "~>"
216
+ - - ~>
217
217
  - !ruby/object:Gem::Version
218
218
  version: 3.1.0
219
219
  type: :development
220
220
  prerelease: false
221
221
  version_requirements: !ruby/object:Gem::Requirement
222
222
  requirements:
223
- - - "~>"
223
+ - - ~>
224
224
  - !ruby/object:Gem::Version
225
225
  version: 3.1.0
226
226
  - !ruby/object:Gem::Dependency
227
227
  name: shoulda-matchers
228
228
  requirement: !ruby/object:Gem::Requirement
229
229
  requirements:
230
- - - ">="
230
+ - - ! '>='
231
231
  - !ruby/object:Gem::Version
232
232
  version: 1.5.6
233
233
  type: :development
234
234
  prerelease: false
235
235
  version_requirements: !ruby/object:Gem::Requirement
236
236
  requirements:
237
- - - ">="
237
+ - - ! '>='
238
238
  - !ruby/object:Gem::Version
239
239
  version: 1.5.6
240
240
  - !ruby/object:Gem::Dependency
241
241
  name: factory_girl_rails
242
242
  requirement: !ruby/object:Gem::Requirement
243
243
  requirements:
244
- - - ">="
244
+ - - ! '>='
245
245
  - !ruby/object:Gem::Version
246
246
  version: 4.2.1
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: 4.2.1
254
254
  - !ruby/object:Gem::Dependency
255
255
  name: rails
256
256
  requirement: !ruby/object:Gem::Requirement
257
257
  requirements:
258
- - - "~>"
258
+ - - ~>
259
259
  - !ruby/object:Gem::Version
260
260
  version: 4.1.1
261
261
  type: :development
262
262
  prerelease: false
263
263
  version_requirements: !ruby/object:Gem::Requirement
264
264
  requirements:
265
- - - "~>"
265
+ - - ~>
266
266
  - !ruby/object:Gem::Version
267
267
  version: 4.1.1
268
268
  description: This library provides a model to navigate through Chouette database.
@@ -275,6 +275,9 @@ executables: []
275
275
  extensions: []
276
276
  extra_rdoc_files: []
277
277
  files:
278
+ - MIT-LICENSE
279
+ - README.md
280
+ - Rakefile
278
281
  - app/assets/javascripts/ninoxe/application.js
279
282
  - app/assets/stylesheets/ninoxe/application.css
280
283
  - app/controllers/ninoxe/application_controller.rb
@@ -323,6 +326,7 @@ files:
323
326
  - app/presenters/chouette/geometry/stop_area_presenter.rb
324
327
  - app/views/layouts/ninoxe/application.html.erb
325
328
  - config/database.yml
329
+ - config/database.yml.me
326
330
  - config/database.yml.travis
327
331
  - config/locales/en.yml
328
332
  - config/locales/fr.yml
@@ -380,98 +384,12 @@ files:
380
384
  - db/migrate/20150115153453_create_footnotes.rb
381
385
  - db/migrate/20150119160029_create_vehicle_journey_footnotes.rb
382
386
  - db/migrate/20150526075108_add_foreign_key_to_routes.rb
387
+ - db/migrate/20150630135517_remove_uniqueness_for_registration_number.rb
383
388
  - lib/chouette_factories.rb
389
+ - lib/ninoxe.rb
390
+ - lib/ninoxe.rb~
384
391
  - lib/ninoxe/engine.rb
385
392
  - lib/ninoxe/version.rb
386
- - lib/ninoxe.rb
387
- - MIT-LICENSE
388
- - Rakefile
389
- - README.md
390
- - spec/dummy/README.rdoc
391
- - spec/dummy/Rakefile
392
- - spec/dummy/app/assets/images/.keep
393
- - spec/dummy/app/assets/javascripts/application.js
394
- - spec/dummy/app/assets/stylesheets/application.css
395
- - spec/dummy/app/controllers/application_controller.rb
396
- - spec/dummy/app/controllers/concerns/.keep
397
- - spec/dummy/app/helpers/application_helper.rb
398
- - spec/dummy/app/mailers/.keep
399
- - spec/dummy/app/models/.keep
400
- - spec/dummy/app/models/concerns/.keep
401
- - spec/dummy/app/views/layouts/application.html.erb
402
- - spec/dummy/bin/bundle
403
- - spec/dummy/bin/rails
404
- - spec/dummy/bin/rake
405
- - spec/dummy/config.ru
406
- - spec/dummy/config/application.rb
407
- - spec/dummy/config/boot.rb
408
- - spec/dummy/config/database.yml
409
- - spec/dummy/config/environment.rb
410
- - spec/dummy/config/environments/development.rb
411
- - spec/dummy/config/environments/production.rb
412
- - spec/dummy/config/environments/test.rb
413
- - spec/dummy/config/initializers/backtrace_silencers.rb
414
- - spec/dummy/config/initializers/filter_parameter_logging.rb
415
- - spec/dummy/config/initializers/inflections.rb
416
- - spec/dummy/config/initializers/mime_types.rb
417
- - spec/dummy/config/initializers/secret_token.rb
418
- - spec/dummy/config/initializers/session_store.rb
419
- - spec/dummy/config/initializers/wrap_parameters.rb
420
- - spec/dummy/config/locales/en.yml
421
- - spec/dummy/config/locales/fr.yml
422
- - spec/dummy/config/routes.rb
423
- - spec/dummy/db/schema.rb
424
- - spec/dummy/db/test.sqlite3
425
- - spec/dummy/lib/assets/.keep
426
- - spec/dummy/log/.keep
427
- - spec/dummy/public/404.html
428
- - spec/dummy/public/422.html
429
- - spec/dummy/public/500.html
430
- - spec/dummy/public/favicon.ico
431
- - spec/dummy/script/rails
432
- - spec/factories/chouette_access_links.rb
433
- - spec/factories/chouette_access_points.rb
434
- - spec/factories/chouette_companies.rb
435
- - spec/factories/chouette_connection_links.rb
436
- - spec/factories/chouette_footnotes.rb
437
- - spec/factories/chouette_group_of_lines.rb
438
- - spec/factories/chouette_journey_pattern.rb
439
- - spec/factories/chouette_lines.rb
440
- - spec/factories/chouette_networks.rb
441
- - spec/factories/chouette_routes.rb
442
- - spec/factories/chouette_stop_areas.rb
443
- - spec/factories/chouette_stop_points.rb
444
- - spec/factories/chouette_time_table.rb
445
- - spec/factories/chouette_vehicle_journey.rb
446
- - spec/factories/chouette_vehicle_journey_at_stop.rb
447
- - spec/models/chouette/access_link_spec.rb
448
- - spec/models/chouette/access_point_spec.rb
449
- - spec/models/chouette/active_record_spec.rb
450
- - spec/models/chouette/area_type_spec.rb
451
- - spec/models/chouette/company_spec.rb
452
- - spec/models/chouette/connection_link_spec.rb
453
- - spec/models/chouette/direction_spec.rb
454
- - spec/models/chouette/exporter_spec.rb
455
- - spec/models/chouette/file_validator_spec.rb
456
- - spec/models/chouette/footnote_spec.rb
457
- - spec/models/chouette/group_of_line_spec.rb
458
- - spec/models/chouette/journey_pattern_spec.rb
459
- - spec/models/chouette/line_spec.rb
460
- - spec/models/chouette/loader_spec.rb
461
- - spec/models/chouette/network_spec.rb
462
- - spec/models/chouette/object_id_spec.rb
463
- - spec/models/chouette/route_spec.rb
464
- - spec/models/chouette/stop_area_spec.rb
465
- - spec/models/chouette/stop_point_spec.rb
466
- - spec/models/chouette/time_table_period_spec.rb
467
- - spec/models/chouette/time_table_spec.rb
468
- - spec/models/chouette/transport_mode_spec.rb
469
- - spec/models/chouette/trident_active_record_spec.rb
470
- - spec/models/chouette/vehicle_journey_at_stop_spec.rb
471
- - spec/models/chouette/vehicle_journey_spec.rb
472
- - spec/presenters/chouette/geometry/general_presenter.rb
473
- - spec/presenters/chouette/geometry/line_presenter_spec.rb
474
- - spec/spec_helper.rb
475
393
  homepage: http://github.com/afimb/ninoxe
476
394
  licenses: []
477
395
  metadata: {}
@@ -481,103 +399,18 @@ require_paths:
481
399
  - lib
482
400
  required_ruby_version: !ruby/object:Gem::Requirement
483
401
  requirements:
484
- - - ">="
402
+ - - ! '>='
485
403
  - !ruby/object:Gem::Version
486
404
  version: '0'
487
405
  required_rubygems_version: !ruby/object:Gem::Requirement
488
406
  requirements:
489
- - - ">="
407
+ - - ! '>='
490
408
  - !ruby/object:Gem::Version
491
409
  version: '0'
492
410
  requirements: []
493
411
  rubyforge_project:
494
- rubygems_version: 2.1.11
412
+ rubygems_version: 2.4.2
495
413
  signing_key:
496
414
  specification_version: 4
497
415
  summary: Library dedicated to Chouette access.
498
- test_files:
499
- - spec/dummy/README.rdoc
500
- - spec/dummy/Rakefile
501
- - spec/dummy/app/assets/images/.keep
502
- - spec/dummy/app/assets/javascripts/application.js
503
- - spec/dummy/app/assets/stylesheets/application.css
504
- - spec/dummy/app/controllers/application_controller.rb
505
- - spec/dummy/app/controllers/concerns/.keep
506
- - spec/dummy/app/helpers/application_helper.rb
507
- - spec/dummy/app/mailers/.keep
508
- - spec/dummy/app/models/.keep
509
- - spec/dummy/app/models/concerns/.keep
510
- - spec/dummy/app/views/layouts/application.html.erb
511
- - spec/dummy/bin/bundle
512
- - spec/dummy/bin/rails
513
- - spec/dummy/bin/rake
514
- - spec/dummy/config.ru
515
- - spec/dummy/config/application.rb
516
- - spec/dummy/config/boot.rb
517
- - spec/dummy/config/database.yml
518
- - spec/dummy/config/environment.rb
519
- - spec/dummy/config/environments/development.rb
520
- - spec/dummy/config/environments/production.rb
521
- - spec/dummy/config/environments/test.rb
522
- - spec/dummy/config/initializers/backtrace_silencers.rb
523
- - spec/dummy/config/initializers/filter_parameter_logging.rb
524
- - spec/dummy/config/initializers/inflections.rb
525
- - spec/dummy/config/initializers/mime_types.rb
526
- - spec/dummy/config/initializers/secret_token.rb
527
- - spec/dummy/config/initializers/session_store.rb
528
- - spec/dummy/config/initializers/wrap_parameters.rb
529
- - spec/dummy/config/locales/en.yml
530
- - spec/dummy/config/locales/fr.yml
531
- - spec/dummy/config/routes.rb
532
- - spec/dummy/db/schema.rb
533
- - spec/dummy/db/test.sqlite3
534
- - spec/dummy/lib/assets/.keep
535
- - spec/dummy/log/.keep
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/factories/chouette_access_links.rb
542
- - spec/factories/chouette_access_points.rb
543
- - spec/factories/chouette_companies.rb
544
- - spec/factories/chouette_connection_links.rb
545
- - spec/factories/chouette_footnotes.rb
546
- - spec/factories/chouette_group_of_lines.rb
547
- - spec/factories/chouette_journey_pattern.rb
548
- - spec/factories/chouette_lines.rb
549
- - spec/factories/chouette_networks.rb
550
- - spec/factories/chouette_routes.rb
551
- - spec/factories/chouette_stop_areas.rb
552
- - spec/factories/chouette_stop_points.rb
553
- - spec/factories/chouette_time_table.rb
554
- - spec/factories/chouette_vehicle_journey.rb
555
- - spec/factories/chouette_vehicle_journey_at_stop.rb
556
- - spec/models/chouette/access_link_spec.rb
557
- - spec/models/chouette/access_point_spec.rb
558
- - spec/models/chouette/active_record_spec.rb
559
- - spec/models/chouette/area_type_spec.rb
560
- - spec/models/chouette/company_spec.rb
561
- - spec/models/chouette/connection_link_spec.rb
562
- - spec/models/chouette/direction_spec.rb
563
- - spec/models/chouette/exporter_spec.rb
564
- - spec/models/chouette/file_validator_spec.rb
565
- - spec/models/chouette/footnote_spec.rb
566
- - spec/models/chouette/group_of_line_spec.rb
567
- - spec/models/chouette/journey_pattern_spec.rb
568
- - spec/models/chouette/line_spec.rb
569
- - spec/models/chouette/loader_spec.rb
570
- - spec/models/chouette/network_spec.rb
571
- - spec/models/chouette/object_id_spec.rb
572
- - spec/models/chouette/route_spec.rb
573
- - spec/models/chouette/stop_area_spec.rb
574
- - spec/models/chouette/stop_point_spec.rb
575
- - spec/models/chouette/time_table_period_spec.rb
576
- - spec/models/chouette/time_table_spec.rb
577
- - spec/models/chouette/transport_mode_spec.rb
578
- - spec/models/chouette/trident_active_record_spec.rb
579
- - spec/models/chouette/vehicle_journey_at_stop_spec.rb
580
- - spec/models/chouette/vehicle_journey_spec.rb
581
- - spec/presenters/chouette/geometry/general_presenter.rb
582
- - spec/presenters/chouette/geometry/line_presenter_spec.rb
583
- - spec/spec_helper.rb
416
+ test_files: []