nap 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/lib/rest.rb +1 -1
  4. data/lib/rest/request.rb +1 -4
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25c078b387a5869114a90a82611e4aecf9e35d93
4
- data.tar.gz: a3562b713fc9c2154f8400376694c8345e26a608
3
+ metadata.gz: dffa56900906bf3cb4ef108d6cbd659f0fae7ecd
4
+ data.tar.gz: 5bd402b9630bcea1f2961e4254f5a28cc7eb9043
5
5
  SHA512:
6
- metadata.gz: 5cd00b390940e78c70bf4302a3146ee1c2fa7dfe0d387a0232576dc589d96e0cde021f7cfa319eb53cbf1747dfefc1a74edebdacbd267e8e3ed5e6c1b352299d
7
- data.tar.gz: a37039615ba1e57bfe75b3a7b038a37334ba1347fa4550d3f4b108ed80a1235cc7dee8875cd7ebc8390cbbdaa1c6e17799da7dd962aa050b7f73d6bcb3c985bb
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.
@@ -7,7 +7,7 @@ require 'uri'
7
7
  # requests. See REST::Error for a complete discussion of options.
8
8
  module REST
9
9
  # Library version
10
- VERSION = '1.0.0'
10
+ VERSION = '1.1.0'
11
11
 
12
12
  # Performs a GET on a resource. See REST::Request.new for a complete discussion of options.
13
13
  #
@@ -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.0.0
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: 2015-08-27 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake