takenoko-s3 0.0.8 → 0.0.9

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: 373cd9a59b96a95ae597d6fe6f829af507cb78d0
4
- data.tar.gz: fba417b9e33608c42e60dac42d0e673cf1745c0d
3
+ metadata.gz: d76d3ff8b107a2dd01f2c813ec28c08033e4598f
4
+ data.tar.gz: b88610501ebdbcb29e64b2c4815dc7635cd0d8cb
5
5
  SHA512:
6
- metadata.gz: 7412fe15255762367b6cd9c2696e52321cd7bcb9e290e40e75f807c39b8172337a41a255c263d8372a0e59cb7d2348ce6735610c358e270e270d732145fec9c0
7
- data.tar.gz: 089f55bc7483a03efd69b4b7f0b483d01e2e0cd446e00d7aa7c4fbdc72ad95497816f0922fbb1b81ca4fb535a678889557a72b0195aa578563cadb2b91799d58
6
+ metadata.gz: c32c68011f5fb5e61e3f272e3717430713d75bf0f73b68ddb484c831daf4c63f2a4a1c4da0f514690b6e24de26d86b324c7b0d894625e3e46772577592d13b82
7
+ data.tar.gz: f004c9d9f61aa4cc17b8c4f5973b6c37a779d379d25499662e9527a30820d27833567b52022a22b849ba510341ea5e38953e9c6bd9c4868b315b61ca3eaf02a1
@@ -27,8 +27,20 @@ module Takenoko
27
27
  def download_and_upload_table_to_s3(table_name)
28
28
  table_data = google_client.get_table(table_name)
29
29
  raise "attach_files not set" unless table_data[:attach_files].present?
30
- AttachHelper.download table_data
31
- AttachHelper.upload_to_s3 table_data
30
+ errors = []
31
+ begin
32
+ AttachHelper.download table_data
33
+ rescue Exception => e
34
+ errors << e.to_s
35
+ end
36
+
37
+ begin
38
+ AttachHelper.upload_to_s3 table_data
39
+ rescue Exception => e
40
+ errors << e.to_s
41
+ end
42
+ raise errors.join("\n") unless errors.empty?
43
+ return true
32
44
  end
33
45
 
34
46
  def download_and_upload_all_to_s3
@@ -1,5 +1,5 @@
1
1
  module Takenoko
2
2
  module S3
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
data/takenoko-s3.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{S3 Uploader plugin for takenoko}
13
13
  spec.description = %q{S3 Uploader plugin for takenoko}
14
- spec.homepage = "https://github.com/khiemns54/takenoko-s3/tree/release/0.0.8"
14
+ spec.homepage = "https://github.com/khiemns54/takenoko-s3/tree/release/0.0.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: takenoko-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - KhiemNS
@@ -104,7 +104,7 @@ files:
104
104
  - lib/takenoko/s3/tasks/takenoko.rake
105
105
  - lib/takenoko/s3/version.rb
106
106
  - takenoko-s3.gemspec
107
- homepage: https://github.com/khiemns54/takenoko-s3/tree/release/0.0.8
107
+ homepage: https://github.com/khiemns54/takenoko-s3/tree/release/0.0.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
108
108
  licenses:
109
109
  - MIT
110
110
  metadata: {}