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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a89e6682c14088be7f337e5a03c5b510a67dd7a93ee88024f3686f9bfc4694e
4
- data.tar.gz: c5a99fc2000e05d2d3ccc3ff9d6dd00357dc3b5ace57d7c92782b2601bd32e51
3
+ metadata.gz: 6f693f3dcc0f7b22ea963e01dedcfab909f659f39441e16894e0490f5ed99024
4
+ data.tar.gz: 444117b04d4d0934c854384e3c52119a43f5c2772202c893f15cd8a8ca8b1651
5
5
  SHA512:
6
- metadata.gz: f60e92ede85fc444d4151a14c833a13ced95c1e2f073fafa024aa967de01810e5b2b6ccfc4365c5d338679d1899573ec2921453ce44dcdc9736fde749ad650ed
7
- data.tar.gz: 21319dd41e1025a82545a08da30fcafd38d5bc61c86bdcfe2b017b195d670a9a503fbff8101a7897b99fe32e3c0bf19666bd0c86f06887fb697a8bce132b6253
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 '4.2', '5.0', '5.1', '5.2', '6.0', '6.1', '7.0'
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.10.0)
11
+ benchmark-ips (2.13.0)
12
12
  byebug (11.1.3)
13
13
  coderay (1.1.3)
14
- concurrent-ruby (1.2.2)
14
+ concurrent-ruby (1.2.3)
15
15
  database_cleaner (1.99.0)
16
- diff-lcs (1.5.0)
17
- ffi (1.15.5)
16
+ diff-lcs (1.5.1)
17
+ ffi (1.16.3)
18
18
  formatador (1.1.0)
19
- guard (2.18.0)
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.12.0)
33
+ i18n (1.14.4)
34
34
  concurrent-ruby (~> 1.0)
35
- listen (3.7.1)
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.8)
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.13.1)
44
+ pry (0.14.2)
45
45
  coderay (~> 1.1)
46
46
  method_source (~> 1.0)
47
- pry-byebug (3.9.0)
47
+ pry-byebug (3.10.1)
48
48
  byebug (~> 11.0)
49
- pry (~> 0.13.0)
50
- rack (3.0.7)
49
+ pry (>= 0.13, < 0.15)
50
+ rack (3.0.9.1)
51
51
  rake (12.3.3)
52
- rb-fsevent (0.11.1)
52
+ rb-fsevent (0.11.2)
53
53
  rb-inotify (0.10.1)
54
54
  ffi (~> 1.0)
55
- request_store (1.5.1)
55
+ request_store (1.6.0)
56
56
  rack (>= 1.4)
57
- rspec (3.11.0)
58
- rspec-core (~> 3.11.0)
59
- rspec-expectations (~> 3.11.0)
60
- rspec-mocks (~> 3.11.0)
61
- rspec-core (3.11.0)
62
- rspec-support (~> 3.11.0)
63
- rspec-expectations (3.11.0)
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.11.0)
66
- rspec-mocks (3.11.1)
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.11.0)
69
- rspec-support (3.11.0)
68
+ rspec-support (~> 3.13.0)
69
+ rspec-support (3.13.1)
70
70
  shellany (0.0.1)
71
- thor (1.2.1)
72
- webrick (1.7.0)
73
- yard (0.9.28)
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
- ruby
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.rc1'
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 { |attribute| serialize (options[:column_affix] % attribute), coder }
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
@@ -9,7 +9,7 @@ module Mobility
9
9
  MAJOR = 1
10
10
  MINOR = 3
11
11
  TINY = 0
12
- PRE = "rc1"
12
+ PRE = "rc2"
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
15
15
  end
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.rc1
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: 2023-03-28 00:00:00.000000000 Z
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