s3_assets_uploader 0.3.0 → 0.4.0

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: 533f64deef97d41a7bae45e85b92dddb96080964
4
- data.tar.gz: fd22da2b8b06d662b2e29fe56e2d5f32e4aeacd2
3
+ metadata.gz: 2cd372da318416fefcd37f29244fcaf9f4956c11
4
+ data.tar.gz: b2e549e6d79f58f173cf688b1c13928c9b191909
5
5
  SHA512:
6
- metadata.gz: 94e6865aebc6a86d82622c426faee38516337e908567e421c49fc3fb4aaf3303fe72c194b569b1d425bcd1b84a70f866e510390259f40d4eebb43a4be7035cd9
7
- data.tar.gz: ee02da5636752b0e4af43d70a5b5580bea3edfdfa77de6d7c5e4dd8e6f61cc1a3bb9323a7a008670abfb5b9f692f1509ecc3cf8b33ba819e7ac0f2babc0dc0e2
6
+ metadata.gz: 4fc5eb263c9f82957d1012e89708ffaa1b7b5c5268b4bdf68066f435e5769f28661b455df78c7fe04be321594de043dbc598647a53d9fb590af926fe26907506
7
+ data.tar.gz: 6a7ea4dc1693c6fe61b11450ac1e36f0a15ad6a591183f4aebf700e60c94676127269befcad341c6dee78c037379183284665007165a0c576840e1913640d0b5
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1
5
3
  - 2.2
4
+ - 2.3
5
+ - 2.4
6
6
  - ruby-head
7
7
  matrix:
8
8
  allow_failures:
@@ -1,3 +1,6 @@
1
+ # 0.4.0
2
+ - Use aws-sdk v3
3
+
1
4
  # 0.3.0
2
5
  - Add `config.cache_control` option
3
6
  - The default value is `max-age=2592000, public` .
data/README.md CHANGED
@@ -34,6 +34,27 @@ namespace :assets do
34
34
  end
35
35
  ```
36
36
 
37
+ ### Configurations
38
+ - `config.s3_client`
39
+ - Aws::S3::Client instance to upload files
40
+ - Default: `Aws::S3::Client.new`
41
+ - `config.bucket`
42
+ - S3 bucket name
43
+ - **Required**
44
+ - `config.assets_path`
45
+ - Local path to assets directory
46
+ - Default: `"public/assets"`
47
+ - `config.assets_prefix`
48
+ - Remote assets path prefix
49
+ - If set, public/assets/foo.png will be uploaded to `"#{assets_prefix}/assets/foo.png"`
50
+ - Default: `nil`
51
+ - `config.additional_paths`
52
+ - Additional directories to upload
53
+ - Default: `[]`
54
+ - `config.cache_control`
55
+ - cache_control option for S3
56
+ - Default: `"max-age=2592000, public"`
57
+
37
58
  ## Development
38
59
 
39
60
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,4 +1,4 @@
1
- require 'aws-sdk'
1
+ require 'aws-sdk-s3'
2
2
 
3
3
  module S3AssetsUploader
4
4
  class Config < Struct.new(:s3_client, :bucket, :assets_path, :assets_prefix, :additional_paths, :cache_control)
@@ -1,3 +1,3 @@
1
1
  module S3AssetsUploader
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "aws-sdk", ">= 2.0"
22
+ spec.add_dependency "aws-sdk-s3", ">= 1.0"
23
23
  spec.add_dependency "mime-types"
24
24
  spec.add_development_dependency "bundler"
25
25
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_assets_uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-22 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: aws-sdk
14
+ name: aws-sdk-s3
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mime-types
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.5
126
+ rubygems_version: 2.6.11
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Upload Rails assets to S3.