bfs 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bfs.rb +1 -1
  3. data/lib/bfs/blob.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '038b77c2bf38cfc254a2c834098750590c801a09b122b88d3be9e07ffc1ed064'
4
- data.tar.gz: b93eb0cd09f021cde8dc8160c92d9a923bdea7ec0c7570d4ed5ae00baa0ed0f4
3
+ metadata.gz: 52e0c5eab660328d70a8e8b89fe59ea7ac7c4f556782107e3ae6553a13099ecc
4
+ data.tar.gz: f152222848d6332930fbf76e28bd6dc4f8b31cc95b08ede813ca7706fe87ddb3
5
5
  SHA512:
6
- metadata.gz: 757aafc240b18aeb4f649767bc576bdb4c5a7675f9aa1f50306bbfe119f75417852b0330b31fb0d1eec207b3a2113e06cb0de30180a9f12c83c1a43043592ce1
7
- data.tar.gz: bb064f2e53b42dbff0ac8b2dbaacc2c850d62e153032d7cc9a0f402ce5123fbbdb600af522cd9d25bdede9fa5cd19cc5e9c52af8a2f4e97baec6a3aa6c5cc0b8
6
+ metadata.gz: 0fb8adbd4bc0ff2f8958f8cba53e3a353500c2f23d44ab06cb7fc18ba125d0b82ad5f645f9708ed62c7c366498a7f6b5baddfab8a571b2ab41838585e218be14
7
+ data.tar.gz: 5e2700be540ba7d50f688abda9a460680a075230baa255b7eaaa3a67be5bb445cb2d2337216ddeae9976655b33cc7bd9233eab6af644a9c44acbd77fcc2ecb01
data/lib/bfs.rb CHANGED
@@ -11,7 +11,7 @@ module BFS
11
11
  end
12
12
 
13
13
  def self.resolve(url)
14
- url = URI.parse(url) unless url.is_a?(::URI)
14
+ url = url.is_a?(::URI) ? url.dup : URI.parse(url)
15
15
  rsl = @registry[url.scheme]
16
16
  raise ArgumentError, "Unable to resolve #{url}, scheme #{url.scheme} is not registered" unless rsl
17
17
 
@@ -4,7 +4,7 @@ module BFS
4
4
  attr_reader :path
5
5
 
6
6
  def initialize(url)
7
- url = URI.parse(url) unless url.is_a?(::URI)
7
+ url = url.is_a?(::URI) ? url.dup : URI.parse(url)
8
8
  @path = BFS.norm_path(url.path)
9
9
 
10
10
  url.path = '/'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2019-09-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Minimalist abstraction for bucket storage
14
14
  email: dimitrij@blacksquaremedia.com