aproxacs-s3sync 1.3.4 → 1.3.5

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.
Files changed (4) hide show
  1. data/History.txt +2 -2
  2. data/VERSION +1 -1
  3. data/bin/s3sync +3 -4
  4. metadata +3 -3
data/History.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  2010-11-29
2
- Version 1.3.4
3
- added Content-Encoding for gz file.
2
+ Version 1.3.5
3
+ able to set Content-Encoding with --gzip option
4
4
 
5
5
  2010-10-29
6
6
  Version 1.3.3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.4
1
+ 1.3.5
data/bin/s3sync CHANGED
@@ -61,13 +61,13 @@ 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 ],
65
64
  [ '--debug', '-d', GetoptLong::NO_ARGUMENT ],
66
65
  [ '--memory', '-m', GetoptLong::NO_ARGUMENT ],
67
66
  [ '--progress', GetoptLong::NO_ARGUMENT ],
68
67
  [ '--expires', GetoptLong::REQUIRED_ARGUMENT ],
69
68
  [ '--cache-control', GetoptLong::REQUIRED_ARGUMENT ],
70
69
  [ '--exclude', GetoptLong::REQUIRED_ARGUMENT ],
70
+ [ '--gzip', GetoptLong::REQUIRED_ARGUMENT ],
71
71
  [ '--key', '-k', GetoptLong::REQUIRED_ARGUMENT],
72
72
  [ '--secret', GetoptLong::REQUIRED_ARGUMENT],
73
73
  [ '--make-dirs', GetoptLong::NO_ARGUMENT ],
@@ -507,10 +507,9 @@ ENDUSAGE
507
507
  headers['x-amz-acl'] = 'public-read' if $S3syncOptions['--public-read']
508
508
  headers['Expires'] = $S3syncOptions['--expires'] if $S3syncOptions['--expires']
509
509
  headers['Cache-Control'] = $S3syncOptions['--cache-control'] if $S3syncOptions['--cache-control']
510
- headers['Content-Encoding'] = "gzip" if $S3syncOptions['--gzip']
511
510
  fType = @path.split('.').last
512
- if fType == "gz"
513
- headers['Content-Encoding'] = "gzip"
511
+ if $S3syncOptions['--gzip'].split(",").include? fType
512
+ headers['Content-Encoding'] = "gzip"
514
513
  fType = @path.split('.')[-2]
515
514
  end
516
515
  debug("File extension: #{fType}")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 3
8
- - 4
9
- version: 1.3.4
8
+ - 5
9
+ version: 1.3.5
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-11-29 00:00:00 +09:00
17
+ date: 2010-11-30 00:00:00 +09:00
18
18
  default_executable:
19
19
  dependencies: []
20
20