gmaps4rails 2.0.0.pre → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. data/.travis.yml +2 -4
  2. data/Gemfile +5 -1
  3. data/Gemfile.lock +31 -113
  4. data/README.rdoc +53 -70
  5. data/Rakefile +21 -1
  6. data/gmaps4rails.gemspec +4 -19
  7. data/js_compilation/gmaps_google.js +961 -0
  8. data/lib/generators/gmaps4rails/copy_coffee_generator.rb +14 -0
  9. data/lib/generators/gmaps4rails/copy_js_generator.rb +15 -0
  10. data/lib/gmaps4rails.rb +12 -22
  11. data/lib/gmaps4rails/markers_builder.rb +74 -0
  12. data/lib/gmaps4rails/rails/engine.rb +6 -0
  13. data/lib/gmaps4rails/rails/railtie.rb +6 -0
  14. data/lib/gmaps4rails/version.rb +2 -2
  15. data/script/compile_coffee_files.rb +19 -0
  16. data/script/gmaps4rails.rake +7 -0
  17. data/spec/javascripts/google/builders/marker_spec.js +96 -0
  18. data/spec/javascripts/helpers/SpecHelper.js +101 -0
  19. data/spec/javascripts/helpers/matchers.js +12 -0
  20. data/spec/javascripts/helpers/underscore.js +6 -0
  21. data/spec/javascripts/objects/handler_spec.js +320 -0
  22. data/spec/javascripts/support/jasmine.yml +86 -0
  23. data/spec/javascripts/support/jasmine_helper.rb +11 -0
  24. data/spec/lib/base_spec.rb +10 -52
  25. data/spec/lib/markers_builder_spec.rb +49 -0
  26. data/spec/spec_helper.rb +1 -25
  27. data/vendor/assets/javascripts/gmaps/base.coffee +16 -0
  28. data/vendor/assets/javascripts/gmaps/base/base.coffee +17 -0
  29. data/vendor/assets/javascripts/gmaps/google.coffee +3 -0
  30. data/vendor/assets/javascripts/gmaps/google/builders/bound.coffee +6 -0
  31. data/vendor/assets/javascripts/gmaps/google/builders/circle.coffee +21 -0
  32. data/vendor/assets/javascripts/gmaps/google/builders/clusterer.coffee +6 -0
  33. data/vendor/assets/javascripts/gmaps/google/builders/kml.coffee +17 -0
  34. data/vendor/assets/javascripts/gmaps/google/builders/map.coffee +27 -0
  35. data/vendor/assets/javascripts/gmaps/google/builders/marker.coffee +100 -0
  36. data/vendor/assets/javascripts/gmaps/google/builders/polygon.coffee +24 -0
  37. data/vendor/assets/javascripts/gmaps/google/builders/polyline.coffee +24 -0
  38. data/vendor/assets/javascripts/gmaps/google/objects/bound.coffee +13 -0
  39. data/vendor/assets/javascripts/gmaps/google/objects/circle.coffee +9 -0
  40. data/vendor/assets/javascripts/gmaps/google/objects/clusterer.coffee +13 -0
  41. data/vendor/assets/javascripts/gmaps/google/objects/common.coffee +23 -0
  42. data/vendor/assets/javascripts/gmaps/google/objects/kml.coffee +15 -0
  43. data/vendor/assets/javascripts/gmaps/google/objects/map.coffee +19 -0
  44. data/vendor/assets/javascripts/gmaps/google/objects/marker.coffee +11 -0
  45. data/vendor/assets/javascripts/gmaps/google/objects/polygon.coffee +8 -0
  46. data/vendor/assets/javascripts/gmaps/google/objects/polyline.coffee +8 -0
  47. data/vendor/assets/javascripts/gmaps/google/primitives.coffee +43 -0
  48. data/vendor/assets/javascripts/gmaps/objects/base_builder.coffee +20 -0
  49. data/vendor/assets/javascripts/gmaps/objects/builder.coffee +12 -0
  50. data/vendor/assets/javascripts/gmaps/objects/handler.coffee +153 -0
  51. data/vendor/assets/javascripts/gmaps/objects/null_clusterer.coffee +4 -0
  52. metadata +66 -299
  53. data/Guardfile.old +0 -24
  54. data/app/views/gmaps4rails/_gmaps4rails.html.erb +0 -20
  55. data/lib/generators/gmaps4rails/install_generator.rb +0 -43
  56. data/lib/generators/templates/README +0 -2
  57. data/lib/gmaps4rails/acts_as_gmappable.rb +0 -54
  58. data/lib/gmaps4rails/api_wrappers/base_net_methods.rb +0 -40
  59. data/lib/gmaps4rails/api_wrappers/direction.rb +0 -87
  60. data/lib/gmaps4rails/api_wrappers/geocoder.rb +0 -54
  61. data/lib/gmaps4rails/api_wrappers/places.rb +0 -74
  62. data/lib/gmaps4rails/base.rb +0 -126
  63. data/lib/gmaps4rails/extensions/enumerable.rb +0 -14
  64. data/lib/gmaps4rails/extensions/hash.rb +0 -9
  65. data/lib/gmaps4rails/helper/gmaps4rails_helper.rb +0 -33
  66. data/lib/gmaps4rails/js_builder.rb +0 -154
  67. data/lib/gmaps4rails/json_builder.rb +0 -140
  68. data/lib/gmaps4rails/model_handler.rb +0 -101
  69. data/lib/gmaps4rails/view_helper.rb +0 -172
  70. data/lib/tasks/jasmine.rake +0 -8
  71. data/public/javascripts/gmaps4rails/all.js +0 -2144
  72. data/public/javascripts/gmaps4rails/base.js +0 -792
  73. data/public/javascripts/gmaps4rails/google.js +0 -556
  74. data/public/javascripts/gmaps4rails/openlayers.js +0 -377
  75. data/public/stylesheets/gmaps4rails.css +0 -24
  76. data/spec/dummy/.gitignore +0 -3
  77. data/spec/dummy/.rspec +0 -1
  78. data/spec/dummy/README.rdoc +0 -261
  79. data/spec/dummy/Rakefile +0 -7
  80. data/spec/dummy/app/assets/javascripts/application.js +0 -18
  81. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  82. data/spec/dummy/app/assets/stylesheets/gmaps4rails.css +0 -24
  83. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  84. data/spec/dummy/app/controllers/users_controller.rb +0 -105
  85. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  86. data/spec/dummy/app/mailers/.gitkeep +0 -0
  87. data/spec/dummy/app/models/.gitkeep +0 -0
  88. data/spec/dummy/app/models/place.rb +0 -16
  89. data/spec/dummy/app/models/user.rb +0 -12
  90. data/spec/dummy/app/views/layouts/application.html.erb +0 -17
  91. data/spec/dummy/app/views/users/_form.html.erb +0 -37
  92. data/spec/dummy/app/views/users/edit.html.erb +0 -6
  93. data/spec/dummy/app/views/users/index.html.erb +0 -268
  94. data/spec/dummy/app/views/users/new.html.erb +0 -5
  95. data/spec/dummy/app/views/users/show.html.erb +0 -30
  96. data/spec/dummy/config.ru +0 -4
  97. data/spec/dummy/config/application.rb +0 -62
  98. data/spec/dummy/config/boot.rb +0 -10
  99. data/spec/dummy/config/database.yml +0 -25
  100. data/spec/dummy/config/environment.rb +0 -5
  101. data/spec/dummy/config/environments/development.rb +0 -37
  102. data/spec/dummy/config/environments/production.rb +0 -67
  103. data/spec/dummy/config/environments/test.rb +0 -37
  104. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  105. data/spec/dummy/config/initializers/gmaps4rails.rb +0 -1
  106. data/spec/dummy/config/initializers/inflections.rb +0 -15
  107. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  108. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  109. data/spec/dummy/config/initializers/session_store.rb +0 -8
  110. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  111. data/spec/dummy/config/locales/en.yml +0 -5
  112. data/spec/dummy/config/routes.rb +0 -60
  113. data/spec/dummy/db/migrate/20120408170155_create_users.rb +0 -16
  114. data/spec/dummy/db/schema.rb +0 -29
  115. data/spec/dummy/lib/assets/.gitkeep +0 -0
  116. data/spec/dummy/log/.gitkeep +0 -0
  117. data/spec/dummy/public/404.html +0 -26
  118. data/spec/dummy/public/422.html +0 -26
  119. data/spec/dummy/public/500.html +0 -25
  120. data/spec/dummy/public/favicon.ico +0 -0
  121. data/spec/dummy/public/javascripts/Player.js +0 -22
  122. data/spec/dummy/public/javascripts/Song.js +0 -7
  123. data/spec/dummy/public/logo.png +0 -0
  124. data/spec/dummy/script/rails +0 -6
  125. data/spec/factories/place_factory.rb +0 -16
  126. data/spec/factories/user_factory.rb +0 -23
  127. data/spec/fixtures/google_direction_valid.json +0 -65
  128. data/spec/fixtures/google_geocoding_toulon_france.json +0 -58
  129. data/spec/fixtures/google_places_valid.json +0 -45
  130. data/spec/fixtures/google_wrong_geocoding.json +0 -4
  131. data/spec/launchers/all_but_requests.rb +0 -0
  132. data/spec/launchers/all_specs.rb +0 -0
  133. data/spec/launchers/requests.rb +0 -0
  134. data/spec/lib/direction_spec.rb +0 -53
  135. data/spec/lib/geocoder_spec.rb +0 -46
  136. data/spec/lib/js_builder_spec.rb +0 -134
  137. data/spec/lib/json_builder_spec.rb +0 -232
  138. data/spec/lib/places_spec.rb +0 -25
  139. data/spec/models/place_spec.rb +0 -39
  140. data/spec/models/user_spec.rb +0 -187
  141. data/spec/support/geocoding.rb +0 -40
  142. data/spec/support/matchers.rb +0 -73
  143. data/todo +0 -0
  144. data/vendor/assets/javascripts/gmaps4rails/all.js +0 -1
  145. data/vendor/assets/javascripts/gmaps4rails/base.coffee +0 -1
  146. data/vendor/assets/javascripts/gmaps4rails/base/common.coffee +0 -43
  147. data/vendor/assets/javascripts/gmaps4rails/base/configuration.coffee +0 -7
  148. data/vendor/assets/javascripts/gmaps4rails/base/gmaps.coffee +0 -13
  149. data/vendor/assets/javascripts/gmaps4rails/base/interfaces/basic_interface.coffee +0 -15
  150. data/vendor/assets/javascripts/gmaps4rails/base/interfaces/controller_interface.coffee +0 -15
  151. data/vendor/assets/javascripts/gmaps4rails/base/interfaces/map_interface.coffee +0 -27
  152. data/vendor/assets/javascripts/gmaps4rails/base/interfaces/marker_interface.coffee +0 -15
  153. data/vendor/assets/javascripts/gmaps4rails/base/main.coffee +0 -124
  154. data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/circle_controller.coffee +0 -29
  155. data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/kml_controller.coffee +0 -5
  156. data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/marker_controller.coffee +0 -76
  157. data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/polygon_controller.coffee +0 -29
  158. data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/polyline_controller.coffee +0 -29
  159. data/vendor/assets/javascripts/gmaps4rails/base/objects/circle.coffee +0 -12
  160. data/vendor/assets/javascripts/gmaps4rails/base/objects/kml.coffee +0 -8
  161. data/vendor/assets/javascripts/gmaps4rails/base/objects/map.coffee +0 -62
  162. data/vendor/assets/javascripts/gmaps4rails/base/objects/marker.coffee +0 -24
  163. data/vendor/assets/javascripts/gmaps4rails/base/objects/polygon.coffee +0 -11
  164. data/vendor/assets/javascripts/gmaps4rails/base/objects/polyline.coffee +0 -11
  165. data/vendor/assets/javascripts/gmaps4rails/bing.coffee +0 -1
  166. data/vendor/assets/javascripts/gmaps4rails/bing/main.coffee +0 -29
  167. data/vendor/assets/javascripts/gmaps4rails/bing/objects/map.coffee +0 -63
  168. data/vendor/assets/javascripts/gmaps4rails/bing/objects/marker.coffee +0 -78
  169. data/vendor/assets/javascripts/gmaps4rails/bing/shared.coffee +0 -20
  170. data/vendor/assets/javascripts/gmaps4rails/google.coffee +0 -1
  171. data/vendor/assets/javascripts/gmaps4rails/google/main.coffee +0 -47
  172. data/vendor/assets/javascripts/gmaps4rails/google/objects/circle.coffee +0 -38
  173. data/vendor/assets/javascripts/gmaps4rails/google/objects/kml.coffee +0 -16
  174. data/vendor/assets/javascripts/gmaps4rails/google/objects/map.coffee +0 -71
  175. data/vendor/assets/javascripts/gmaps4rails/google/objects/marker.coffee +0 -114
  176. data/vendor/assets/javascripts/gmaps4rails/google/objects/polygon.coffee +0 -38
  177. data/vendor/assets/javascripts/gmaps4rails/google/objects/polyline.coffee +0 -49
  178. data/vendor/assets/javascripts/gmaps4rails/google/shared.coffee +0 -27
  179. data/vendor/assets/javascripts/gmaps4rails/openlayers.coffee +0 -1
  180. data/vendor/assets/javascripts/gmaps4rails/openlayers/main.coffee +0 -138
  181. data/vendor/assets/javascripts/gmaps4rails/openlayers/objects/map.coffee +0 -49
  182. data/vendor/assets/javascripts/gmaps4rails/openlayers/objects/marker.coffee +0 -68
  183. data/vendor/assets/javascripts/gmaps4rails/openlayers/objects/polyline.coffee +0 -39
  184. data/vendor/assets/javascripts/gmaps4rails/openlayers/shared.coffee +0 -19
@@ -0,0 +1,24 @@
1
+ class @Gmaps.Google.Builders.Polygon extends Gmaps.Objects.BaseBuilder
2
+
3
+ # args:
4
+ # [
5
+ # { lat, lng}
6
+ # ]
7
+ # provider options:
8
+ # https://developers.google.com/maps/documentation/javascript/reference?hl=fr#PolygonOptions
9
+ constructor: (@args, @provider_options = {})->
10
+ @before_init()
11
+ @serviceObject = @create_polygon()
12
+ @after_init()
13
+
14
+ create_polygon: ->
15
+ new(@primitives().polygon)(@polygon_options())
16
+
17
+ polygon_options: ->
18
+ base_options =
19
+ path: @_build_path()
20
+ _.defaults base_options, @provider_options
21
+
22
+ _build_path: ->
23
+ _.map @args, (arg)=>
24
+ new(@primitives().latLng)(arg.lat, arg.lng)
@@ -0,0 +1,24 @@
1
+ class @Gmaps.Google.Builders.Polyline extends Gmaps.Objects.BaseBuilder
2
+
3
+ # args:
4
+ # [
5
+ # { lat, lng}
6
+ # ]
7
+ # provider options:
8
+ # https://developers.google.com/maps/documentation/javascript/reference?hl=fr#PolylineOptions
9
+ constructor: (@args, @provider_options = {})->
10
+ @before_init()
11
+ @serviceObject = @create_polyline()
12
+ @after_init()
13
+
14
+ create_polyline: ->
15
+ new(@primitives().polyline)(@polyline_options())
16
+
17
+ polyline_options: ->
18
+ base_options =
19
+ path: @_build_path()
20
+ _.defaults base_options, @provider_options
21
+
22
+ _build_path: ->
23
+ _.map @args, (arg)=>
24
+ new(@primitives().latLng)(arg.lat, arg.lng)
@@ -0,0 +1,13 @@
1
+ class @Gmaps.Google.Objects.Bound extends Gmaps.Base
2
+
3
+ @include Gmaps.Google.Objects.Common
4
+
5
+ constructor: (@serviceObject)->
6
+
7
+ extendWith: (array_or_object)->
8
+ collection = if _.isArray(array_or_object) then array_or_object else [ array_or_object ]
9
+ _.each collection, (object)=>
10
+ object.updateBounds(@)
11
+
12
+ extend: (value)->
13
+ @getServiceObject().extend value
@@ -0,0 +1,9 @@
1
+ class @Gmaps.Google.Objects.Circle extends Gmaps.Base
2
+
3
+ @include Gmaps.Google.Objects.Common
4
+
5
+ constructor: (@serviceObject)->
6
+
7
+ updateBounds: (bounds)->
8
+ bounds.extend(@getServiceObject().getBounds().getNorthEast())
9
+ bounds.extend(@getServiceObject().getBounds().getSouthWest())
@@ -0,0 +1,13 @@
1
+ class @Gmaps.Google.Objects.Clusterer
2
+
3
+ constructor: (@serviceObject)->
4
+
5
+ addMarkers: (markers)=>
6
+ _.each markers, (marker)=>
7
+ @addMarker(marker)
8
+
9
+ addMarker: (marker)=>
10
+ @serviceObject.addMarker(marker.serviceObject)
11
+
12
+ clear: =>
13
+ @serviceObject.clearMarkers()
@@ -0,0 +1,23 @@
1
+ @Gmaps.Google.Objects.Common =
2
+
3
+ getServiceObject: ->
4
+ @serviceObject
5
+
6
+ setMap: (map)->
7
+ @getServiceObject().setMap map
8
+
9
+ clear: ->
10
+ @serviceObject.setMap(null)
11
+ @serviceObject = null
12
+
13
+ show: ->
14
+ @serviceObject.setVisible(true)
15
+
16
+ hide: ->
17
+ @serviceObject.setVisible(false)
18
+
19
+ isVisible: ->
20
+ @serviceObject.getVisible()
21
+
22
+ primitives: ->
23
+ @constructor.PRIMITIVES
@@ -0,0 +1,15 @@
1
+ class @Gmaps.Google.Objects.Kml extends Gmaps.Base
2
+
3
+ constructor: (@serviceObject)->
4
+
5
+ updateBounds: (bounds)->
6
+ #even not provided by google...
7
+
8
+ setMap: (map)->
9
+ @getServiceObject().setMap map
10
+
11
+ getServiceObject: ->
12
+ @serviceObject
13
+
14
+ primitives: ->
15
+ @constructor.PRIMITIVES
@@ -0,0 +1,19 @@
1
+ class @Gmaps.Google.Objects.Map extends Gmaps.Base
2
+
3
+ constructor: (@serviceObject)->
4
+
5
+ getServiceObject: ->
6
+ @serviceObject
7
+
8
+ # position can be:
9
+ # - [ lat, lng]
10
+ # - { lat: , lng: }
11
+ # - a google.maps.LatLng
12
+ centerOn: (position)->
13
+ @getServiceObject().setCenter @primitives().latLngFromPosition(position)
14
+
15
+ fitToBounds: (boundsObject)->
16
+ @getServiceObject().fitBounds(boundsObject) unless boundsObject.isEmpty()
17
+
18
+ primitives: ->
19
+ @constructor.PRIMITIVES
@@ -0,0 +1,11 @@
1
+ class @Gmaps.Google.Objects.Marker extends Gmaps.Base
2
+
3
+ @include Gmaps.Google.Objects.Common
4
+
5
+ constructor: (@serviceObject, @infowindow)->
6
+
7
+ updateBounds: (bounds)->
8
+ bounds.extend(@getServiceObject().position)
9
+
10
+ panTo: ->
11
+ @getServiceObject().getMap().panTo @getServiceObject().getPosition()
@@ -0,0 +1,8 @@
1
+ class @Gmaps.Google.Objects.Polygon extends Gmaps.Base
2
+
3
+ @include Gmaps.Google.Objects.Common
4
+
5
+ constructor: (@serviceObject)->
6
+
7
+ updateBounds: (bounds)->
8
+ #even not provided by google...
@@ -0,0 +1,8 @@
1
+ class @Gmaps.Google.Objects.Polyline extends Gmaps.Base
2
+
3
+ @include Gmaps.Google.Objects.Common
4
+
5
+ constructor: (@serviceObject)->
6
+
7
+ updateBounds: (bounds)->
8
+ #even not provided by google...
@@ -0,0 +1,43 @@
1
+ @Gmaps.Google.Primitives = ->
2
+ factory = {
3
+ point: google.maps.Point
4
+ size: google.maps.Size
5
+ circle: google.maps.Circle
6
+ latLng: google.maps.LatLng
7
+ latLngBounds: google.maps.LatLngBounds
8
+ map: google.maps.Map
9
+ mapTypez: google.maps.MapTypeId
10
+ markerImage: google.maps.MarkerImage
11
+ marker: google.maps.Marker
12
+ infowindow: google.maps.InfoWindow
13
+ listener: google.maps.event.addListener
14
+ clusterer: MarkerClusterer
15
+ listenerOnce: google.maps.event.addListenerOnce
16
+ polyline: google.maps.Polyline
17
+ polygon: google.maps.Polygon
18
+ kml: google.maps.KmlLayer
19
+
20
+ addListener: (object, event_name, fn)->
21
+ factory.listener object, event_name, fn
22
+
23
+ addListenerOnce: (object, event_name, fn)->
24
+ factory.listenerOnce object, event_name, fn
25
+
26
+ mapTypes: (type)->
27
+ factory.mapTypez[type]
28
+
29
+ # position can be:
30
+ # - [ lat, lng]
31
+ # - { lat: , lng: }
32
+ # - a google.maps.LatLng
33
+ latLngFromPosition: (position)->
34
+ if _.isArray(position)
35
+ return new factory.latLng(position[0], position[1])
36
+ else
37
+ if _.isNumber(position.lat) and _.isNumber(position.lng)
38
+ return new factory.latLng(position.lat, position.lng)
39
+ else
40
+ position
41
+ }
42
+
43
+ factory
@@ -0,0 +1,20 @@
1
+ class @Gmaps.Objects.BaseBuilder
2
+
3
+ build: ->
4
+ new(@model_class())(@serviceObject)
5
+
6
+ before_init: ->
7
+
8
+ after_init: ->
9
+
10
+ addListener: (action, fn)->
11
+ @primitives().addListener @getServiceObject(), action, fn
12
+
13
+ getServiceObject: ->
14
+ @serviceObject
15
+
16
+ primitives: ->
17
+ @constructor.PRIMITIVES
18
+
19
+ model_class: ->
20
+ @constructor.OBJECT
@@ -0,0 +1,12 @@
1
+ @Gmaps.Objects.Builders = (builderClass, objectClass, primitivesProvider)->
2
+
3
+ objectClass.PRIMITIVES = primitivesProvider
4
+
5
+ builderClass.OBJECT = objectClass
6
+ builderClass.PRIMITIVES = primitivesProvider
7
+
8
+ return {
9
+ build: (args, provider_options, internal_options)->
10
+ builder = new builderClass(args, provider_options, internal_options)
11
+ builder.build()
12
+ }
@@ -0,0 +1,153 @@
1
+ class @Gmaps.Objects.Handler
2
+
3
+ # options:
4
+ # markers:
5
+ # maxRandomDistance: null / int in meters
6
+ # singleInfowindow: true/false
7
+ # clusterer: null or object with options if you want clusters
8
+ # models: object, custom models if you have some
9
+ # builders: object, custom builders if you have some
10
+ #
11
+ constructor: (@type, options = {})->
12
+ @setPrimitives options
13
+ @setOptions options
14
+ @resetBounds()
15
+
16
+ buildMap: (options, onMapLoad = ->)->
17
+ @map = @_map_builder().build options, =>
18
+ @_createClusterer()
19
+ onMapLoad()
20
+
21
+ # return array of marker objects
22
+ addMarkers: (markers_data, provider_options)->
23
+ _.map markers_data, (marker_data)=>
24
+ @addMarker marker_data, provider_options
25
+
26
+ # return marker object
27
+ addMarker: (marker_data, provider_options)->
28
+ marker = @_marker_builder().build(marker_data, provider_options, @marker_options)
29
+ marker.setMap(@getMap())
30
+ @clusterer.addMarker marker
31
+ marker
32
+
33
+ # return array of circle objects
34
+ addCircles: (circles_data, provider_options)->
35
+ _.map circles_data, (circle_data)=>
36
+ @addCircle circle_data, provider_options
37
+
38
+ # return circle object
39
+ addCircle: (circle_data, provider_options)->
40
+ @_addResource('circle', circle_data, provider_options)
41
+
42
+ # return array of polyline objects
43
+ addPolylines: (polylines_data, provider_options)->
44
+ _.map polylines_data, (polyline_data)=>
45
+ @addPolyline polyline_data, provider_options
46
+
47
+ # return polyline object
48
+ addPolyline: (polyline_data, provider_options)->
49
+ @_addResource('polyline', polyline_data, provider_options)
50
+
51
+ # return array of polygon objects
52
+ addPolygons: (polygons_data, provider_options)->
53
+ _.map polygons_data, (polygon_data)=>
54
+ @addPolygon polygon_data, provider_options
55
+
56
+ # return polygon object
57
+ addPolygon: (polygon_data, provider_options)->
58
+ @_addResource('polygon', polygon_data, provider_options)
59
+
60
+ # return array of kml objects
61
+ addKmls: (kmls_data, provider_options)->
62
+ _.map kmls_data, (kml_data)=>
63
+ @addKml kml_data, provider_options
64
+
65
+ # return kml object
66
+ addKml: (kml_data, provider_options)->
67
+ @_addResource('kml', kml_data, provider_options)
68
+
69
+ fitMapToBounds: ->
70
+ @map.fitToBounds @bounds.getServiceObject()
71
+
72
+ getMap: ->
73
+ @map.getServiceObject()
74
+
75
+ setOptions: (options)->
76
+ @marker_options = _.extend @_default_marker_options(), options.markers
77
+ @builders = _.extend @_default_builders(), options.builders
78
+ @models = _.extend @_default_models(), options.models
79
+
80
+ resetBounds: ->
81
+ @bounds = @_bound_builder().build()
82
+
83
+ setPrimitives: (options)->
84
+ @primitives = if options.primitives is undefined
85
+ @_rootModule().Primitives()
86
+ else
87
+ if _.isFunction(options.primitives) then options.primitives() else options.primitives
88
+
89
+ currentInfowindow: ->
90
+ @builders.Marker.CURRENT_INFOWINDOW
91
+
92
+ _addResource: (resource_name, resource_data, provider_options)->
93
+ resource = @["_#{ resource_name }_builder"]().build(resource_data, provider_options)
94
+ resource.setMap(@getMap())
95
+ resource
96
+
97
+ _clusterize: ->
98
+ _.isObject @marker_options.clusterer
99
+
100
+ _createClusterer: ->
101
+ @clusterer = @_clusterer_builder().build({ map: @getMap() }, @marker_options.clusterer )
102
+
103
+ _default_marker_options: ->
104
+ {
105
+ singleInfowindow: true
106
+ maxRandomDistance: 100
107
+ clusterer:
108
+ maxZoom: 5
109
+ gridSize: 50
110
+ }
111
+
112
+ _bound_builder: ->
113
+ @_builder('Bound')
114
+
115
+ _clusterer_builder: ->
116
+ @_builder('Clusterer')
117
+
118
+ _marker_builder: ->
119
+ @_builder('Marker')
120
+
121
+ _map_builder: ->
122
+ @_builder('Map')
123
+
124
+ _kml_builder: ->
125
+ @_builder('Kml')
126
+
127
+ _circle_builder: ->
128
+ @_builder('Circle')
129
+
130
+ _polyline_builder: ->
131
+ @_builder('Polyline')
132
+
133
+ _polygon_builder: ->
134
+ @_builder('Polygon')
135
+
136
+ _builder: (name)->
137
+ @["__builder#{name}"] ?= Gmaps.Objects.Builders(@builders[name], @models[name], @primitives)
138
+ @["__builder#{name}"]
139
+
140
+ _default_models: ->
141
+ models = @_rootModule().Objects
142
+ if @_clusterize()
143
+ models
144
+ else
145
+ models.Clusterer = Gmaps.Objects.NullClusterer
146
+ models
147
+
148
+ _default_builders: ->
149
+ @_rootModule().Builders
150
+
151
+ _rootModule: ->
152
+ @__rootModule ?= Gmaps[@type]
153
+ @__rootModule
@@ -0,0 +1,4 @@
1
+ class @Gmaps.Objects.NullClusterer
2
+ addMarkers: ->
3
+ addMarker: ->
4
+ clear: ->
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmaps4rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre
5
- prerelease: 6
4
+ version: 2.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Benjamin Roth
@@ -10,104 +10,40 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-21 00:00:00.000000000 Z
13
+ date: 2013-10-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rails
16
+ name: rspec
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ~>
20
+ - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 3.2.1
22
+ version: 2.14.0
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
- - - ~>
28
+ - - '='
29
29
  - !ruby/object:Gem::Version
30
- version: 3.2.1
30
+ version: 2.14.0
31
31
  - !ruby/object:Gem::Dependency
32
- name: sqlite3
32
+ name: rake
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  none: false
35
35
  requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
39
- type: :development
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- - !ruby/object:Gem::Dependency
48
- name: mongoid
49
- requirement: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ~>
36
+ - - '='
53
37
  - !ruby/object:Gem::Version
54
- version: '3'
38
+ version: 10.1.0
55
39
  type: :development
56
40
  prerelease: false
57
41
  version_requirements: !ruby/object:Gem::Requirement
58
42
  none: false
59
43
  requirements:
60
- - - ~>
44
+ - - '='
61
45
  - !ruby/object:Gem::Version
62
- version: '3'
63
- - !ruby/object:Gem::Dependency
64
- name: jquery-rails
65
- requirement: !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ! '>='
69
- - !ruby/object:Gem::Version
70
- version: '0'
71
- type: :development
72
- prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ! '>='
77
- - !ruby/object:Gem::Version
78
- version: '0'
79
- - !ruby/object:Gem::Dependency
80
- name: rspec-rails
81
- requirement: !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ! '>='
85
- - !ruby/object:Gem::Version
86
- version: '0'
87
- type: :development
88
- prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ! '>='
93
- - !ruby/object:Gem::Version
94
- version: '0'
95
- - !ruby/object:Gem::Dependency
96
- name: database_cleaner
97
- requirement: !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ! '>='
101
- - !ruby/object:Gem::Version
102
- version: '0'
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
46
+ version: 10.1.0
111
47
  - !ruby/object:Gem::Dependency
