emmy-http-client 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c7fc57b8e4db179543db0f0c952b9a83ac21c21
4
- data.tar.gz: e67dc588346d1b4d4890c2f8e3b5108c66a635de
3
+ metadata.gz: 36d8e52686910e9f1427b3cd47083c931079716a
4
+ data.tar.gz: c2a4af30f7b92139ebba6118c1dbca71390767bc
5
5
  SHA512:
6
- metadata.gz: b41434ae7b141ff5dd5792d715a4634a12d89fb0f1fca5f486c0021f46942ada2635c15c3d5e0f2945fb6912c6f540d092c3c28be8d64762eb398beca5384dc8
7
- data.tar.gz: d531c99e24c15f9824730031635a074da2bc16a395c6d6e881e7df36384c099055b9a557bf4b88110e2c0c8e5dd8ff267841e087b29b71c3412230ed17c48383
6
+ metadata.gz: 6e9271abd4826fa4d9bdac1d279acd80c893596b98a342c8221a984bc13057ff9fe507fd217f4d09105cb43c580f7e0b4691dab4e3cdddfbbc11bcdf503ee9eb
7
+ data.tar.gz: 85552e081cd96450932ae262efcd7311293033dc85c16b413d3ee69ab09b8e3f693d73fdd1d4b25bc61988cb4854ab0ea5b8330bca51cd8c90ac614b40210e92
@@ -115,7 +115,11 @@ module EmmyHttp
115
115
  raise 'relative url' if @url.relative?
116
116
 
117
117
  @url.normalize!
118
- @url.path = request.path.to_s if request.path
118
+
119
+ if path = request.real_path
120
+ raise 'path is not relative' unless path.relative?
121
+ @url += path
122
+ end
119
123
  @url.query = request.query.is_a?(Hash) ? Encoders.query(request.query) : request.query.to_s if request.query
120
124
  end
121
125
 
@@ -1,5 +1,5 @@
1
1
  module EmmyHttp
2
2
  module Client
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emmy-http-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - inre