Skip to content

Commit

Permalink
Merge pull request #820 from alkesh26/typo_fixing_and_code_changes
Browse files Browse the repository at this point in the history
Simple type fixes and method change
  • Loading branch information
trevorrowe committed May 20, 2015
2 parents 3ae9fa4 + ca07bed commit 7b3f652
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aws-sdk-core/bin/aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def env_bool key, default
if ENV.key?(key)
!['0', 'false', 'no', 'off'].include?(ENV[key].downcase)
['0', 'false', 'no', 'off'].exclude?(ENV[key].downcase)
else
default
end
Expand Down
2 changes: 1 addition & 1 deletion aws-sdk-core/lib/aws-sdk-core/api/customizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def reshape_members(member_regex, modifications)
if member_regex.is_a?(String)
member_regex = /^#{member_regex}$/
end
@client_class.api.definition['shapes'].each do |shape_name, shape|
@client_class.api.definition['shapes'].each_value do |shape|
if shape['members']
shape['members'].each do |member_name, member_ref|
if member_name.match(member_regex)
Expand Down
2 changes: 1 addition & 1 deletion aws-sdk-core/lib/aws-sdk-core/plugins/glacier_checksums.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Plugins
# * `:upload_multipart_part`
#
# The `:upload_archive` and `:upload_multipart_part` operations
# accept a `:checksum` request paramter. If this param
# accept a `:checksum` request parameter. If this param
# is present, then the checksum is assumed to be the proper
# tree hash of the file to be uploaded. If this param is
# not present, then the required tree hash checksum will
Expand Down
2 changes: 1 addition & 1 deletion aws-sdk-core/lib/seahorse/client/http/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Http
# headers[:Authorization] = 'Abc'
#
# headers.keys
# #=> ['content-length', 'authorization']]
# #=> ['content-length', 'authorization']
#
# headers.values
# #=> ['100', 'Abc']
Expand Down
2 changes: 1 addition & 1 deletion aws-sdk-core/lib/seahorse/client/logging/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Client
module Logging

# A log formatter receives a {Response} object and return
# a log message as a string.. When you construct a {Formatter}, you provide
# a log message as a string. When you construct a {Formatter}, you provide
# a pattern string with substitutions.
#
# pattern = ':operation :http_response_status_code :time'
Expand Down
2 changes: 1 addition & 1 deletion aws-sdk-core/lib/seahorse/client/net_http/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def initialize(bytes_expected, bytes_received)
# @api private
DNS_ERROR_MESSAGE = 'getaddrinfo: nodename nor servname provided, or not known'

# Raised when a {Handler} can not construct a `Net::HTTP::Request`
# Raised when a {Handler} cannot construct a `Net::HTTP::Request`
# from the given http verb.
class InvalidHttpVerbError < StandardError; end

Expand Down
2 changes: 1 addition & 1 deletion aws-sdk-core/lib/seahorse/model/shapes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def shape_class(type)
if @types.key?(type)
@types[type]
else
raise ArgumentError, "unregisterd type `#{type}'"
raise ArgumentError, "unregistered type `#{type}'"
end
end

Expand Down

0 comments on commit 7b3f652

Please sign in to comment.