campfire_logic 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. data/Capfile +4 -0
  2. data/Gemfile +29 -0
  3. data/Gemfile.local +27 -0
  4. data/README.rdoc +17 -0
  5. data/Rakefile +43 -0
  6. data/VERSION +1 -0
  7. data/app/controllers/application_controller.rb +5 -0
  8. data/app/controllers/directory_controller.rb +65 -0
  9. data/app/controllers/locations_controller.rb +65 -0
  10. data/app/controllers/services_controller.rb +46 -0
  11. data/app/helpers/application_helper.rb +27 -0
  12. data/app/models/google_maps_geocoder.rb +108 -0
  13. data/app/models/locale.rb +204 -0
  14. data/app/models/location.rb +216 -0
  15. data/app/models/location_import.rb +48 -0
  16. data/app/models/service.rb +27 -0
  17. data/app/models/zip_code.rb +48 -0
  18. data/app/models/zip_code_import.rb +19 -0
  19. data/app/views/directory/_search_form.html.erb +4 -0
  20. data/app/views/directory/_show_children.html.erb +29 -0
  21. data/app/views/directory/_show_location.html.erb +14 -0
  22. data/app/views/directory/search.html.erb +31 -0
  23. data/app/views/directory/show.html.erb +32 -0
  24. data/app/views/layouts/application.html.erb +49 -0
  25. data/app/views/locations/_form.html.erb +69 -0
  26. data/app/views/locations/edit.html.erb +3 -0
  27. data/app/views/locations/export.erb +4 -0
  28. data/app/views/locations/import.html.erb +13 -0
  29. data/app/views/locations/index.html.erb +37 -0
  30. data/app/views/locations/new.html.erb +3 -0
  31. data/app/views/locations/show.html.erb +70 -0
  32. data/app/views/services/_form.html.erb +29 -0
  33. data/app/views/services/edit.html.erb +3 -0
  34. data/app/views/services/index.html.erb +25 -0
  35. data/app/views/services/new.html.erb +3 -0
  36. data/app/views/services/show.html.erb +15 -0
  37. data/app/views/shared/_location.html.erb +18 -0
  38. data/app/views/shared/_map.html.erb +2 -0
  39. data/app/views/shared/_nav_tabs.html.erb +5 -0
  40. data/autotest/discover.rb +1 -0
  41. data/campfire_logic.gemspec +208 -0
  42. data/config/application.rb +44 -0
  43. data/config/boot.rb +13 -0
  44. data/config/cucumber.yml +10 -0
  45. data/config/deploy.rb +40 -0
  46. data/config/environment.rb +6 -0
  47. data/config/environments/development.rb +28 -0
  48. data/config/environments/production.rb +49 -0
  49. data/config/environments/test.rb +35 -0
  50. data/config/initializers/campfire_logic.rb +3 -0
  51. data/config/initializers/metric_fu.rb +9 -0
  52. data/config/initializers/secret_token.rb +7 -0
  53. data/config/initializers/session_store.rb +8 -0
  54. data/config/locales/en.yml +5 -0
  55. data/config/mongoid.yml +25 -0
  56. data/config/routes.rb +96 -0
  57. data/config.ru +4 -0
  58. data/db/seeds.rb +5 -0
  59. data/db/zip_codes.txt +42742 -0
  60. data/doc/google_maps_response.rb +56 -0
  61. data/features/admin_manages_locations.feature +10 -0
  62. data/features/customer_browses_directory.feature +25 -0
  63. data/features/customer_searches_directory.feature +29 -0
  64. data/features/step_definitions/directory_steps.rb +22 -0
  65. data/features/step_definitions/location_steps.rb +10 -0
  66. data/features/step_definitions/web_steps.rb +211 -0
  67. data/features/support/env.rb +31 -0
  68. data/features/support/paths.rb +33 -0
  69. data/features/support/selectors.rb +39 -0
  70. data/init.rb +1 -0
  71. data/lib/campfire_logic/engine.rb +7 -0
  72. data/lib/campfire_logic/railtie.rb +10 -0
  73. data/lib/campfire_logic.rb +31 -0
  74. data/lib/tasks/campfire_logic.rake +7 -0
  75. data/lib/tasks/cucumber.rake +71 -0
  76. data/public/404.html +26 -0
  77. data/public/422.html +26 -0
  78. data/public/500.html +26 -0
  79. data/public/favicon.ico +0 -0
  80. data/public/images/icons/collapsed.gif +0 -0
  81. data/public/images/icons/delete.png +0 -0
  82. data/public/images/icons/drag.png +0 -0
  83. data/public/images/icons/edit.png +0 -0
  84. data/public/images/icons/expanded.gif +0 -0
  85. data/public/images/icons/help_icon.png +0 -0
  86. data/public/images/icons/link_icon.png +0 -0
  87. data/public/images/icons/move.png +0 -0
  88. data/public/images/icons/move_white.png +0 -0
  89. data/public/images/icons/note.png +0 -0
  90. data/public/images/icons/note_white.png +0 -0
  91. data/public/images/icons/notification_icon_sprite.png +0 -0
  92. data/public/images/icons/spinner.gif +0 -0
  93. data/public/images/icons/view.png +0 -0
  94. data/public/images/icons/warning.png +0 -0
  95. data/public/images/icons/warning_2.png +0 -0
  96. data/public/images/icons/warning_box.png +0 -0
  97. data/public/images/icons/warning_icon.png +0 -0
  98. data/public/images/icons/warning_white.png +0 -0
  99. data/public/images/layout/arrow_asc.png +0 -0
  100. data/public/images/layout/arrow_desc.png +0 -0
  101. data/public/images/layout/black_bar.png +0 -0
  102. data/public/images/layout/branding.png +0 -0
  103. data/public/images/layout/button_bg.png +0 -0
  104. data/public/images/layout/content_left_bg.png +0 -0
  105. data/public/images/layout/content_right_bg.png +0 -0
  106. data/public/images/layout/footer_bg.png +0 -0
  107. data/public/images/layout/h2_bg.png +0 -0
  108. data/public/images/layout/h2_bg_for_table.png +0 -0
  109. data/public/images/layout/header_bg_grey.png +0 -0
  110. data/public/images/layout/header_bg_purple.png +0 -0
  111. data/public/images/layout/legend_bg.png +0 -0
  112. data/public/images/layout/text_field_bg.jpg +0 -0
  113. data/public/images/layout/text_field_error_bg.png +0 -0
  114. data/public/images/layout/th_bg.png +0 -0
  115. data/public/images/layout/th_bg_selected.png +0 -0
  116. data/public/images/rails.png +0 -0
  117. data/public/index.html +9 -0
  118. data/public/javascripts/application.js +2 -0
  119. data/public/javascripts/controls.js +965 -0
  120. data/public/javascripts/dragdrop.js +974 -0
  121. data/public/javascripts/effects.js +1123 -0
  122. data/public/javascripts/prototype.js +6001 -0
  123. data/public/javascripts/rails.js +175 -0
  124. data/public/robots.txt +6 -0
  125. data/public/sample-locations.xls +1 -0
  126. data/public/stylesheets/.gitkeep +0 -0
  127. data/public/stylesheets/application.css +682 -0
  128. data/public/stylesheets/core.css +1147 -0
  129. data/public/stylesheets/core_ie.css +52 -0
  130. data/public/stylesheets/csshover3.htc +14 -0
  131. data/script/cucumber +10 -0
  132. data/script/rails +6 -0
  133. data/spec/controllers/directory_controller_spec.rb +11 -0
  134. data/spec/controllers/services_controller_spec.rb +62 -0
  135. data/spec/models/google_maps_geocoder_spec.rb +62 -0
  136. data/spec/models/locale_spec.rb +64 -0
  137. data/spec/models/location_import_spec.rb +41 -0
  138. data/spec/models/location_spec.rb +195 -0
  139. data/spec/rcov.opts +2 -0
  140. data/spec/spec_helper.rb +12 -0
  141. data/spec/test-locations.xls +1 -0
  142. metadata +361 -0