112
48
  name: coffee-script
113
49
  requirement: !ruby/object:Gem::Requirement
@@ -125,23 +61,7 @@ dependencies:
125
61
  - !ruby/object:Gem::Version
126
62
  version: '0'
127
63
  - !ruby/object:Gem::Dependency
128
- name: factory_girl_rails
129
- requirement: !ruby/object:Gem::Requirement
130
- none: false
131
- requirements:
132
- - - ! '>='
133
- - !ruby/object:Gem::Version
134
- version: '0'
135
- type: :development
136
- prerelease: false
137
- version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
- requirements:
140
- - - ! '>='
141
- - !ruby/object:Gem::Version
142
- version: '0'
143
- - !ruby/object:Gem::Dependency
144
- name: webmock
64
+ name: sprockets
145
65
  requirement: !ruby/object:Gem::Requirement
146
66
  none: false
147
67
  requirements:
@@ -173,7 +93,7 @@ dependencies:
173
93
  - !ruby/object:Gem::Version
174
94
  version: '0'
175
95
  description: Enables easy display of items (taken from a Rails 3 model) on a Google
176
- Maps (JS API V3), OpenLayers, Mapquest and Bing.
96
+ Maps (JS API V3), OpenLayers, Mapquest, Bing and Yandex (API V2).
177
97
  email:
