Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix whitespace errors

  • Loading branch information...
commit 49b241eb0ba9ec2f53625f404dcbd503d4f281c6 1 parent ecaec50
@bmizerany bmizerany authored
View
2  contrib/rack_logo.svg
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/)
+<!-- Created with Inkscape (http://www.inkscape.org/)
by Armin Ronacher (mitsuhiko), MIT-licensed.
-->
<svg
View
2  lib/rack/auth/digest/md5.rb
@@ -24,7 +24,7 @@ class MD5 < AbstractHandler
def initialize(app, realm=nil, opaque=nil, &authenticator)
@passwords_hashed = nil
if opaque.nil? and realm.respond_to? :values_at
- realm, opaque, @passwords_hashed = realm.values_at :realm, :opaque, :passwords_hashed
+ realm, opaque, @passwords_hashed = realm.values_at :realm, :opaque, :passwords_hashed
end
super(app, realm, &authenticator)
@opaque = opaque
View
2  lib/rack/builder.rb
@@ -113,7 +113,7 @@ def run(app)
# end
# end
#
- # This example includes a piece of middleware which will run before requests hit +Heartbeat+.
+ # This example includes a piece of middleware which will run before requests hit +Heartbeat+.
#
def map(path, &block)
if @ins.last.kind_of? Hash
View
2  lib/rack/handler/fastcgi.rb
@@ -28,7 +28,7 @@ def self.run(app, options={})
serve request, app
}
end
-
+
def self.valid_options
{
"Host=HOST" => "Hostname to listen on (default: localhost)",
View
2  lib/rack/handler/scgi.rb
@@ -15,7 +15,7 @@ def self.run(app, options=nil)
:port=>options[:Port],
:socket=>options[:Socket])).listen
end
-
+
def self.valid_options
{
"Host=HOST" => "Hostname to listen on (default: localhost)",
View
2  lib/rack/handler/webrick.rb
@@ -12,7 +12,7 @@ def self.run(app, options={})
yield @server if block_given?
@server.start
end
-
+
def self.valid_options
{
"Host=HOST" => "Hostname to listen on (default: localhost)",
View
2  lib/rack/multipart/generator.rb
@@ -68,7 +68,7 @@ def flattened_params
h
end
end
-
+
def content_for_tempfile(io, file, name)
<<-EOF
--#{MULTIPART_BOUNDARY}\r
View
2  lib/rack/multipart/parser.rb
@@ -15,7 +15,7 @@ def parse
fast_forward_to_first_boundary
loop do
- head, filename, content_type, name, body =
+ head, filename, content_type, name, body =
get_current_head_and_filename_and_content_type_and_name_and_body
# Save the rest.
View
10 lib/rack/server.rb
@@ -47,11 +47,11 @@ def parse!(args)
opts.on("-p", "--port PORT", "use PORT (default: 9292)") { |port|
options[:Port] = port
}
-
+
opts.on("-O", "--option NAME[=VALUE]", "pass VALUE to the server as option NAME. If no VALUE, sets it to true. Run '#{$0} -s SERVER -h' to get a list of options for SERVER") { |name|
name, value = name.split('=', 2)
value = true if value.nil?
- options[name.to_sym] = value
+ options[name.to_sym] = value
}
opts.on("-E", "--env ENVIRONMENT", "use ENVIRONMENT for defaults (default: development)") { |e|
@@ -72,7 +72,7 @@ def parse!(args)
opts.on_tail("-h", "-?", "--help", "Show this message") do
puts opts
puts handler_opts(options)
-
+
exit
end
@@ -92,7 +92,7 @@ def parse!(args)
options[:config] = args.last if args.last
options
end
-
+
def handler_opts(options)
begin
info = []
@@ -100,7 +100,7 @@ def handler_opts(options)
if server && server.respond_to?(:valid_options)
info << ""
info << "Server-specific options for #{server.name}:"
-
+
has_options = false
server.valid_options.each do |name, description|
next if name.to_s.match(/^(Host|Port)[^a-zA-Z]/) # ignore handler's host and port options, we do our own.
View
2  test/spec_utils.rb
@@ -76,7 +76,7 @@
should.equal "foo" => "bar", "baz" => ""
Rack::Utils.parse_nested_query("my+weird+field=q1%212%22%27w%245%267%2Fz8%29%3F").
should.equal "my weird field" => "q1!2\"'w$5&7/z8)?"
-
+
Rack::Utils.parse_nested_query("a=b&pid%3D1234=1023").
should.equal "pid=1234" => "1023", "a" => "b"
Please sign in to comment.
Something went wrong with that request. Please try again.