mingle-storage 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/storage/s3_store.rb +5 -3
- data/lib/storage.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0f5c1a6490805c1d46aa244bea09839689e5b17
|
4
|
+
data.tar.gz: ef239446fa00f2a0130667baba8e015d98c3bcd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be939eea8f100403f2fe3d287f620e37c33b598c62957e5341cd4c9011b95b79042aa1f451a53e7096f936d1c751343bf49202f929fbcc2bd9055d0ca615a2cb
|
7
|
+
data.tar.gz: bfb1b834b17b24cf7872ced73149cb14c04e7c137ec455d6e8021f8778daa46f30dba466d8fc837c760b8b73ee55acc0680cfa2a7bac70e55958f10fb2babaa2
|
data/lib/storage/s3_store.rb
CHANGED
@@ -166,9 +166,11 @@ module Storage
|
|
166
166
|
end
|
167
167
|
|
168
168
|
def url_for(path, opts={})
|
169
|
-
|
170
|
-
|
171
|
-
|
169
|
+
url_opts = {
|
170
|
+
:expires => opts.delete(:expires_in) || @url_expires,
|
171
|
+
:response_content_type => derive_content_type(path)
|
172
|
+
}.merge(opts)
|
173
|
+
object(path).url_for(:read, url_opts).to_s
|
172
174
|
end
|
173
175
|
|
174
176
|
def public_url(path, opts={})
|
data/lib/storage.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mingle-storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ThoughtWorks Studios
|
@@ -11,19 +11,19 @@ cert_chain: []
|
|
11
11
|
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - '>='
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: '0'
|
20
|
-
|
19
|
+
name: aws-sdk-v1
|
20
|
+
prerelease: false
|
21
|
+
type: :runtime
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
23
|
requirements:
|
22
24
|
- - '>='
|
23
25
|
- !ruby/object:Gem::Version
|
24
26
|
version: '0'
|
25
|
-
prerelease: false
|
26
|
-
type: :runtime
|
27
27
|
description: Mingle storage API to support filesystem and AWS S3 backed storage
|
28
28
|
email: mingle-dev@thoughtworks.com
|
29
29
|
executables: []
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.4.8
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Mingle storage API to support filesystem and AWS S3 backed storage
|