metadata ADDED
@@ -0,0 +1,361 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: campfire_logic
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 1
9
+ - 7
10
+ version: 1.1.7
11
+ platform: ruby
12
+ authors:
13
+ - Roderick Monje
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-07-17 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: bson_ext
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: fastercsv
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: mongoid-tree
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ type: :runtime
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
74
+ type: :runtime
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
77
+ name: rails
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 7
85
+ segments:
86
+ - 3
87
+ - 0
88
+ version: "3.0"
89
+ type: :runtime
90
+ version_requirements: *id005
91
+ - !ruby/object:Gem::Dependency
92
+ name: scaffold_logic
93
+ prerelease: false
94
+ requirement: &id006 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ hash: 3
100
+ segments:
101
+ - 0
102
+ version: "0"
103
+ type: :runtime
104
+ version_requirements: *id006
105
+ - !ruby/object:Gem::Dependency
106
+ name: stateflow
107
+ prerelease: false
108
+ requirement: &id007 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ hash: 3
114
+ segments:
115
+ - 0
116
+ version: "0"
117
+ type: :runtime
118
+ version_requirements: *id007
119
+ - !ruby/object:Gem::Dependency
120
+ name: stringex
121
+ prerelease: false
122
+ requirement: &id008 !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ hash: 3
128
+ segments:
129
+ - 0
130
+ version: "0"
131
+ type: :runtime
132
+ version_requirements: *id008
133
+ - !ruby/object:Gem::Dependency
134
+ name: SystemTimer
135
+ prerelease: false
136
+ requirement: &id009 !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ hash: 3
142
+ segments:
143
+ - 0
144
+ version: "0"
145
+ type: :runtime
146
+ version_requirements: *id009
147
+ - !ruby/object:Gem::Dependency
148
+ name: jeweler
149
+ prerelease: false
150
+ requirement: &id010 !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ hash: 3
156
+ segments:
157
+ - 0
158
+ version: "0"
159
+ type: :development
160
+ version_requirements: *id010
161
+ - !ruby/object:Gem::Dependency
162
+ name: rspec
163
+ prerelease: false
164
+ requirement: &id011 !ruby/object:Gem::Requirement
165
+ none: false
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ hash: 13
170
+ segments:
171
+ - 1
172
+ - 2
173
+ - 9
174
+ version: 1.2.9
175
+ type: :development
176
+ version_requirements: *id011
177
+ description: Users can browse locations by country, city, and state and search locations by string or zip code. Administrators can manage locations and the services they offer.
178
+ email: rod@seologic.com
179
+ executables: []
180
+
181
+ extensions: []
182
+
183
+ extra_rdoc_files:
184
+ - README.rdoc
185
+ files:
186
+ - Capfile
187
+ - Gemfile
188
+ - Gemfile.local
189
+ - README.rdoc
190
+ - Rakefile
191
+ - VERSION
192
+ - app/controllers/application_controller.rb
193
+ - app/controllers/directory_controller.rb
194
+ - app/controllers/locations_controller.rb
195
+ - app/controllers/services_controller.rb
196
+ - app/helpers/application_helper.rb
197
+ - app/models/google_maps_geocoder.rb
198
+ - app/models/locale.rb
199
+ - app/models/location.rb
200
+ - app/models/location_import.rb
201
+ - app/models/service.rb
202
+ - app/models/zip_code.rb
203
+ - app/models/zip_code_import.rb
204
+ - app/views/directory/_search_form.html.erb
205
+ - app/views/directory/_show_children.html.erb
206
+ - app/views/directory/_show_location.html.erb
207
+ - app/views/directory/search.html.erb
208
+ - app/views/directory/show.html.erb
209
+ - app/views/layouts/application.html.erb
210
+ - app/views/locations/_form.html.erb
211
+ - app/views/locations/edit.html.erb
212
+ - app/views/locations/export.erb
213
+ - app/views/locations/import.html.erb
214
+ - app/views/locations/index.html.erb
215
+ - app/views/locations/new.html.erb
216
+ - app/views/locations/show.html.erb
217
+ - app/views/services/_form.html.erb
218
+ - app/views/services/edit.html.erb
219
+ - app/views/services/index.html.erb
220
+ - app/views/services/new.html.erb
221
+ - app/views/services/show.html.erb
222
+ - app/views/shared/_location.html.erb
223
+ - app/views/shared/_map.html.erb
224
+ - app/views/shared/_nav_tabs.html.erb
225
+ - autotest/discover.rb
226
+ - campfire_logic.gemspec
227
+ - config.ru
228
+ - config/application.rb
229
+ - config/boot.rb
230
+ - config/cucumber.yml
231
+ - config/deploy.rb
232
+ - config/environment.rb
233
+ - config/environments/development.rb
234
+ - config/environments/production.rb
235
+ - config/environments/test.rb
236
+ - config/initializers/campfire_logic.rb
237
+ - config/initializers/metric_fu.rb
238
+ - config/initializers/secret_token.rb
239
+ - config/initializers/session_store.rb
240
+ - config/locales/en.yml
241
+ - config/mongoid.yml
242
+ - config/routes.rb
243
+ - db/seeds.rb
244
+ - db/zip_codes.txt
245
+ - doc/google_maps_response.rb
246
+ - features/admin_manages_locations.feature
247
+ - features/customer_browses_directory.feature
248
+ - features/customer_searches_directory.feature
249
+ - features/step_definitions/directory_steps.rb
250
+ - features/step_definitions/location_steps.rb
251
+ - features/step_definitions/web_steps.rb
252
+ - features/support/env.rb
253
+ - features/support/paths.rb
254
+ - features/support/selectors.rb
255
+ - init.rb
256
+ - lib/campfire_logic.rb
257
+ - lib/campfire_logic/engine.rb
258
+ - lib/campfire_logic/railtie.rb
259
+ - lib/tasks/campfire_logic.rake
260
+ - lib/tasks/cucumber.rake
261
+ - public/404.html
262
+ - public/422.html
263
+ - public/500.html
264
+ - public/favicon.ico
265
+ - public/images/icons/collapsed.gif
266
+ - public/images/icons/delete.png
267
+ - public/images/icons/drag.png
268
+ - public/images/icons/edit.png
269
+ - public/images/icons/expanded.gif
270
+ - public/images/icons/help_icon.png
271
+ - public/images/icons/link_icon.png
272
+ - public/images/icons/move.png
273
+ - public/images/icons/move_white.png
274
+ - public/images/icons/note.png
275
+ - public/images/icons/note_white.png
276
+ - public/images/icons/notification_icon_sprite.png
277
+ - public/images/icons/spinner.gif
278
+ - public/images/icons/view.png
279
+ - public/images/icons/warning.png
280
+ - public/images/icons/warning_2.png
281
+ - public/images/icons/warning_box.png
282
+ - public/images/icons/warning_icon.png
283
+ - public/images/icons/warning_white.png
284
+ - public/images/layout/arrow_asc.png
285
+ - public/images/layout/arrow_desc.png
286
+ - public/images/layout/black_bar.png
287
+ - public/images/layout/branding.png
288
+ - public/images/layout/button_bg.png
289
+ - public/images/layout/content_left_bg.png
290
+ - public/images/layout/content_right_bg.png
291
+ - public/images/layout/footer_bg.png
292
+ - public/images/layout/h2_bg.png
293
+ - public/images/layout/h2_bg_for_table.png
294
+ - public/images/layout/header_bg_grey.png
295
+ - public/images/layout/header_bg_purple.png
296
+ - public/images/layout/legend_bg.png
297
+ - public/images/layout/text_field_bg.jpg
298
+ - public/images/layout/text_field_error_bg.png
299
+ - public/images/layout/th_bg.png
300
+ - public/images/layout/th_bg_selected.png
301
+ - public/images/rails.png
302
+ - public/index.html
303
+ - public/javascripts/application.js
304
+ - public/javascripts/controls.js
305
+ - public/javascripts/dragdrop.js
306
+ - public/javascripts/effects.js
307
+ - public/javascripts/prototype.js
308
+ - public/javascripts/rails.js
309
+ - public/robots.txt
310
+ - public/sample-locations.xls
311
+ - public/stylesheets/.gitkeep
312
+ - public/stylesheets/application.css
313
+ - public/stylesheets/core.css
314
+ - public/stylesheets/core_ie.css
315
+ - public/stylesheets/csshover3.htc
316
+ - script/cucumber
317
+ - script/rails
318
+ - spec/controllers/directory_controller_spec.rb
319
+ - spec/controllers/services_controller_spec.rb
320
+ - spec/models/google_maps_geocoder_spec.rb
321
+ - spec/models/locale_spec.rb
322
+ - spec/models/location_import_spec.rb
323
+ - spec/models/location_spec.rb
324
+ - spec/rcov.opts
325
+ - spec/spec_helper.rb
326
+ - spec/test-locations.xls
327
+ homepage: http://github.com/ivanoblomov/campfire_logic
328
+ licenses: []
329
+
330
+ post_install_message:
331
+ rdoc_options: []
332
+
333
+ require_paths:
334
+ - lib
335
+ required_ruby_version: !ruby/object:Gem::Requirement
336
+ none: false
337
+ requirements:
338
+ - - ">="
339
+ - !ruby/object:Gem::Version
340
+ hash: 3
341
+ segments:
342
+ - 0
343
+ version: "0"
344
+ required_rubygems_version: !ruby/object:Gem::Requirement
345
+ none: false
346
+ requirements:
347
+ - - ">="
348
+ - !ruby/object:Gem::Version
349
+ hash: 3
350
+ segments:
351
+ - 0
352
+ version: "0"
353
+ requirements: []
354
+
355
+ rubyforge_project:
356
+ rubygems_version: 1.8.5
357
+ signing_key:
358
+ specification_version: 3
359
+ summary: Rails engine that adds a location directory to your web app
360
+ test_files: []
361
+