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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3df672b8192defc4e9888ff5d5e11d8321611a5ed8f14903499e481447d7530
4
- data.tar.gz: 656a8ca330a761e02595f58670dce0f9dd7a705192e82d17e7357909cf0b8301
3
+ metadata.gz: 9e2b2fb4a83837ab504f3094122475e7f3dd47370419e475553eb6a50dcd32b6
4
+ data.tar.gz: afbe3bacb2c1acbf5d2e83f07c72e03f51ff02aab08b1de8e00f59ecb4ba06b8
5
5
  SHA512:
6
- metadata.gz: 7c31d6ddadc41ac4538220aafa399beaf2d99cdb93145ba38d6aa1ca8af276bc817934597c2d85db16edd70c24fbb9922b8382a859441d30b597f8a24667f6cf
7
- data.tar.gz: 0dceb9bafd2fc61681afe5fe37b1fdb37c19625749772ca0ad6d91659df9b4c63d3fd76f043fbf7d845a59f42b5c665c6a57d7117439c4cebea7f1d73df6cfb3
6
+ metadata.gz: 9746d4b0acf3509a5080bfc091b364cc4774b4e62e2c43824f68c286f5c2d2c3776f31024b5b13d113d2b1324abba4745f5b8cba2bb31d0927f86a572f87582f
7
+ data.tar.gz: a17f31df6addb9f42a6c22e0a081746dc9a07d67538596588801bab37d2ce210105921e3193e1019c1b4bbab99d895965e6994d6ee90e1d0c45ddf068a89fc44
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility-ransack (0.2.2)
5
- mobility (~> 0.8.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.8.13)
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.3.2)
135
- activerecord (>= 5.2.1)
136
- activesupport (>= 5.2.1)
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://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
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
- [travis]: https://travis-ci.org/shioyama/mobility-ransack
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.2.2'
21
+ gem 'mobility-ransack', '~> 1.0.0'
22
22
  ```
23
23
 
24
- Now enable the `ransack` plugin in Mobility's configuration so that it can be
25
- used, and optionally set the value for the `:ransack` key in `default_options`
26
- 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:
27
28
 
28
29
  ```ruby
29
- Mobility.configure do |config|
30
- # ...
31
- config.plugins += [:ransack]
32
- # config.default_options[:ransack] = true
30
+ Mobility.configure do
31
+ plugins do
32
+ ransack
33
+
34
+ # ...
35
+ end
33
36
  end
34
37
  ```
35
38
 
36
- If you left the `default_options` line above commented out, you will need to
37
- explicitly enable ransack for each attribute you want to search on with the
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: true
45
+ translates :foo, ransack: false
44
46
  end
45
47
  ```
46
48
 
@@ -1,5 +1,5 @@
1
1
  module Mobility
2
2
  module Ransack
3
- VERSION = "1.0.0.alpha"
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: 1.0.0.alpha
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-05 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
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 1.0.0.beta1
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.beta1
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: 1.3.1
148
+ version: '0'
149
149
  requirements: []
150
150
  rubygems_version: 3.0.6
151
151
  signing_key: