nap 1.0.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 25c078b387a5869114a90a82611e4aecf9e35d93
4
- data.tar.gz: a3562b713fc9c2154f8400376694c8345e26a608
2
+ SHA256:
3
+ metadata.gz: 34f0b561946a5b7f6665be999195ddf303b1157aace75dfd3cbb934a1dc9f799
4
+ data.tar.gz: fcd1d174c54205e69de865e50957470f1d72c59771fe1b165630504ecf6e0870
5
5
  SHA512:
6
- metadata.gz: 5cd00b390940e78c70bf4302a3146ee1c2fa7dfe0d387a0232576dc589d96e0cde021f7cfa319eb53cbf1747dfefc1a74edebdacbd267e8e3ed5e6c1b352299d
7
- data.tar.gz: a37039615ba1e57bfe75b3a7b038a37334ba1347fa4550d3f4b108ed80a1235cc7dee8875cd7ebc8390cbbdaa1c6e17799da7dd962aa050b7f73d6bcb3c985bb
6
+ metadata.gz: af9af0f7f9c6e4e4b5863b88246ebf61aba7323e3862215f392531e277a042c0ef9e42cd8c5b40b2dba63b02aac27641ef952774bec475ecb29c17a4241e87a5
7
+ data.tar.gz: 615814e2bb1c9e59031d7384b695b3a223b0ae9174e262668a5c6891d2978a9cf7f13ce7e50b6610c9cef24f299de1d086938dfcc7f1514e21ebdc708802839f
data/README.md CHANGED
@@ -71,6 +71,14 @@ 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.1
75
+
76
+ * Updated cacert.pem.
77
+
78
+ ## Changes from 1.0.0 to 1.1.0
79
+
80
+ * REST::Request now allows all HTTP verbs to send a body entity.
81
+
74
82
  ## Changes from 0.8.0 to 1.0.0
75
83
 
76
84
  * Removed REST::DisconnectedError, please use REST::Error::Connection instead.
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])
data/lib/rest.rb CHANGED
@@ -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.1'
11
11
 
12
12
  # Performs a GET on a resource. See REST::Request.new for a complete discussion of options.
13
13
  #