buckler 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db7db01a0faa13f5047d6248d3fe5ea5c64da8e2
4
- data.tar.gz: 97a290a47b2fc14be5ae66fef9f1da37fcb6ae47
3
+ metadata.gz: 8e59c95bd7195c63e51cae57dee757ca72ca21a4
4
+ data.tar.gz: 7818a85d47507551f0a7344535ca5046fd5f6c4e
5
5
  SHA512:
6
- metadata.gz: b7e85bf75a278d549dfbe63aa2f948182ef1dde3cc2e092a8874bf00b02aa97d693d476dbf8dc0b553e2739e6087fe792ad90786a8c507281c184912f93559c7
7
- data.tar.gz: 39ea505766afccb930f0b8aad05293cf8a82da2df088172fc6597910d589fb339e80b6c160f82eb3a3b18b2793aa3508d97d818d69e52441f7b2b30f4de8d8e7
6
+ metadata.gz: 3dbefae9a4ec9f189e6ac3fd35041254314e82c72e56fc70623d70362d7f5db9ce7db628667da167b2e18db5e3e4fafca23a649e088ff6fc404d52bbc0cca8ed
7
+ data.tar.gz: b28de920a1b513fefd14e30614f9c6d0ce812431dbb73cd4562971d395122b7a39c235bb28eac58cd27c23a5edc4eef6b1661907ae233d6658ac5247a779469f
data/bin/bucket CHANGED
@@ -12,6 +12,9 @@ rescue Aws::S3::Errors::InvalidAccessKeyId
12
12
  rescue Aws::S3::Errors::SignatureDoesNotMatch
13
13
  alert "Invalid AWS Secret Access Key provided for Access Key ID #{Buckler.aws_access_key_id}"
14
14
  exit false
15
+ rescue Aws::S3::Errors::BadRequest
16
+ alert "Amazon S3 returned a 400 Bad Request. This is likely due to malformed input. Try re-running this command with --verbose"
17
+ exit false
15
18
  rescue Interrupt
16
19
  alert "\nCommand aborted."
17
20
  exit false
@@ -31,8 +31,11 @@ module Buckler
31
31
  _, status = Process.wait2(pid)
32
32
 
33
33
  if status.exitstatus == 0
34
- return command_output.read.to_s
34
+ results = command_output.read.to_s.chomp
35
+ verbose %{`heroku config:get #{variable_name}` returned "#{results}"}
36
+ return results
35
37
  else
38
+ verbose %{`heroku config:get #{variable_name}` returned a nonzero exit status}
36
39
  return false
37
40
  end
38
41
 
@@ -2,7 +2,7 @@ module Buckler
2
2
 
3
3
  # Returns Buckler’s version number
4
4
  def self.version
5
- Gem::Version.new("1.0.0")
5
+ Gem::Version.new("1.0.1")
6
6
  end
7
7
 
8
8
  # Contains Buckler’s version number
data/test/buckler_test.rb CHANGED
@@ -23,7 +23,7 @@ class BucklerTest < Minitest::Test
23
23
  end
24
24
 
25
25
  # Fills a bucket with random, but testable objects
26
-
26
+
27
27
  def load_bucket_with_objects(bucket)
28
28
  50.times do
29
29
  bucket.put_object({
@@ -64,8 +64,8 @@ class BucklerTest < Minitest::Test
64
64
 
65
65
  Process.wait2(pid)
66
66
 
67
- stdout_results = command_stdout_ouput.read
68
- stderr_results = command_stderr_ouput.read
67
+ stdout_results = command_stdout_ouput.read.to_s.chomp
68
+ stderr_results = command_stderr_ouput.read.to_s.chomp
69
69
 
70
70
  command_stdout_ouput.close
71
71
  command_stderr_ouput.close
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buckler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Csuhta