uri-builder 0.1.10 → 0.1.11

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: 3e98cc50379efe9f39490d6f078d9632e689f6bed924c98ea9ac4a3adf344b39
4
- data.tar.gz: 6ec1f457a7c25033ec0659e3a9ea59be1b75f2b4b79ce9dcf84fc9904944b483
3
+ metadata.gz: e06f8d4bcafa879c5e15eca5eea2465375d069f45dff718f3cb2d2639370ad64
4
+ data.tar.gz: 2fb08af317f38650f039793e95a8d02ef01ec56029dc899190e79342ea500006
5
5
  SHA512:
6
- metadata.gz: 759651b6f4b0cbc6e00ba8df37a0a73f2fdb66d6ba15eaa75ebe9c332ccc5ccea1539924585350a126cf6b0057f003ee19388301d5aa0683141595eac12414a3
7
- data.tar.gz: 558482daf87448f326641477e7f98025a61bb4a93b24364172e2b7800f0e87005d08bb4105e83057e1abdd42ddaa6006a2266dd80cdaeb4277a7e800688969ad
6
+ metadata.gz: 5715d70198f6cc9bff67b5f51aac33b6d28966ae4c85909b0b34f890ec8102d5a960691093b554237bc6aef571812b730c93a131268844454013254313f4daad
7
+ data.tar.gz: 8331306c424006462e51f310903e67c9f9f6c41987788e6e917302633ab9eda1d661978615341499c588ddc566012468ba2105878691e48c411f700cb0e8fbf7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uri-builder (0.1.10)
4
+ uri-builder (0.1.11)
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.10"
5
+ VERSION = "0.1.11"
6
6
  end
7
7
  end
data/lib/uri/builder.rb CHANGED
@@ -57,6 +57,10 @@ module URI
57
57
  wrap :path, @uri.path + "/" unless @uri.path.end_with?("/")
58
58
  end
59
59
 
60
+ def remove_trailing_slash
61
+ wrap :path, @uri.path.chomp("/") if @uri.path.end_with?("/") and @uri.path != "/"
62
+ end
63
+
60
64
  def to_s
61
65
  uri.to_s
62
66
  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.10
4
+ version: 0.1.11
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-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Build URIs via chains
14
14
  email: