bfs 0.5.1 → 0.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8031648ca17a6b4280254144ae9dcf4755a10fa3781cbcbe62415462a44204bf
4
- data.tar.gz: b7271f1144fbf1f8ab7ec2a404eae2228bfaed775384d4bba8b4232d9c57a857
3
+ metadata.gz: 139902b9141990300b11bbc8dbaf74d98e5a2d5c94bd0d908a4186a0cbe90e86
4
+ data.tar.gz: ca0f8d4823962e60c94933c9420772ca272eb1b37a986a01f6a961107d30f66a
5
5
  SHA512:
6
- metadata.gz: 831527fc6623924a735dfe52eb55c879b97b3d74ea1c99751f34614e894dbeb27ee072cf97536b90d9427aedbe89d498ee47e7820da6b8aa7348f4b6807800fb
7
- data.tar.gz: 1df3f3dda4798c4b9f43877e9c6194fa8deeaab461da30af1e2a7bfc78e6b926a7705ed2e5f8f1e2796ea0511e7c31d5b5c6b13d2b672bc16631d924d0950a7c
6
+ metadata.gz: 231594d9d7c86d32fef8c967ac4bf5e2184b219e1a495a04372e86fb4114c2391511c5f752c8f8af4238cdccb6bc8d7f51f9f98d4fe9e42bed61796b1cafb210
7
+ data.tar.gz: a87d958cc0aa9303f63cf786b2d995bd348db5c248f7802f39ac71a773ef93afe2f747b988b585219720bf826a7624351a07406e3cd3600df1d79fe1c04e0e7f
@@ -5,9 +5,9 @@ module BFS
5
5
  class Abstract
6
6
  # Initializes a new bucket
7
7
  # @param [Hash] opts options
8
- # @option opts [String] :encoding default encoding, default: binary.
8
+ # @option opts [String] :encoding Custom encoding. Default: Encoding.default_external.
9
9
  def initialize(opts={})
10
- @encoding = opts.delete(:encoding) || Encoding::BINARY
10
+ @encoding = opts.delete(:encoding) || Encoding.default_external
11
11
  end
12
12
 
13
13
  # Lists the contents of a bucket using a glob pattern
@@ -59,7 +59,7 @@ module BFS
59
59
  def open(path, opts={}, &block)
60
60
  path = norm_path(path)
61
61
  full = @root.join(path)
62
- full.open('rb', opts, &block)
62
+ full.open(opts, &block)
63
63
  rescue Errno::ENOENT
64
64
  raise BFS::FileNotFound, path
65
65
  end
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.5.1
4
+ version: 0.6.0
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-10-09 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Minimalist abstraction for bucket storage
14
14
  email: dimitrij@blacksquaremedia.com
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  requirements: []
51
- rubygems_version: 3.0.3
51
+ rubygems_version: 3.0.6
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: Multi-platform cloud bucket adapter