aws 1.11.6 → 1.11.7

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.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'lib/right_aws.rb'
7
7
 
8
8
  Hoe.new('aws', RightAws::VERSION::STRING) do |p|
9
9
  p.rubyforge_name = 'spacegems'
10
- p.developer('Travis Reeder', 'travis@crankapps.com')
10
+ p.developer('Travis Reeder', 'travis@appoxy.com')
11
11
  # p.author = 'RightScale, Inc.'
12
12
  # p.email = 'rubygems@rightscale.com'
13
13
 
@@ -329,8 +329,7 @@ module RightAws
329
329
  @error_handler = nil
330
330
  return check_result
331
331
  end
332
- request_text_data = "#{request[:server]}:#{request[:port]}#{request[:request].path}"
333
- raise AwsError.new(@last_errors, @last_response.code, @last_request_id, request_text_data)
332
+ raise AwsError.new(@last_errors, @last_response.code, @last_request_id)
334
333
  end
335
334
  rescue Exception => e
336
335
  blockexception = e
@@ -362,8 +361,7 @@ module RightAws
362
361
  @error_handler = nil
363
362
  return check_result
364
363
  end
365
- request_text_data = "#{request[:server]}:#{request[:port]}#{request[:request].path}"
366
- raise AwsError.new(@last_errors, @last_response.code, @last_request_id, request_text_data)
364
+ raise AwsError.new(@last_errors, @last_response.code, @last_request_id)
367
365
  end
368
366
  end
369
367
  rescue
@@ -410,18 +408,12 @@ module RightAws
410
408
 
411
409
  # Response HTTP error code
412
410
  attr_reader :http_code
413
-
414
- # The request URL and input values
415
- attr_reader :request_data
416
411
 
417
- def initialize(errors=nil, http_code=nil, request_id=nil, request_data=nil)
412
+ def initialize(errors=nil, http_code=nil, request_id=nil)
418
413
  @errors = errors
419
414
  @request_id = request_id
420
415
  @http_code = http_code
421
- @request_data = request_data
422
- msg = @errors.is_a?(Array) ? @errors.map{|code, msg| "#{code}: #{msg}"}.join("; ") : @errors.to_s
423
- msg += "\nREQUEST(#{@request_data})" unless @request_data.nil?
424
- super(msg)
416
+ super(@errors.is_a?(Array) ? @errors.map{|code, msg| "#{code}: #{msg}"}.join("; ") : @errors.to_s)
425
417
  end
426
418
 
427
419
  # Does any of the error messages include the regexp +pattern+?
@@ -53,7 +53,7 @@ module RightAws #:nodoc:
53
53
  module VERSION #:nodoc:
54
54
  MAJOR = 1
55
55
  MINOR = 11
56
- TINY = 6
56
+ TINY = 7
57
57
 
58
58
  STRING = [MAJOR, MINOR, TINY].join('.')
59
59
  end
@@ -905,7 +905,7 @@ module RightAws
905
905
  attrs = {}
906
906
  attributes.each do |attribute, values|
907
907
  attribute = attribute.to_s
908
- attrs[attribute] = attribute == 'id' ? values.to_s : values.uniq
908
+ attrs[attribute] = attribute == 'id' ? values.to_s : values.is_a?(Array) ? values.uniq : [values]
909
909
  attrs.delete(attribute) if values.blank?
910
910
  end
911
911
  attrs
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.6
4
+ version: 1.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -35,7 +35,7 @@ description: |-
35
35
  - RightAws::SdbInterface and RightAws::ActiveSdb -- interface to Amazon SDB (SimpleDB)
36
36
  - RightAws::AcfInterface -- interface to Amazon CloudFront, a content distribution service
37
37
  email:
38
- - travis@crankapps.com
38
+ - travis@appoxy.com
39
39
  executables: []
40
40
 
41
41
  extensions: []