ransack 3.0.1 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +16 -31
- data/CHANGELOG.md +49 -0
- data/CONTRIBUTING.md +5 -5
- data/Gemfile +2 -2
- data/README.md +4 -4
- data/docs/docs/getting-started/simple-mode.md +24 -24
- data/docs/docs/getting-started/sorting.md +1 -1
- data/docs/docs/getting-started/using-predicates.md +1 -1
- data/docs/docs/going-further/acts-as-taggable-on.md +114 -0
- data/docs/docs/going-further/exporting-to-csv.md +2 -2
- data/docs/docs/going-further/merging-searches.md +1 -1
- data/docs/docs/going-further/polymorphic-search.md +40 -0
- data/docs/docs/going-further/wiki-contributors.md +1 -1
- data/docs/docs/intro.md +2 -2
- data/docs/docusaurus.config.js +14 -1
- data/docs/package.json +3 -2
- data/docs/yarn.lock +1311 -546
- data/lib/polyamorous/activerecord_6.1_ruby_2/reflection.rb +11 -1
- data/lib/polyamorous/activerecord_7.1_ruby_2/join_association.rb +1 -0
- data/lib/polyamorous/activerecord_7.1_ruby_2/join_dependency.rb +1 -0
- data/lib/polyamorous/activerecord_7.1_ruby_2/reflection.rb +1 -0
- data/lib/ransack/adapters/active_record/context.rb +17 -49
- data/lib/ransack/adapters/active_record/ransack/nodes/condition.rb +2 -10
- data/lib/ransack/constants.rb +0 -3
- data/lib/ransack/helpers/form_helper.rb +1 -1
- data/lib/ransack/nodes/value.rb +1 -1
- data/lib/ransack/version.rb +1 -1
- data/ransack.gemspec +3 -3
- data/spec/helpers/polyamorous_helper.rb +2 -8
- data/spec/ransack/helpers/form_helper_spec.rb +12 -0
- data/spec/ransack/nodes/value_spec.rb +115 -0
- metadata +15 -11
- data/lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb +0 -20
- data/lib/polyamorous/activerecord_6.0_ruby_2/join_dependency.rb +0 -79
- data/lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb +0 -11
data/docs/docusaurus.config.js
CHANGED
@@ -15,7 +15,7 @@ const config = {
|
|
15
15
|
favicon: 'img/favicon.ico',
|
16
16
|
organizationName: 'activerecord-hackery',
|
17
17
|
projectName: 'ransack',
|
18
|
-
trailingSlash:
|
18
|
+
trailingSlash: true,
|
19
19
|
|
20
20
|
presets: [
|
21
21
|
[
|
@@ -100,8 +100,21 @@ const config = {
|
|
100
100
|
prism: {
|
101
101
|
theme: lightCodeTheme,
|
102
102
|
darkTheme: darkCodeTheme,
|
103
|
+
additionalLanguages: ['ruby', 'erb'],
|
103
104
|
},
|
104
105
|
}),
|
106
|
+
|
107
|
+
themes: [
|
108
|
+
[
|
109
|
+
require.resolve("@easyops-cn/docusaurus-search-local"),
|
110
|
+
{
|
111
|
+
// `hashed` is recommended as long-term-cache of index file is possible.
|
112
|
+
hashed: true,
|
113
|
+
// needs to be the same as routeBasePath in @docusaurus/preset-classic config
|
114
|
+
docsRouteBasePath: '/'
|
115
|
+
},
|
116
|
+
]
|
117
|
+
]
|
105
118
|
};
|
106
119
|
|
107
120
|
module.exports = config;
|
data/docs/package.json
CHANGED
@@ -14,8 +14,9 @@
|
|
14
14
|
"write-heading-ids": "docusaurus write-heading-ids"
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
|
-
"@docusaurus/core": "2.0.0-beta.
|
18
|
-
"@docusaurus/preset-classic": "2.0.0-beta.
|
17
|
+
"@docusaurus/core": "^2.0.0-beta.20",
|
18
|
+
"@docusaurus/preset-classic": "^2.0.0-beta.20",
|
19
|
+
"@easyops-cn/docusaurus-search-local": "^0.25.0",
|
19
20
|
"@mdx-js/react": "^1.6.22",
|
20
21
|
"clsx": "^1.1.1",
|
21
22
|
"prism-react-renderer": "^1.3.1",
|