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 +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +3 -0
- data/README.md +21 -0
- data/lib/s3_assets_uploader/config.rb +1 -1
- data/lib/s3_assets_uploader/version.rb +1 -1
- data/s3_assets_uploader.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cd372da318416fefcd37f29244fcaf9f4956c11
|
4
|
+
data.tar.gz: b2e549e6d79f58f173cf688b1c13928c9b191909
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fc5eb263c9f82957d1012e89708ffaa1b7b5c5268b4bdf68066f435e5769f28661b455df78c7fe04be321594de043dbc598647a53d9fb590af926fe26907506
|
7
|
+
data.tar.gz: 6a7ea4dc1693c6fe61b11450ac1e36f0a15ad6a591183f4aebf700e60c94676127269befcad341c6dee78c037379183284665007165a0c576840e1913640d0b5
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
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.
|
data/s3_assets_uploader.gemspec
CHANGED
@@ -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", ">=
|
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.
|
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:
|
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: '
|
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: '
|
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.
|
126
|
+
rubygems_version: 2.6.11
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Upload Rails assets to S3.
|