mobility-ransack 1.0.0.alpha → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -9
- data/README.md +16 -14
- data/lib/mobility/ransack/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e2b2fb4a83837ab504f3094122475e7f3dd47370419e475553eb6a50dcd32b6
|
4
|
+
data.tar.gz: afbe3bacb2c1acbf5d2e83f07c72e03f51ff02aab08b1de8e00f59ecb4ba06b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9746d4b0acf3509a5080bfc091b364cc4774b4e62e2c43824f68c286f5c2d2c3776f31024b5b13d113d2b1324abba4745f5b8cba2bb31d0927f86a572f87582f
|
7
|
+
data.tar.gz: a17f31df6addb9f42a6c22e0a081746dc9a07d67538596588801bab37d2ce210105921e3193e1019c1b4bbab99d895965e6994d6ee90e1d0c45ddf068a89fc44
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mobility-ransack (0.
|
5
|
-
mobility (~> 0.
|
4
|
+
mobility-ransack (1.0.0)
|
5
|
+
mobility (~> 1.0.0)
|
6
6
|
ransack (>= 1.8.0, < 3.0)
|
7
7
|
|
8
8
|
GEM
|
@@ -87,14 +87,12 @@ GEM
|
|
87
87
|
mini_mime (1.0.2)
|
88
88
|
mini_portile2 (2.4.0)
|
89
89
|
minitest (5.14.2)
|
90
|
-
mobility (0.
|
90
|
+
mobility (1.0.0)
|
91
91
|
i18n (>= 0.6.10, < 2)
|
92
92
|
request_store (~> 1.0)
|
93
93
|
nio4r (2.5.4)
|
94
94
|
nokogiri (1.10.10)
|
95
95
|
mini_portile2 (~> 2.4.0)
|
96
|
-
polyamorous (2.3.2)
|
97
|
-
activerecord (>= 5.2.1)
|
98
96
|
pry (0.13.0)
|
99
97
|
coderay (~> 1.1)
|
100
98
|
method_source (~> 1.0)
|
@@ -131,11 +129,10 @@ GEM
|
|
131
129
|
rake (>= 0.8.7)
|
132
130
|
thor (>= 0.20.3, < 2.0)
|
133
131
|
rake (13.0.1)
|
134
|
-
ransack (2.
|
135
|
-
activerecord (>= 5.2.
|
136
|
-
activesupport (>= 5.2.
|
132
|
+
ransack (2.4.0)
|
133
|
+
activerecord (>= 5.2.4)
|
134
|
+
activesupport (>= 5.2.4)
|
137
135
|
i18n
|
138
|
-
polyamorous (= 2.3.2)
|
139
136
|
request_store (1.5.0)
|
140
137
|
rack (>= 1.4)
|
141
138
|
rspec (3.9.0)
|
data/README.md
CHANGED
@@ -2,11 +2,11 @@ Mobility Ransack
|
|
2
2
|
================
|
3
3
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/mobility-ransack.svg)][gem]
|
5
|
-
[![Build Status](https://
|
5
|
+
[![Build Status](https://github.com/shioyama/mobility-ransack/workflows/CI/badge.svg)][actions]
|
6
6
|
[![Code Climate](https://api.codeclimate.com/v1/badges/2494f02bcd6b65a545fa/maintainability.svg)][codeclimate]
|
7
7
|
|
8
8
|
[gem]: https://rubygems.org/gems/mobility-ransack
|
9
|
-
[
|
9
|
+
[actions]: https://github.com/shioyama/mobility-ransack/actions
|
10
10
|
[codeclimate]: https://codeclimate.com/github/shioyama/mobility-ransack
|
11
11
|
|
12
12
|
Search on translated attributes with
|
@@ -18,29 +18,31 @@ Search on translated attributes with
|
|
18
18
|
Just add the gem to your Gemfile:
|
19
19
|
|
20
20
|
```ruby
|
21
|
-
gem 'mobility-ransack', '~> 0.
|
21
|
+
gem 'mobility-ransack', '~> 1.0.0'
|
22
22
|
```
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
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:
|
27
28
|
|
28
29
|
```ruby
|
29
|
-
Mobility.configure do
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
Mobility.configure do
|
31
|
+
plugins do
|
32
|
+
ransack
|
33
|
+
|
34
|
+
# ...
|
35
|
+
end
|
33
36
|
end
|
34
37
|
```
|
35
38
|
|
36
|
-
|
37
|
-
|
38
|
-
`ransack` option, like this:
|
39
|
+
This will enable the ransack plugin for all models. Disable it by passing
|
40
|
+
`false` to the `ransack` option:
|
39
41
|
|
40
42
|
```ruby
|
41
43
|
class Post < ApplicationRecord
|
42
44
|
extend Mobility
|
43
|
-
translates :foo, ransack:
|
45
|
+
translates :foo, ransack: false
|
44
46
|
end
|
45
47
|
```
|
46
48
|
|
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.0.0
|
4
|
+
version: 1.0.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: 2020-
|
11
|
+
date: 2020-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ransack
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 1.0.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: 1.0.0
|
46
|
+
version: 1.0.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,9 +143,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
145
|
requirements:
|
146
|
-
- - "
|
146
|
+
- - ">="
|
147
147
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
148
|
+
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubygems_version: 3.0.6
|
151
151
|
signing_key:
|