datory 1.0.0.rc5 → 1.0.0.rc7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/datory/attributes/serialization/serializator.rb +2 -0
- data/lib/datory/service/base.rb +2 -0
- data/lib/datory/utils.rb +5 -4
- data/lib/datory/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 992667eaefb8dcff761e0825d44819b40bd11c899c951cdca0fca3ae6d3723cc
|
4
|
+
data.tar.gz: dd68e1829262596d46501c04d2a3e70099bd304a531c1d5a36fd6cd6f4c70633
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e57b1a386bf1d2ef566f385499e4daf7b14ee34c74295c6f3cba6a6b8fc75e95956005f33af86d4a407bc2e613a0130a2b9ffe4ceb9c115c5230143db9a62bb
|
7
|
+
data.tar.gz: eb2f8b9a873852919c5a8f6fa1f644a293f05cf62398028a37315053bf793fefc1297f956bf851fba3bf29dcef4b77c784e1d4068f352b341fd2cb0f336cdb4d
|
data/lib/datory/service/base.rb
CHANGED
data/lib/datory/utils.rb
CHANGED
@@ -5,13 +5,14 @@ module Datory
|
|
5
5
|
module_function
|
6
6
|
|
7
7
|
TRANSFORMATIONS = {
|
8
|
-
Date => ->(value) { Date.parse(value) },
|
9
|
-
Time => ->(value) { Time.parse(value) },
|
10
|
-
DateTime => ->(value) { DateTime.parse(value) },
|
11
8
|
Symbol => ->(value) { value.to_sym },
|
12
9
|
String => ->(value) { value.to_s },
|
13
10
|
Integer => ->(value) { value.to_i },
|
14
|
-
Float => ->(value) { value.to_f }
|
11
|
+
Float => ->(value) { value.to_f },
|
12
|
+
Date => ->(value) { Date.parse(value) },
|
13
|
+
Time => ->(value) { Time.parse(value) },
|
14
|
+
DateTime => ->(value) { DateTime.parse(value) },
|
15
|
+
ActiveSupport::Duration => ->(value) { ActiveSupport::Duration.parse(value) }
|
15
16
|
}.freeze
|
16
17
|
|
17
18
|
private_constant :TRANSFORMATIONS
|
data/lib/datory/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - '='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.5.0.
|
53
|
+
version: 2.5.0.rc6
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - '='
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 2.5.0.
|
60
|
+
version: 2.5.0.rc6
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: zeitwerk
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|