aws-sdk 1.5.0 → 1.5.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.
@@ -61,7 +61,7 @@ require 'aws/core/autoloader'
61
61
  module AWS
62
62
 
63
63
  # Current version of the AWS SDK for Ruby
64
- VERSION = "1.5.0"
64
+ VERSION = "1.5.1"
65
65
 
66
66
  register_autoloads(self) do
67
67
  autoload :Errors, 'errors'
@@ -461,21 +461,6 @@ module AWS
461
461
  end
462
462
  end
463
463
 
464
- def add_service name, ruby_name, default_endpoint
465
-
466
- create_block = lambda do |config|
467
- AWS.const_get(name)::Client.new(:config => config)
468
- end
469
-
470
- needs = [:signer, :http_handler, :"#{ruby_name}_endpoint"]
471
-
472
- Core::Configuraiton.add_option :"#{ruby_name}_endpoint", default_endpoint
473
-
474
- Core::Configuraiton.add_option_with_needs(
475
- :"#{ruby_name}_client", needs, &create_block)
476
-
477
- end
478
-
479
464
  # Causes all requests to return empty responses without making any
480
465
  # requests against the live services. This does not attempt to
481
466
  # mock the services.
@@ -14,6 +14,7 @@
14
14
  require 'set'
15
15
  require 'aws/core/client/query_xml'
16
16
  require 'aws/core/client/query_json'
17
+ require 'json'
17
18
 
18
19
  module AWS
19
20
  module Core
@@ -485,8 +486,10 @@ module AWS
485
486
  # configuration that drives the request and response DSLs.
486
487
  # @return [Hash]
487
488
  def self.api_config
488
- path = "lib/aws/api_config/#{service_name}-#{self::API_VERSION}.yml"
489
- YAML.load(File.read(path))
489
+ config_file =
490
+ File.dirname(File.dirname(__FILE__)) +
491
+ "/api_config/#{service_name}-#{self::API_VERSION}.yml"
492
+ YAML.load(File.read(config_file))
490
493
  end
491
494
 
492
495
  # @return [Array<Symbol>] Returns a list of service operations as
@@ -13,6 +13,7 @@
13
13
 
14
14
  require 'base64'
15
15
  require 'bigdecimal'
16
+ require 'json'
16
17
 
17
18
  module AWS
18
19
  module Core
@@ -149,7 +149,7 @@ module AWS
149
149
  # You can also specify the string 'default' to use Amazon's
150
150
  # default dhcp options.
151
151
  #
152
- # vpc.dhcp_optinos = 'defualt'
152
+ # vpc.dhcp_optinos = 'default'
153
153
  #
154
154
  # @param [DHCPOptions,String] dhcp_options A {DHCPOptions} object
155
155
  # or a dhcp options id string.
@@ -166,7 +166,7 @@ module AWS
166
166
 
167
167
  end
168
168
 
169
- # Configures AWS to log to the Rails defualt logger.
169
+ # Configures AWS to log to the Rails default logger.
170
170
  # @return [nil]
171
171
  def self.log_to_rails_logger
172
172
  AWS.config(:logger => rails_logger)
@@ -203,7 +203,7 @@ module AWS
203
203
  # to validate that all of the values in a set are true, then use
204
204
  # {#validates_inclusion_of}.
205
205
  #
206
- # @note Most validators default :allow_nil to false, this one defualts to true
206
+ # @note Most validators default :allow_nil to false, this one defaults to true
207
207
  # @note This validator should not be used with multi-valued attributes
208
208
  #
209
209
  # @overload validates_acceptance_of(*attributes, options = {}, &block)
@@ -213,7 +213,7 @@ module AWS
213
213
  #
214
214
  # validates_acceptance_of :agree, :accept => 'yes'
215
215
  #
216
- # @option options [String] :message A custom error message. The defualt
216
+ # @option options [String] :message A custom error message. The default
217
217
  # +:message+ is "must be accepted".
218
218
  # @option options [Boolean] :allow_nil (true) Skip validation if the
219
219
  # attribute value is +nil+.
@@ -270,7 +270,7 @@ module AWS
270
270
  # @overload validates_confirmation_of(*attributes, options = {}, &block)
271
271
  # @param attributes A list of attribute names to validate.
272
272
  # @param [Hash] options
273
- # @option options [String] :message A custom error message. The defualt
273
+ # @option options [String] :message A custom error message. The default
274
274
  # +:message+ is "doesn't match confirmation".
275
275
  # @option options [Symbol] :on (:save) When this validation is run.
276
276
  # Valid values include:
@@ -435,7 +435,7 @@ module AWS
435
435
  # @param [Hash] options
436
436
  # @option options [required, Enumerable] :in An enumerable object to
437
437
  # ensure the value is not in.
438
- # @option options [String] :message A custom error message. The defualt
438
+ # @option options [String] :message A custom error message. The default
439
439
  # +:message+ is "is reserved".
440
440
  # @option options [Boolean] :allow_nil (false) Skip validation if the
441
441
  # attribute value is +nil+.
@@ -484,7 +484,7 @@ module AWS
484
484
  # @option options [Regexp] :without If the value matches the given
485
485
  # regex, an error will be added.
486
486
  # must match, or an error is added.
487
- # @option options [String] :message A custom error message. The defualt
487
+ # @option options [String] :message A custom error message. The default
488
488
  # +:message+ is "is reserved".
489
489
  # @option options [Boolean] :allow_nil (false) Skip validation if the
490
490
  # attribute value is +nil+.
@@ -521,7 +521,7 @@ module AWS
521
521
  # @param [Hash] options
522
522
  # @option options [required, Enumerable] :in An enumerable object to
523
523
  # check for the value in.
524
- # @option options [String] :message A custom error message. The defualt
524
+ # @option options [String] :message A custom error message. The default
525
525
  # +:message+ is "is not included in the list".
526
526
  # @option options [Boolean] :allow_nil (false) Skip validation if the
527
527
  # attribute value is +nil+.
@@ -632,7 +632,7 @@ module AWS
632
632
  # an even integer. This forces the +:only_integer+ to +true+.
633
633
  # @option options [Numeric] :odd If true, the value may only be
634
634
  # an odd integer. This forces the +:only_integer+ to +true+.
635
- # @option options [String] :message A custom error message. The defualt
635
+ # @option options [String] :message A custom error message. The default
636
636
  # +:message+ is "is not a number".
637
637
  # @option options [Boolean] :allow_nil (false) Skip validation if the
638
638
  # attribute value is +nil+.
@@ -663,7 +663,7 @@ module AWS
663
663
  # @overload validates_presence_of(*attributes, options = {}, &block)
664
664
  # @param attributes A list of attribute names to validate.
665
665
  # @param [Hash] options
666
- # @option options [String] :message A custom error message. The defualt
666
+ # @option options [String] :message A custom error message. The default
667
667
  # +:message+ is "may not be blank".
668
668
  # @option options [Symbol] :on (:save) When this validation is run.
669
669
  # Valid values include:
@@ -98,7 +98,7 @@ module AWS
98
98
  # * AWS::SimpleDB::Item objects (only the item name is populated)
99
99
  # * AWS::SimpleDB::ItemData objects (some or all attributes populated)
100
100
  #
101
- # The defualt mode of an ItemCollection is to yield Item objects with
101
+ # The default mode of an ItemCollection is to yield Item objects with
102
102
  # no populated attributes.
103
103
  #
104
104
  # # only receives item names from SimpleDB
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -489,7 +489,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
489
489
  version: '0'
490
490
  segments:
491
491
  - 0
492
- hash: -3624603295564050615
492
+ hash: -2435489462364326557
493
493
  required_rubygems_version: !ruby/object:Gem::Requirement
494
494
  none: false
495
495
  requirements: