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 +4 -4
- data/.ruby-version +1 -1
- data/CHANGES +5 -1
- data/lib/resource_accessor/resource_accessor.rb +3 -0
- data/lib/resource_accessor/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d2d15b6055967cca8b862fd69813d5c8154699e
|
4
|
+
data.tar.gz: afc9134f365de6600f67232fbc034779b6bb8848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e00590a84cfb5c3db0ed097220efd85bb6dd5d2f377582d6fe17623feea583456952e3457af82b1ee28c21487631b11d96bbc056f71e92cd803760cc1af8746
|
7
|
+
data.tar.gz: cd15639dc413a520b7cbb26c6a9be6a9cc53534dbe12e48650837a0e1acdeefad316250d209323cc0b046b04bfab23b454a268b0afd620adb91700f0eba8e767
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.1
|
data/CHANGES
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
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
|