takenoko-s3 0.0.2 → 0.0.3
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/attach_helper.rb +2 -1
- data/lib/takenoko/s3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31764fc52e2e2935a61cea3414c8c692bec42b01
|
4
|
+
data.tar.gz: b0ac9415edf8cd55ae45cf592f2003fc704aec54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ce9083b6c80fbdf5316498169fda2d47854c604805892f43bac8c159e8e2f7e817ddcb5d5e1f4aa62e5829197ed5585c9517f8c6e164bcb954cae3471e7973e
|
7
|
+
data.tar.gz: f18a69e8fd6c06260a7cb43c69a96962eb67b383b85c8c713b5e6d7ebbeea9bbdc814b100f0615286063e6747d487efb57d44f6b73ffa3494ce4478924ec91ac
|
@@ -5,7 +5,8 @@ module Takenoko
|
|
5
5
|
return false unless table_data[:to_s3].present?
|
6
6
|
raise 'bucket must be set' if table_data[:bucket].blank?
|
7
7
|
raise 'attach_files empty' if table_data[:attach_files].blank?
|
8
|
-
bucket = Takenoko.s3.client.bucket(table_data[:bucket])
|
8
|
+
raise "Bucket not found:#{table_data[:bucket]}" unless bucket = Takenoko.s3.client.bucket(table_data[:bucket])
|
9
|
+
|
9
10
|
table_data[:attach_files].each do |col|
|
10
11
|
next unless col[:to_s3].present?
|
11
12
|
table_data[:rows].each do |row|
|
data/lib/takenoko/s3/version.rb
CHANGED