opener-daemons 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opener/daemons/uploader.rb +7 -1
- data/lib/opener/daemons/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be3027e3fd0a25a594aefe775141e9ff07afd75e
|
4
|
+
data.tar.gz: 380ab3d25467ae098e3eab10b5f59417b7ce9284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56b37734033408a960f0d77d5d260287758fc186c52e768dc8a8d12db331516bc2bf26947d9a222f8ce5b0924f35e5344bcc04548f137c9ed94ddc98109e2073
|
7
|
+
data.tar.gz: bd367e63d41c9a49b62d2ae9b00e2c9dd3cca1c0945008c8f31befe4e07c35e9283257a616fb3deb9374d9e864abd507044d4d4be02ed3d9966e4f51cb833537
|
@@ -30,7 +30,13 @@ module Opener
|
|
30
30
|
# @return [AWS::S3::S3Object]
|
31
31
|
#
|
32
32
|
def create(*args)
|
33
|
-
|
33
|
+
object = bucket.objects.create(*args)
|
34
|
+
|
35
|
+
if object.is_a?(AWS::S3::ObjectVersion)
|
36
|
+
object = object.object
|
37
|
+
end
|
38
|
+
|
39
|
+
return object
|
34
40
|
end
|
35
41
|
|
36
42
|
##
|