ransack 3.0.1 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +16 -31
  3. data/CHANGELOG.md +49 -0
  4. data/CONTRIBUTING.md +5 -5
  5. data/Gemfile +2 -2
  6. data/README.md +4 -4
  7. data/docs/docs/getting-started/simple-mode.md +24 -24
  8. data/docs/docs/getting-started/sorting.md +1 -1
  9. data/docs/docs/getting-started/using-predicates.md +1 -1
  10. data/docs/docs/going-further/acts-as-taggable-on.md +114 -0
  11. data/docs/docs/going-further/exporting-to-csv.md +2 -2
  12. data/docs/docs/going-further/merging-searches.md +1 -1
  13. data/docs/docs/going-further/polymorphic-search.md +40 -0
  14. data/docs/docs/going-further/wiki-contributors.md +1 -1
  15. data/docs/docs/intro.md +2 -2
  16. data/docs/docusaurus.config.js +14 -1
  17. data/docs/package.json +3 -2
  18. data/docs/yarn.lock +1311 -546
  19. data/lib/polyamorous/activerecord_6.1_ruby_2/reflection.rb +11 -1
  20. data/lib/polyamorous/activerecord_7.1_ruby_2/join_association.rb +1 -0
  21. data/lib/polyamorous/activerecord_7.1_ruby_2/join_dependency.rb +1 -0
  22. data/lib/polyamorous/activerecord_7.1_ruby_2/reflection.rb +1 -0
  23. data/lib/ransack/adapters/active_record/context.rb +17 -49
  24. data/lib/ransack/adapters/active_record/ransack/nodes/condition.rb +2 -10
  25. data/lib/ransack/constants.rb +0 -3
  26. data/lib/ransack/helpers/form_helper.rb +1 -1
  27. data/lib/ransack/nodes/value.rb +1 -1
  28. data/lib/ransack/version.rb +1 -1
  29. data/ransack.gemspec +3 -3
  30. data/spec/helpers/polyamorous_helper.rb +2 -8
  31. data/spec/ransack/helpers/form_helper_spec.rb +12 -0
  32. data/spec/ransack/nodes/value_spec.rb +115 -0
  33. metadata +15 -11
  34. data/lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb +0 -20
  35. data/lib/polyamorous/activerecord_6.0_ruby_2/join_dependency.rb +0 -79
  36. data/lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb +0 -11
@@ -15,7 +15,7 @@ const config = {
15
15
  favicon: 'img/favicon.ico',
16
16
  organizationName: 'activerecord-hackery',
17
17
  projectName: 'ransack',
18
- trailingSlash: false,
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",
18
- "@docusaurus/preset-classic": "2.0.0-beta.18",
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",