iron_core 0.6.1 → 0.6.2

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: 3ee66b320883858a3815e75b2f1cfdb87372e5c8
4
- data.tar.gz: 6734a6d61e7186f5fe75b31df817583c52034f7c
3
+ metadata.gz: d104da8dfd738e452eae411c79c12e2155ea7336
4
+ data.tar.gz: 8299426d2060115b603a6c1d361a478395bdbbd3
5
5
  SHA512:
6
- metadata.gz: 3ece94313d6d089a726023774266c95f22ff77766e712db6b5b1c12b33fddb9f2126fcd80f8ee83e0c1a4025f33b580a1841f1673ec2410b6d06407b268a25bb
7
- data.tar.gz: 06b69c6e7f7004e243faaa7bd1351ff1b50e377630193054218423a8ba70aaae1b40f1eb5bd35a6cb35d24e63f1e3b5bbc23b776a9c3324e8e796005257985c9
6
+ metadata.gz: 9cb0a4d432c6a6ecac4166201f58fbcf12df47329c0cf9ec75b7614c90b6cc08b358b1b96e9528b7fba7ea12a93cd2f94c98528166867a270e3e68178c2c9b5e
7
+ data.tar.gz: 1a5daff07d4dd274f3d9cba41542f742e89d1ffa37142b65d8d7f67380b42167d22713cf30d2fe08439eec959833411036b05acdcc27da5b5ebaa9f60385a340
@@ -205,6 +205,9 @@ module IronCore
205
205
  def delete(method, params = {}, headers2={})
206
206
  request_hash = {}
207
207
  request_hash[:headers] = headers.merge(headers2)
208
+ if params.size > 0
209
+ request_hash[:headers].merge!({'Content-Type' => @content_type})
210
+ end
208
211
  request_hash[:body] = params.to_json
209
212
 
210
213
  IronCore::Logger.debug 'IronCore', "DELETE #{base_url + method} with params='#{request_hash.to_s}'"
@@ -1,5 +1,5 @@
1
1
  module IronCore
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kirilenko
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-24 00:00:00.000000000 Z
12
+ date: 2013-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest