simple-s3 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -114,6 +114,7 @@ class SimpleS3
114
114
  ' <CallerReference>SOMETHING_SPECIAL_' + Time.now.utc.to_i.to_s + '</CallerReference>' +
115
115
  '</InvalidationBatch>'
116
116
  req.body = xml
117
+ raise xml
117
118
 
118
119
  http = Net::HTTP.new(uri.host, uri.port)
119
120
  http.use_ssl = true
@@ -1,3 +1,3 @@
1
1
  class SimpleS3
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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
- - 0
9
- version: 1.0.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-10 00:00:00 -04:00
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