178
98
  - apnea.diving.deep@gmail.com
179
99
  - david.ruyer@gmail.com
@@ -185,146 +105,55 @@ files:
185
105
  - .travis.yml
186
106
  - Gemfile
187
107
  - Gemfile.lock
188
- - Guardfile.old
189
108
  - MIT-LICENSE
190
109
  - README.rdoc
191
110
  - Rakefile
192
- - app/views/gmaps4rails/_gmaps4rails.html.erb
193
111
  - gmaps4rails.gemspec
194
- - lib/generators/gmaps4rails/install_generator.rb
195
- - lib/generators/templates/README
112
+ - js_compilation/gmaps_google.js
113
+ - lib/generators/gmaps4rails/copy_coffee_generator.rb
114
+ - lib/generators/gmaps4rails/copy_js_generator.rb
196
115
  - lib/gmaps4rails.rb
197
- - lib/gmaps4rails/acts_as_gmappable.rb
198
- - lib/gmaps4rails/api_wrappers/base_net_methods.rb
199
- - lib/gmaps4rails/api_wrappers/direction.rb
200
- - lib/gmaps4rails/api_wrappers/geocoder.rb
201
- - lib/gmaps4rails/api_wrappers/places.rb
202
- - lib/gmaps4rails/base.rb
203
- - lib/gmaps4rails/extensions/enumerable.rb
204
- - lib/gmaps4rails/extensions/hash.rb
205
- - lib/gmaps4rails/helper/gmaps4rails_helper.rb
206
- - lib/gmaps4rails/js_builder.rb
207
- - lib/gmaps4rails/json_builder.rb
208
- - lib/gmaps4rails/model_handler.rb
116
+ - lib/gmaps4rails/markers_builder.rb
117
+ - lib/gmaps4rails/rails/engine.rb
118
+ - lib/gmaps4rails/rails/railtie.rb
209
119
  - lib/gmaps4rails/version.rb
210
- - lib/gmaps4rails/view_helper.rb
211
- - lib/tasks/jasmine.rake
212
- - public/javascripts/gmaps4rails/all.js
213
- - public/javascripts/gmaps4rails/base.js
214
- - public/javascripts/gmaps4rails/google.js
215
- - public/javascripts/gmaps4rails/openlayers.js
216
- - public/stylesheets/gmaps4rails.css
217
- - spec/dummy/.gitignore
218
- - spec/dummy/.rspec
219
- - spec/dummy/README.rdoc
220
- - spec/dummy/Rakefile
221
- - spec/dummy/app/assets/javascripts/application.js
222
- - spec/dummy/app/assets/stylesheets/application.css
223
- - spec/dummy/app/assets/stylesheets/gmaps4rails.css
224
- - spec/dummy/app/controllers/application_controller.rb
225
- - spec/dummy/app/controllers/users_controller.rb
226
- - spec/dummy/app/helpers/application_helper.rb
227
- - spec/dummy/app/mailers/.gitkeep
228
- - spec/dummy/app/models/.gitkeep
229
- - spec/dummy/app/models/place.rb
230
- - spec/dummy/app/models/user.rb
231
- - spec/dummy/app/views/layouts/application.html.erb
232
- - spec/dummy/app/views/users/_form.html.erb
233
- - spec/dummy/app/views/users/edit.html.erb
234
- - spec/dummy/app/views/users/index.html.erb
235
- - spec/dummy/app/views/users/new.html.erb
236
- - spec/dummy/app/views/users/show.html.erb
237
- - spec/dummy/config.ru
238
- - spec/dummy/config/application.rb
239
- - spec/dummy/config/boot.rb
240
- - spec/dummy/config/database.yml
241
- - spec/dummy/config/environment.rb
242
- - spec/dummy/config/environments/development.rb
243
- - spec/dummy/config/environments/production.rb
244
- - spec/dummy/config/environments/test.rb
245
- - spec/dummy/config/initializers/backtrace_silencers.rb
246
- - spec/dummy/config/initializers/gmaps4rails.rb
247
- - spec/dummy/config/initializers/inflections.rb
248
- - spec/dummy/config/initializers/mime_types.rb
249
- - spec/dummy/config/initializers/secret_token.rb
250
- - spec/dummy/config/initializers/session_store.rb
251
- - spec/dummy/config/initializers/wrap_parameters.rb
252
- - spec/dummy/config/locales/en.yml
253
- - spec/dummy/config/routes.rb
254
- - spec/dummy/db/migrate/20120408170155_create_users.rb
255
- - spec/dummy/db/schema.rb
256
- - spec/dummy/lib/assets/.gitkeep
257
- - spec/dummy/log/.gitkeep
258
- - spec/dummy/public/404.html
259
- - spec/dummy/public/422.html
260
- - spec/dummy/public/500.html
261
- - spec/dummy/public/favicon.ico
262
- - spec/dummy/public/javascripts/Player.js
263
- - spec/dummy/public/javascripts/Song.js
264
- - spec/dummy/public/logo.png
265
- - spec/dummy/script/rails
266
- - spec/factories/place_factory.rb
267
- - spec/factories/user_factory.rb
268
- - spec/fixtures/google_direction_valid.json
269
- - spec/fixtures/google_geocoding_toulon_france.json
270
- - spec/fixtures/google_places_valid.json
271
- - spec/fixtures/google_wrong_geocoding.json
272
- - spec/launchers/all_but_requests.rb
273
- - spec/launchers/all_specs.rb
274
- - spec/launchers/requests.rb
120
+ - script/compile_coffee_files.rb
121
+ - script/gmaps4rails.rake
122
+ - spec/javascripts/google/builders/marker_spec.js
123
+ - spec/javascripts/helpers/SpecHelper.js
124
+ - spec/javascripts/helpers/matchers.js
125
+ - spec/javascripts/helpers/underscore.js
126
+ - spec/javascripts/objects/handler_spec.js
127
+ - spec/javascripts/support/jasmine.yml
128
+ - spec/javascripts/support/jasmine_helper.rb
275
129
  - spec/lib/base_spec.rb
276
- - spec/lib/direction_spec.rb
277
- - spec/lib/geocoder_spec.rb
278
- - spec/lib/js_builder_spec.rb
279
- - spec/lib/json_builder_spec.rb
280
- - spec/lib/places_spec.rb
281
- - spec/models/place_spec.rb
282
- - spec/models/user_spec.rb
130
+ - spec/lib/markers_builder_spec.rb
283
131
  - spec/spec_helper.rb
284
- - spec/support/geocoding.rb
285
- - spec/support/matchers.rb
286
- - todo
287
- - vendor/assets/javascripts/gmaps4rails/all.js
288
- - vendor/assets/javascripts/gmaps4rails/base.coffee
289
- - vendor/assets/javascripts/gmaps4rails/base/common.coffee
290
- - vendor/assets/javascripts/gmaps4rails/base/configuration.coffee
291
- - vendor/assets/javascripts/gmaps4rails/base/gmaps.coffee
292
- - vendor/assets/javascripts/gmaps4rails/base/interfaces/basic_interface.coffee
293
- - vendor/assets/javascripts/gmaps4rails/base/interfaces/controller_interface.coffee
294
- - vendor/assets/javascripts/gmaps4rails/base/interfaces/map_interface.coffee
295
- - vendor/assets/javascripts/gmaps4rails/base/interfaces/marker_interface.coffee
296
- - vendor/assets/javascripts/gmaps4rails/base/main.coffee
297
- - vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/circle_controller.coffee
298
- - vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/kml_controller.coffee
299
- - vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/marker_controller.coffee
300
- - vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/polygon_controller.coffee
301
- - vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/polyline_controller.coffee
302
- - vendor/assets/javascripts/gmaps4rails/base/objects/circle.coffee
303
- - vendor/assets/javascripts/gmaps4rails/base/objects/kml.coffee
304
- - vendor/assets/javascripts/gmaps4rails/base/objects/map.coffee
305
- - vendor/assets/javascripts/gmaps4rails/base/objects/marker.coffee
306
- - vendor/assets/javascripts/gmaps4rails/base/objects/polygon.coffee
307
- - vendor/assets/javascripts/gmaps4rails/base/objects/polyline.coffee
308
- - vendor/assets/javascripts/gmaps4rails/bing.coffee
309
- - vendor/assets/javascripts/gmaps4rails/bing/main.coffee
310
- - vendor/assets/javascripts/gmaps4rails/bing/objects/map.coffee
311
- - vendor/assets/javascripts/gmaps4rails/bing/objects/marker.coffee
312
- - vendor/assets/javascripts/gmaps4rails/bing/shared.coffee
313
- - vendor/assets/javascripts/gmaps4rails/google.coffee
314
- - vendor/assets/javascripts/gmaps4rails/google/main.coffee
315
- - vendor/assets/javascripts/gmaps4rails/google/objects/circle.coffee
316
- - vendor/assets/javascripts/gmaps4rails/google/objects/kml.coffee
317
- - vendor/assets/javascripts/gmaps4rails/google/objects/map.coffee
318
- - vendor/assets/javascripts/gmaps4rails/google/objects/marker.coffee
319
- - vendor/assets/javascripts/gmaps4rails/google/objects/polygon.coffee
320
- - vendor/assets/javascripts/gmaps4rails/google/objects/polyline.coffee
321
- - vendor/assets/javascripts/gmaps4rails/google/shared.coffee
322
- - vendor/assets/javascripts/gmaps4rails/openlayers.coffee
323
- - vendor/assets/javascripts/gmaps4rails/openlayers/main.coffee
324
- - vendor/assets/javascripts/gmaps4rails/openlayers/objects/map.coffee
325
- - vendor/assets/javascripts/gmaps4rails/openlayers/objects/marker.coffee
326
- - vendor/assets/javascripts/gmaps4rails/openlayers/objects/polyline.coffee
327
- - vendor/assets/javascripts/gmaps4rails/openlayers/shared.coffee
132
+ - vendor/assets/javascripts/gmaps/base.coffee
133
+ - vendor/assets/javascripts/gmaps/base/base.coffee
134
+ - vendor/assets/javascripts/gmaps/google.coffee
135
+ - vendor/assets/javascripts/gmaps/google/builders/bound.coffee
136
+ - vendor/assets/javascripts/gmaps/google/builders/circle.coffee
137
+ - vendor/assets/javascripts/gmaps/google/builders/clusterer.coffee
138
+ - vendor/assets/javascripts/gmaps/google/builders/kml.coffee
139
+ - vendor/assets/javascripts/gmaps/google/builders/map.coffee
140
+ - vendor/assets/javascripts/gmaps/google/builders/marker.coffee
141
+ - vendor/assets/javascripts/gmaps/google/builders/polygon.coffee
142
+ - vendor/assets/javascripts/gmaps/google/builders/polyline.coffee
143
+ - vendor/assets/javascripts/gmaps/google/objects/bound.coffee
144
+ - vendor/assets/javascripts/gmaps/google/objects/circle.coffee
145
+ - vendor/assets/javascripts/gmaps/google/objects/clusterer.coffee
146
+ - vendor/assets/javascripts/gmaps/google/objects/common.coffee
147
+ - vendor/assets/javascripts/gmaps/google/objects/kml.coffee
148
+ - vendor/assets/javascripts/gmaps/google/objects/map.coffee
149
+ - vendor/assets/javascripts/gmaps/google/objects/marker.coffee
150
+ - vendor/assets/javascripts/gmaps/google/objects/polygon.coffee
151
+ - vendor/assets/javascripts/gmaps/google/objects/polyline.coffee
152
+ - vendor/assets/javascripts/gmaps/google/primitives.coffee
153
+ - vendor/assets/javascripts/gmaps/objects/base_builder.coffee
154
+ - vendor/assets/javascripts/gmaps/objects/builder.coffee
155
+ - vendor/assets/javascripts/gmaps/objects/handler.coffee
156
+ - vendor/assets/javascripts/gmaps/objects/null_clusterer.coffee
328
157
  homepage: http://github.com/apneadiving/Google-Maps-for-Rails
