resource_accessor 1.2.1 → 1.2.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: 31125f415a65dd7361f3e973151351af4ca77489
4
- data.tar.gz: f4e76b1bee0158b90d6ce2f24f9d89a0535ca858
3
+ metadata.gz: 6d2d15b6055967cca8b862fd69813d5c8154699e
4
+ data.tar.gz: afc9134f365de6600f67232fbc034779b6bb8848
5
5
  SHA512:
6
- metadata.gz: aac5edf233814e85700c5805269e6005b5a90f448ebfe52cdfe6dcf38133cfdae3137db5c1b64b08ce1f3d3e97842557956a4c0b0d1476b198f97ae677c36184
7
- data.tar.gz: ed090b4d7891e3a4866dcbba11ca37129bab430e647e8b3fd3dd3695b93b4639c514fc04937adcbc4a0673e1a22a09f593d297f3ae18fbea7873d91444b9f352
6
+ metadata.gz: 1e00590a84cfb5c3db0ed097220efd85bb6dd5d2f377582d6fe17623feea583456952e3457af82b1ee28c21487631b11d96bbc056f71e92cd803760cc1af8746
7
+ data.tar.gz: cd15639dc413a520b7cbb26c6a9be6a9cc53534dbe12e48650837a0e1acdeefad316250d209323cc0b046b04bfab23b454a268b0afd620adb91700f0eba8e767
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1
data/CHANGES CHANGED
@@ -22,4 +22,8 @@
22
22
 
23
23
  == Version 1.2.1
24
24
 
25
- * Typo fix.
25
+ * Typo fix.
26
+
27
+ == Version 1.2.2
28
+
29
+ * Bug fix for 'put' http method.
@@ -103,6 +103,9 @@ class ResourceAccessor
103
103
  request.set_form_data(body) if body.kind_of? Hash
104
104
  elsif method == :put
105
105
  request = Net::HTTP::Put.new(uri.request_uri, headers)
106
+
107
+ request.body = body if body.kind_of? String
108
+ request.set_form_data(body) if body.kind_of? Hash
106
109
  else
107
110
  request = Net::HTTP::Get.new(uri.request_uri, headers)
108
111
  end
@@ -1,3 +1,3 @@
1
1
  class ResourceAccessor
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resource_accessor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-23 00:00:00.000000000 Z
11
+ date: 2014-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.2.0
88
+ rubygems_version: 2.2.2
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: This library is used to simplify access to protected or unprotected http