jammit-s3 0.5.3.3 → 0.5.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jammit-s3'
3
- s.version = '0.5.3.3'
3
+ s.version = '0.5.3.4'
4
4
 
5
5
  s.homepage = "http://documentcloud.github.com/jammit/"
6
6
  s.summary = "Asset Packaging for Rails with Deployment to S3/Cloudfront"
@@ -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
- bucket = begin
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: 109
4
+ hash: 99
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 3
10
- - 3
11
- version: 0.5.3.3
10
+ - 4
11
+ version: 0.5.3.4
12
12
  platform: ruby
13
13
  authors:
14
14
  - Jacques Crocker