mobility 1.2.8 → 1.2.9

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: 17bc48ee3eb32c8a9590bd2272a584cd2c6419464acd55466513e0d2e3c296f2
4
- data.tar.gz: e29dbc1fb5276e466e3da8d8d88bf0ac6c993589dcb69603ac90881b33296b0b
3
+ metadata.gz: 9a2836c1681d1832331e807e58fa61956426ddc3cc730c15e6b3d6ebac2fce40
4
+ data.tar.gz: 61c798b73769f7d73bb5a3a97b3a1a27ac8884a186df89aeb5ceef0ecb92b692
5
5
  SHA512:
6
- metadata.gz: b938078ab08169631d98f8437109f391ab6ea942813652be76f30b94d986753aa0c0fb826b1e3e738372dc874273d944a2082afe97a4799a8648e39002d340f3
7
- data.tar.gz: 99c18855141b073b7530eae978c7873727d40ef4e6eb22d7f5c84a0c4880e20f1586f3293776cde460794cc37ff88710a6b612b5a3552a4f6ee39abca074e347
6
+ metadata.gz: e8693fb2b5d997a1d7029413aee5c5f064eeafbef6f8a10ad2c947bd545fff72e238f6d57ebaae8761d5948e036446d310f7ce9da3c047a7577818919dfd7908
7
+ data.tar.gz: e980cc7d53a32c517c04994105540fd9635aae5899d35cecb1544a36ef052619adb0647b58ec666902402e8ad642c85aa576f0301d3708211e83b5f3d0e6d95b
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## 1.2
4
4
 
5
+ ### 1.2.9
6
+ - Fix missing method `mobility_attribute?` on Rails 7
7
+ ([#582](https://github.com/shioyama/mobility/pull/582) and
8
+ [#584](https://github.com/shioyama/mobility/pull/584))
9
+
5
10
  ### 1.2.8
6
11
  - Fix issues with subclassing, such as when using AR STI,
7
12
  fixes [#566](https://github.com/shioyama/mobility/issues/566)
data/Gemfile.lock CHANGED
@@ -1,35 +1,27 @@
1
- GIT
2
- remote: https://github.com/rails/rails.git
3
- revision: ed3130a41d7728b2e650c1b9093545e0d06af489
4
- branch: main
5
- specs:
6
- activemodel (7.1.0.alpha)
7
- activesupport (= 7.1.0.alpha)
8
- activerecord (7.1.0.alpha)
9
- activemodel (= 7.1.0.alpha)
10
- activesupport (= 7.1.0.alpha)
11
- activesupport (7.1.0.alpha)
12
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
- connection_pool (>= 2.2.5)
14
- i18n (>= 1.6, < 2)
15
- minitest (>= 5.1)
16
- tzinfo (~> 2.0)
17
-
18
1
  PATH
19
2
  remote: .
20
3
  specs:
21
- mobility (1.3.0.alpha)
4
+ mobility (1.2.8)
22
5
  i18n (>= 0.6.10, < 2)
23
6
  request_store (~> 1.0)
24
7
 
25
8
  GEM
26
9
  remote: https://rubygems.org/
27
10
  specs:
11
+ activemodel (7.0.3)
12
+ activesupport (= 7.0.3)
13
+ activerecord (7.0.3)
14
+ activemodel (= 7.0.3)
15
+ activesupport (= 7.0.3)
16
+ activesupport (7.0.3)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 1.6, < 2)
19
+ minitest (>= 5.1)
20
+ tzinfo (~> 2.0)
28
21
  benchmark-ips (2.10.0)
29
22
  byebug (11.1.3)
30
23
  coderay (1.1.3)
31
24
  concurrent-ruby (1.1.10)
32
- connection_pool (2.2.5)
33
25
  database_cleaner (1.99.0)
34
26
  diff-lcs (1.5.0)
35
27
  ffi (1.15.5)
@@ -55,7 +47,7 @@ GEM
55
47
  rb-inotify (~> 0.9, >= 0.9.10)
56
48
  lumberjack (1.2.8)
57
49
  method_source (1.0.0)
58
- minitest (5.16.0)
50
+ minitest (5.16.1)
59
51
  nenv (0.3.0)
60
52
  notiffany (0.1.3)
61
53
  nenv (~> 0.1)
@@ -99,8 +91,7 @@ PLATFORMS
99
91
  ruby
100
92
 
101
93
  DEPENDENCIES
102
- activerecord!
103
- activesupport!
94
+ activerecord (~> 7.0.0)
104
95
  benchmark-ips
105
96
  database_cleaner (~> 1.5, >= 1.5.3)
106
97
  guard-rspec
data/README.md CHANGED
@@ -55,7 +55,7 @@ Installation
55
55
  Add this line to your application's Gemfile:
56
56
 
57
57
  ```ruby
58
- gem 'mobility', '~> 1.2.8'
58
+ gem 'mobility', '~> 1.2.9'
59
59
  ```
60
60
 
61
61
  ### ActiveRecord (Rails)
@@ -163,9 +163,8 @@ enabled for any one attribute on the model.
163
163
  define_method method_name do |*attrs, &block|
164
164
  return super(*attrs, &block) if (method_name == 'select' && block.present?)
165
165
 
166
- if ::ActiveRecord::VERSION::STRING < '7.0'
167
- return super(*attrs, &block) unless @klass.respond_to?(:mobility_attribute?)
168
- end
166
+ return super(*attrs, &block) unless @klass.respond_to?(:mobility_attribute?)
167
+
169
168
  return super(*attrs, &block) unless attrs.any?(&@klass.method(:mobility_attribute?))
170
169
 
171
170
  keys = attrs.dup
@@ -8,7 +8,7 @@ module Mobility
8
8
  module VERSION
9
9
  MAJOR = 1
10
10
  MINOR = 2
11
- TINY = 8
11
+ TINY = 9
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
data.tar.gz.sig CHANGED
Binary file
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: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
@@ -34,7 +34,7 @@ cert_chain:
34
34
  QHgocnSksU5GOM+G2UhjVycbTamd+bCxjWAZTEDZNafFt5CmnfK1D1UTIblR/ci9
35
35
  fUDdW+GhxhobB8N1mtDRlhELoxLLjx7mSvJ3Wg==
36
36
  -----END CERTIFICATE-----
37
- date: 2022-06-18 00:00:00.000000000 Z
37
+ date: 2022-06-24 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