mobility-ransack 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e1f7aa59365ce176d9a5baccd87f8091b1d5c23f4532b66c019cf4766b23e43
4
- data.tar.gz: 81b3dc8e4294177dbdad6b2403057adfd41756c103e0e803369e7c4a62884140
3
+ metadata.gz: 9e2b2fb4a83837ab504f3094122475e7f3dd47370419e475553eb6a50dcd32b6
4
+ data.tar.gz: afbe3bacb2c1acbf5d2e83f07c72e03f51ff02aab08b1de8e00f59ecb4ba06b8
5
5
  SHA512:
6
- metadata.gz: 6f7daffdd7c1f8bb740628ffdbdfe5f52322705afaf970d56a7a7cd56bd06b14673c4af4897c0080bc6d74867d69b8beb5a1b4cda00051d763b98a04e41bbebf
7
- data.tar.gz: ae9f596d2d64ff45b5f7a3e562c04dd6ee6fc9e593fddd91f92cc1294384a355360d30d6e75089f22d0ee92ce42755c67706d528c57ec971d23f578e0c2e6f25
6
+ metadata.gz: 9746d4b0acf3509a5080bfc091b364cc4774b4e62e2c43824f68c286f5c2d2c3776f31024b5b13d113d2b1324abba4745f5b8cba2bb31d0927f86a572f87582f
7
+ data.tar.gz: a17f31df6addb9f42a6c22e0a081746dc9a07d67538596588801bab37d2ce210105921e3193e1019c1b4bbab99d895965e6994d6ee90e1d0c45ddf068a89fc44
@@ -1,5 +1,23 @@
1
1
  # Mobility Ransack Changelog
2
2
 
3
+ ## 0.2
4
+
5
+ ### 0.2.2
6
+ - Remove version pinning for Ransack dependency
7
+ ([#6](https://github.com/shioyama/mobility-ransack/pull/6)), thanks
8
+ [peterwalker](https://github.com/petewalker)!
9
+
10
+ ### 0.2.1
11
+ - Extend ransack search with module
12
+ ([#4](https://github.com/shioyama/mobility-ransack/pull/4))
13
+ - Refactor `Mobility::Plugins::Ransack.apply`
14
+ ([#3](https://github.com/shioyama/mobility-ransack/pull/3))
15
+
16
+ ### 0.2.0
17
+
18
+ - Support sorting on translated attributes
19
+ ([#2](https://github.com/shioyama/mobility-ransack/pull/2))
20
+
3
21
  ## 0.1
4
22
 
5
23
  ### 0.1.1
@@ -9,5 +27,7 @@
9
27
  ### 0.1.0
10
28
  - Loosen Ransack dependency to allow up to 2.1
11
29
 
30
+ ## 0.0
31
+
12
32
  ### 0.0.1
13
33
  - Add plugin code.
data/Gemfile CHANGED
@@ -6,15 +6,7 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6
6
  gemspec
7
7
 
8
8
  group :development, :test do
9
- if ENV['RAILS_VERSION'] == '5.1'
10
- gem 'rails', '>= 5.1', '< 5.2'
11
- elsif ENV['RAILS_VERSION'] == '5.0'
12
- gem 'rails', '>= 5.0', '< 5.1'
13
- else
14
- gem 'rails', '>= 5.2.0.rc2', '< 5.3'
15
- # see: https://github.com/activerecord-hackery/ransack/issues/948#issuecomment-412414365
16
- gem 'ransack', '~> 2.0.0'
17
- end
9
+ gem 'rails', "~> #{ENV['RAILS_VERSION'] || '6.0'}"
18
10
 
19
11
  gem 'pry'
20
12
  gem 'pry-byebug'
@@ -1,166 +1,182 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility-ransack (0.1.0)
5
- mobility (~> 0.8.0)
6
- ransack (>= 1.8.0, < 2.1)
4
+ mobility-ransack (1.0.0)
5
+ mobility (~> 1.0.0)
6
+ ransack (>= 1.8.0, < 3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.1)
12
- actionpack (= 5.2.1)
11
+ actioncable (6.0.3.4)
12
+ actionpack (= 6.0.3.4)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.1)
16
- actionpack (= 5.2.1)
17
- actionview (= 5.2.1)
18
- activejob (= 5.2.1)
15
+ actionmailbox (6.0.3.4)
16
+ actionpack (= 6.0.3.4)
17
+ activejob (= 6.0.3.4)
18
+ activerecord (= 6.0.3.4)
19
+ activestorage (= 6.0.3.4)
20
+ activesupport (= 6.0.3.4)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.0.3.4)
23
+ actionpack (= 6.0.3.4)
24
+ actionview (= 6.0.3.4)
25
+ activejob (= 6.0.3.4)
19
26
  mail (~> 2.5, >= 2.5.4)
20
27
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.1)
22
- actionview (= 5.2.1)
23
- activesupport (= 5.2.1)
24
- rack (~> 2.0)
28
+ actionpack (6.0.3.4)
29
+ actionview (= 6.0.3.4)
30
+ activesupport (= 6.0.3.4)
31
+ rack (~> 2.0, >= 2.0.8)
25
32
  rack-test (>= 0.6.3)
26
33
  rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.1)
29
- activesupport (= 5.2.1)
34
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
+ actiontext (6.0.3.4)
36
+ actionpack (= 6.0.3.4)
37
+ activerecord (= 6.0.3.4)
38
+ activestorage (= 6.0.3.4)
39
+ activesupport (= 6.0.3.4)
40
+ nokogiri (>= 1.8.5)
41
+ actionview (6.0.3.4)
42
+ activesupport (= 6.0.3.4)
30
43
  builder (~> 3.1)
31
44
  erubi (~> 1.4)
32
45
  rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.1)
35
- activesupport (= 5.2.1)
46
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
+ activejob (6.0.3.4)
48
+ activesupport (= 6.0.3.4)
36
49
  globalid (>= 0.3.6)
37
- activemodel (5.2.1)
38
- activesupport (= 5.2.1)
39
- activerecord (5.2.1)
40
- activemodel (= 5.2.1)
41
- activesupport (= 5.2.1)
42
- arel (>= 9.0)
43
- activestorage (5.2.1)
44
- actionpack (= 5.2.1)
45
- activerecord (= 5.2.1)
50
+ activemodel (6.0.3.4)
51
+ activesupport (= 6.0.3.4)
52
+ activerecord (6.0.3.4)
53
+ activemodel (= 6.0.3.4)
54
+ activesupport (= 6.0.3.4)
55
+ activestorage (6.0.3.4)
56
+ actionpack (= 6.0.3.4)
57
+ activejob (= 6.0.3.4)
58
+ activerecord (= 6.0.3.4)
46
59
  marcel (~> 0.3.1)
47
- activesupport (5.2.1)
60
+ activesupport (6.0.3.4)
48
61
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
62
  i18n (>= 0.7, < 2)
50
63
  minitest (~> 5.1)
51
64
  tzinfo (~> 1.1)
52
- arel (9.0.0)
53
- builder (3.2.3)
54
- byebug (10.0.2)
65
+ zeitwerk (~> 2.2, >= 2.2.2)
66
+ builder (3.2.4)
67
+ byebug (11.1.1)
55
68
  coderay (1.1.2)
56
- concurrent-ruby (1.0.5)
57
- crass (1.0.4)
69
+ concurrent-ruby (1.1.7)
70
+ crass (1.0.6)
71
+ database_cleaner (1.8.4)
58
72
  diff-lcs (1.3)
59
- erubi (1.7.1)
60
- globalid (0.4.1)
73
+ erubi (1.9.0)
74
+ globalid (0.4.2)
61
75
  activesupport (>= 4.2.0)
62
- i18n (1.0.1)
76
+ i18n (1.8.5)
63
77
  concurrent-ruby (~> 1.0)
64
- loofah (2.2.2)
78
+ loofah (2.7.0)
65
79
  crass (~> 1.0.2)
66
80
  nokogiri (>= 1.5.9)
67
- mail (2.7.0)
81
+ mail (2.7.1)
68
82
  mini_mime (>= 0.1.1)
69
- marcel (0.3.2)
83
+ marcel (0.3.3)
70
84
  mimemagic (~> 0.3.2)
71
- method_source (0.9.0)
72
- mimemagic (0.3.2)
73
- mini_mime (1.0.1)
74
- mini_portile2 (2.3.0)
75
- minitest (5.11.3)
76
- mobility (0.8.0)
77
- i18n (>= 0.6.10, < 1.1)
85
+ method_source (1.0.0)
86
+ mimemagic (0.3.5)
87
+ mini_mime (1.0.2)
88
+ mini_portile2 (2.4.0)
89
+ minitest (5.14.2)
90
+ mobility (1.0.0)
91
+ i18n (>= 0.6.10, < 2)
78
92
  request_store (~> 1.0)
79
- nio4r (2.3.1)
80
- nokogiri (1.8.4)
81
- mini_portile2 (~> 2.3.0)
82
- pry (0.11.3)
83
- coderay (~> 1.1.0)
84
- method_source (~> 0.9.0)
85
- pry-byebug (3.6.0)
86
- byebug (~> 10.0)
87
- pry (~> 0.10)
88
- rack (2.0.5)
93
+ nio4r (2.5.4)
94
+ nokogiri (1.10.10)
95
+ mini_portile2 (~> 2.4.0)
96
+ pry (0.13.0)
97
+ coderay (~> 1.1)
98
+ method_source (~> 1.0)
99
+ pry-byebug (3.9.0)
100
+ byebug (~> 11.0)
101
+ pry (~> 0.13.0)
102
+ rack (2.2.3)
89
103
  rack-test (1.1.0)
90
104
  rack (>= 1.0, < 3)
91
- rails (5.2.1)
92
- actioncable (= 5.2.1)
93
- actionmailer (= 5.2.1)
94
- actionpack (= 5.2.1)
95
- actionview (= 5.2.1)
96
- activejob (= 5.2.1)
97
- activemodel (= 5.2.1)
98
- activerecord (= 5.2.1)
99
- activestorage (= 5.2.1)
100
- activesupport (= 5.2.1)
105
+ rails (6.0.3.4)
106
+ actioncable (= 6.0.3.4)
107
+ actionmailbox (= 6.0.3.4)
108
+ actionmailer (= 6.0.3.4)
109
+ actionpack (= 6.0.3.4)
110
+ actiontext (= 6.0.3.4)
111
+ actionview (= 6.0.3.4)
112
+ activejob (= 6.0.3.4)
113
+ activemodel (= 6.0.3.4)
114
+ activerecord (= 6.0.3.4)
115
+ activestorage (= 6.0.3.4)
116
+ activesupport (= 6.0.3.4)
101
117
  bundler (>= 1.3.0)
102
- railties (= 5.2.1)
118
+ railties (= 6.0.3.4)
103
119
  sprockets-rails (>= 2.0.0)
104
120
  rails-dom-testing (2.0.3)
105
121
  activesupport (>= 4.2.0)
106
122
  nokogiri (>= 1.6)
107
- rails-html-sanitizer (1.0.4)
108
- loofah (~> 2.2, >= 2.2.2)
109
- railties (5.2.1)
110
- actionpack (= 5.2.1)
111
- activesupport (= 5.2.1)
123
+ rails-html-sanitizer (1.3.0)
124
+ loofah (~> 2.3)
125
+ railties (6.0.3.4)
126
+ actionpack (= 6.0.3.4)
127
+ activesupport (= 6.0.3.4)
112
128
  method_source
113
129
  rake (>= 0.8.7)
114
- thor (>= 0.19.0, < 2.0)
115
- rake (10.5.0)
116
- ransack (2.0.1)
117
- actionpack (>= 5.0)
118
- activerecord (>= 5.0)
119
- activesupport (>= 5.0)
130
+ thor (>= 0.20.3, < 2.0)
131
+ rake (13.0.1)
132
+ ransack (2.4.0)
133
+ activerecord (>= 5.2.4)
134
+ activesupport (>= 5.2.4)
120
135
  i18n
121
- request_store (1.4.1)
136
+ request_store (1.5.0)
122
137
  rack (>= 1.4)
123
- rspec (3.8.0)
124
- rspec-core (~> 3.8.0)
125
- rspec-expectations (~> 3.8.0)
126
- rspec-mocks (~> 3.8.0)
127
- rspec-core (3.8.0)
128
- rspec-support (~> 3.8.0)
129
- rspec-expectations (3.8.1)
138
+ rspec (3.9.0)
139
+ rspec-core (~> 3.9.0)
140
+ rspec-expectations (~> 3.9.0)
141
+ rspec-mocks (~> 3.9.0)
142
+ rspec-core (3.9.1)
143
+ rspec-support (~> 3.9.1)
144
+ rspec-expectations (3.9.1)
130
145
  diff-lcs (>= 1.2.0, < 2.0)
131
- rspec-support (~> 3.8.0)
132
- rspec-mocks (3.8.0)
146
+ rspec-support (~> 3.9.0)
147
+ rspec-mocks (3.9.1)
133
148
  diff-lcs (>= 1.2.0, < 2.0)
134
- rspec-support (~> 3.8.0)
135
- rspec-support (3.8.0)
136
- sprockets (3.7.2)
149
+ rspec-support (~> 3.9.0)
150
+ rspec-support (3.9.2)
151
+ sprockets (4.0.2)
137
152
  concurrent-ruby (~> 1.0)
138
153
  rack (> 1, < 3)
139
- sprockets-rails (3.2.1)
154
+ sprockets-rails (3.2.2)
140
155
  actionpack (>= 4.0)
141
156
  activesupport (>= 4.0)
142
157
  sprockets (>= 3.0.0)
143
- sqlite3 (1.3.13)
144
- thor (0.20.0)
158
+ sqlite3 (1.4.2)
159
+ thor (1.0.1)
145
160
  thread_safe (0.3.6)
146
- tzinfo (1.2.5)
161
+ tzinfo (1.2.7)
147
162
  thread_safe (~> 0.1)
148
- websocket-driver (0.7.0)
163
+ websocket-driver (0.7.3)
149
164
  websocket-extensions (>= 0.1.0)
150
- websocket-extensions (0.1.3)
165
+ websocket-extensions (0.1.5)
166
+ zeitwerk (2.4.1)
151
167
 
152
168
  PLATFORMS
153
169
  ruby
154
170
 
155
171
  DEPENDENCIES
172
+ database_cleaner (~> 1.7, >= 1.7.0)
156
173
  mobility-ransack!
157
174
  pry
158
175
  pry-byebug
159
- rails (>= 5.2.0.rc2, < 5.3)
160
- rake (~> 10.0)
161
- ransack (~> 2.0.0)
176
+ rails (~> 6.0)
177
+ rake (>= 12.3.3)
162
178
  rspec (~> 3.0)
163
- sqlite3
179
+ sqlite3 (~> 1.3, >= 1.3.0)
164
180
 
165
181
  BUNDLED WITH
166
- 1.16.1
182
+ 2.0.2
data/README.md CHANGED
@@ -2,10 +2,12 @@ Mobility Ransack
2
2
  ================
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/mobility-ransack.svg)][gem]
5
- [![Build Status](https://travis-ci.org/shioyama/mobility-ransack.svg?branch=master)][travis]
5
+ [![Build Status](https://github.com/shioyama/mobility-ransack/workflows/CI/badge.svg)][actions]
6
+ [![Code Climate](https://api.codeclimate.com/v1/badges/2494f02bcd6b65a545fa/maintainability.svg)][codeclimate]
6
7
 
7
- [gem]: https://rubygems.org/gems/friendly_id-mobility
8
- [travis]: https://travis-ci.org/shioyama/friendly_id-mobility
8
+ [gem]: https://rubygems.org/gems/mobility-ransack
9
+ [actions]: https://github.com/shioyama/mobility-ransack/actions
10
+ [codeclimate]: https://codeclimate.com/github/shioyama/mobility-ransack
9
11
 
10
12
  Search on translated attributes with
11
13
  [Mobility](https://github.com/shioyama/mobility) and
@@ -16,29 +18,31 @@ Search on translated attributes with
16
18
  Just add the gem to your Gemfile:
17
19
 
18
20
  ```ruby
19
- gem 'mobility-ransack', '~> 0.1.1'
21
+ gem 'mobility-ransack', '~> 1.0.0'
20
22
  ```
21
23
 
22
- Now enable the `ransack` plugin in Mobility's configuration so that it can be
23
- used, and optionally set the value for the `:ransack` key in `default_options`
24
- to `true` to enable it for all translated attributes on all models.
24
+ (For Mobility versions earlier than 1.0, replace `1.0.0` with `0.2.2`, but be
25
+ aware this version is no longer supported.)
26
+
27
+ Now enable the `ransack` plugin in Mobility's configuration:
25
28
 
26
29
  ```ruby
27
- Mobility.configure do |config|
28
- # ...
29
- config.plugins += [:ransack]
30
- # config.default_options[:ransack] = true
30
+ Mobility.configure do
31
+ plugins do
32
+ ransack
33
+
34
+ # ...
35
+ end
31
36
  end
32
37
  ```
33
38
 
34
- If you left the `default_options` line above commented out, you will need to
35
- explicitly enable ransack for each attribute you want to search on with the
36
- `ransack` option, like this:
39
+ This will enable the ransack plugin for all models. Disable it by passing
40
+ `false` to the `ransack` option:
37
41
 
38
42
  ```ruby
39
43
  class Post < ApplicationRecord
40
44
  extend Mobility
41
- translates :foo, ransack: true
45
+ translates :foo, ransack: false
42
46
  end
43
47
  ```
44
48
 
@@ -4,36 +4,52 @@ require "mobility"
4
4
  module Mobility
5
5
  module Plugins
6
6
  module Ransack
7
+ extend Plugin
8
+
9
+ default true
10
+ requires :backend, include: :before
11
+ requires :active_record
12
+
7
13
  # Applies ransack plugin.
8
14
  # @param [Attributes] attributes
9
15
  # @param [Boolean] option
10
- def self.apply(attributes, option)
11
- if option
12
- backend_class = attributes.backend_class
13
- plugin = self
14
- attributes.model_class.class_eval do
15
- attributes.each do |attr|
16
- ransacker(attr) { backend_class.build_node(attr, Mobility.locale) }
17
- end
18
- extend plugin
16
+ included_hook do |klass, backend_class|
17
+ if options[:ransack]
18
+ names.each do |name|
19
+ klass.ransacker(name) { backend_class.build_node(name, Mobility.locale) }
19
20
  end
21
+ klass.extend ClassMethods
20
22
  end
21
23
  end
22
24
 
23
- def ransack(params = {}, options = {})
24
- Search.new(self, params, options)
25
+ module ClassMethods
26
+ def ransack(*)
27
+ super.extend(Search)
28
+ end
25
29
  end
26
30
 
27
- class Search < ::Ransack::Search
31
+ module Search
28
32
  def result(opts = {})
29
- conditions.inject(super) do |relation, condition|
30
- predicate = condition.arel_predicate
31
- (condition.attributes.compact.flatten.map(&:name) & object.mobility_attributes).inject(relation) do |i18n_rel, attr|
32
- object.mobility_backend_class(attr).apply_scope(i18n_rel, predicate)
33
- end
33
+ sorted = sorts.inject(super) do |relation, sort|
34
+ predicate = ::Ransack::Visitor.new.visit_Ransack_Nodes_Sort(sort)
35
+ apply_mobility_scope(relation, predicate, [sort.attr_name])
36
+ end
37
+ conditions.inject(sorted) do |relation, condition|
38
+ apply_mobility_scope(relation, condition.arel_predicate, condition.attributes.compact.flatten.map(&:name))
39
+ end
40
+ end
41
+
42
+ private
43
+
44
+ def apply_mobility_scope(relation, predicate, attributes)
45
+ mobility_attributes = attributes.select { |attr| object.mobility_attribute?(attr) }
46
+ mobility_attributes.inject(relation) do |i18n_rel, attr|
47
+ object.mobility_backend_class(attr).apply_scope(i18n_rel, predicate)
34
48
  end
35
49
  end
36
50
  end
37
51
  end
52
+
53
+ register_plugin(:ransack, Ransack)
38
54
  end
39
55
  end
@@ -1,5 +1,5 @@
1
1
  module Mobility
2
2
  module Ransack
3
- VERSION = "0.1.1"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobility-ransack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-12 00:00:00.000000000 Z
11
+ date: 2020-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ransack
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 1.8.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.1'
22
+ version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,35 +29,35 @@ dependencies:
29
29
  version: 1.8.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.1'
32
+ version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: mobility
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.8.0
39
+ version: 1.0.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.8.0
46
+ version: 1.0.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '10.0'
53
+ version: 12.3.3
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '10.0'
60
+ version: 12.3.3
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -78,15 +78,41 @@ dependencies:
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '0'
81
+ version: 1.3.0
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '1.3'
82
85
  type: :development
83
86
  prerelease: false
84
87
  version_requirements: !ruby/object:Gem::Requirement
85
88
  requirements:
86
89
  - - ">="
87
90
  - !ruby/object:Gem::Version
88
- version: '0'
89
- description:
91
+ version: 1.3.0
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '1.3'
95
+ - !ruby/object:Gem::Dependency
96
+ name: database_cleaner
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: 1.7.0
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '1.7'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: 1.7.0
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '1.7'
115
+ description:
90
116
  email:
91
117
  - chris@dejimata.com
92
118
  executables: []
@@ -106,7 +132,7 @@ homepage: https://github.com/shioyama/mobility-ransack
106
132
  licenses:
107
133
  - MIT
108
134
  metadata: {}
109
- post_install_message:
135
+ post_install_message:
110
136
  rdoc_options: []
111
137
  require_paths:
112
138
  - lib
@@ -121,9 +147,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
147
  - !ruby/object:Gem::Version
122
148
  version: '0'
123
149
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.7.6
126
- signing_key:
150
+ rubygems_version: 3.0.6
151
+ signing_key:
127
152
  specification_version: 4
128
153
  summary: Search attributes translated by Mobility with Ransack.
129
154
  test_files: []