zip_search 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/zip_search/init.js +16 -0
- data/app/assets/javascripts/zip_search/jquery.inputmask.bundle.js +2145 -0
- data/app/assets/javascripts/zip_search/locations.coffee +69 -0
- data/app/assets/stylesheets/zip_search/application.css +15 -0
- data/app/assets/stylesheets/zip_search/locations.css +4 -0
- data/app/assets/stylesheets/zip_search/typeahead.scss +72 -0
- data/app/controllers/zip_search/application_controller.rb +4 -0
- data/app/controllers/zip_search/locations_controller.rb +43 -0
- data/app/helpers/zip_search/application_helper.rb +4 -0
- data/app/helpers/zip_search/locations_helper.rb +4 -0
- data/app/models/zip_search/location.rb +9 -0
- data/app/views/layouts/zip_search/application.html.erb +14 -0
- data/app/views/zip_search/_simple_fields.html.erb +4 -0
- data/app/views/zip_search/locations/_search_field.html.erb +19 -0
- data/config/routes.rb +4 -0
- data/config/spring.rb +1 -0
- data/db/migrate/20150914014727_create_zip_search_locations.rb +17 -0
- data/db/migrate/20150920034901_add_zs_association_name_to_zip_search_locations.rb +7 -0
- data/lib/generators/zip_search/install/install_generator.rb +22 -0
- data/lib/tasks/zip_search_tasks.rake +4 -0
- data/lib/zip_search/acts_as_location.rb +61 -0
- data/lib/zip_search/capybara_helpers.rb +9 -0
- data/lib/zip_search/controller_helpers.rb +79 -0
- data/lib/zip_search/engine.rb +38 -0
- data/lib/zip_search/has_locations.rb +87 -0
- data/lib/zip_search/model_helpers.rb +29 -0
- data/lib/zip_search/railtie.rb +18 -0
- data/lib/zip_search/simple_form_helper.rb +50 -0
- data/lib/zip_search/strong_params_helper.rb +17 -0
- data/lib/zip_search/version.rb +3 -0
- data/lib/zip_search/view_helpers.rb +31 -0
- data/lib/zip_search.rb +62 -0
- data/spec/factories/travelers.rb +40 -0
- data/spec/features/travelers_spec.rb +68 -0
- data/spec/models/traveler_spec.rb +38 -0
- data/spec/models/zip_search/location_spec.rb +7 -0
- data/spec/spec_helper.rb +134 -0
- metadata +383 -0
metadata
ADDED
@@ -0,0 +1,383 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zip_search
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- MacKinley Smith
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: capybara
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: factory_girl_rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: ffaker
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: database_cleaner
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: selenium-webdriver
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: byebug
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: guard
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: guard-zeus
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: guard-rails
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: better_errors
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: binding_of_caller
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: rails
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: pg
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: pg_search
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :runtime
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: twitter-typeahead-rails
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :runtime
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: geocoder
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :runtime
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: coffee-rails
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :runtime
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: jquery-rails
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ">="
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
300
|
+
type: :runtime
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '0'
|
307
|
+
description:
|
308
|
+
email:
|
309
|
+
- smit1625@msu.edu
|
310
|
+
executables: []
|
311
|
+
extensions: []
|
312
|
+
extra_rdoc_files: []
|
313
|
+
files:
|
314
|
+
- MIT-LICENSE
|
315
|
+
- README.rdoc
|
316
|
+
- Rakefile
|
317
|
+
- app/assets/javascripts/zip_search/init.js
|
318
|
+
- app/assets/javascripts/zip_search/jquery.inputmask.bundle.js
|
319
|
+
- app/assets/javascripts/zip_search/locations.coffee
|
320
|
+
- app/assets/stylesheets/zip_search/application.css
|
321
|
+
- app/assets/stylesheets/zip_search/locations.css
|
322
|
+
- app/assets/stylesheets/zip_search/typeahead.scss
|
323
|
+
- app/controllers/zip_search/application_controller.rb
|
324
|
+
- app/controllers/zip_search/locations_controller.rb
|
325
|
+
- app/helpers/zip_search/application_helper.rb
|
326
|
+
- app/helpers/zip_search/locations_helper.rb
|
327
|
+
- app/models/zip_search/location.rb
|
328
|
+
- app/views/layouts/zip_search/application.html.erb
|
329
|
+
- app/views/zip_search/_simple_fields.html.erb
|
330
|
+
- app/views/zip_search/locations/_search_field.html.erb
|
331
|
+
- config/routes.rb
|
332
|
+
- config/spring.rb
|
333
|
+
- db/migrate/20150914014727_create_zip_search_locations.rb
|
334
|
+
- db/migrate/20150920034901_add_zs_association_name_to_zip_search_locations.rb
|
335
|
+
- lib/generators/zip_search/install/install_generator.rb
|
336
|
+
- lib/tasks/zip_search_tasks.rake
|
337
|
+
- lib/zip_search.rb
|
338
|
+
- lib/zip_search/acts_as_location.rb
|
339
|
+
- lib/zip_search/capybara_helpers.rb
|
340
|
+
- lib/zip_search/controller_helpers.rb
|
341
|
+
- lib/zip_search/engine.rb
|
342
|
+
- lib/zip_search/has_locations.rb
|
343
|
+
- lib/zip_search/model_helpers.rb
|
344
|
+
- lib/zip_search/railtie.rb
|
345
|
+
- lib/zip_search/simple_form_helper.rb
|
346
|
+
- lib/zip_search/strong_params_helper.rb
|
347
|
+
- lib/zip_search/version.rb
|
348
|
+
- lib/zip_search/view_helpers.rb
|
349
|
+
- spec/factories/travelers.rb
|
350
|
+
- spec/features/travelers_spec.rb
|
351
|
+
- spec/models/traveler_spec.rb
|
352
|
+
- spec/models/zip_search/location_spec.rb
|
353
|
+
- spec/spec_helper.rb
|
354
|
+
homepage: http://mackinleysmith.com/
|
355
|
+
licenses:
|
356
|
+
- MIT
|
357
|
+
metadata: {}
|
358
|
+
post_install_message:
|
359
|
+
rdoc_options: []
|
360
|
+
require_paths:
|
361
|
+
- lib
|
362
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
363
|
+
requirements:
|
364
|
+
- - ">="
|
365
|
+
- !ruby/object:Gem::Version
|
366
|
+
version: '0'
|
367
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
368
|
+
requirements:
|
369
|
+
- - ">="
|
370
|
+
- !ruby/object:Gem::Version
|
371
|
+
version: '0'
|
372
|
+
requirements: []
|
373
|
+
rubyforge_project:
|
374
|
+
rubygems_version: 2.4.8
|
375
|
+
signing_key:
|
376
|
+
specification_version: 4
|
377
|
+
summary: Search by zip code.
|
378
|
+
test_files:
|
379
|
+
- spec/factories/travelers.rb
|
380
|
+
- spec/features/travelers_spec.rb
|
381
|
+
- spec/models/traveler_spec.rb
|
382
|
+
- spec/models/zip_search/location_spec.rb
|
383
|
+
- spec/spec_helper.rb
|