s3_meta_sync 0.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7642bf36775b6d4208777739adb5bc3f569f5a0
4
- data.tar.gz: fa9e52f99fd14dc3fb7ae8b45aa6fb05e539954c
3
+ metadata.gz: 66fd72c5fa08fc841c1eabff28d2edcf17d1f9e7
4
+ data.tar.gz: 84ebb0bcc5ea31e17f7963434d16901f96b92f81
5
5
  SHA512:
6
- metadata.gz: 8975619183d2678b7aea13118fe3ade6d5f7d6e3492f5e663b64f65392005c814a4e8be96f57705e061243c29e888b874e0db1ac887f656112e3bf1df163e345
7
- data.tar.gz: 503dd14f0784246ac2ac636dc86ae544421d7baa98d41c259812dfc84226cd4b8162481567fb2c51f4036b748ac73e781a7a1b28f32b2eabb3299bfcd9171c75
6
+ metadata.gz: 8ad3f56ec2eba6491ceb9c42d5aa60c563ce286d573799959861309e966af77fe7bcff0788ddf11a567fd9de66be101b1091d8eed70d00c90437f3e1f62fa3f4
7
+ data.tar.gz: b69b8d36b3e2211ed6c8f9b11505fa5c5d00116096c5eaef5ef0bda4e9ed59ce51ed0c6d138fa30a2940d260cc647f15d6a51bd13868adbb95864ad39ba3d20c
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- n?�C#��o��ۊ��WcB����|�#�;t��y�U��a���cuT��;d����sJ,� #AXH9"z!|O�,�+˜ͳx����&N SNjc��Q ��hо� 3���H�+9"�+�Ӎ�&<'I-Mcc�['�+E0����?�lkPC4�R��+砌�k
1
+ i|87�h{�����~!9���p�d�y ]��kE�/��R�=�[��r ���=��7���?����F,�SXZ)��ʏl$�y©�6���Y~��4o4a"(�� f�يp¨�԰_L8�� zx4���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
- open(url).read
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}
@@ -1,3 +1,3 @@
1
1
  module S3MetaSync
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.3"
3
3
  end
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.1
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-10-08 00:00:00.000000000 Z
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.6
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