lookup_by 0.10.9 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +5 -5
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +17 -9
  4. data/Appraisals +6 -6
  5. data/CHANGELOG.md +58 -0
  6. data/Gemfile +6 -10
  7. data/MIT-LICENSE +1 -1
  8. data/README.md +30 -27
  9. data/Rakefile +20 -2
  10. data/circle.yml +4 -2
  11. data/gemfiles/rails_6.0.gemfile +17 -0
  12. data/gemfiles/rails_6.1.gemfile +17 -0
  13. data/gemfiles/rails_7.0.gemfile +17 -0
  14. data/lib/lookup_by/association.rb +9 -3
  15. data/lib/lookup_by/cache.rb +17 -21
  16. data/lib/lookup_by/caching/safe_lru.rb +1 -1
  17. data/lib/lookup_by/hooks/formtastic.rb +2 -1
  18. data/lib/lookup_by/hooks/simple_form.rb +2 -1
  19. data/lib/lookup_by/lookup.rb +27 -13
  20. data/lib/lookup_by/version.rb +1 -1
  21. data/lib/lookup_by.rb +2 -0
  22. data/lookup_by.gemspec +2 -2
  23. data/spec/association_spec.rb +1 -0
  24. data/spec/cache_spec.rb +10 -0
  25. data/spec/{dummy → internal}/app/models/account.rb +0 -0
  26. data/spec/{dummy → internal}/app/models/address.rb +0 -0
  27. data/spec/{dummy → internal}/app/models/city.rb +0 -0
  28. data/spec/{dummy → internal}/app/models/country.rb +0 -0
  29. data/spec/{dummy → internal}/app/models/email_address.rb +0 -0
  30. data/spec/{dummy → internal}/app/models/ip_address.rb +0 -0
  31. data/spec/{dummy → internal}/app/models/path.rb +0 -0
  32. data/spec/{dummy → internal}/app/models/phone_number.rb +0 -0
  33. data/spec/{dummy → internal}/app/models/postal_code.rb +0 -0
  34. data/spec/{dummy → internal}/app/models/raisin.rb +0 -0
  35. data/spec/{dummy → internal}/app/models/read_through_raisin.rb +0 -0
  36. data/spec/{dummy → internal}/app/models/state.rb +0 -0
  37. data/spec/{dummy → internal}/app/models/status.rb +0 -0
  38. data/spec/{dummy → internal}/app/models/street.rb +0 -0
  39. data/spec/{dummy → internal}/app/models/uncacheable.rb +0 -0
  40. data/spec/{dummy → internal}/app/models/unfindable.rb +0 -0
  41. data/spec/{dummy → internal}/app/models/unsynchronizable.rb +0 -0
  42. data/spec/{dummy → internal}/app/models/user_agent.rb +0 -0
  43. data/spec/internal/config/database.yml +8 -0
  44. data/spec/internal/db/schema.rb +49 -0
  45. data/spec/{dummy → internal}/lib/missing.rb +0 -0
  46. data/spec/internal/log/.gitignore +1 -0
  47. data/spec/lookup_by_spec.rb +22 -6
  48. data/spec/rails_helper.rb +6 -13
  49. data/spec/support/shared_examples_for_a_lookup.rb +28 -7
  50. metadata +58 -94
  51. data/gemfiles/rails_4.0.gemfile +0 -22
  52. data/gemfiles/rails_4.1.gemfile +0 -22
  53. data/gemfiles/rails_4.2.gemfile +0 -22
  54. data/spec/dummy/Rakefile +0 -22
  55. data/spec/dummy/app/models/.gitkeep +0 -0
  56. data/spec/dummy/bin/bundle +0 -3
  57. data/spec/dummy/bin/rails +0 -4
  58. data/spec/dummy/bin/rake +0 -4
  59. data/spec/dummy/config/application.rb +0 -28
  60. data/spec/dummy/config/boot.rb +0 -6
  61. data/spec/dummy/config/database.yml +0 -44
  62. data/spec/dummy/config/environment.rb +0 -5
  63. data/spec/dummy/config/environments/development.rb +0 -20
  64. data/spec/dummy/config/environments/test.rb +0 -19
  65. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  66. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  67. data/spec/dummy/config/initializers/inflections.rb +0 -16
  68. data/spec/dummy/config/locales/en.yml +0 -23
  69. data/spec/dummy/config.ru +0 -4
  70. data/spec/dummy/db/migrate/20121019040009_create_tables.rb +0 -41
  71. data/spec/dummy/db/seeds.rb +0 -1
  72. data/spec/dummy/db/structure.sql +0 -1053
  73. data/spec/dummy/log/.gitkeep +0 -0
  74. data/spec/dummy/script/rails +0 -6
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'