329
158
  licenses: []
330
159
  post_install_message:
@@ -337,15 +166,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
337
166
  - - ! '>='
338
167
  - !ruby/object:Gem::Version
339
168
  version: '0'
340
- segments:
341
- - 0
342
- hash: -3675114591497841925
343
169
  required_rubygems_version: !ruby/object:Gem::Requirement
344
170
  none: false
345
171
  requirements:
346
- - - ! '>'
172
+ - - ! '>='
347
173
  - !ruby/object:Gem::Version
348
- version: 1.3.1
174
+ version: '0'
349
175
  requirements: []
350
176
  rubyforge_project:
351
177
  rubygems_version: 1.8.24
@@ -353,72 +179,13 @@ signing_key:
353
179
  specification_version: 3
354
180
  summary: Maps made easy for Rails 3
355
181
  test_files:
356
- - spec/dummy/.gitignore
357
- - spec/dummy/.rspec
358
- - spec/dummy/README.rdoc
359
- - spec/dummy/Rakefile
360
- - spec/dummy/app/assets/javascripts/application.js
361
- - spec/dummy/app/assets/stylesheets/application.css
362
- - spec/dummy/app/assets/stylesheets/gmaps4rails.css
363
- - spec/dummy/app/controllers/application_controller.rb
364
- - spec/dummy/app/controllers/users_controller.rb
365
- - spec/dummy/app/helpers/application_helper.rb
366
- - spec/dummy/app/mailers/.gitkeep
367
- - spec/dummy/app/models/.gitkeep
368
- - spec/dummy/app/models/place.rb
369
- - spec/dummy/app/models/user.rb
370
- - spec/dummy/app/views/layouts/application.html.erb
371
- - spec/dummy/app/views/users/_form.html.erb
372
- - spec/dummy/app/views/users/edit.html.erb
373
- - spec/dummy/app/views/users/index.html.erb
374
- - spec/dummy/app/views/users/new.html.erb
375
- - spec/dummy/app/views/users/show.html.erb
376
- - spec/dummy/config.ru
377
- - spec/dummy/config/application.rb
378
- - spec/dummy/config/boot.rb
379
- - spec/dummy/config/database.yml
380
- - spec/dummy/config/environment.rb
381
- - spec/dummy/config/environments/development.rb
382
- - spec/dummy/config/environments/production.rb
383
- - spec/dummy/config/environments/test.rb
384
- - spec/dummy/config/initializers/backtrace_silencers.rb
385
- - spec/dummy/config/initializers/gmaps4rails.rb
386
- - spec/dummy/config/initializers/inflections.rb
387
- - spec/dummy/config/initializers/mime_types.rb
388
- - spec/dummy/config/initializers/secret_token.rb
389
- - spec/dummy/config/initializers/session_store.rb
390
- - spec/dummy/config/initializers/wrap_parameters.rb
391
- - spec/dummy/config/locales/en.yml
392
- - spec/dummy/config/routes.rb
393
- - spec/dummy/db/migrate/20120408170155_create_users.rb
394
- - spec/dummy/db/schema.rb
395
- - spec/dummy/lib/assets/.gitkeep
396
- - spec/dummy/log/.gitkeep
397
- - spec/dummy/public/404.html
398
- - spec/dummy/public/422.html
399
- - spec/dummy/public/500.html
400
- - spec/dummy/public/favicon.ico
401
- - spec/dummy/public/javascripts/Player.js
402
- - spec/dummy/public/javascripts/Song.js
403
- - spec/dummy/public/logo.png
404
- - spec/dummy/script/rails
405
- - spec/factories/place_factory.rb
406
- - spec/factories/user_factory.rb
407
- - spec/fixtures/google_direction_valid.json
408
- - spec/fixtures/google_geocoding_toulon_france.json
409
- - spec/fixtures/google_places_valid.json
410
- - spec/fixtures/google_wrong_geocoding.json
411
- - spec/launchers/all_but_requests.rb
412
- - spec/launchers/all_specs.rb
413
- - spec/launchers/requests.rb
182
+ - spec/javascripts/google/builders/marker_spec.js
183
+ - spec/javascripts/helpers/SpecHelper.js
184
+ - spec/javascripts/helpers/matchers.js
185
+ - spec/javascripts/helpers/underscore.js
186
+ - spec/javascripts/objects/handler_spec.js
187
+ - spec/javascripts/support/jasmine.yml
188
+ - spec/javascripts/support/jasmine_helper.rb
414
189
  - spec/lib/base_spec.rb
415
- - spec/lib/direction_spec.rb
416
- - spec/lib/geocoder_spec.rb
417
- - spec/lib/js_builder_spec.rb
418
- - spec/lib/json_builder_spec.rb
419
- - spec/lib/places_spec.rb
420
- - spec/models/place_spec.rb
421
- - spec/models/user_spec.rb
190
+ - spec/lib/markers_builder_spec.rb
422
191
  - spec/spec_helper.rb
423
- - spec/support/geocoding.rb
424
- - spec/support/matchers.rb