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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1ec694617212b452aa76af58121eb9c34e99b42
4
- data.tar.gz: 5045778b376a756e0296bcb158fafd5a50278405
3
+ metadata.gz: 31764fc52e2e2935a61cea3414c8c692bec42b01
4
+ data.tar.gz: b0ac9415edf8cd55ae45cf592f2003fc704aec54
5
5
  SHA512:
6
- metadata.gz: e090e945aa336f847a137bace3cfdd1fc08e305c710b0826db9c36c387708e653b6647949d33c39f96ecebc18b73bc1323acb9be37f30077bcecdccac7861cf7
7
- data.tar.gz: 7c7d6a22d438c4e206e44eb1944c50ef5268934a6ea7f200ca0e428438848a57d9e4f4db31336888ce793029b08ce4dec64c0202c8a9331874fbe5680223c210
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|
@@ -1,5 +1,5 @@
1
1
  module Takenoko
2
2
  module S3
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - KhiemNS