uri-builder 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/uri/builder/version.rb +1 -1
- data/lib/uri/builder.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ecd15fc5e3de3f5fb700759eaba92a5db8731c144a3e1335b7c3ecd8a4dcb5c
|
4
|
+
data.tar.gz: 604d547bfedf9127efb57c674ea7f99bb9f8a0ad2f64dfbcde5d3f29fd351df6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1a497fe06a2838a4bec7ea091c47fd770e0a67e05325e230e81bb26dc4b75cbb0f0f460ba5cc968cdc2b4b2e07fa050fe7d77bfb9cd20da05d4f994d446ead0
|
7
|
+
data.tar.gz: 051ab649d2c481a8a9991339c810331ad7aede03e56de45933880e2a093f4fcfbbde8ac8506c8f0c0e9b150fb7da2208816ca2a8e56041c04b00a0be0817f61b
|
data/Gemfile.lock
CHANGED
data/lib/uri/builder/version.rb
CHANGED
data/lib/uri/builder.rb
CHANGED
@@ -31,9 +31,9 @@ module URI
|
|
31
31
|
wrap :query, value
|
32
32
|
end
|
33
33
|
|
34
|
-
def path(
|
34
|
+
def path(*segments)
|
35
35
|
# Make sure there's a leading / if a non leading / is given.
|
36
|
-
wrap :path, ::File.join("/"
|
36
|
+
wrap :path, ::File.join(*segments.compact.map(&:to_s).prepend("/"))
|
37
37
|
end
|
38
38
|
|
39
39
|
def to_s
|