mobility 0.8.10 → 0.8.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +69 -72
- data/README.md +1 -1
- data/lib/mobility/plugins/active_record/query.rb +5 -3
- data/lib/mobility/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af3d3290a6ff7b079c7762980e5b26127c22e2a047e24d1d732daae129c51d3e
|
4
|
+
data.tar.gz: 4318510dcbc21495323317f02fed44b8d44218bd572a1ff9a32ee401ea97ad43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac1ac24bec3eb971644aa9cf63a5515c102649cc534f8cce7455bc90dd2dbfbe3002fab8e8dfd79adb0b7784bf87269b7e074723caec1598b163595defa79da9
|
7
|
+
data.tar.gz: fb6cdeb01e91a6373486a5156742ef068184742d53419ea6b1595a878ddd03fbc82345333519917a242bbc61798fc4e71e5f21494c0939272576f2af912e5b15
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
## 0.8
|
4
4
|
|
5
|
+
### 0.8.11 (May 14, 2020)
|
6
|
+
* Handle select with block ([#359](https://github.com/shioyama/mobility/pull/359))
|
7
|
+
|
5
8
|
### 0.8.10 (February 11, 2020)
|
6
9
|
* Enforce case_sensitive comparison for Rails 6.1
|
7
10
|
([#333](https://github.com/shioyama/mobility/pull/333), thanks [morozRed](https://github.com/morozRed)!)
|
data/Gemfile.lock
CHANGED
@@ -1,54 +1,52 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mobility (
|
4
|
+
mobility (0.8.10)
|
5
5
|
i18n (>= 0.6.10, < 2)
|
6
6
|
request_store (~> 1.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionpack (
|
12
|
-
actionview (=
|
13
|
-
activesupport (=
|
14
|
-
rack (~>
|
15
|
-
rack-test (
|
16
|
-
rails-dom-testing (~>
|
17
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
18
|
-
actionview (
|
19
|
-
activesupport (=
|
11
|
+
actionpack (6.0.3)
|
12
|
+
actionview (= 6.0.3)
|
13
|
+
activesupport (= 6.0.3)
|
14
|
+
rack (~> 2.0, >= 2.0.8)
|
15
|
+
rack-test (>= 0.6.3)
|
16
|
+
rails-dom-testing (~> 2.0)
|
17
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
18
|
+
actionview (6.0.3)
|
19
|
+
activesupport (= 6.0.3)
|
20
20
|
builder (~> 3.1)
|
21
|
-
|
22
|
-
rails-dom-testing (~>
|
23
|
-
rails-html-sanitizer (~> 1.
|
24
|
-
activemodel (
|
25
|
-
activesupport (=
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
i18n (~> 0.7)
|
21
|
+
erubi (~> 1.4)
|
22
|
+
rails-dom-testing (~> 2.0)
|
23
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
24
|
+
activemodel (6.0.3)
|
25
|
+
activesupport (= 6.0.3)
|
26
|
+
activerecord (6.0.3)
|
27
|
+
activemodel (= 6.0.3)
|
28
|
+
activesupport (= 6.0.3)
|
29
|
+
activesupport (6.0.3)
|
30
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
31
|
+
i18n (>= 0.7, < 2)
|
33
32
|
minitest (~> 5.1)
|
34
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
35
33
|
tzinfo (~> 1.1)
|
36
|
-
|
37
|
-
benchmark-ips (2.
|
38
|
-
builder (3.2.
|
39
|
-
byebug (11.
|
34
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
35
|
+
benchmark-ips (2.8.2)
|
36
|
+
builder (3.2.4)
|
37
|
+
byebug (11.1.3)
|
40
38
|
coderay (1.1.2)
|
41
|
-
concurrent-ruby (1.1.
|
42
|
-
crass (1.0.
|
43
|
-
database_cleaner (1.
|
39
|
+
concurrent-ruby (1.1.6)
|
40
|
+
crass (1.0.6)
|
41
|
+
database_cleaner (1.8.5)
|
44
42
|
diff-lcs (1.3)
|
45
|
-
|
46
|
-
ffi (1.
|
43
|
+
erubi (1.9.0)
|
44
|
+
ffi (1.12.2)
|
47
45
|
formatador (0.2.5)
|
48
46
|
generator_spec (0.9.4)
|
49
47
|
activesupport (>= 3.0.0)
|
50
48
|
railties (>= 3.0.0)
|
51
|
-
guard (2.
|
49
|
+
guard (2.16.2)
|
52
50
|
formatador (>= 0.2.4)
|
53
51
|
listen (>= 2.7, < 4.0)
|
54
52
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -62,80 +60,79 @@ GEM
|
|
62
60
|
guard (~> 2.1)
|
63
61
|
guard-compat (~> 1.1)
|
64
62
|
rspec (>= 2.99.0, < 4.0)
|
65
|
-
i18n (
|
63
|
+
i18n (1.8.2)
|
66
64
|
concurrent-ruby (~> 1.0)
|
67
|
-
listen (3.2.
|
65
|
+
listen (3.2.1)
|
68
66
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
69
67
|
rb-inotify (~> 0.9, >= 0.9.10)
|
70
|
-
loofah (2.
|
68
|
+
loofah (2.5.0)
|
71
69
|
crass (~> 1.0.2)
|
72
70
|
nokogiri (>= 1.5.9)
|
73
|
-
lumberjack (1.
|
74
|
-
method_source (0.
|
71
|
+
lumberjack (1.2.4)
|
72
|
+
method_source (1.0.0)
|
75
73
|
mini_portile2 (2.4.0)
|
76
|
-
minitest (5.
|
74
|
+
minitest (5.14.0)
|
77
75
|
mysql2 (0.4.10)
|
78
76
|
nenv (0.3.0)
|
79
|
-
nokogiri (1.10.
|
77
|
+
nokogiri (1.10.9)
|
80
78
|
mini_portile2 (~> 2.4.0)
|
81
79
|
notiffany (0.1.3)
|
82
80
|
nenv (~> 0.1)
|
83
81
|
shellany (~> 0.0)
|
84
82
|
pg (0.21.0)
|
85
|
-
pry (0.
|
86
|
-
coderay (~> 1.1
|
87
|
-
method_source (~>
|
88
|
-
pry-byebug (3.
|
83
|
+
pry (0.13.1)
|
84
|
+
coderay (~> 1.1)
|
85
|
+
method_source (~> 1.0)
|
86
|
+
pry-byebug (3.9.0)
|
89
87
|
byebug (~> 11.0)
|
90
|
-
pry (~> 0.
|
91
|
-
rack (
|
92
|
-
rack-test (
|
93
|
-
rack (>= 1.0)
|
94
|
-
rails-
|
95
|
-
activesupport (>= 4.2.0
|
96
|
-
|
97
|
-
activesupport (>= 4.2.0, < 5.0)
|
98
|
-
nokogiri (~> 1.6)
|
99
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
88
|
+
pry (~> 0.13.0)
|
89
|
+
rack (2.2.2)
|
90
|
+
rack-test (1.1.0)
|
91
|
+
rack (>= 1.0, < 3)
|
92
|
+
rails-dom-testing (2.0.3)
|
93
|
+
activesupport (>= 4.2.0)
|
94
|
+
nokogiri (>= 1.6)
|
100
95
|
rails-html-sanitizer (1.3.0)
|
101
96
|
loofah (~> 2.3)
|
102
|
-
railties (
|
103
|
-
actionpack (=
|
104
|
-
activesupport (=
|
97
|
+
railties (6.0.3)
|
98
|
+
actionpack (= 6.0.3)
|
99
|
+
activesupport (= 6.0.3)
|
100
|
+
method_source
|
105
101
|
rake (>= 0.8.7)
|
106
|
-
thor (>= 0.
|
102
|
+
thor (>= 0.20.3, < 2.0)
|
107
103
|
rake (12.3.3)
|
108
|
-
rb-fsevent (0.10.
|
109
|
-
rb-inotify (0.10.
|
104
|
+
rb-fsevent (0.10.4)
|
105
|
+
rb-inotify (0.10.1)
|
110
106
|
ffi (~> 1.0)
|
111
|
-
request_store (1.
|
107
|
+
request_store (1.5.0)
|
112
108
|
rack (>= 1.4)
|
113
109
|
rspec (3.9.0)
|
114
110
|
rspec-core (~> 3.9.0)
|
115
111
|
rspec-expectations (~> 3.9.0)
|
116
112
|
rspec-mocks (~> 3.9.0)
|
117
|
-
rspec-core (3.9.
|
118
|
-
rspec-support (~> 3.9.
|
119
|
-
rspec-expectations (3.9.
|
113
|
+
rspec-core (3.9.2)
|
114
|
+
rspec-support (~> 3.9.3)
|
115
|
+
rspec-expectations (3.9.2)
|
120
116
|
diff-lcs (>= 1.2.0, < 2.0)
|
121
117
|
rspec-support (~> 3.9.0)
|
122
|
-
rspec-mocks (3.9.
|
118
|
+
rspec-mocks (3.9.1)
|
123
119
|
diff-lcs (>= 1.2.0, < 2.0)
|
124
120
|
rspec-support (~> 3.9.0)
|
125
|
-
rspec-support (3.9.
|
121
|
+
rspec-support (3.9.3)
|
126
122
|
shellany (0.0.1)
|
127
|
-
sqlite3 (1.
|
128
|
-
thor (0.
|
123
|
+
sqlite3 (1.4.2)
|
124
|
+
thor (1.0.1)
|
129
125
|
thread_safe (0.3.6)
|
130
|
-
tzinfo (1.2.
|
126
|
+
tzinfo (1.2.7)
|
131
127
|
thread_safe (~> 0.1)
|
132
|
-
yard (0.9.
|
128
|
+
yard (0.9.25)
|
129
|
+
zeitwerk (2.3.0)
|
133
130
|
|
134
131
|
PLATFORMS
|
135
132
|
ruby
|
136
133
|
|
137
134
|
DEPENDENCIES
|
138
|
-
activerecord (>=
|
135
|
+
activerecord (>= 6.0.0, < 6.1)
|
139
136
|
benchmark-ips
|
140
137
|
database_cleaner (~> 1.5, >= 1.5.3)
|
141
138
|
generator_spec (~> 0.9.4)
|
@@ -146,7 +143,7 @@ DEPENDENCIES
|
|
146
143
|
pry-byebug
|
147
144
|
rake (~> 12, >= 12.2.1)
|
148
145
|
rspec (~> 3.0)
|
149
|
-
sqlite3 (~> 1.
|
146
|
+
sqlite3 (~> 1.4.1)
|
150
147
|
yard (~> 0.9.0)
|
151
148
|
|
152
149
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -139,8 +139,10 @@ enabled for any one attribute on the model.
|
|
139
139
|
|
140
140
|
if ::ActiveRecord::VERSION::STRING >= '5.0'
|
141
141
|
%w[pluck group select].each do |method_name|
|
142
|
-
define_method method_name do |*attrs|
|
143
|
-
return super(*attrs)
|
142
|
+
define_method method_name do |*attrs, &block|
|
143
|
+
return super(*attrs, &block) if (method_name == 'select' && block.present?)
|
144
|
+
|
145
|
+
return super(*attrs, &block) unless attrs.any?(&@klass.method(:mobility_attribute?))
|
144
146
|
|
145
147
|
keys = attrs.dup
|
146
148
|
|
@@ -154,7 +156,7 @@ enabled for any one attribute on the model.
|
|
154
156
|
@klass.mobility_backend_class(key).apply_scope(query, backend_node(key))
|
155
157
|
end
|
156
158
|
|
157
|
-
base.public_send(method_name, *keys)
|
159
|
+
base.public_send(method_name, *keys, &block)
|
158
160
|
end
|
159
161
|
end
|
160
162
|
end
|
data/lib/mobility/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobility
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Salzberg
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
gSQml7TqcC6dZRsZRwYqzD9kUwdAJoCqno2CBUKs2l0yQAjFT36lRrVJznb7uWwa
|
35
35
|
xpPFnsrtyaZW6Dty8TSG3qzmeGpmpIotA8x1VA==
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2020-
|
37
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: request_store
|
metadata.gz.sig
CHANGED
Binary file
|