mobility-ransack 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +7 -3
- data/README.md +1 -1
- data/lib/mobility/ransack/version.rb +1 -1
- data/lib/mobility/ransack.rb +2 -2
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1875d7ec16b978a380c59ff6d7422537e860dbe797fb44755d1659b55121c11a
|
4
|
+
data.tar.gz: a489d834de55dd89265b787c858d799ba77040e24d929329f0fa4f684f0c4da1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c13a01c141709e58e5061461dad39f4239c3d71e3f15bed3894bb59f11b6b15d1c0423bcd4008f6382abb40200dcf11d2a08d95227c3a5716436e370876180e
|
7
|
+
data.tar.gz: 373dbc15c6dd9690b6672c160761dfd91977ebe99808f1457b37c4cae056f19231b3c1e6b5dedd345965591949a1c0ad81cfb9d05570c32d3400d40beb1c05fe
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
## 1.1
|
4
4
|
|
5
|
+
### 1.2.0
|
6
|
+
- [Add compatibility with rails
|
7
|
+
7+](https://github.com/shioyama/mobility-ransack/pull/22), thanks
|
8
|
+
[mhenrixon](https://github.com/mhenrixon)!
|
9
|
+
- [Update mobility-ransack.gemspec](https://github.com/shioyama/mobility-ransack/pull/23),
|
10
|
+
thanks [kevynlebouille](https://github.com/kevynlebouille)!
|
11
|
+
|
5
12
|
### 1.1.0
|
6
13
|
- Make MobilityRansack handle associations correctly
|
7
14
|
([#20](https://github.com/shioyama/mobility-ransack/pull/20))
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mobility-ransack (1.0
|
4
|
+
mobility-ransack (1.1.0)
|
5
5
|
mobility (>= 1.0.1, < 2.0)
|
6
6
|
ransack (>= 1.8.0, < 3.0)
|
7
7
|
|
@@ -96,6 +96,8 @@ GEM
|
|
96
96
|
nokogiri (1.11.7)
|
97
97
|
mini_portile2 (~> 2.5.0)
|
98
98
|
racc (~> 1.4)
|
99
|
+
nokogiri (1.11.7-x86_64-linux)
|
100
|
+
racc (~> 1.4)
|
99
101
|
pry (0.13.0)
|
100
102
|
coderay (~> 1.1)
|
101
103
|
method_source (~> 1.0)
|
@@ -133,7 +135,7 @@ GEM
|
|
133
135
|
rake (>= 0.8.7)
|
134
136
|
thor (~> 1.0)
|
135
137
|
rake (13.0.1)
|
136
|
-
ransack (2.4.
|
138
|
+
ransack (2.4.2)
|
137
139
|
activerecord (>= 5.2.4)
|
138
140
|
activesupport (>= 5.2.4)
|
139
141
|
i18n
|
@@ -170,6 +172,7 @@ GEM
|
|
170
172
|
|
171
173
|
PLATFORMS
|
172
174
|
ruby
|
175
|
+
x86_64-linux
|
173
176
|
|
174
177
|
DEPENDENCIES
|
175
178
|
database_cleaner (~> 1.7, >= 1.7.0)
|
@@ -178,8 +181,9 @@ DEPENDENCIES
|
|
178
181
|
pry-byebug
|
179
182
|
rails (~> 6.1.0)
|
180
183
|
rake (>= 12.3.3)
|
184
|
+
ransack (= 2.4.2)
|
181
185
|
rspec (~> 3.0)
|
182
186
|
sqlite3 (~> 1.3, >= 1.3.0)
|
183
187
|
|
184
188
|
BUNDLED WITH
|
185
|
-
2.
|
189
|
+
2.2.2
|
data/README.md
CHANGED
data/lib/mobility/ransack.rb
CHANGED
@@ -12,7 +12,7 @@ module Mobility
|
|
12
12
|
private
|
13
13
|
|
14
14
|
def visit_collection(objects)
|
15
|
-
objects.map(&method(:visit)).sum.uniq
|
15
|
+
objects.map(&method(:visit)).sum([]).uniq
|
16
16
|
end
|
17
17
|
alias :visit_Array :visit_collection
|
18
18
|
alias :visit_Arel_Nodes_Equality :visit_Arel_Nodes_Binary
|
@@ -22,7 +22,7 @@ module Mobility
|
|
22
22
|
[[object.backend_class, object.locale]]
|
23
23
|
end
|
24
24
|
|
25
|
-
def visit_default(
|
25
|
+
def visit_default(*)
|
26
26
|
[]
|
27
27
|
end
|
28
28
|
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: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Salzberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-08 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: '3.
|
22
|
+
version: '3.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 1.8.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '3.
|
32
|
+
version: '3.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: mobility
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,42 +82,42 @@ dependencies:
|
|
82
82
|
name: sqlite3
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: 1.3.0
|
88
85
|
- - "~>"
|
89
86
|
- !ruby/object:Gem::Version
|
90
87
|
version: '1.3'
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 1.3.0
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: 1.3.0
|
98
95
|
- - "~>"
|
99
96
|
- !ruby/object:Gem::Version
|
100
97
|
version: '1.3'
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 1.3.0
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
102
|
name: database_cleaner
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- - ">="
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
version: 1.7.0
|
108
105
|
- - "~>"
|
109
106
|
- !ruby/object:Gem::Version
|
110
107
|
version: '1.7'
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.7.0
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 1.7.0
|
118
115
|
- - "~>"
|
119
116
|
- !ruby/object:Gem::Version
|
120
117
|
version: '1.7'
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 1.7.0
|
121
121
|
description:
|
122
122
|
email:
|
123
123
|
- chris@dejimata.com
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
|
-
rubygems_version: 3.
|
156
|
+
rubygems_version: 3.1.2
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Search attributes translated by Mobility with Ransack.
|