ransack 2.4.0 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +3 -0
  3. data/.github/SECURITY.md +12 -0
  4. data/.github/workflows/cronjob.yml +105 -0
  5. data/.github/workflows/rubocop.yml +20 -0
  6. data/.github/workflows/test.yml +154 -0
  7. data/.rubocop.yml +44 -0
  8. data/CHANGELOG.md +8 -3
  9. data/CONTRIBUTING.md +2 -5
  10. data/Gemfile +4 -2
  11. data/README.md +95 -25
  12. data/bug_report_templates/test-ransack-scope-and-column-same-name.rb +78 -0
  13. data/bug_report_templates/test-ransacker-arel-present-predicate.rb +71 -0
  14. data/docs/img/create_release.png +0 -0
  15. data/docs/release_process.md +20 -0
  16. data/lib/polyamorous/activerecord_6.2_ruby_2/join_association.rb +1 -0
  17. data/lib/polyamorous/activerecord_6.2_ruby_2/join_dependency.rb +1 -0
  18. data/lib/polyamorous/activerecord_6.2_ruby_2/reflection.rb +1 -0
  19. data/lib/polyamorous/polyamorous.rb +1 -1
  20. data/lib/ransack.rb +2 -2
  21. data/lib/ransack/adapters/active_record/base.rb +4 -0
  22. data/lib/ransack/adapters/active_record/context.rb +10 -3
  23. data/lib/ransack/adapters/active_record/ransack/constants.rb +1 -1
  24. data/lib/ransack/configuration.rb +17 -1
  25. data/lib/ransack/constants.rb +2 -3
  26. data/lib/ransack/helpers.rb +1 -1
  27. data/lib/ransack/helpers/form_builder.rb +3 -3
  28. data/lib/ransack/nodes/attribute.rb +1 -1
  29. data/lib/ransack/nodes/condition.rb +0 -2
  30. data/lib/ransack/nodes/sort.rb +1 -1
  31. data/lib/ransack/nodes/value.rb +1 -1
  32. data/lib/ransack/search.rb +2 -1
  33. data/lib/ransack/version.rb +1 -1
  34. data/ransack.gemspec +4 -3
  35. data/spec/blueprints/articles.rb +1 -1
  36. data/spec/blueprints/comments.rb +1 -1
  37. data/spec/blueprints/notes.rb +1 -1
  38. data/spec/blueprints/tags.rb +1 -1
  39. data/spec/console.rb +5 -5
  40. data/spec/helpers/ransack_helper.rb +1 -1
  41. data/spec/ransack/adapters/active_record/base_spec.rb +6 -3
  42. data/spec/ransack/adapters/active_record/context_spec.rb +1 -2
  43. data/spec/ransack/configuration_spec.rb +10 -0
  44. data/spec/ransack/helpers/form_helper_spec.rb +16 -16
  45. data/spec/ransack/nodes/grouping_spec.rb +2 -2
  46. data/spec/ransack/predicate_spec.rb +1 -1
  47. data/spec/ransack/search_spec.rb +49 -2
  48. data/spec/spec_helper.rb +7 -6
  49. data/spec/support/schema.rb +2 -2
  50. metadata +16 -4
  51. data/.travis.yml +0 -47
data/.travis.yml DELETED
@@ -1,47 +0,0 @@
1
- branches: master
2
-
3
- language: ruby
4
-
5
- rvm:
6
- - 2.6.6
7
-
8
- services:
9
- - mysql
10
-
11
- env:
12
- - RAILS=v6.1.0.rc1 DB=sqlite3
13
- - RAILS=v6.1.0.rc1 DB=mysql
14
- - RAILS=v6.1.0.rc1 DB=postgres
15
-
16
- - RAILS=v6.0.3 DB=sqlite3
17
- - RAILS=v6.0.3 DB=mysql
18
- - RAILS=v6.0.3 DB=postgres
19
-
20
- - RAILS=6-0-stable DB=sqlite3
21
- - RAILS=6-0-stable DB=mysql
22
- - RAILS=6-0-stable DB=postgres
23
-
24
- - RAILS=5-2-stable DB=sqlite3
25
- - RAILS=5-2-stable DB=mysql
26
- - RAILS=5-2-stable DB=postgres
27
-
28
- - RAILS=v5.2.4 DB=sqlite3
29
- - RAILS=v5.2.4 DB=mysql
30
- - RAILS=v5.2.4 DB=postgres
31
-
32
- before_script:
33
- - if [ "$DB" = "mysql" ];
34
- then
35
- mysql -e 'create database ransack collate utf8_general_ci;';
36
- mysql -e 'use ransack;show variables like "%character%";show variables like "%collation%";';
37
- fi
38
-
39
- - if [ "$DB" = "postgres" ];
40
- then
41
- psql -c 'create database ransack;' -U postgres;
42
- fi
43
-
44
- addons:
45
- code_climate:
46
- repo_token: 8b701c4364d51a0217105e08c06922d600cec3d9e60d546a89e3ddfe46e0664e
47
- postgresql: "9.6"