plntr-fakes3 1.0.0.pre.10alpha51 → 1.0.0.pre.11
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 +4 -4
- data/lib/fakes3/sorted_object_list.rb +5 -5
- data/lib/fakes3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 947a8126e6a19f7b161e04425d73902155107f1d99edad75620c835af6ee09da
|
4
|
+
data.tar.gz: 5fa51322019bf2109a10af08dd74df2a743e750701985b2d1e09a1986ce3f973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a331afd90b9d06f4e9de14047780df97a587d24fddc39a7520ff34e0f83649c7769e9c584f5463d28e280d400bb820ee20612147c3a9e5c4636eaa503b3505a3
|
7
|
+
data.tar.gz: 46b7f467892d646a165aaf940f314335a07ba128e6c6f443aa0a2cf6e939ea87aadc541e922f4cb53c83afd4fea476c7cc5511252896c94682505b7af4409dfc
|
@@ -56,10 +56,10 @@ module FakeS3
|
|
56
56
|
# :prefix : a string to filter the results by
|
57
57
|
# :delimiter : not supported yet
|
58
58
|
def list(options)
|
59
|
-
marker = options[:marker]
|
60
|
-
prefix = options[:prefix]
|
59
|
+
marker = options[:marker].length > 0 ? options[:marker] : nil
|
60
|
+
prefix = options[:prefix].length > 0 ? options[:prefix] : nil
|
61
61
|
max_keys = options[:max_keys] || 1000
|
62
|
-
delimiter = options[:delimiter]
|
62
|
+
delimiter = options[:delimiter].length > 0 ? options[:delimiter] : nil
|
63
63
|
|
64
64
|
ms = S3MatchSet.new
|
65
65
|
|
@@ -102,7 +102,7 @@ module FakeS3
|
|
102
102
|
ms.common_prefixes << base_prefix + chunks[0] + delimiter
|
103
103
|
last_chunk = chunks[0]
|
104
104
|
else
|
105
|
-
is_truncated = true
|
105
|
+
ms.is_truncated = true
|
106
106
|
break
|
107
107
|
end
|
108
108
|
end
|
@@ -117,7 +117,7 @@ module FakeS3
|
|
117
117
|
if count <= max_keys
|
118
118
|
ms.matches << s3_object
|
119
119
|
else
|
120
|
-
is_truncated = true
|
120
|
+
ms.is_truncated = true
|
121
121
|
break
|
122
122
|
end
|
123
123
|
end
|
data/lib/fakes3/version.rb
CHANGED