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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b69f5e073f703a5a7db7f2141972fe6d5ba2563cdcec737e0e7e7d37107cd6d6
4
- data.tar.gz: 646518f42cb158b74606820b738410f88d38718918ccd31e559b0bb76ab046ae
3
+ metadata.gz: 2ecd15fc5e3de3f5fb700759eaba92a5db8731c144a3e1335b7c3ecd8a4dcb5c
4
+ data.tar.gz: 604d547bfedf9127efb57c674ea7f99bb9f8a0ad2f64dfbcde5d3f29fd351df6
5
5
  SHA512:
6
- metadata.gz: 9ee61e1aabd9c5e95600a4a132580cb6484c8739935033dfc97304feda0fd43f1c95054be58e1ca8b6b941bd28b05bd8a17f006af39ea3a8a9af8255cb37da38
7
- data.tar.gz: 07f70063a08dc1420631b829e5ee10b09066c08cb76e61f8907efe3613055b986a4db746d2d65cb22b9df7d0f66e3890d730231767ad35d430a6b8673ba73e8c
6
+ metadata.gz: e1a497fe06a2838a4bec7ea091c47fd770e0a67e05325e230e81bb26dc4b75cbb0f0f460ba5cc968cdc2b4b2e07fa050fe7d77bfb9cd20da05d4f994d446ead0
7
+ data.tar.gz: 051ab649d2c481a8a9991339c810331ad7aede03e56de45933880e2a093f4fcfbbde8ac8506c8f0c0e9b150fb7da2208816ca2a8e56041c04b00a0be0817f61b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uri-builder (0.1.1)
4
+ uri-builder (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,6 +2,6 @@
2
2
 
3
3
  module URI
4
4
  module Build
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
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(value)
34
+ def path(*segments)
35
35
  # Make sure there's a leading / if a non leading / is given.
36
- wrap :path, ::File.join("/", value)
36
+ wrap :path, ::File.join(*segments.compact.map(&:to_s).prepend("/"))
37
37
  end
38
38
 
39
39
  def to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler