iron_core 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/iron_core.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
 
17
17
  gem.required_rubygems_version = ">= 1.3.6"
18
18
  gem.required_ruby_version = Gem::Requirement.new(">= 1.9")
19
- gem.add_runtime_dependency "rest", ">= 2.0.2"
19
+ gem.add_runtime_dependency "rest", ">= 2.1.1"
20
20
 
21
21
  gem.add_development_dependency "test-unit"
22
22
  gem.add_development_dependency "minitest"
@@ -194,10 +194,10 @@ module IronCore
194
194
  @rest.put(base_url + method, request_hash)
195
195
  end
196
196
 
197
- def delete(method, params = {})
197
+ def delete(method, params = {}, headers2={})
198
198
  request_hash = {}
199
- request_hash[:headers] = headers
200
- request_hash[:params] = params
199
+ request_hash[:headers] = headers.merge(headers2)
200
+ request_hash[:body] = params.to_json
201
201
 
202
202
  IronCore::Logger.debug 'IronCore', "DELETE #{base_url + method} with params='#{request_hash.to_s}'"
203
203
 
@@ -1,5 +1,5 @@
1
1
  module IronCore
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,72 +1,88 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: iron_core
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.4
4
5
  prerelease:
5
- version: 0.4.3
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Andrew Kirilenko
9
9
  - Iron.io, Inc
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2012-10-10 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
13
+ date: 2012-12-05 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: rest
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
20
18
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: 2.0.2
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 2.1.1
25
23
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: test-unit
29
24
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 2.1.1
31
+ - !ruby/object:Gem::Dependency
32
+ name: test-unit
33
+ requirement: !ruby/object:Gem::Requirement
31
34
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
36
39
  type: :development
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: minitest
40
40
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: minitest
49
+ requirement: !ruby/object:Gem::Requirement
42
50
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  type: :development
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: rake
51
56
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: rake
65
+ requirement: !ruby/object:Gem::Requirement
53
66
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
58
71
  type: :development
59
- version_requirements: *id004
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
60
79
  description: Core library for Iron products
61
- email:
80
+ email:
62
81
  - info@iron.io
63
82
  executables: []
64
-
65
83
  extensions: []
66
-
67
84
  extra_rdoc_files: []
68
-
69
- files:
85
+ files:
70
86
  - .gitignore
71
87
  - Gemfile
72
88
  - Gemfile.lock
@@ -84,31 +100,26 @@ files:
84
100
  - lib/iron_core/version.rb
85
101
  homepage: https://github.com/iron-io/iron_core_ruby
86
102
  licenses: []
87
-
88
103
  post_install_message:
89
104
  rdoc_options: []
90
-
91
- require_paths:
105
+ require_paths:
92
106
  - lib
93
- required_ruby_version: !ruby/object:Gem::Requirement
107
+ required_ruby_version: !ruby/object:Gem::Requirement
94
108
  none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- version: "1.9"
99
- required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '1.9'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
114
  none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
104
118
  version: 1.3.6
105
119
  requirements: []
106
-
107
120
  rubyforge_project:
108
121
  rubygems_version: 1.8.24
109
122
  signing_key:
110
123
  specification_version: 3
111
124
  summary: Core library for Iron products
112
125
  test_files: []
113
-
114
- has_rdoc: