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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f3c8a043044a495e03b0dacdad8a67b68d7a1a5
4
- data.tar.gz: 073bc78c6d4526e5fa0fc92df9ec232d547f740d
3
+ metadata.gz: 3c751b0738ca83f753009b64480b7b0f417eed7c
4
+ data.tar.gz: 17cdc7281b969cfbc6ef135a71ca25862ee41d6f
5
5
  SHA512:
6
- metadata.gz: 862ef276d46a65078f5f47c39712f0d0e42f3338ebae5f1bc64ecc6a8989b95a9c6855c7cb2ff5cb3c0cd981ead18f9b0957ea7c084d08c3dd6d3dda7bb0bb93
7
- data.tar.gz: 4d56bf239321c51ee2c59580e19eed90e3df3d3cb8b72a7336dc85a718ae54c02da8c3e6374df4bb210252cdf60d94b8e6a43d8d817a0257ac2edfe96bfc3c7a
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 => metadata,
22
+ :metadata => converted_metadata,
17
23
  :content_type => 'application/xml',
18
24
  :acl => 'public-read'
19
25
  )
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  module Daemons
3
- VERSION = '2.5.0'
3
+ VERSION = '2.5.1'
4
4
  end # Daemons
5
5
  end # Opener
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-daemons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilco van Duinkerken