jammit-s3 0.5.3.3 → 0.5.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/jammit-s3.gemspec +1 -1
- data/lib/jammit/s3_uploader.rb +2 -2
- metadata +3 -3
data/jammit-s3.gemspec
CHANGED
data/lib/jammit/s3_uploader.rb
CHANGED
@@ -71,7 +71,7 @@ module Jammit
|
|
71
71
|
s3_service = S3::Service.new(:access_key_id => @access_key_id, :secret_access_key => @secret_access_key)
|
72
72
|
|
73
73
|
# find or create the bucket
|
74
|
-
|
74
|
+
begin
|
75
75
|
s3_service.buckets.find(@bucket_name)
|
76
76
|
rescue S3::Error::NoSuchBucket
|
77
77
|
log "Bucket not found. Creating '#{@bucket_name}'..."
|
@@ -79,8 +79,8 @@ module Jammit
|
|
79
79
|
|
80
80
|
location = (@bucket_location.to_s.strip.downcase == "eu") ? :eu : :us
|
81
81
|
bucket.save(location)
|
82
|
+
bucket
|
82
83
|
end
|
83
|
-
bucket
|
84
84
|
end
|
85
85
|
|
86
86
|
def log(msg)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jammit-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 99
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
9
|
- 3
|
10
|
-
-
|
11
|
-
version: 0.5.3.
|
10
|
+
- 4
|
11
|
+
version: 0.5.3.4
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Jacques Crocker
|