relaxo-model 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaxo/model/properties/attribute.rb +2 -2
- data/lib/relaxo/model/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e31d6622726e4588c0a5b4d774d7eb8d8993b9ed
|
4
|
+
data.tar.gz: 9e4ec05b11555e6efac3d337303e24ab0a312509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed36b4882760c2307798298582d796a458b968e993bede1b56929bbbcdcd3fea4d587ae401c359cd44351f40d181377bdd3c75e6f4ce6547808e45078dd84cc6
|
7
|
+
data.tar.gz: eec02c2f59a9adbc594799eca253d8539007b3c682ad40ff97960926cf85294614e5e41c702b5cd9a6688fa17165f944d6b5a3e1ad85acf7c20d2467b22faa07
|
@@ -74,9 +74,9 @@ module Relaxo
|
|
74
74
|
def initialize(klass)
|
75
75
|
@klass = klass
|
76
76
|
end
|
77
|
-
|
77
|
+
|
78
78
|
def convert_to_primative(value)
|
79
|
-
if value.nil? or value.empty?
|
79
|
+
if value.nil? or (value.respond_to?(:empty?) and value.empty?)
|
80
80
|
nil
|
81
81
|
else
|
82
82
|
@klass.convert_to_primative(value)
|
data/lib/relaxo/model/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaxo-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: relaxo
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.5.
|
115
|
+
rubygems_version: 2.5.1
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: A model layer for CouchDB with minimal global state.
|