uri-builder 0.1.9 → 0.1.10

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: 24c6ebf9a70ca63eb01b8aea923ecacfa1222bc70cf8bd0dc64be4bd57ef40d0
4
- data.tar.gz: c09a538e4482ce1639e20670be158a61849e9a013f1b8a06586d2f7916541c0a
3
+ metadata.gz: 3e98cc50379efe9f39490d6f078d9632e689f6bed924c98ea9ac4a3adf344b39
4
+ data.tar.gz: 6ec1f457a7c25033ec0659e3a9ea59be1b75f2b4b79ce9dcf84fc9904944b483
5
5
  SHA512:
6
- metadata.gz: 75d5605ac76a572fa356a9839eda7a989ceede7d67fc0897493a1136413c74b3217eed0711124022b2344aa869b5d6a6350b2bc3d17766de71755b92c799a64e
7
- data.tar.gz: da74d731e4ac46e320932abcf3572c3a2b5b7ba0ab01c648e44c3b76f564c42df3d8be8fb557b8614e0fc1c5fd60cb809afcab4709c31277a72efb5a6c7a0f9d
6
+ metadata.gz: 759651b6f4b0cbc6e00ba8df37a0a73f2fdb66d6ba15eaa75ebe9c332ccc5ccea1539924585350a126cf6b0057f003ee19388301d5aa0683141595eac12414a3
7
+ data.tar.gz: 558482daf87448f326641477e7f98025a61bb4a93b24364172e2b7800f0e87005d08bb4105e83057e1abdd42ddaa6006a2266dd80cdaeb4277a7e800688969ad
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uri-builder (0.1.9)
4
+ uri-builder (0.1.10)
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.9"
5
+ VERSION = "0.1.10"
6
6
  end
7
7
  end
data/lib/uri/builder.rb CHANGED
@@ -53,6 +53,10 @@ module URI
53
53
  wrap :path, ::File.join(*segments.compact.map(&:to_s).prepend("/"))
54
54
  end
55
55
 
56
+ def trailing_slash
57
+ wrap :path, @uri.path + "/" unless @uri.path.end_with?("/")
58
+ end
59
+
56
60
  def to_s
57
61
  uri.to_s
58
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
11
+ date: 2024-11-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Build URIs via chains
14
14
  email: