mingle-storage 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/storage/s3_store.rb +4 -4
- metadata +19 -19
data/lib/storage/s3_store.rb
CHANGED
@@ -108,12 +108,12 @@ module Storage
|
|
108
108
|
@namespace = options[:namespace]
|
109
109
|
end
|
110
110
|
|
111
|
-
def upload(path, local_file)
|
111
|
+
def upload(path, local_file, options={})
|
112
112
|
local_file_name = File.basename(local_file)
|
113
113
|
bucket.objects.create(
|
114
114
|
s3_path(path, local_file_name),
|
115
115
|
Pathname.new(local_file),
|
116
|
-
{ :content_type => derive_content_type(local_file_name) }
|
116
|
+
{ :content_type => derive_content_type(local_file_name) }.merge(options)
|
117
117
|
)
|
118
118
|
end
|
119
119
|
|
@@ -138,8 +138,8 @@ module Storage
|
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
141
|
-
def write_to_file(path, content)
|
142
|
-
object(path).write(content)
|
141
|
+
def write_to_file(path, content, options={})
|
142
|
+
object(path).write(content, options)
|
143
143
|
end
|
144
144
|
|
145
145
|
def read(path)
|
metadata
CHANGED
@@ -1,64 +1,64 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mingle-storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- ThoughtWorks Studios
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
date: 2014-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
16
|
-
|
17
|
-
none: false
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
18
17
|
requirements:
|
19
|
-
- -
|
18
|
+
- - '>='
|
20
19
|
- !ruby/object:Gem::Version
|
21
20
|
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
21
|
none: false
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
27
|
+
none: false
|
28
|
+
prerelease: false
|
29
|
+
type: :runtime
|
30
30
|
description: Mingle storage API to support filesystem and AWS S3 backed storage
|
31
31
|
email: mingle-dev@thoughtworks.com
|
32
32
|
executables: []
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
+
- lib/storage.rb
|
36
37
|
- lib/storage/filesystem_store.rb
|
37
38
|
- lib/storage/s3_store.rb
|
38
|
-
- lib/storage.rb
|
39
39
|
homepage: http://www.thoughtworks.com/products
|
40
40
|
licenses:
|
41
41
|
- MIT
|
42
|
-
post_install_message:
|
42
|
+
post_install_message:
|
43
43
|
rdoc_options: []
|
44
44
|
require_paths:
|
45
45
|
- lib
|
46
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
-
none: false
|
48
47
|
requirements:
|
49
|
-
- -
|
48
|
+
- - '>='
|
50
49
|
- !ruby/object:Gem::Version
|
51
50
|
version: '0'
|
52
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
51
|
none: false
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
53
|
requirements:
|
55
|
-
- -
|
54
|
+
- - '>='
|
56
55
|
- !ruby/object:Gem::Version
|
57
56
|
version: '0'
|
57
|
+
none: false
|
58
58
|
requirements: []
|
59
|
-
rubyforge_project:
|
60
|
-
rubygems_version: 1.8.
|
61
|
-
signing_key:
|
59
|
+
rubyforge_project:
|
60
|
+
rubygems_version: 1.8.21
|
61
|
+
signing_key:
|
62
62
|
specification_version: 3
|
63
63
|
summary: Mingle storage API to support filesystem and AWS S3 backed storage
|
64
64
|
test_files: []
|