diff --git a/aws-sdk-resources/lib/aws-sdk-resources/batch.rb b/aws-sdk-resources/lib/aws-sdk-resources/batch.rb index 8fe823c640e..8a8cd3a39ea 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/batch.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/batch.rb @@ -24,7 +24,7 @@ module Resources # You can invoke batch operations against collections and they will # invoke them on each batch. # - # # delets all all objects in this bucket in batches of 1k + # # delete all objects in this bucket in batches of 1k # objects = s3.bucket('aws-sdk').objects # objects.delete # diff --git a/aws-sdk-resources/lib/aws-sdk-resources/documenter/base_operation_documenter.rb b/aws-sdk-resources/lib/aws-sdk-resources/documenter/base_operation_documenter.rb index 0c3a43202ff..dea9f78b75d 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/documenter/base_operation_documenter.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/documenter/base_operation_documenter.rb @@ -193,7 +193,7 @@ def return_type end # The message portion of the @return tag for this operation. This must - # be overidden in sub-classes. + # be overridden in sub-classes. def return_message raise NotImplementedError end diff --git a/aws-sdk-resources/lib/aws-sdk-resources/documenter/data_operation_documenter.rb b/aws-sdk-resources/lib/aws-sdk-resources/documenter/data_operation_documenter.rb index aa768844a5a..aa957307cc5 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/documenter/data_operation_documenter.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/documenter/data_operation_documenter.rb @@ -13,7 +13,7 @@ def docstring def return_message if plural? && structure? - "an array of {Structure structures} with the following memers:\n" + data_members + "an array of {Structure structures} with the following members:\n" + data_members elsif structure? "a {Structure} with the following members:\n" + data_members else diff --git a/aws-sdk-resources/lib/aws-sdk-resources/documenter/operation_documenter.rb b/aws-sdk-resources/lib/aws-sdk-resources/documenter/operation_documenter.rb index 9b2c9dc3d02..3c7e1b8bbec 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/documenter/operation_documenter.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/documenter/operation_documenter.rb @@ -21,7 +21,7 @@ def return_message def return_base_message if returns_data_members - "Calls {#{called_operation}}, returning its reponse." + "Calls {#{called_operation}}, returning its response." end end diff --git a/aws-sdk-resources/lib/aws-sdk-resources/resource.rb b/aws-sdk-resources/lib/aws-sdk-resources/resource.rb index 7f6f796bed1..9fadb7756db 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/resource.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/resource.rb @@ -30,7 +30,7 @@ def initialize(*args) # # ## Basic Usage # - # Waiter will polls until it is succesful, it fails by + # Waiter will polls until it is successful, it fails by # entering a terminal state, or until a maximum number of attempts # are made. # @@ -87,7 +87,7 @@ def initialize(*args) # maximum number of attempts have been made, and the waiter is not # yet successful. # - # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encounted + # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered # while polling for a resource that is not expected. # # @raise [NotImplementedError] Raised when the resource does not diff --git a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/client.rb b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/client.rb index f17ff8e06ba..f3df00f93fa 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/client.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/client.rb @@ -6,7 +6,7 @@ module S3 # # This client uses a process called "envelope encryption". Your private # encryption keys and your data's plain-text are **never** sent to - # Amazon S3. **If you loose you encrption keys, you will not be able to + # Amazon S3. **If you loose you encryption keys, you will not be able to # un-encrypt your data.** # # ## Envelope Encryption Overview @@ -175,7 +175,7 @@ class Client # @option options [Symbol] :envelope_location (:metadata) Where to # store the envelope encryption keys. By default, the envelope is # stored with the encrypted object. If you pass `:instruction_file`, - # then the envelope is stored in a seperate object in Amazon S3. + # then the envelope is stored in a separate object in Amazon S3. # # @option options [String] :instruction_file_suffix ('.instruction') # When `:envelope_location` is `:instruction_file` then the diff --git a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/default_key_provider.rb b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/default_key_provider.rb index a1b83b5e8fd..ba279bf3db4 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/default_key_provider.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/default_key_provider.rb @@ -13,7 +13,7 @@ class DefaultKeyProvider # @option options [required, OpenSSL::PKey::RSA, String] :encryption_key # The master key to use for encrypting objects. # @option options [String] :materials_description ('{}') - # A description of the encyrption key. + # A description of the encryption key. def initialize(options = {}) @encryption_materials = Materials.new( key: options[:encryption_key], diff --git a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/key_provider.rb b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/key_provider.rb index 5135278e863..cf17ecd98fb 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/key_provider.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/encryption/key_provider.rb @@ -8,7 +8,7 @@ module Encryption # * Responds to {#encryption_materials} with an {Materials} object. # # * Responds to {#key_for}, receiving a JSON document String, - # returning an ecryption key. The returned encryption key + # returning an encryption key. The returned encryption key # must be one of: # # * `OpenSSL::PKey::RSA` - for asymmetric encryption diff --git a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/file_uploader.rb b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/file_uploader.rb index 0ce353e08b0..7e4613a54df 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/file_uploader.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/file_uploader.rb @@ -24,8 +24,8 @@ def initialize(options = {}) attr_reader :multipart_threshold # @param [String,Pathname,File,Tempfile] source - # @option options [requried,String] :bucket - # @option options [requried,String] :key + # @option options [required,String] :bucket + # @option options [required,String] :key # @return [void] def upload(source, options = {}) if File.size(source) >= multipart_threshold diff --git a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb index 4bf6a27e6e2..1b8c675f88e 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb @@ -23,8 +23,8 @@ def initialize(options = {}) attr_reader :client # @param [String,Pathname,File,Tempfile] source - # @option options [requried,String] :bucket - # @option options [requried,String] :key + # @option options [required,String] :bucket + # @option options [required,String] :key # @return [void] def upload(source, options = {}) if File.size(source) < MIN_PART_SIZE @@ -120,7 +120,7 @@ def upload_in_threads(pending, completed) thread.abort_on_exception = true threads << thread end - errors = threads.map(&:value).compact + threads.map(&:value).compact end def compute_default_part_size(source_size) diff --git a/aws-sdk-resources/lib/aws-sdk-resources/services/sqs/queue_poller.rb b/aws-sdk-resources/lib/aws-sdk-resources/services/sqs/queue_poller.rb index 6347115c836..203c25a0378 100644 --- a/aws-sdk-resources/lib/aws-sdk-resources/services/sqs/queue_poller.rb +++ b/aws-sdk-resources/lib/aws-sdk-resources/services/sqs/queue_poller.rb @@ -172,7 +172,7 @@ module SQS # * Configure a {#before_request} callback. # # ``` - # poller.before_reqeust do |stats| + # poller.before_request do |stats| # logger.info("requests: #{stats.request_count}") # logger.info("messages: #{stats.received_message_count}") # logger.info("last-timestamp: #{stats.last_message_received_at}") @@ -223,7 +223,7 @@ def initialize(queue_url, options = {}) # Registers a callback that is invoked once before every polling # attempt. # - # poller.before_reqeust do |stats| + # poller.before_request do |stats| # logger.info("requests: #{stats.request_count}") # logger.info("messages: #{stats.received_message_count}") # logger.info("last-timestamp: #{stats.last_message_received_at}") @@ -239,7 +239,7 @@ def initialize(queue_url, options = {}) # then the poller will exit normally before making the next long # poll request. # - # poller.before_reqeust do |stats| + # poller.before_request do |stats| # throw :stop_polling if stats.received_messages >= 100 # end #