iron_core 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5ecd04d4aa4b287505033f3504cb34bed8d75320
4
- data.tar.gz: e6cf1a6ca29f96acf56591f4701a9313c0de7ac3
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDYwYzFhNTg0YmUzYzRmN2EzM2RhMGVkMDE4Yzg0NGVmNjE2ODk1OQ==
5
+ data.tar.gz: !binary |-
6
+ ODFhMmIzYmVjNjIwYTFhZmQ2ZDhjNmZkZGEzN2IwMDZhYmUzODE0ZA==
5
7
  SHA512:
6
- metadata.gz: 6e50dfbf3dadf707759801d6ddda4244435489fd597b5f546dc3d5a41e507b061b9edbb563eeb93fc8fdd8226486cf6a96c66c2f3af3b9684d2a5de0d2c995d1
7
- data.tar.gz: f3e5ab0bfe38aea63b1b2512a971d9ab5f1c08e2007ff8f86c4ade8d359f70bf725fbd1f259f317f33afc7e64039a7ab3c56966fc0b4302550e5c7dbafa56ce5
8
+ metadata.gz: !binary |-
9
+ Y2Q4MzIxNjQ2MzZkODUyMjc0YzU4ZDM1N2MwNDIxZTkzZjA4YjIwOGFkYzQz
10
+ MTEzMjBjOGZlZWVmMDAzM2EzNjEzYjMyOGVlZGI5YjU2MTQ3NGY2MTZiYTU0
11
+ NDYxZTVkOTBhMzU2OTliMjA1ODVjODY0ZjY4NGU2ZmY2ZDVjMjg=
12
+ data.tar.gz: !binary |-
13
+ YzJmZWNjNTE4MDI2NDM0NGFiYjRkZDg4M2VjMGFlNDYxNzJlYjY1Y2NjMzBl
14
+ YWUwYTQ1MzI3N2YzNjdhMDc0YWNhYmM4Zjk1Njk5YmVlNTAwMTI1ODc1MjFk
15
+ NzhiZGVhYzI4MjFkOTJjMzUwNDZhMmQ5NDRmYmU2NDJhYTgwOWQ=
@@ -233,6 +233,20 @@ module IronCore
233
233
  end
234
234
  end
235
235
 
236
+ def patch(method, params={})
237
+ request_hash = {}
238
+ request_hash[:headers] = headers.merge({'Content-Type' => @content_type})
239
+ request_hash[:body] = params.to_json
240
+
241
+ IronCore::Logger.debug 'IronCore', "PUT #{base_url + method} with params='#{request_hash.to_s}'"
242
+
243
+ begin
244
+ @rest.patch(base_url + method, request_hash)
245
+ rescue Rest::HttpError => ex
246
+ extract_error_msg(ex)
247
+ end
248
+ end
249
+
236
250
  def delete(method, params = {}, headers2={})
237
251
  request_hash = {}
238
252
  request_hash[:headers] = headers.merge(headers2)
@@ -1,5 +1,5 @@
1
1
  module IronCore
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
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: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kirilenko
@@ -9,62 +9,62 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-22 00:00:00.000000000 Z
12
+ date: 2014-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ! '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: 2.6.4
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ! '>='
26
26
  - !ruby/object:Gem::Version
27
27
  version: 2.6.4
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: test-unit
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ! '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: minitest
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ! '>='
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ! '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  description: Core library for Iron products
@@ -96,12 +96,12 @@ require_paths:
96
96
  - lib
97
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '>='
99
+ - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: '1.8'
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '>='
104
+ - - ! '>='
105
105
  - !ruby/object:Gem::Version
106
106
  version: 1.3.6
107
107
  requirements: []