mobility 0.8.10 → 0.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd8355a959c296a84759983153fc1233f69aa78cc78228b4b20f0f467372da3d
4
- data.tar.gz: 58da1ee48b36cd40c2e1b12edfea91ab22034090c57638f301908dcebf3f9145
3
+ metadata.gz: af3d3290a6ff7b079c7762980e5b26127c22e2a047e24d1d732daae129c51d3e
4
+ data.tar.gz: 4318510dcbc21495323317f02fed44b8d44218bd572a1ff9a32ee401ea97ad43
5
5
  SHA512:
6
- metadata.gz: bcf5520b40769d00e0a848f6a18865c74ec3a48b74a83c421ad5bca89e19e9ccb86e66b6d7538e57f88a44737bc9bcc0b122f3fa4d1659a0a596c21237b4e1f6
7
- data.tar.gz: 12b2ea52538025521a472c9f1b03cc165e677534e559174076a1c6142a6f53b81406636d52715dab7c3aa91fdc16644f1f6e8e61739631e9f841a105cfa1394f
6
+ metadata.gz: ac1ac24bec3eb971644aa9cf63a5515c102649cc534f8cce7455bc90dd2dbfbe3002fab8e8dfd79adb0b7784bf87269b7e074723caec1598b163595defa79da9
7
+ data.tar.gz: fb6cdeb01e91a6373486a5156742ef068184742d53419ea6b1595a878ddd03fbc82345333519917a242bbc61798fc4e71e5f21494c0939272576f2af912e5b15
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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)!)
@@ -1,54 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility (1.0.alpha.1)
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 (4.2.11.1)
12
- actionview (= 4.2.11.1)
13
- activesupport (= 4.2.11.1)
14
- rack (~> 1.6)
15
- rack-test (~> 0.6.2)
16
- rails-dom-testing (~> 1.0, >= 1.0.5)
17
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
- actionview (4.2.11.1)
19
- activesupport (= 4.2.11.1)
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
- erubis (~> 2.7.0)
22
- rails-dom-testing (~> 1.0, >= 1.0.5)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
- activemodel (4.2.11.1)
25
- activesupport (= 4.2.11.1)
26
- builder (~> 3.1)
27
- activerecord (4.2.11.1)
28
- activemodel (= 4.2.11.1)
29
- activesupport (= 4.2.11.1)
30
- arel (~> 6.0)
31
- activesupport (4.2.11.1)
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
- arel (6.0.4)
37
- benchmark-ips (2.7.2)
38
- builder (3.2.3)
39
- byebug (11.0.1)
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.5)
42
- crass (1.0.5)
43
- database_cleaner (1.7.0)
39
+ concurrent-ruby (1.1.6)
40
+ crass (1.0.6)
41
+ database_cleaner (1.8.5)
44
42
  diff-lcs (1.3)
45
- erubis (2.7.0)
46
- ffi (1.11.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.15.1)
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 (0.9.5)
63
+ i18n (1.8.2)
66
64
  concurrent-ruby (~> 1.0)
67
- listen (3.2.0)
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.3.1)
68
+ loofah (2.5.0)
71
69
  crass (~> 1.0.2)
72
70
  nokogiri (>= 1.5.9)
73
- lumberjack (1.0.13)
74
- method_source (0.9.2)
71
+ lumberjack (1.2.4)
72
+ method_source (1.0.0)
75
73
  mini_portile2 (2.4.0)
76
- minitest (5.12.2)
74
+ minitest (5.14.0)
77
75
  mysql2 (0.4.10)
78
76
  nenv (0.3.0)
79
- nokogiri (1.10.4)
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.12.2)
86
- coderay (~> 1.1.0)
87
- method_source (~> 0.9.0)
88
- pry-byebug (3.7.0)
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.10)
91
- rack (1.6.11)
92
- rack-test (0.6.3)
93
- rack (>= 1.0)
94
- rails-deprecated_sanitizer (1.0.3)
95
- activesupport (>= 4.2.0.alpha)
96
- rails-dom-testing (1.0.9)
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 (4.2.11.1)
103
- actionpack (= 4.2.11.1)
104
- activesupport (= 4.2.11.1)
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.18.1, < 2.0)
102
+ thor (>= 0.20.3, < 2.0)
107
103
  rake (12.3.3)
108
- rb-fsevent (0.10.3)
109
- rb-inotify (0.10.0)
104
+ rb-fsevent (0.10.4)
105
+ rb-inotify (0.10.1)
110
106
  ffi (~> 1.0)
111
- request_store (1.4.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.0)
118
- rspec-support (~> 3.9.0)
119
- rspec-expectations (3.9.0)
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.0)
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.0)
121
+ rspec-support (3.9.3)
126
122
  shellany (0.0.1)
127
- sqlite3 (1.3.13)
128
- thor (0.20.3)
123
+ sqlite3 (1.4.2)
124
+ thor (1.0.1)
129
125
  thread_safe (0.3.6)
130
- tzinfo (1.2.5)
126
+ tzinfo (1.2.7)
131
127
  thread_safe (~> 0.1)
132
- yard (0.9.20)
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 (>= 4.2.6, < 5.0)
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.3.13)
146
+ sqlite3 (~> 1.4.1)
150
147
  yard (~> 0.9.0)
151
148
 
152
149
  BUNDLED WITH
data/README.md CHANGED
@@ -51,7 +51,7 @@ Installation
51
51
  Add this line to your application's Gemfile:
52
52
 
53
53
  ```ruby
54
- gem 'mobility', '~> 0.8.10'
54
+ gem 'mobility', '~> 0.8.11'
55
55
  ```
56
56
 
57
57
  Mobility is cryptographically signed. To be sure the gem you install hasn't
@@ -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) unless attrs.any?(&@klass.method(:mobility_attribute?))
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mobility
4
- VERSION = "0.8.10"
4
+ VERSION = "0.8.11"
5
5
  end
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.10
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-02-11 00:00:00.000000000 Z
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