ransack 3.2.1 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/codeql.yml +72 -0
  3. data/.github/workflows/cronjob.yml +6 -9
  4. data/.github/workflows/deploy.yml +1 -1
  5. data/.github/workflows/rubocop.yml +2 -2
  6. data/.github/workflows/test-deploy.yml +1 -1
  7. data/.github/workflows/test.yml +23 -22
  8. data/.rubocop.yml +7 -1
  9. data/CHANGELOG.md +86 -0
  10. data/CONTRIBUTING.md +40 -21
  11. data/Gemfile +10 -10
  12. data/README.md +4 -9
  13. data/bug_report_templates/test-ransack-scope-and-column-same-name.rb +1 -1
  14. data/bug_report_templates/test-ransacker-arel-present-predicate.rb +5 -1
  15. data/docs/docs/getting-started/advanced-mode.md +1 -1
  16. data/docs/docs/getting-started/search-matches.md +1 -1
  17. data/docs/docs/getting-started/simple-mode.md +6 -2
  18. data/docs/docs/getting-started/sorting.md +45 -53
  19. data/docs/docs/going-further/acts-as-taggable-on.md +4 -4
  20. data/docs/docs/going-further/form-customisation.md +1 -1
  21. data/docs/docs/going-further/i18n.md +3 -3
  22. data/docs/docs/going-further/other-notes.md +2 -2
  23. data/docs/docs/going-further/polymorphic-search.md +6 -0
  24. data/docs/docs/going-further/saving-queries.md +1 -1
  25. data/docs/docs/going-further/searching-postgres.md +1 -1
  26. data/docs/package.json +7 -3
  27. data/docs/yarn.lock +2371 -1928
  28. data/lib/polyamorous/activerecord_6.1_ruby_2/join_dependency.rb +14 -4
  29. data/lib/ransack/adapters/active_record/base.rb +78 -7
  30. data/lib/ransack/adapters/active_record/context.rb +2 -1
  31. data/lib/ransack/configuration.rb +25 -12
  32. data/lib/ransack/constants.rb +125 -0
  33. data/lib/ransack/context.rb +34 -5
  34. data/lib/ransack/helpers/form_builder.rb +3 -3
  35. data/lib/ransack/helpers/form_helper.rb +3 -2
  36. data/lib/ransack/nodes/attribute.rb +2 -2
  37. data/lib/ransack/nodes/condition.rb +80 -7
  38. data/lib/ransack/nodes/grouping.rb +3 -3
  39. data/lib/ransack/nodes/node.rb +1 -1
  40. data/lib/ransack/nodes/value.rb +1 -1
  41. data/lib/ransack/predicate.rb +1 -1
  42. data/lib/ransack/ransacker.rb +1 -1
  43. data/lib/ransack/search.rb +9 -4
  44. data/lib/ransack/translate.rb +2 -2
  45. data/lib/ransack/version.rb +1 -1
  46. data/lib/ransack/visitor.rb +38 -2
  47. data/lib/ransack.rb +3 -6
  48. data/ransack.gemspec +1 -1
  49. data/spec/ransack/adapters/active_record/base_spec.rb +89 -0
  50. data/spec/ransack/configuration_spec.rb +9 -9
  51. data/spec/ransack/helpers/form_builder_spec.rb +8 -8
  52. data/spec/ransack/helpers/form_helper_spec.rb +36 -2
  53. data/spec/ransack/nodes/condition_spec.rb +24 -0
  54. data/spec/ransack/predicate_spec.rb +36 -1
  55. data/spec/ransack/translate_spec.rb +1 -1
  56. data/spec/support/schema.rb +55 -10
  57. metadata +6 -13
  58. data/lib/polyamorous.rb +0 -1
  59. data/lib/ransack/adapters/active_record/ransack/constants.rb +0 -128
  60. data/lib/ransack/adapters/active_record/ransack/context.rb +0 -56
  61. data/lib/ransack/adapters/active_record/ransack/nodes/condition.rb +0 -61
  62. data/lib/ransack/adapters/active_record/ransack/translate.rb +0 -8
  63. data/lib/ransack/adapters/active_record/ransack/visitor.rb +0 -47
  64. data/lib/ransack/adapters.rb +0 -64
  65. data/lib/ransack/nodes.rb +0 -8
  66. /data/lib/ransack/{adapters/active_record.rb → active_record.rb} +0 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.