mingle-storage 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/storage/s3_store.rb +4 -0
  3. metadata +47 -50
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c157b3c97ce274758df7edbc1842ff097ff455f7
4
+ data.tar.gz: 9abcb0f434eec7377fb95b8b1e33fc0e91cb5036
5
+ SHA512:
6
+ metadata.gz: 4a0e3179bfe1f1084f46966cc2fa28ba1b238833e1b8673185f2f2cace1337b2aab3942232a9ee54f6f05877b667d9566d0be2f4e522f2863f8673a5e6d1288c
7
+ data.tar.gz: 9fcd0b0eebee49ddfd987da70d52be8660f33c50a9dd234d84fe8ed58fb2c417fff1fbe14d5bd95a4d2dbac5d5e39e6a1ca9d341f1b827245b12618ff82b6a1c
@@ -156,6 +156,10 @@ module Storage
156
156
  :response_content_type => derive_content_type(path)).to_s
157
157
  end
158
158
 
159
+ def public_url(path, opts={})
160
+ object(path).public_url(opts)
161
+ end
162
+
159
163
  #todo: this should be interface that retrive a lazy file object
160
164
  def absolute_path(*relative_paths)
161
165
  File.join("s3:#{bucket_name}://", *relative_paths)
metadata CHANGED
@@ -1,64 +1,61 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mingle-storage
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.9
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.10
6
5
  platform: ruby
7
- authors:
8
- - ThoughtWorks Studios
9
- autorequire:
6
+ authors:
7
+ - ThoughtWorks Studios
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-05 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: aws-sdk
16
- version_requirements: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - '>='
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
- none: false
22
- requirement: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- none: false
28
- prerelease: false
29
- type: :runtime
11
+
12
+ date: 2014-05-21 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: aws-sdk
16
+ prerelease: false
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - &id002
20
+ - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ type: :runtime
24
+ version_requirements: *id001
30
25
  description: Mingle storage API to support filesystem and AWS S3 backed storage
31
26
  email: mingle-dev@thoughtworks.com
32
27
  executables: []
28
+
33
29
  extensions: []
30
+
34
31
  extra_rdoc_files: []
35
- files:
36
- - lib/storage.rb
37
- - lib/storage/filesystem_store.rb
38
- - lib/storage/s3_store.rb
32
+
33
+ files:
34
+ - lib/storage.rb
35
+ - lib/storage/filesystem_store.rb
36
+ - lib/storage/s3_store.rb
39
37
  homepage: http://www.thoughtworks.com/products
40
- licenses:
41
- - MIT
42
- post_install_message:
38
+ licenses:
39
+ - MIT
40
+ metadata: {}
41
+
42
+ post_install_message:
43
43
  rdoc_options: []
44
- require_paths:
45
- - lib
46
- required_ruby_version: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - '>='
49
- - !ruby/object:Gem::Version
50
- version: '0'
51
- none: false
52
- required_rubygems_version: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - '>='
55
- - !ruby/object:Gem::Version
56
- version: '0'
57
- none: false
44
+
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - *id002
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - *id002
58
53
  requirements: []
59
- rubyforge_project:
60
- rubygems_version: 1.8.21
61
- signing_key:
62
- specification_version: 3
54
+
55
+ rubyforge_project:
56
+ rubygems_version: 2.1.9
57
+ signing_key:
58
+ specification_version: 4
63
59
  summary: Mingle storage API to support filesystem and AWS S3 backed storage
64
60
  test_files: []
61
+