s3_meta_sync 0.2.1 → 0.2.3
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -1
- data/lib/s3_meta_sync.rb +12 -1
- data/lib/s3_meta_sync/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66fd72c5fa08fc841c1eabff28d2edcf17d1f9e7
|
4
|
+
data.tar.gz: 84ebb0bcc5ea31e17f7963434d16901f96b92f81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ad3f56ec2eba6491ceb9c42d5aa60c563ce286d573799959861309e966af77fe7bcff0788ddf11a567fd9de66be101b1091d8eed70d00c90437f3e1f62fa3f4
|
7
|
+
data.tar.gz: b69b8d36b3e2211ed6c8f9b11505fa5c5d00116096c5eaef5ef0bda4e9ed59ce51ed0c6d138fa30a2940d260cc647f15d6a51bd13868adbb95864ad39ba3d20c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
i|87�h{�����~!9���p�d�y�]��kE�/��R�=�[��r� ���=��7���?����F,�SXZ)��ʏl$�y©�6���Y~��4�o�4a�"(�� f�يp¨�_L8��zx�4���R���A��u�.�j#o�u�O:�3���[�]�!�Y/��A����Q�eǂ
|
data/lib/s3_meta_sync.rb
CHANGED
@@ -121,9 +121,19 @@ module S3MetaSync
|
|
121
121
|
def download_content(path)
|
122
122
|
log "Downloading #{path}"
|
123
123
|
url = "https://s3#{"-#{region}" if region}.amazonaws.com/#{@bucket}/#{path}"
|
124
|
-
|
124
|
+
options = (@config[:ssl_none] ? {:ssl_verify_mode => OpenSSL::SSL::VERIFY_NONE} : {})
|
125
|
+
open(url, options).read
|
125
126
|
rescue OpenURI::HTTPError
|
126
127
|
raise "Unable to download #{url} -- #{$!}"
|
128
|
+
rescue OpenSSL::SSL::SSLError
|
129
|
+
retries ||= 0
|
130
|
+
retries += 1
|
131
|
+
if retries == 1
|
132
|
+
log "SSL error downloading #{path}, retrying"
|
133
|
+
retry
|
134
|
+
else
|
135
|
+
raise
|
136
|
+
end
|
127
137
|
end
|
128
138
|
|
129
139
|
def delete_empty_folders(destination)
|
@@ -189,6 +199,7 @@ module S3MetaSync
|
|
189
199
|
opts.on("-s", "--secret SECRET", "AWS secret key") { |c| options[:secret] = c }
|
190
200
|
opts.on("-r", "--region REGION", "AWS region if not us-standard") { |c| options[:region] = c }
|
191
201
|
opts.on("-p", "--parallel COUNT", Integer, "Use COUNT threads for download/upload default: 10") { |c| options[:parallel] = c }
|
202
|
+
opts.on("--ssl-none", "Do not verify ssl certs") { |c| options[:ssl_none] = true }
|
192
203
|
opts.on("-V", "--verbose", "Verbose mode"){ options[:verbose] = true }
|
193
204
|
opts.on("-h", "--help", "Show this.") { puts opts; exit }
|
194
205
|
opts.on("-v", "--version", "Show Version"){ puts VERSION; exit}
|
data/lib/s3_meta_sync/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_meta_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
y0kCSWmK6D+x/SbfS6r7Ke07MRqziJdB9GuE1+0cIRuFh8EQ+LN6HXCKM5pon/GU
|
30
30
|
ycwMXfl0
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2013-
|
32
|
+
date: 2013-12-19 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: aws-sdk
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.0.
|
78
|
+
rubygems_version: 2.0.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Sync folders with s3 using a metadata file and md5 diffs
|
metadata.gz.sig
CHANGED
Binary file
|