ananke 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/ananke/serialize.rb +4 -0
  2. data/lib/version.rb +1 -1
  3. metadata +3 -3
@@ -28,6 +28,10 @@ module Serialize
28
28
  end
29
29
  if ret.class == Hash and Ananke.settings[:remove_empty]
30
30
  ret.delete_if {|k,v| v.nil? || v == ''}
31
+ ret = nil if ret.empty?
32
+ elsif ret.class == Array and Ananke.settings[:remove_empty]
33
+ ret.delete_if {|i| i.nil? || i == ''}
34
+ ret = nil if ret.empty?
31
35
  end
32
36
  ret
33
37
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ananke
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ananke
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.8
5
+ version: 1.0.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andries Coetzee
@@ -130,7 +130,7 @@ licenses: []
130
130
  post_install_message: |
131
131
  **************************************************
132
132
 
133
- Thank you for installing ananke-1.0.8
133
+ Thank you for installing ananke-1.0.9
134
134
 
135
135
  Please be sure to look at README.rdoc to see what might have changed
136
136
  since the last release and how to use this GEM.
@@ -159,7 +159,7 @@ rubyforge_project:
159
159
  rubygems_version: 1.5.0
160
160
  signing_key:
161
161
  specification_version: 3
162
- summary: ananke-1.0.8
162
+ summary: ananke-1.0.9
163
163
  test_files:
164
164
  - spec/dumping.rb
165
165
  - spec/cov_adapter.rb