Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix typos

  • Loading branch information...
commit 3ee561469dd61cc7776af4eeb06b97dcbf98f39b 1 parent a210145
@vipulnsward vipulnsward authored
View
2  SPEC
@@ -207,7 +207,7 @@ but only contain keys that consist of
letters, digits, <tt>_</tt> or <tt>-</tt> and start with a letter.
The values of the header must be Strings,
consisting of lines (for multiple header values, e.g. multiple
-<tt>Set-Cookie</tt> values) seperated by "\n".
+<tt>Set-Cookie</tt> values) separated by "\n".
The lines must not contain characters below 037.
=== The Content-Type
There must not be a <tt>Content-Type</tt>, when the +Status+ is 1xx,
View
2  lib/rack/backports/uri/common_18.rb
@@ -46,7 +46,7 @@ def self.encode_www_form_component(s)
# Decode given +str+ of URL-encoded form data.
#
- # This decods + to SP.
+ # This decodes + to SP.
#
# See URI.encode_www_form_component, URI.decode_www_form
def self.decode_www_form_component(str, enc=nil)
View
8 lib/rack/deflater.rb
@@ -103,13 +103,13 @@ def initialize(body)
end
def each
- deflater = ::Zlib::Deflate.new(*DEFLATE_ARGS)
- @body.each { |part| yield deflater.deflate(part, Zlib::SYNC_FLUSH) }
- yield deflater.finish
+ deflator = ::Zlib::Deflate.new(*DEFLATE_ARGS)
+ @body.each { |part| yield deflator.deflate(part, Zlib::SYNC_FLUSH) }
+ yield deflator.finish
nil
ensure
@body.close if @body.respond_to?(:close)
- deflater.close
+ deflator.close
end
end
end
View
2  lib/rack/lint.rb
@@ -584,7 +584,7 @@ def check_headers(header)
assert("a header value must be a String, but the value of " +
"'#{key}' is a #{value.class}") { value.kind_of? String }
## consisting of lines (for multiple header values, e.g. multiple
- ## <tt>Set-Cookie</tt> values) seperated by "\n".
+ ## <tt>Set-Cookie</tt> values) separated by "\n".
value.split("\n").each { |item|
## The lines must not contain characters below 037.
assert("invalid header value #{key}: #{item.inspect}") {
View
2  lib/rack/sendfile.rb
@@ -22,7 +22,7 @@ module Rack
#
# Nginx supports the X-Accel-Redirect header. This is similar to X-Sendfile
# but requires parts of the filesystem to be mapped into a private URL
- # hierarachy.
+ # hierarchy.
#
# The following example shows the Nginx configuration required to create
# a private "/files/" area, enable X-Accel-Redirect, and pass the special
View
4 lib/rack/session/abstract/id.rb
@@ -289,7 +289,7 @@ def session_exists?(env)
value && !value.empty?
end
- # Session should be commited if it was loaded, any of specific options like :renew, :drop
+ # Session should be committed if it was loaded, any of specific options like :renew, :drop
# or :expire_after was given and the security permissions match. Skips if skip is given.
def commit_session?(env, session, options)
@@ -386,7 +386,7 @@ def set_session(env, sid, session, options)
raise '#set_session not implemented.'
end
- # All thread safety and session destroy proceedures should occur here.
+ # All thread safety and session destroy procedures should occur here.
# Should return a new session id or nil if options[:drop]
def destroy_session(env, sid, options)
View
4 lib/rack/utils.rb
@@ -203,7 +203,7 @@ def best_q_match(q_value_header, available_mimes)
if //.respond_to?(:encoding)
ESCAPE_HTML_PATTERN = Regexp.union(*ESCAPE_HTML.keys)
else
- # On 1.8, there is a kcode = 'u' bug that allows for XSS otherwhise
+ # On 1.8, there is a kcode = 'u' bug that allows for XSS otherwise
# TODO doesn't apply to jruby, so a better condition above might be preferable?
ESCAPE_HTML_PATTERN = /#{Regexp.union(*ESCAPE_HTML.keys)}/n
end
@@ -348,7 +348,7 @@ def rfc2822(time)
# of '% %b %Y'.
# It assumes that the time is in GMT to comply to the RFC 2109.
#
- # NOTE: I'm not sure the RFC says it requires GMT, but is ambigous enough
+ # NOTE: I'm not sure the RFC says it requires GMT, but is ambiguous enough
# that I'm certain someone implemented only that option.
# Do not use %a and %b from Time.strptime, it would use localized names for
# weekday and month.
Please sign in to comment.
Something went wrong with that request. Please try again.