fake_s3 0.11.0 → 0.12.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: '0950524ea2784ce39ab0a268b5c4aeef52566ed66124110940de58bc9a70de3c'
4
- data.tar.gz: f476430da49718e2ae5d4a42023fa1c5d8afd524e94d9c4a9f1edb60170f2f73
3
+ metadata.gz: 1df8e2cc7976463b853cb729dc63b434f0a53dcd12ef637ef9f788612fae64e5
4
+ data.tar.gz: 4dcef70888e4ea6bec62a1d1c35fe5b5701a0fb44dd888abb096689679dbf4d9
5
5
  SHA512:
6
- metadata.gz: 3df19d7b3c18e85be7d5c48de6a2819cf0317acd4b146ae3c51e26c90141cb01405ddfcb63ec418d3a22008cab5ca4a0661158d0f60a28a9b60d43d4c97dab4a
7
- data.tar.gz: 4e49c678b6aee54b376e6a48bda72bb3defd64b8e53bfcd4c713e11e630673d035b4d1175e89e3d695f79f5d41fb8a34905ffbf8855314e41f1e1bd18e2ca910
6
+ metadata.gz: 47b23b59f0c8dadb2d0df0d64546a4e1bb84f027385f6e65d22d195a6853c18620aac23b5dd9f30de265941f7211383226d414e4344effd5446bf3a9d191f366
7
+ data.tar.gz: 9b89c0a74e8bf5a72dfe88c1c36cc7b39214448dd45b2882cc91a96bce350075ec38933c000c80eab0cd625f99d3195917bd15855785b446f46111ae9f26a714
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## [0.12.0] - 2022-11-08
6
+
7
+ - fix bug w/ bucket.objects
8
+ - allow bucket.objects() to take prefix
9
+
5
10
  ## [0.11.0] - 2022-11-03
6
11
 
7
12
  - add delete on object and delete_objects on bucket
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fake_s3 (0.11.0)
4
+ fake_s3 (0.12.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -11,8 +11,12 @@ module FakeS3
11
11
  @objects = {}
12
12
  end
13
13
 
14
- def objects(_ = {})
15
- @objects.keep_if(&:exists?)
14
+ def objects(opts = {})
15
+ @objects
16
+ .find_all do |key, obj|
17
+ obj.exists? && (!opts[:prefix] || key.starts_with?(opts[:prefix]))
18
+ end
19
+ .map {|_key, obj| obj }
16
20
  end
17
21
 
18
22
  def object(key)
@@ -1,3 +1,3 @@
1
1
  module FakeS3
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Lightsmith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-03 00:00:00.000000000 Z
11
+ date: 2022-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler