aproxacs-s3sync 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.rdoc +1 -0
- data/VERSION +1 -1
- data/bin/s3sync +7 -1
- metadata +3 -3
data/History.txt
CHANGED
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
data/bin/s3sync
CHANGED
@@ -61,6 +61,7 @@ module S3sync
|
|
61
61
|
[ '--delete', GetoptLong::NO_ARGUMENT ],
|
62
62
|
[ '--verbose', '-v', GetoptLong::NO_ARGUMENT ],
|
63
63
|
[ '--dryrun', '-n', GetoptLong::NO_ARGUMENT ],
|
64
|
+
[ '--gzip', GetoptLong::NO_ARGUMENT ],
|
64
65
|
[ '--debug', '-d', GetoptLong::NO_ARGUMENT ],
|
65
66
|
[ '--memory', '-m', GetoptLong::NO_ARGUMENT ],
|
66
67
|
[ '--progress', GetoptLong::NO_ARGUMENT ],
|
@@ -83,7 +84,7 @@ module S3sync
|
|
83
84
|
--public-read -p --expires="<exp>" --cache-control="<cc>"
|
84
85
|
--exclude="<regexp>" --progress --debug -d
|
85
86
|
--key -k --secret -s --make-dirs
|
86
|
-
--no-md5
|
87
|
+
--no-md5 --gzip
|
87
88
|
One of <source> or <destination> must be of S3 format, the other a local path.
|
88
89
|
Reminders:
|
89
90
|
* An S3 formatted item with bucket 'mybucket' and prefix 'mypre' looks like:
|
@@ -506,7 +507,12 @@ ENDUSAGE
|
|
506
507
|
headers['x-amz-acl'] = 'public-read' if $S3syncOptions['--public-read']
|
507
508
|
headers['Expires'] = $S3syncOptions['--expires'] if $S3syncOptions['--expires']
|
508
509
|
headers['Cache-Control'] = $S3syncOptions['--cache-control'] if $S3syncOptions['--cache-control']
|
510
|
+
headers['Content-Encoding'] = "gzip" if $S3syncOptions['--gzip']
|
509
511
|
fType = @path.split('.').last
|
512
|
+
if fType == "gz"
|
513
|
+
headers['Content-Encoding'] = "gzip"
|
514
|
+
fType = @path.split('.')[-2]
|
515
|
+
end
|
510
516
|
debug("File extension: #{fType}")
|
511
517
|
if defined?($mimeTypes) and fType != '' and (mType = $mimeTypes[fType]) and mType != ''
|
512
518
|
debug("Mime type: #{mType}")
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 1.3.
|
8
|
+
- 4
|
9
|
+
version: 1.3.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- aproxacs
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-11-29 00:00:00 +09:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|