ransack 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +3 -0
- data/.github/SECURITY.md +12 -0
- data/.github/workflows/cronjob.yml +105 -0
- data/.github/workflows/rubocop.yml +20 -0
- data/.github/workflows/test.yml +154 -0
- data/.rubocop.yml +44 -0
- data/CHANGELOG.md +8 -3
- data/CONTRIBUTING.md +2 -5
- data/Gemfile +4 -2
- data/README.md +95 -25
- data/bug_report_templates/test-ransack-scope-and-column-same-name.rb +78 -0
- data/bug_report_templates/test-ransacker-arel-present-predicate.rb +71 -0
- data/docs/img/create_release.png +0 -0
- data/docs/release_process.md +20 -0
- data/lib/polyamorous/activerecord_6.2_ruby_2/join_association.rb +1 -0
- data/lib/polyamorous/activerecord_6.2_ruby_2/join_dependency.rb +1 -0
- data/lib/polyamorous/activerecord_6.2_ruby_2/reflection.rb +1 -0
- data/lib/polyamorous/polyamorous.rb +1 -1
- data/lib/ransack.rb +2 -2
- data/lib/ransack/adapters/active_record/base.rb +4 -0
- data/lib/ransack/adapters/active_record/context.rb +10 -3
- data/lib/ransack/adapters/active_record/ransack/constants.rb +1 -1
- data/lib/ransack/configuration.rb +17 -1
- data/lib/ransack/constants.rb +2 -3
- data/lib/ransack/helpers.rb +1 -1
- data/lib/ransack/helpers/form_builder.rb +3 -3
- data/lib/ransack/nodes/attribute.rb +1 -1
- data/lib/ransack/nodes/condition.rb +0 -2
- data/lib/ransack/nodes/sort.rb +1 -1
- data/lib/ransack/nodes/value.rb +1 -1
- data/lib/ransack/search.rb +2 -1
- data/lib/ransack/version.rb +1 -1
- data/ransack.gemspec +4 -3
- data/spec/blueprints/articles.rb +1 -1
- data/spec/blueprints/comments.rb +1 -1
- data/spec/blueprints/notes.rb +1 -1
- data/spec/blueprints/tags.rb +1 -1
- data/spec/console.rb +5 -5
- data/spec/helpers/ransack_helper.rb +1 -1
- data/spec/ransack/adapters/active_record/base_spec.rb +6 -3
- data/spec/ransack/adapters/active_record/context_spec.rb +1 -2
- data/spec/ransack/configuration_spec.rb +10 -0
- data/spec/ransack/helpers/form_helper_spec.rb +16 -16
- data/spec/ransack/nodes/grouping_spec.rb +2 -2
- data/spec/ransack/predicate_spec.rb +1 -1
- data/spec/ransack/search_spec.rb +49 -2
- data/spec/spec_helper.rb +7 -6
- data/spec/support/schema.rb +2 -2
- metadata +16 -4
- 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"
|