simple-s3 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +14 -2
- data/lib/simple-s3/simple-s3.rb +1 -0
- data/lib/simple-s3/version.rb +1 -1
- data/simple-s3.gem +0 -0
- metadata +4 -3
data/README.md
CHANGED
@@ -14,11 +14,23 @@ Setup a file called `simple-s3.yml` with the following information:
|
|
14
14
|
s3_bucket: '...'
|
15
15
|
s3_access_key: '...'
|
16
16
|
s3_secret_key: '...'
|
17
|
-
cloudfront_distribution_id: '...'
|
17
|
+
cloudfront_distribution_id: '...' # (optional)
|
18
18
|
```
|
19
19
|
|
20
20
|
And then run the command `simple-s3` from the command line within the same directory where your simple-s3.yml file is saved.
|
21
21
|
|
22
|
+
You can also include the library directly into another file (like a Rakefile for example):
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'rubygems'
|
26
|
+
require 'simple-s3'
|
27
|
+
|
28
|
+
# do some stuff
|
29
|
+
# run the uploader
|
30
|
+
SimpleS3.run!
|
31
|
+
# do other stuff
|
32
|
+
```
|
33
|
+
|
22
34
|
## Excluding Files
|
23
35
|
|
24
36
|
You can exclude files from the upload by defining a list of files within your simple-s3.yml file:
|
@@ -38,7 +50,7 @@ You can also include specific files for the upload
|
|
38
50
|
|
39
51
|
```yaml
|
40
52
|
include_files:
|
41
|
-
- **/* #default
|
53
|
+
- "**/*" #default
|
42
54
|
- /path/to/some/other/file.rb
|
43
55
|
|
44
56
|
# ... the rest of the simple-s3.yml file
|
data/lib/simple-s3/simple-s3.rb
CHANGED
data/lib/simple-s3/version.rb
CHANGED
data/simple-s3.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Matias Niemela
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-10-
|
17
|
+
date: 2012-10-23 00:00:00 -04:00
|
18
18
|
default_executable: simple-s3
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- lib/simple-s3.rb
|
46
46
|
- lib/simple-s3/simple-s3.rb
|
47
47
|
- lib/simple-s3/version.rb
|
48
|
+
- simple-s3.gem
|
48
49
|
- simple-s3.gemspec
|
49
50
|
has_rdoc: true
|
50
51
|
homepage: https://github.com/yearofmoo/simple-s3
|