mobility 1.3.0.rc1 → 1.3.0.rc2
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/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +30 -30
- data/README.md +2 -1
- data/lib/mobility/backends/active_record/serialized.rb +7 -1
- data/lib/mobility/version.rb +1 -1
- data.tar.gz.sig +0 -0
- 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: 6f693f3dcc0f7b22ea963e01dedcfab909f659f39441e16894e0490f5ed99024
|
4
|
+
data.tar.gz: 444117b04d4d0934c854384e3c52119a43f5c2772202c893f15cd8a8ca8b1651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fde354db46b03dfad8efaf22f542c4b9850cda464e562ea31309c311cec27e6f1a400d1842660cd103dba13f22a48b342feccf46bb22249d34295673666f176
|
7
|
+
data.tar.gz: 57ee5c44f0bb58d25a97f7de1f854ef3252117f89e273e39e4feba3ed35ee6443356d6488cdab992d4cd92160a8f72a84d6064c3e24aa105afd6479b000db82d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
## 1.3
|
4
4
|
|
5
|
+
### 1.3.0.rc2
|
6
|
+
|
7
|
+
- Pass `coder` as keyword argument to `serialize` (ActiveRecord version > 3.2)
|
8
|
+
([#617](https://github.com/shioyama/mobility/pull/617))
|
9
|
+
|
5
10
|
### 1.3.0.rc1
|
6
11
|
|
7
12
|
This version includes potentially breaking chnages for jsonb and hstore
|
data/Gemfile
CHANGED
@@ -10,7 +10,7 @@ group :development, :test do
|
|
10
10
|
when 'active_record'
|
11
11
|
orm_version ||= '7.0'
|
12
12
|
case orm_version
|
13
|
-
when '
|
13
|
+
when '6.1', '7.0', '7.1'
|
14
14
|
gem 'activerecord', "~> #{orm_version}.0"
|
15
15
|
when 'edge'
|
16
16
|
git 'https://github.com/rails/rails.git', branch: 'main' do
|
data/Gemfile.lock
CHANGED
@@ -8,15 +8,15 @@ PATH
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
benchmark-ips (2.
|
11
|
+
benchmark-ips (2.13.0)
|
12
12
|
byebug (11.1.3)
|
13
13
|
coderay (1.1.3)
|
14
|
-
concurrent-ruby (1.2.
|
14
|
+
concurrent-ruby (1.2.3)
|
15
15
|
database_cleaner (1.99.0)
|
16
|
-
diff-lcs (1.5.
|
17
|
-
ffi (1.
|
16
|
+
diff-lcs (1.5.1)
|
17
|
+
ffi (1.16.3)
|
18
18
|
formatador (1.1.0)
|
19
|
-
guard (2.18.
|
19
|
+
guard (2.18.1)
|
20
20
|
formatador (>= 0.2.4)
|
21
21
|
listen (>= 2.7, < 4.0)
|
22
22
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -30,51 +30,50 @@ GEM
|
|
30
30
|
guard (~> 2.1)
|
31
31
|
guard-compat (~> 1.1)
|
32
32
|
rspec (>= 2.99.0, < 4.0)
|
33
|
-
i18n (1.
|
33
|
+
i18n (1.14.4)
|
34
34
|
concurrent-ruby (~> 1.0)
|
35
|
-
listen (3.
|
35
|
+
listen (3.9.0)
|
36
36
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
37
37
|
rb-inotify (~> 0.9, >= 0.9.10)
|
38
|
-
lumberjack (1.2.
|
38
|
+
lumberjack (1.2.10)
|
39
39
|
method_source (1.0.0)
|
40
40
|
nenv (0.3.0)
|
41
41
|
notiffany (0.1.3)
|
42
42
|
nenv (~> 0.1)
|
43
43
|
shellany (~> 0.0)
|
44
|
-
pry (0.
|
44
|
+
pry (0.14.2)
|
45
45
|
coderay (~> 1.1)
|
46
46
|
method_source (~> 1.0)
|
47
|
-
pry-byebug (3.
|
47
|
+
pry-byebug (3.10.1)
|
48
48
|
byebug (~> 11.0)
|
49
|
-
pry (
|
50
|
-
rack (3.0.
|
49
|
+
pry (>= 0.13, < 0.15)
|
50
|
+
rack (3.0.9.1)
|
51
51
|
rake (12.3.3)
|
52
|
-
rb-fsevent (0.11.
|
52
|
+
rb-fsevent (0.11.2)
|
53
53
|
rb-inotify (0.10.1)
|
54
54
|
ffi (~> 1.0)
|
55
|
-
request_store (1.
|
55
|
+
request_store (1.6.0)
|
56
56
|
rack (>= 1.4)
|
57
|
-
rspec (3.
|
58
|
-
rspec-core (~> 3.
|
59
|
-
rspec-expectations (~> 3.
|
60
|
-
rspec-mocks (~> 3.
|
61
|
-
rspec-core (3.
|
62
|
-
rspec-support (~> 3.
|
63
|
-
rspec-expectations (3.
|
57
|
+
rspec (3.13.0)
|
58
|
+
rspec-core (~> 3.13.0)
|
59
|
+
rspec-expectations (~> 3.13.0)
|
60
|
+
rspec-mocks (~> 3.13.0)
|
61
|
+
rspec-core (3.13.0)
|
62
|
+
rspec-support (~> 3.13.0)
|
63
|
+
rspec-expectations (3.13.0)
|
64
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
65
|
-
rspec-support (~> 3.
|
66
|
-
rspec-mocks (3.
|
65
|
+
rspec-support (~> 3.13.0)
|
66
|
+
rspec-mocks (3.13.0)
|
67
67
|
diff-lcs (>= 1.2.0, < 2.0)
|
68
|
-
rspec-support (~> 3.
|
69
|
-
rspec-support (3.
|
68
|
+
rspec-support (~> 3.13.0)
|
69
|
+
rspec-support (3.13.1)
|
70
70
|
shellany (0.0.1)
|
71
|
-
|
72
|
-
|
73
|
-
yard (0.9.
|
74
|
-
webrick (~> 1.7.0)
|
71
|
+
sqlite3 (1.4.4)
|
72
|
+
thor (1.3.1)
|
73
|
+
yard (0.9.36)
|
75
74
|
|
76
75
|
PLATFORMS
|
77
|
-
|
76
|
+
x86_64-linux
|
78
77
|
|
79
78
|
DEPENDENCIES
|
80
79
|
benchmark-ips
|
@@ -84,6 +83,7 @@ DEPENDENCIES
|
|
84
83
|
pry-byebug
|
85
84
|
rake (~> 12, >= 12.2.1)
|
86
85
|
rspec (~> 3.0)
|
86
|
+
sqlite3 (~> 1.4.1)
|
87
87
|
yard (~> 0.9.0)
|
88
88
|
|
89
89
|
BUNDLED WITH
|
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.3.0.
|
58
|
+
gem 'mobility', '~> 1.3.0.rc2'
|
59
59
|
```
|
60
60
|
|
61
61
|
### ActiveRecord (Rails)
|
@@ -1027,6 +1027,7 @@ Integrations
|
|
1027
1027
|
* [mobility-actiontext](https://github.com/sedubois/mobility-actiontext): Translate
|
1028
1028
|
Rails [Action Text](https://guides.rubyonrails.org/action_text_overview.html) rich text
|
1029
1029
|
with Mobility.
|
1030
|
+
* [mobility_typed](https://github.com/GeorgeGorbanev/mobility_typed): Add type checking to Rails models accessors.
|
1030
1031
|
|
1031
1032
|
Tutorials
|
1032
1033
|
---------
|
@@ -51,7 +51,13 @@ Implements {Mobility::Backends::Serialized} backend for ActiveRecord models.
|
|
51
51
|
|
52
52
|
setup do |attributes, options|
|
53
53
|
coder = { yaml: YAMLCoder, json: JSONCoder }[options[:format]]
|
54
|
-
attributes.each
|
54
|
+
attributes.each do |attribute|
|
55
|
+
if (::ActiveRecord::VERSION::STRING >= "7.1")
|
56
|
+
serialize (options[:column_affix] % attribute), coder: coder
|
57
|
+
else
|
58
|
+
serialize (options[:column_affix] % attribute), coder
|
59
|
+
end
|
60
|
+
end
|
55
61
|
end
|
56
62
|
|
57
63
|
# @!group Cache Methods
|
data/lib/mobility/version.rb
CHANGED
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.3.0.
|
4
|
+
version: 1.3.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Salzberg
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
QnAXcxRDe1ne9jJyVo8hEgxLTG60CK2v46NPXc8FG6TTrp3GWX7G8HzaU2/Z2WAk
|
36
36
|
SQ1li+pvoD9RLbDgJxzXm5YqF799qRUYoP/85TXkGYip7dYM
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2024-03-20 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: request_store
|
metadata.gz.sig
CHANGED
Binary file
|