valuable 0.9.11 → 0.9.12
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
- data/Gemfile.lock +1 -1
- data/lib/valuable/utils.rb +2 -1
- data/valuable.version +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8e6611d7f14d540de2e9af5e14f5c361f231867
|
4
|
+
data.tar.gz: 6f41e3ca7e14c92be80f48f4ecdbd707e6218137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 028179bc5fb3c9a23d0b6cb42f18857fa78687ff7a3f80711bafe09853e6ab310557cb3fa2662a7cf9c1f39f92130666cb9e014226a9aee521ddbb0b01ac6882
|
7
|
+
data.tar.gz: 0b5119b7fd419f893a0735d525d1c10e0c7a776f248e7fbdc542f3fcde115bdaaf5f9d541b14b1557037cea6c9a3b5fa9cd71e188b9b688bd259a04aa7ecb999
|
data/Gemfile.lock
CHANGED
data/lib/valuable/utils.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Trying to extract as much logic as possible to minimize the memory
|
2
2
|
# footprint of individual instances. Feedback welcome.
|
3
3
|
require 'bigdecimal'
|
4
|
+
require 'date'
|
4
5
|
|
5
6
|
module Valuable::Utils
|
6
7
|
class << self
|
@@ -61,7 +62,7 @@ module Valuable::Utils
|
|
61
62
|
when "ActiveSupport::TimeWithZone", "Time", "DateTime"
|
62
63
|
value.to_date
|
63
64
|
when "String"
|
64
|
-
value &&
|
65
|
+
value && Date.parse(value)
|
65
66
|
else
|
66
67
|
value
|
67
68
|
end
|
data/valuable.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.12
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valuable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johnathon Wright
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Valuable is a ruby base class that is essentially attr_accessor on steroids.
|
14
14
|
A simple and intuitive interface allows you to get on with modeling in your app.
|