takenoko-s3 0.0.7 → 0.0.8

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: 0ecdf63d9549954b21928d1f36b25e4ce9ad9faf
4
- data.tar.gz: 6facfa7c96a66d5f5128a30cd90bdd91cb96ec4b
3
+ metadata.gz: 373cd9a59b96a95ae597d6fe6f829af507cb78d0
4
+ data.tar.gz: fba417b9e33608c42e60dac42d0e673cf1745c0d
5
5
  SHA512:
6
- metadata.gz: 31f41d70552a5c90b28bd59c5347bdb503475f717babcf5124edd11a57be4a8a3f227942bc1acf5450a804d3dfc82a6e800e102ba2c7a8ab59b5b8b01043f960
7
- data.tar.gz: bec6826e76376233d979ab2571b3f365b2eb0cbb8bd69467d58c9933532c02713c6dd7b98b3d7617c75c7792e4766aec855a6f7230e6f9ad3fb164698517d94d
6
+ metadata.gz: 7412fe15255762367b6cd9c2696e52321cd7bcb9e290e40e75f807c39b8172337a41a255c263d8372a0e59cb7d2348ce6735610c358e270e270d732145fec9c0
7
+ data.tar.gz: 089f55bc7483a03efd69b4b7f0b483d01e2e0cd446e00d7aa7c4fbdc72ad95497816f0922fbb1b81ca4fb535a678889557a72b0195aa578563cadb2b91799d58
data/lib/takenoko/s3.rb CHANGED
@@ -29,6 +29,9 @@ module Takenoko
29
29
  mattr_accessor :s3_public
30
30
  @@s3_public = false
31
31
 
32
+ mattr_accessor :upload_options
33
+ @@upload_options = {}
34
+
32
35
  @@client = nil
33
36
 
34
37
  def client
@@ -37,11 +37,11 @@ module Takenoko
37
37
  end
38
38
 
39
39
  Rails.logger.info "Uploading to s3: #{file_path} -> #{s3_path}"
40
- f = bucket.files.create({
40
+ f = bucket.files.create(Takenoko.s3.upload_options.merge({
41
41
  key: s3_path,
42
42
  body: file,
43
43
  public: col[:s3_public],
44
- })
44
+ }))
45
45
 
46
46
  log_data[find_val] ||= {}
47
47
  log_data[find_val][:s3_last_upload] = file.mtime.to_i
@@ -1,5 +1,5 @@
1
1
  module Takenoko
2
2
  module S3
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
data/takenoko-s3.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{S3 Uploader plugin for takenoko}
13
13
  spec.description = %q{S3 Uploader plugin for takenoko}
14
- spec.homepage = "https://github.com/khiemns54/takenoko-s3/tree/release/0.0.7"
14
+ spec.homepage = "https://github.com/khiemns54/takenoko-s3/tree/release/0.0.8"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: takenoko-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - KhiemNS
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-25 00:00:00.000000000 Z
11
+ date: 2016-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -104,7 +104,7 @@ files:
104
104
  - lib/takenoko/s3/tasks/takenoko.rake
105
105
  - lib/takenoko/s3/version.rb
106
106
  - takenoko-s3.gemspec
107
- homepage: https://github.com/khiemns54/takenoko-s3/tree/release/0.0.7
107
+ homepage: https://github.com/khiemns54/takenoko-s3/tree/release/0.0.8
108
108
  licenses:
109
109
  - MIT
110
110
  metadata: {}