nap 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/rest.rb +1 -1
- data/lib/rest/request.rb +1 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dffa56900906bf3cb4ef108d6cbd659f0fae7ecd
|
4
|
+
data.tar.gz: 5bd402b9630bcea1f2961e4254f5a28cc7eb9043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 604e373f93cd6c9dd7a846248ccc8ed4dcd3a6cb060899665e36cedf8d258b374b84e7cbaac20fdfdf560a86b893da3f74c42606b154754fc90e3b0ef4a8b34e
|
7
|
+
data.tar.gz: 6ad7076ec29b6d19e87af096145bc67dd0321687cdb034f68642283aefecf44dbbed4e42f3285d775b5b25774c8777fadea3930951c9508714c3fc1050eb5b71
|
data/README.md
CHANGED
@@ -71,6 +71,10 @@ Nap couldn't be the shining beacon in the eternal darkness without help from:
|
|
71
71
|
|
72
72
|
For all other great human beings, please visit the GitHub contributors page.
|
73
73
|
|
74
|
+
## Changes from 1.0.0 to 1.1.0
|
75
|
+
|
76
|
+
* REST::Request now allows all HTTP verbs to send a body entity.
|
77
|
+
|
74
78
|
## Changes from 0.8.0 to 1.0.0
|
75
79
|
|
76
80
|
* Removed REST::DisconnectedError, please use REST::Error::Connection instead.
|
data/lib/rest.rb
CHANGED
data/lib/rest/request.rb
CHANGED
@@ -173,10 +173,7 @@ module REST
|
|
173
173
|
# Performs the actual request and returns a REST::Response object with the response
|
174
174
|
def perform
|
175
175
|
self.request = request_for_verb
|
176
|
-
|
177
|
-
if [:patch, :put, :post].include?(verb)
|
178
|
-
request.body = body
|
179
|
-
end
|
176
|
+
request.body = body
|
180
177
|
|
181
178
|
if options[:username] and options[:password]
|
182
179
|
request.basic_auth(options[:username], options[:password])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manfred Stienstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|