opener-daemons 2.3.6 → 2.4.0

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: af5cb81db4cdd0e90eb805ab59afd37f62f56077
4
- data.tar.gz: 5aef31e3d3d36365456ab9be0a02a7081b0886da
3
+ metadata.gz: 89d1233e17af0392f47e94b1e16ee794ba28209b
4
+ data.tar.gz: d2b14b2c909e84581d72401faa728f0d8265bd0a
5
5
  SHA512:
6
- metadata.gz: ffe67a3327d1b00c6fdc3589d99517ce1f65916386606d5e1c117c179d52063b8515c29429d4a575ffb0b917f03674adc993cb29ecb1d8a910e7a96d7c4edada
7
- data.tar.gz: 14c5f581933035ca41a21d9fc6b4448cafd654bc3081d727dfefdd7def9079d671b48ebee5c27501e7de369fc65d43ca41ef93e90d7249acf614a5278b80c592
6
+ metadata.gz: 13c76deaeb2bb450570300a59dbed9071623af9d6d2929144f51188c7f27ce8b34048d5606631bf73b73ff0906e45d220b02e4cc06d5772aa2eae509e8c25860
7
+ data.tar.gz: 55a6634e0d47651c3f78bf648c13bcef02ad6565cfc02500cb78e7577d587c758f61e41d390e2acd3613e3967db1a11d9ba45047fd0f495e2b1284ab102a86a5
@@ -15,10 +15,11 @@ module Opener
15
15
  #
16
16
  def upload(identifier, document, metadata = {})
17
17
  object = create(
18
- "#{identifier}.xml",
18
+ "#{SecureRandom.hex}/#{identifier}.xml",
19
19
  document,
20
20
  :metadata => metadata,
21
- :content_type => 'application/xml'
21
+ :content_type => 'application/xml',
22
+ :acl => :public_read
22
23
  )
23
24
 
24
25
  return object
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  module Daemons
3
- VERSION = '2.3.6'
3
+ VERSION = '2.4.0'
4
4
  end # Daemons
5
5
  end # Opener
@@ -88,7 +88,7 @@ module Opener
88
88
  def submit_callbacks(object)
89
89
  urls = config.callbacks.dup
90
90
  next_url = urls.shift
91
- input_url = object.url_for(:read, :expires => 86400)
91
+ input_url = object.public_url.to_s
92
92
 
93
93
  callback_handler.post(
94
94
  next_url,
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.3.6
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilco van Duinkerken
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-17 00:00:00.000000000 Z
12
+ date: 2015-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  version: '0'
232
232
  requirements: []
233
233
  rubyforge_project:
234
- rubygems_version: 2.2.2
234
+ rubygems_version: 2.4.5
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: Toolkit for turning OpeNER components into daemons