nap 0.7.0pre1 → 0.7.0pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rest.rb +1 -1
  3. data/lib/rest/request.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d7f975ca36768759d5376f63a01bd8f28d70daf
4
- data.tar.gz: aca4d79d4da4fe92dcf3c207a21f5e958f66ac21
3
+ metadata.gz: 9014203f04e27acab6bf26f024295db5032f3114
4
+ data.tar.gz: f129f81e5ca559c07f71018ed8463c0b420913cb
5
5
  SHA512:
6
- metadata.gz: 948019f1bb3f41e84013c338c28569ed4f577ca06dad7232c6611b4c52321fbbff3937c09f9f737105e79d3ab86ae1b2a2b0c2bc9e32eb6271b93b6899c123d5
7
- data.tar.gz: 805d3beb44de2f463c873558e919c7ae13d118c9849e409c5ff50147a53d6e0795d498f5d4420548e5282912e2b7b89de23d9bcea06e1c824ff6850be0f01bcd
6
+ metadata.gz: d1a78b3f3fc6a200d65ff10dc64c1834c733f8a36a211fc90f1d02f95d961eb4469b96fbbd0e11f0ca7d0f7b590a7f02ecc042a2a74ec9651937bf855571d6bd
7
+ data.tar.gz: e33840993267faebdda24076c560d837f2c0fae1a0eea065422febda450379a6b4ee0cf9b012175166a79ec3e823b14948dfecc097533c9eee1a627309bea8ed
@@ -4,7 +4,7 @@ require 'uri'
4
4
  # HTTP calls.
5
5
  module REST
6
6
  # Library version
7
- VERSION = '0.7.0pre1'
7
+ VERSION = '0.7.0pre3'
8
8
 
9
9
  # Raised when the remote server disconnects when reading the response
10
10
  class DisconnectedError < StandardError; end
@@ -79,7 +79,7 @@ module REST
79
79
 
80
80
  # Returns the path (including the query) for the request
81
81
  def path
82
- [url.path, url.query].compact.join('?')
82
+ [url.path.empty? ? '/' : url.path, url.query].compact.join('?')
83
83
  end
84
84
 
85
85
  def proxy_env
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: 0.7.0pre1
4
+ version: 0.7.0pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manfred Stienstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-04 00:00:00.000000000 Z
11
+ date: 2014-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake