mobility 1.3.1 → 1.3.2

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: e29c8ed1c4b5ff644843c06c90fa46ce9fa9dd951a64dfb40b2ff33961483edd
4
- data.tar.gz: '0708f6107d1ac5a80fd99c7d7d098e6915c10ad457cf962fdcc8510bced56f58'
3
+ metadata.gz: a0c4bf66ecc6f29971de5824593cec2e01ebc83b00b31211c34c6400533258b2
4
+ data.tar.gz: 76a583703568606c2e7da0b4584eff3ba0bac945c470c082670bea5cc089f0a5
5
5
  SHA512:
6
- metadata.gz: 87975b6d967a5944c5cc5f1b0bc154eeff73437fd3a0bde826195236e070533cfc2ffbaa1188a3791d8bfb439179005210712a9a91894a9212881113b74a1910
7
- data.tar.gz: d77ff76539f6f847ded56cada8746cd64a2398ddd2fe1fd33758f129ba737e996e083797e7dabe0769f9e41ab06f73b50b2f56635f8e9d5ab2e23f9c787408fa
6
+ metadata.gz: 1fb87d197dd5828cbeba90c7c3ca987dca7527571a4311145486c9eff76fe7c9bfc222098053c6c024dcf184bbe068f577ec621e8cd183883d3ba4830b684c87
7
+ data.tar.gz: d8bf29cf123fee01d6de948c62ea95dd58a8a2cbaee30fa5aa6b666a82763401201ddc03d364a802a781cca88fe1650e2eb812595c08a3e8e474213336598c68
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## 1.3
4
4
 
5
+ ### 1.3.2
6
+
7
+ - Handle `nil` assignment for PgHash
8
+ ([#665](https://github.com/shioyama/mobility/pull/665)), thanks
9
+ [unavailabl3](https://github.com/unavailabl3)!
10
+
5
11
  ### 1.3.1
6
12
 
7
13
  - Use classify to generate table name
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility (1.3.0)
4
+ mobility (1.3.1)
5
5
  i18n (>= 0.6.10, < 2)
6
6
  request_store (~> 1.0)
7
7
 
data/README.md CHANGED
@@ -54,7 +54,7 @@ Installation
54
54
  Add this line to your application's Gemfile:
55
55
 
56
56
  ```ruby
57
- gem 'mobility', '~> 1.3.1'
57
+ gem 'mobility', '~> 1.3.2'
58
58
  ```
59
59
 
60
60
  ### ActiveRecord (Rails)
@@ -22,6 +22,7 @@ Internal class used by ActiveRecord backends backed by a Postgres data type
22
22
  def write(locale, value, _options = nil)
23
23
  if value.nil?
24
24
  translations.delete(locale.to_s)
25
+ nil
25
26
  else
26
27
  translations[locale.to_s] = value
27
28
  end
@@ -25,6 +25,14 @@ attributes only.
25
25
  attributes.merge(name.to_s => send(name))
26
26
  end)
27
27
  end
28
+
29
+ private
30
+
31
+ define_method :attribute_names_for_serialization do
32
+ return unless defined?(super)
33
+
34
+ super() + names.map(&:to_s)
35
+ end
28
36
  end
29
37
 
30
38
  # Applies attribute_methods plugin for a given option value.
@@ -8,7 +8,7 @@ module Mobility
8
8
  module VERSION
9
9
  MAJOR = 1
10
10
  MINOR = 3
11
- TINY = 1
11
+ TINY = 2
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.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
@@ -35,7 +35,7 @@ cert_chain:
35
35
  3I5AfnFAG4/1IwhadqwF5cl3jOUa7n3mS2OJl3tRCGuPvwAA9MV10hmwbQTXMrNK
36
36
  tD9kfT9eseUE4mfPnIaHOs4FiIoHniA7zdtjB7GIQ4cEpB6o
37
37
  -----END CERTIFICATE-----
38
- date: 2024-12-01 00:00:00.000000000 Z
38
+ date: 2025-01-25 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