ransack 2.6.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.nojekyll +0 -0
- data/CHANGELOG.md +75 -13
- data/README.md +45 -1039
- data/docs/.gitignore +20 -0
- data/docs/.nojekyll +0 -0
- data/docs/babel.config.js +3 -0
- data/docs/blog/2022-03-27-ransack-3.0.0.md +20 -0
- data/docs/docs/getting-started/_category_.json +4 -0
- data/docs/docs/getting-started/advanced-mode.md +46 -0
- data/docs/docs/getting-started/configuration.md +47 -0
- data/docs/docs/getting-started/search-matches.md +67 -0
- data/docs/docs/getting-started/simple-mode.md +284 -0
- data/docs/docs/getting-started/sorting.md +79 -0
- data/docs/docs/getting-started/using-predicates.md +282 -0
- data/docs/docs/going-further/_category_.json +4 -0
- data/docs/docs/going-further/associations.md +70 -0
- data/docs/docs/going-further/custom-predicates.md +52 -0
- data/docs/docs/going-further/documentation.md +31 -0
- data/docs/docs/going-further/exporting-to-csv.md +49 -0
- data/docs/docs/going-further/external-guides.md +57 -0
- data/docs/docs/going-further/form-customisation.md +63 -0
- data/docs/docs/going-further/i18n.md +53 -0
- data/docs/{img → docs/going-further/img}/create_release.png +0 -0
- data/docs/docs/going-further/merging-searches.md +41 -0
- data/docs/docs/going-further/other-notes.md +428 -0
- data/docs/docs/going-further/ransackers.md +331 -0
- data/docs/docs/going-further/release_process.md +36 -0
- data/docs/docs/going-further/saving-queries.md +82 -0
- data/docs/docs/going-further/searching-postgres.md +57 -0
- data/docs/docs/intro.md +99 -0
- data/docs/docusaurus.config.js +108 -0
- data/docs/package-lock.json +9207 -0
- data/docs/package.json +37 -0
- data/docs/sidebars.js +31 -0
- data/docs/src/components/HomepageFeatures/index.js +64 -0
- data/docs/src/components/HomepageFeatures/styles.module.css +11 -0
- data/docs/src/css/custom.css +39 -0
- data/docs/src/pages/index.module.css +23 -0
- data/docs/src/pages/markdown-page.md +7 -0
- data/docs/static/.nojekyll +0 -0
- data/docs/static/img/docusaurus.png +0 -0
- data/docs/static/img/favicon.ico +0 -0
- data/docs/static/img/logo.svg +1 -0
- data/docs/static/img/tutorial/docsVersionDropdown.png +0 -0
- data/docs/static/img/tutorial/localeDropdown.png +0 -0
- data/docs/static/img/undraw_docusaurus_mountain.svg +171 -0
- data/docs/static/img/undraw_docusaurus_react.svg +170 -0
- data/docs/static/img/undraw_docusaurus_tree.svg +40 -0
- data/{logo → docs/static/logo}/ransack-h.png +0 -0
- data/{logo → docs/static/logo}/ransack-h.svg +0 -0
- data/{logo → docs/static/logo}/ransack-v.png +0 -0
- data/{logo → docs/static/logo}/ransack-v.svg +0 -0
- data/{logo → docs/static/logo}/ransack.png +0 -0
- data/{logo → docs/static/logo}/ransack.svg +0 -0
- data/docs/yarn.lock +7671 -0
- data/lib/ransack/adapters/active_record/base.rb +0 -2
- data/lib/ransack/adapters/active_record/context.rb +1 -0
- data/lib/ransack/helpers/form_helper.rb +10 -2
- data/lib/ransack/search.rb +2 -2
- data/lib/ransack/version.rb +1 -1
- data/ransack.gemspec +2 -2
- data/spec/ransack/adapters/active_record/base_spec.rb +10 -1
- data/spec/ransack/helpers/form_helper_spec.rb +32 -0
- data/spec/ransack/search_spec.rb +23 -0
- data/spec/support/schema.rb +16 -0
- metadata +58 -12
- data/docs/release_process.md +0 -17
@@ -0,0 +1,108 @@
|
|
1
|
+
// @ts-check
|
2
|
+
// Note: type annotations allow type checking and IDEs autocompletion
|
3
|
+
|
4
|
+
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
5
|
+
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
6
|
+
|
7
|
+
/** @type {import('@docusaurus/types').Config} */
|
8
|
+
const config = {
|
9
|
+
title: 'Ransack documentation',
|
10
|
+
tagline: 'Object-based searching',
|
11
|
+
url: 'https://activerecord-hackery.github.io',
|
12
|
+
baseUrl: '/ransack/',
|
13
|
+
//onBrokenLinks: 'throw',
|
14
|
+
onBrokenMarkdownLinks: 'warn',
|
15
|
+
favicon: 'img/favicon.ico',
|
16
|
+
organizationName: 'activerecord-hackery',
|
17
|
+
projectName: 'ransack',
|
18
|
+
trailingSlash: false,
|
19
|
+
|
20
|
+
presets: [
|
21
|
+
[
|
22
|
+
'classic',
|
23
|
+
/** @type {import('@docusaurus/preset-classic').Options} */
|
24
|
+
({
|
25
|
+
docs: {
|
26
|
+
routeBasePath: '/',
|
27
|
+
sidebarPath: require.resolve('./sidebars.js'),
|
28
|
+
editUrl: 'https://github.com/activerecord-hackery/ransack/docs/docs/',
|
29
|
+
},
|
30
|
+
blog: {
|
31
|
+
showReadingTime: true,
|
32
|
+
editUrl:
|
33
|
+
'https://github.com/activerecord-hackery/ransack/docs/blog/',
|
34
|
+
},
|
35
|
+
theme: {
|
36
|
+
customCss: require.resolve('./src/css/custom.css'),
|
37
|
+
},
|
38
|
+
}),
|
39
|
+
],
|
40
|
+
],
|
41
|
+
|
42
|
+
themeConfig:
|
43
|
+
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
44
|
+
({
|
45
|
+
navbar: {
|
46
|
+
logo: {
|
47
|
+
alt: 'Ransack Logo',
|
48
|
+
src: './logo/ransack-h.png',
|
49
|
+
},
|
50
|
+
items: [
|
51
|
+
{
|
52
|
+
type: 'doc',
|
53
|
+
docId: 'intro',
|
54
|
+
position: 'left',
|
55
|
+
label: 'Documentation',
|
56
|
+
},
|
57
|
+
{to: '/blog', label: 'Blog', position: 'left'},
|
58
|
+
{
|
59
|
+
href: 'https://github.com/activerecord-hackery/ransack',
|
60
|
+
label: 'GitHub',
|
61
|
+
position: 'right',
|
62
|
+
},
|
63
|
+
],
|
64
|
+
},
|
65
|
+
footer: {
|
66
|
+
style: 'dark',
|
67
|
+
links: [
|
68
|
+
{
|
69
|
+
title: 'Docs',
|
70
|
+
items: [
|
71
|
+
{
|
72
|
+
label: 'Documentation',
|
73
|
+
to: '/',
|
74
|
+
},
|
75
|
+
],
|
76
|
+
},
|
77
|
+
{
|
78
|
+
title: 'Community',
|
79
|
+
items: [
|
80
|
+
{
|
81
|
+
label: 'Stack Overflow',
|
82
|
+
href: 'https://stackoverflow.com/questions/tagged/ransack',
|
83
|
+
},
|
84
|
+
],
|
85
|
+
},
|
86
|
+
{
|
87
|
+
title: 'More',
|
88
|
+
items: [
|
89
|
+
{
|
90
|
+
label: 'Blog',
|
91
|
+
to: '/blog',
|
92
|
+
},
|
93
|
+
{
|
94
|
+
label: 'GitHub',
|
95
|
+
href: 'https://github.com/activerecord-hackery/ransack',
|
96
|
+
},
|
97
|
+
],
|
98
|
+
},
|
99
|
+
],
|
100
|
+
},
|
101
|
+
prism: {
|
102
|
+
theme: lightCodeTheme,
|
103
|
+
darkTheme: darkCodeTheme,
|
104
|
+
},
|
105
|
+
}),
|
106
|
+
};
|
107
|
+
|
108
|
+
module.exports = config;
|