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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92a8535e5648d4a2d20a84df232980f83441ec87
4
- data.tar.gz: 418c66267aab38b39e1a489bec88e9b12db327fb
3
+ metadata.gz: e31d6622726e4588c0a5b4d774d7eb8d8993b9ed
4
+ data.tar.gz: 9e4ec05b11555e6efac3d337303e24ab0a312509
5
5
  SHA512:
6
- metadata.gz: 253b2e06a1ff6021b322a1b6a74fc6b2dfafc18faa6723e559922d70ba8c3d97a0c3b606398544f6f5be2441ae1034dec54efed5378f5893c2df7daf75e19bf1
7
- data.tar.gz: 0878a90d0f64b5aefb8bc30593145a24d4f57fdaa59e1a6040565d40d32c8338c5b4cf8b7acd7c291fe3204ecffc8b04c8f9052c84fafdae9b68a6b8d7ab77c6
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)
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Relaxo
22
22
  module Model
23
- VERSION = "0.4.5"
23
+ VERSION = "0.4.6"
24
24
  end
25
25
  end
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.5
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-12 00:00:00.000000000 Z
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.2
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.