opener-daemons 2.5.0 → 2.5.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: 3c751b0738ca83f753009b64480b7b0f417eed7c
|
4
|
+
data.tar.gz: 17cdc7281b969cfbc6ef135a71ca25862ee41d6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4e09d9b3b8032147a284fd15a32c8e78f9f0e62a51d50bbcdfbf41e2bbcc39d4eb2436c22ec555ca4d62f9fc6af1db53cf738ea41ca081e4328cee2cce2d70c
|
7
|
+
data.tar.gz: b56cd4e275a61ee673d2ab4214c5063ff833387e7824ee82a91accd13f82c39a8f54cda2c1b0edccf8f2ee701710197a11273ee274e8521e64694cc527ca3e6f
|
@@ -10,10 +10,16 @@ module Opener
|
|
10
10
|
#
|
11
11
|
# @return [Aws::S3::Object]
|
12
12
|
def upload(identifier, document, metadata = {})
|
13
|
+
converted_metadata = {}
|
14
|
+
|
15
|
+
metadata.each do |key, value|
|
16
|
+
converted_metadata[key.to_s] = value.to_s
|
17
|
+
end
|
18
|
+
|
13
19
|
object = create(
|
14
20
|
"#{SecureRandom.hex}/#{identifier}.xml",
|
15
21
|
document,
|
16
|
-
:metadata =>
|
22
|
+
:metadata => converted_metadata,
|
17
23
|
:content_type => 'application/xml',
|
18
24
|
:acl => 'public-read'
|
19
25
|
)
|