zip_search 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +37 -0
  5. data/app/assets/javascripts/zip_search/init.js +16 -0
  6. data/app/assets/javascripts/zip_search/jquery.inputmask.bundle.js +2145 -0
  7. data/app/assets/javascripts/zip_search/locations.coffee +69 -0
  8. data/app/assets/stylesheets/zip_search/application.css +15 -0
  9. data/app/assets/stylesheets/zip_search/locations.css +4 -0
  10. data/app/assets/stylesheets/zip_search/typeahead.scss +72 -0
  11. data/app/controllers/zip_search/application_controller.rb +4 -0
  12. data/app/controllers/zip_search/locations_controller.rb +43 -0
  13. data/app/helpers/zip_search/application_helper.rb +4 -0
  14. data/app/helpers/zip_search/locations_helper.rb +4 -0
  15. data/app/models/zip_search/location.rb +9 -0
  16. data/app/views/layouts/zip_search/application.html.erb +14 -0
  17. data/app/views/zip_search/_simple_fields.html.erb +4 -0
  18. data/app/views/zip_search/locations/_search_field.html.erb +19 -0
  19. data/config/routes.rb +4 -0
  20. data/config/spring.rb +1 -0
  21. data/db/migrate/20150914014727_create_zip_search_locations.rb +17 -0
  22. data/db/migrate/20150920034901_add_zs_association_name_to_zip_search_locations.rb +7 -0
  23. data/lib/generators/zip_search/install/install_generator.rb +22 -0
  24. data/lib/tasks/zip_search_tasks.rake +4 -0
  25. data/lib/zip_search/acts_as_location.rb +61 -0
  26. data/lib/zip_search/capybara_helpers.rb +9 -0
  27. data/lib/zip_search/controller_helpers.rb +79 -0
  28. data/lib/zip_search/engine.rb +38 -0
  29. data/lib/zip_search/has_locations.rb +87 -0
  30. data/lib/zip_search/model_helpers.rb +29 -0
  31. data/lib/zip_search/railtie.rb +18 -0
  32. data/lib/zip_search/simple_form_helper.rb +50 -0
  33. data/lib/zip_search/strong_params_helper.rb +17 -0
  34. data/lib/zip_search/version.rb +3 -0
  35. data/lib/zip_search/view_helpers.rb +31 -0
  36. data/lib/zip_search.rb +62 -0
  37. data/spec/factories/travelers.rb +40 -0
  38. data/spec/features/travelers_spec.rb +68 -0
  39. data/spec/models/traveler_spec.rb +38 -0
  40. data/spec/models/zip_search/location_spec.rb +7 -0
  41. data/spec/spec_helper.rb +134 -0
  42. metadata +383 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d64a97c6aa16248413d951fc224f8c2942f5c6f6
4
+ data.tar.gz: 719632834d827a784a02c0c45637927fdc8732fe
5
+ SHA512:
6
+ metadata.gz: 919f138dc4487765fe4403c83107b3b5697ea7dbe317e69097e6f1ebada5c8e1af658826641fcd8a137ca2336fc50a01cea18a551d31f5c1e4bfcca34a571b59
7
+ data.tar.gz: f415c6e7703aada2125ba8f7994974a5fec358dfc16e3eb1ab6efa188e06bfce7799e6e26a612ec64f551bcbef3ee3a74eb94e5fa7b7c4779d21ede0429a7b1d
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2015 MacKinley Smith
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = ZipSearch
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,37 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'ZipSearch'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+
21
+ load 'rails/tasks/statistics.rake'
22
+
23
+
24
+
25
+ Bundler::GemHelper.install_tasks
26
+
27
+ require 'rake/testtask'
28
+
29
+ Rake::TestTask.new(:test) do |t|
30
+ t.libs << 'lib'
31
+ t.libs << 'test'
32
+ t.pattern = 'test/**/*_test.rb'
33
+ t.verbose = false
34
+ end
35
+
36
+
37
+ task default: :test
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require twitter/typeahead.min
15
+ //= require ./jquery.inputmask.bundle
16
+ //= require_tree .