s3-toolkit 0.1.0 → 0.2.0

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: d1adcaadc316e76b88696d1e2c5122182032dfc4f8a428da3d72ec33fe98629c
4
- data.tar.gz: b19c8833cce6cdd0b0df6ddf9ba3f6d8ded64a365337f7452841c7086f8f49ba
3
+ metadata.gz: 2bdba16a8d4e2406b9c47d466133f89b95d2a631dcbdbd07c29c8d1bf112a6f8
4
+ data.tar.gz: e8a7a776dbf83945ebbba15f2b671c8ffe71ebd0542ab3cd018515b4d4d8a149
5
5
  SHA512:
6
- metadata.gz: d21272f300b14ba67d0c7f0311313100a6dbeb13b64c1e946e718d696a69672aab838660dab2a1d8e0935f10d0abb7e169e40b379c6e5ffd9e70039743e8ed73
7
- data.tar.gz: 633dfd04dcd269e84b2880469b62d751812ba733d2b1f1eab6c292f7dae174d462edb83274f59618c107108e7e9fd3842f208dcd6ed30874cc1f01fd79487ac3
6
+ metadata.gz: dedfb313c69392cd329ce35ea3702f6cc84a3453fa1155f2451c19040245399287dc4731fbd836f55864b621a1cb63ea593d14e253d87d4cc3eaa3697990c1e3
7
+ data.tar.gz: ef2e9169b71666f682e32a68b506d12571570a0dadc0f7321550676460f30f92a40db4324cb4d263c0627c3f082bbe465cc22e0f06488dda06833c4c5fb9bcbd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.2.0
4
+
5
+ - [PLAT-147] Remove any double slash from the url
6
+
3
7
  ## 0.1.0
4
8
 
5
9
  - [TT-9472] Initial Project with fetch support
@@ -7,7 +7,7 @@ module S3Toolkit
7
7
 
8
8
  uri = URI.parse(s3_url)
9
9
  bucket = uri.host
10
- key = uri.path[1..] # Strip the leading /
10
+ key = uri.path.squeeze("/")[1..] # Strip the leading / and any double //
11
11
 
12
12
  [bucket, key]
13
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module S3Toolkit
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mortlock
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-31 00:00:00.000000000 Z
11
+ date: 2021-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  requirements: []
176
- rubygems_version: 3.2.15
176
+ rubygems_version: 3.2.22
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: Simple tools for managing s3 buckets in ruby