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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/fake_s3/bucket.rb +6 -2
- data/lib/fake_s3/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1df8e2cc7976463b853cb729dc63b434f0a53dcd12ef637ef9f788612fae64e5
|
4
|
+
data.tar.gz: 4dcef70888e4ea6bec62a1d1c35fe5b5701a0fb44dd888abb096689679dbf4d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47b23b59f0c8dadb2d0df0d64546a4e1bb84f027385f6e65d22d195a6853c18620aac23b5dd9f30de265941f7211383226d414e4344effd5446bf3a9d191f366
|
7
|
+
data.tar.gz: 9b89c0a74e8bf5a72dfe88c1c36cc7b39214448dd45b2882cc91a96bce350075ec38933c000c80eab0cd625f99d3195917bd15855785b446f46111ae9f26a714
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/fake_s3/bucket.rb
CHANGED
@@ -11,8 +11,12 @@ module FakeS3
|
|
11
11
|
@objects = {}
|
12
12
|
end
|
13
13
|
|
14
|
-
def objects(
|
15
|
-
@objects
|
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)
|
data/lib/fake_s3/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|