happo 2.0.1 → 2.0.2

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: 6ee7b6913fece3df6f5ed8997fb971673f3fe1b0
4
- data.tar.gz: d785013db3d712f45c60b7b2101f2cb5d9c8d770
3
+ metadata.gz: 97302068d4c34f670c8ce49747ca263a1f5f6c36
4
+ data.tar.gz: 03bb8213cfac918a790c72d392b86ee9d96429e5
5
5
  SHA512:
6
- metadata.gz: 6e2738eae89c7ef74aa9e4c38cf25fe4913fa715327ff4ef9be0f17052dc7e7405e08fad8904ad8eb7870c25a166cbfa8d53d0cb995f647a457a89330b0d8ffa
7
- data.tar.gz: d8868b8cfc53bb27b76b818c33035fb8487da98a79fd0dcd8014d916b9c9ddee2166f1a90068b1dca4589a50db66c5125f6608f81bdf4002be6d73cf91146af6
6
+ metadata.gz: 5ddc0e81b2412b3f604ae335a7ad1e712d52e364ebd832684c8ad3a0493b20beb345b15981ef89a89dfe9a169cd296307adb4f11bef98df752775e35f9220553
7
+ data.tar.gz: 9e530f6b12ddc037be582ea0536eaab077438ba601a03fe30dedf301f99ee27c1baec84bf29162e06a585fb80a31f0213755b249d3ce425e38442789569d525c
@@ -63,12 +63,7 @@ module Happo
63
63
  service = S3::Service.new(access_key_id: @s3_access_key_id,
64
64
  secret_access_key: @s3_secret_access_key)
65
65
  bucket = service.bucket(@s3_bucket_name)
66
-
67
- if !bucket.exists?
68
- bucket = service.buckets.build(@s3_bucket_name)
69
- bucket.save(location: :us)
70
- end
71
-
66
+ bucket.save(location: :us) unless bucket.exists?
72
67
  bucket
73
68
  end
74
69
  end
data/lib/happo/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Defines the gem version.
2
2
  module Happo
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henric Trotzig
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-21 00:00:00.000000000 Z
12
+ date: 2016-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chunky_png