streamsend 1.0.0.rc15 → 1.0.0.rc16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MThjZTczMDM1MWYwMDQ1YzY4NTQ0YTYyYzAwZWZhZmVmOTMyZGU0ZA==
4
+ ZmY1MDIyZThjMDUxODE1ZmYyMzViNjliMWJlYTVmZDg2NzA0NTY1ZQ==
5
5
  data.tar.gz: !binary |-
6
- OWJiZjE5MDljNDc3ZTRlOGU4ZDgzZGI5OTk1ZjA3MDIxM2M1ZWJmOQ==
6
+ ODQxZWFmMjg2M2EzMWZlODhmYjMzYTQyMzRjMzFhN2I3OGEzZTA5ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjZlMTBlYjgyYmM3YTk0NjAxNDNjNGE5Y2QxYjljMDRlNjg4MDI2ZGNjY2I3
10
- Mjc4NDIxYTZkMzNlNzYzNjA2M2Y0ZDU2MTVkNGYwOGY2NWExMTk0YmVlZTM5
11
- MjY2OGNhNGY3OTZiMmExZjJhNDVmMGM1YzkxZDg1YTI5NTk3NmI=
9
+ M2FiNTlmZDhmMTU5MDhlMjQwY2MxZWQxMDI0ZWNiNDg2Mjg4MTkzNWE5ZDZi
10
+ MzI5YTM0ZGFlYWQ5N2IxNTQ2NjEwY2E1OTUwMDI5ZTJlNGM5M2NiMTUxZTM5
11
+ MjY5MWNkZDBhOTZhMjBmN2I5YjFlNGIzMDhjYTc1MjQxY2VjNTQ=
12
12
  data.tar.gz: !binary |-
13
- ZTE2ZTk5ZWY1MjBjMzVmZTYxZjJkODliN2M4NTY0NWY1N2I0MTYzNDQyOWQx
14
- NzUzNzEwYTJjZTc3NjZkYjU5NjQ1OGMyYWY0ZDQ1YjhjNWNlMzc3ZWE4OWE4
15
- NmZkZTFmZDFkMDQxMGJhNGEyNjdmMGQ1M2Y4Yzk0NTRjODlkZWU=
13
+ NzNmNDEyNDdiODUzZGVhNTY4N2ZjYzExODc5NjFjNmMwNzIwN2IxNWIyYjk4
14
+ MWY5NTkwMmFlYzlhYWMzYWViMThhNjgxMjJhNDkyNDQyMzk3NDg1ZGI2OGI4
15
+ NTczMjAzOTBlMWZlNjhhOThiNTNjNDAwOThjNTI3NjBiNzBiNDg=
@@ -26,7 +26,8 @@ module StreamSend
26
26
  private
27
27
 
28
28
  def compact!(object_hash)
29
- object_hash.delete_if { |k, v| v.nil? }
29
+ proc = Proc.new { |k, v| v.kind_of?(Hash) ? (v.delete_if(&proc); nil) : v.nil? }
30
+ object_hash.delete_if(&proc)
30
31
  end
31
32
  end
32
33
 
@@ -1,3 +1,3 @@
1
1
  module StreamSend
2
- VERSION = "1.0.0.rc15"
2
+ VERSION = "1.0.0.rc16"
3
3
  end
@@ -64,9 +64,12 @@ module StreamSend
64
64
  stub_request(:put, "http://test:password@default.base/calls/123.xml").
65
65
  to_return(:status => 200, :body => "", :headers => {})
66
66
  obj_hash[:nil_sumpin] = nil
67
+ obj_hash[:parent_sumpin] = {}
68
+ obj_hash[:parent_sumpin][:nested_sumpin] = nil
67
69
  options = { :compact_hash => true }
68
70
  updater.execute(id, obj_hash, options)
69
71
  expect(obj_hash.has_key?(:nil_sumpin)).to be_false
72
+ expect(obj_hash[:parent_sumpin].has_key?(:nested_sumpin)).to be_false
70
73
  end
71
74
  end
72
75
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamsend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc15
4
+ version: 1.0.0.rc16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Yeo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-03 00:00:00.000000000 Z
11
+ date: 2014-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty