mingle-storage 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/storage/s3_store.rb +3 -3
- metadata +46 -43
- checksums.yaml +0 -7
data/lib/storage/s3_store.rb
CHANGED
|
@@ -150,9 +150,9 @@ module Storage
|
|
|
150
150
|
object(path).exists?
|
|
151
151
|
end
|
|
152
152
|
|
|
153
|
-
def url_for(path)
|
|
153
|
+
def url_for(path, opts={})
|
|
154
154
|
object(path).url_for(:read,
|
|
155
|
-
:expires => @url_expires,
|
|
155
|
+
:expires => opts[:expires_in] || @url_expires,
|
|
156
156
|
:response_content_type => derive_content_type(path)).to_s
|
|
157
157
|
end
|
|
158
158
|
|
|
@@ -190,7 +190,7 @@ module Storage
|
|
|
190
190
|
def object(path)
|
|
191
191
|
bucket.objects[s3_path(path)]
|
|
192
192
|
end
|
|
193
|
-
|
|
193
|
+
|
|
194
194
|
def namespace
|
|
195
195
|
Proc === @namespace ? @namespace.call : @namespace
|
|
196
196
|
end
|
metadata
CHANGED
|
@@ -1,61 +1,64 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mingle-storage
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.8
|
|
5
|
+
prerelease:
|
|
5
6
|
platform: ruby
|
|
6
|
-
authors:
|
|
7
|
-
|
|
7
|
+
authors:
|
|
8
|
+
- ThoughtWorks Studios
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: aws-sdk
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '0'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ! '>='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0'
|
|
25
30
|
description: Mingle storage API to support filesystem and AWS S3 backed storage
|
|
26
31
|
email: mingle-dev@thoughtworks.com
|
|
27
32
|
executables: []
|
|
28
|
-
|
|
29
33
|
extensions: []
|
|
30
|
-
|
|
31
34
|
extra_rdoc_files: []
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- lib/storage/s3_store.rb
|
|
35
|
+
files:
|
|
36
|
+
- lib/storage/filesystem_store.rb
|
|
37
|
+
- lib/storage/s3_store.rb
|
|
38
|
+
- lib/storage.rb
|
|
37
39
|
homepage: http://www.thoughtworks.com/products
|
|
38
|
-
licenses:
|
|
39
|
-
|
|
40
|
-
metadata: {}
|
|
41
|
-
|
|
40
|
+
licenses:
|
|
41
|
+
- MIT
|
|
42
42
|
post_install_message:
|
|
43
43
|
rdoc_options: []
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
requirements:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
require_paths:
|
|
45
|
+
- lib
|
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
|
+
none: false
|
|
48
|
+
requirements:
|
|
49
|
+
- - ! '>='
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '0'
|
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
|
+
none: false
|
|
54
|
+
requirements:
|
|
55
|
+
- - ! '>='
|
|
56
|
+
- !ruby/object:Gem::Version
|
|
57
|
+
version: '0'
|
|
53
58
|
requirements: []
|
|
54
|
-
|
|
55
59
|
rubyforge_project:
|
|
56
|
-
rubygems_version:
|
|
60
|
+
rubygems_version: 1.8.23
|
|
57
61
|
signing_key:
|
|
58
|
-
specification_version:
|
|
62
|
+
specification_version: 3
|
|
59
63
|
summary: Mingle storage API to support filesystem and AWS S3 backed storage
|
|
60
64
|
test_files: []
|
|
61
|
-
|
checksums.yaml
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
SHA1:
|
|
3
|
-
metadata.gz: 67ad6bbdfaef2a8548f0a59b045abee389215dd7
|
|
4
|
-
data.tar.gz: da1d0e4f63d7f980c41408793c2f5a4a0521b971
|
|
5
|
-
SHA512:
|
|
6
|
-
metadata.gz: 7269efb439b07d2353faa1f5f0aa84b55ccc0daae20addbccd3e5a8e6ac71b8b2043ce41a702a64524ed262825e18464c008a244fdeb65533bf71c69580183c9
|
|
7
|
-
data.tar.gz: 307f8bbe634ecc25efe7a018ae65892f7a25a00959e7cc47f78f1ebb285d7876a42cc2a63bca639c92e4e2af028fe996e1fa993da90b946f328ea63633b5bb6b
|