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.
Files changed (5) hide show
  1. data/History.txt +4 -0
  2. data/README.rdoc +1 -0
  3. data/VERSION +1 -1
  4. data/bin/s3sync +7 -1
  5. metadata +3 -3
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 2010-11-29
2
+ Version 1.3.4
3
+ added Content-Encoding for gz file.
4
+
1
5
  2010-10-29
2
6
  Version 1.3.3
3
7
  Enumerator is used instead of Generator
data/README.rdoc CHANGED
@@ -8,6 +8,7 @@ Thread.critical is not used since 1.9
8
8
  In 1.9.2 Dir#collect is not Array but Enumerator
9
9
  * Array#to_s
10
10
  The result of [1,2].to_s is different from 1.8. Instead of to_s, used join
11
+ * use Enumerator instead of thread_generator
11
12
 
12
13
  == DESCRIPTION:
13
14
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.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
- - 3
9
- version: 1.3.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-10-29 00:00:00 +09:00
17
+ date: 2010-11-29 00:00:00 +09:00
18
18
  default_executable:
19
19
  dependencies: []
20
20