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 +4 -4
- data/lib/takenoko/s3/takenoko.rb +14 -2
- data/lib/takenoko/s3/version.rb +1 -1
- data/takenoko-s3.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d76d3ff8b107a2dd01f2c813ec28c08033e4598f
|
4
|
+
data.tar.gz: b88610501ebdbcb29e64b2c4815dc7635cd0d8cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c32c68011f5fb5e61e3f272e3717430713d75bf0f73b68ddb484c831daf4c63f2a4a1c4da0f514690b6e24de26d86b324c7b0d894625e3e46772577592d13b82
|
7
|
+
data.tar.gz: f004c9d9f61aa4cc17b8c4f5973b6c37a779d379d25499662e9527a30820d27833567b52022a22b849ba510341ea5e38953e9c6bd9c4868b315b61ca3eaf02a1
|
data/lib/takenoko/s3/takenoko.rb
CHANGED
@@ -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
|
-
|
31
|
-
|
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
|
data/lib/takenoko/s3/version.rb
CHANGED
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.
|
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.
|
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.
|
107
|
+
homepage: https://github.com/khiemns54/takenoko-s3/tree/release/0.0.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
|
108
108
|
licenses:
|
109
109
|
- MIT
|
110
110
|
metadata: {}
|