globalize 6.2.0 → 6.2.1
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/globalize/version.rb +1 -1
- data/lib/patches/active_record/rails6_1/serialization.rb +22 -0
- data/lib/patches/active_record/serialization.rb +3 -1
- data.tar.gz.sig +0 -0
- metadata +2 -1
- 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: dea2f69ccf135fbe06acbc84c800b55e86c91ec4af79d7bfee2f633f707e2dce
|
|
4
|
+
data.tar.gz: '08fb1fece6efe2c8ef6c3269a6db1d816374e680facedf771ab3bad361a01fa6'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae62da6d81f0a0deecf81985717bcc565d4a6b105483dcf0234f842c0954e3c66dc9f277be67f6119b35766cbcfdbb5cc2eb881c5be8562c650ff972484e4290
|
|
7
|
+
data.tar.gz: 82e457b56e752a61748cb2f6684f96daa6387915addad2414749fd90504ad3e42e426c002f4c14bc78a440c62927e61dfddef46d489b1c627f75d1d5616826f9
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Globalize Changelog
|
|
2
2
|
|
|
3
|
+
## 6.2.1 (2022-05-24)
|
|
4
|
+
|
|
5
|
+
* Changed serialize method in Rails 6.1.0+ [#798](https://github.com/globalize/globalize/pull/798) by [Alex](https://github.com/oivoodoo)
|
|
6
|
+
|
|
3
7
|
## 6.2.0 (2022-05-24)
|
|
4
8
|
|
|
5
9
|
* Fix asset precompile in docker build workflow [#799](https://github.com/globalize/globalize/pull/799) by [Diefferson Koderer Môro](https://github.com/djpremier)
|
data/Gemfile.lock
CHANGED
data/lib/globalize/version.rb
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Globalize
|
|
2
|
+
module AttributeMethods
|
|
3
|
+
module Serialization
|
|
4
|
+
def serialize(attr_name, class_name_or_coder = Object, **options)
|
|
5
|
+
super(attr_name, class_name_or_coder, **options)
|
|
6
|
+
|
|
7
|
+
coder = if class_name_or_coder == ::JSON
|
|
8
|
+
::ActiveRecord::Coders::JSON
|
|
9
|
+
elsif [:load, :dump].all? { |x| class_name_or_coder.respond_to?(x) }
|
|
10
|
+
class_name_or_coder
|
|
11
|
+
else
|
|
12
|
+
::ActiveRecord::Coders::YAMLColumn.new(attr_name, class_name_or_coder)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
self.globalize_serialized_attributes = globalize_serialized_attributes.dup
|
|
16
|
+
self.globalize_serialized_attributes[attr_name] = coder
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
ActiveRecord::AttributeMethods::Serialization::ClassMethods.send(:prepend, Globalize::AttributeMethods::Serialization)
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: globalize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.2.
|
|
4
|
+
version: 6.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sven Fuchs
|
|
@@ -249,6 +249,7 @@ files:
|
|
|
249
249
|
- lib/patches/active_record/rails5/uniqueness_validator.rb
|
|
250
250
|
- lib/patches/active_record/rails5_1/serialization.rb
|
|
251
251
|
- lib/patches/active_record/rails5_1/uniqueness_validator.rb
|
|
252
|
+
- lib/patches/active_record/rails6_1/serialization.rb
|
|
252
253
|
- lib/patches/active_record/rails6_1/uniqueness_validator.rb
|
|
253
254
|
- lib/patches/active_record/relation.rb
|
|
254
255
|
- lib/patches/active_record/serialization.rb
|
metadata.gz.sig
CHANGED
|
Binary file
|