ializer 0.4.0 → 0.5.0

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: '086b2c8ab6cf0a932aa88a21336a776acc21df97cf2bfebba2d0c88bb7c9c0ac'
4
- data.tar.gz: 740fd2f601120118916917fed867b3427ec9707835450221b81758d47bade5cc
3
+ metadata.gz: 497afd4a62c4b255b976501c69adf8de2a569376c25c7aefb4a94b7ed94200bc
4
+ data.tar.gz: '082946872d647c482b9044898b8e9069fec868339b33eac6f4c8996a446e47be'
5
5
  SHA512:
6
- metadata.gz: 86005ca1dbe5ad262ecd4a0347406a39e2ce305806991efc122390021683541504120c37b740515459f89cc17b9dde63aceb4149f355ce998da4546b87140fb5
7
- data.tar.gz: c41e6d19fc25aa1f1704a51219d4a036d0df8579c6893024e1c6714b43c61c7da23580f2e487e720ac3cfd8aaca6511629bc4ecccb563bb720f0c50f00635b0e
6
+ metadata.gz: 0d079821ef910ac423409b0af192fdf971236fc7cd39efb1b994f0817edebbe16285302fc14d34634f452b16af85195d8c522fd3677ad17a0c5b1a9100f1c35f
7
+ data.tar.gz: b2136f4515fbfe36d270f1c726dd45417f5759ea931f0f264a3709f324a88e1adcf82bf93db2173eb8df146d7ee52f35ed50ce3813e9bb989d00f78f200d0ab4
@@ -5,6 +5,8 @@ require 'bigdecimal'
5
5
  module Ializer
6
6
  class BigDecimalDeSer
7
7
  def self.serialize(value, _context = nil)
8
+ value = value.to_d unless value.is_a? BigDecimal
9
+
8
10
  value.to_s('F')
9
11
  end
10
12
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ializer
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Steinberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-05 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport