morph 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -0
- data/lib/morph.rb +2 -2
- 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: f2b8819bada6d3885cdc74db61abc8e7b71b3e15
|
4
|
+
data.tar.gz: ed1a490e45a8e6a3e89019cd3d549f5b086e9c83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f629a91770fb3342b34bc11d259a3eb1a952ca3c88e3853d6ff75fbabca40abe3dcd4da4e1b5ece50bd6f61d1553c6d4e1a2feb91270d1d39b7c7480809ffce9
|
7
|
+
data.tar.gz: dba929059e40edbed9f1c682b5387d85db75b85c1ea3b43e386aff253b4849042056f12c60f4fd3766c033a11cb5256f55149f3c4684b4466353bff793faba74
|
data/CHANGELOG
CHANGED
data/lib/morph.rb
CHANGED
@@ -132,7 +132,7 @@ module Chas
|
|
132
132
|
end
|
133
133
|
|
134
134
|
module Morph
|
135
|
-
VERSION = '0.5.
|
135
|
+
VERSION = '0.5.1' unless defined? Morph::VERSION
|
136
136
|
|
137
137
|
class << self
|
138
138
|
def classes
|
@@ -303,7 +303,7 @@ module Morph
|
|
303
303
|
value = value.to_time if defined?(XMLRPC::DateTime) && value.is_a?(XMLRPC::DateTime)
|
304
304
|
|
305
305
|
case value
|
306
|
-
when String, Date, Time, TrueClass, FalseClass,
|
306
|
+
when String, Date, Time, TrueClass, FalseClass, Integer, Float
|
307
307
|
object.morph(attribute, value)
|
308
308
|
when Array
|
309
309
|
attribute = attribute.pluralize
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob McKinnon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|