Skip to content
This repository
Browse code

fix whitespace errors

  • Loading branch information...
commit 49b241eb0ba9ec2f53625f404dcbd503d4f281c6 1 parent ecaec50
Blake Mizerany authored May 23, 2011
2  contrib/rack_logo.svg
... ...
@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2  
-<!-- Created with Inkscape (http://www.inkscape.org/) 
  2
+<!-- Created with Inkscape (http://www.inkscape.org/)
3 3
   by Armin Ronacher (mitsuhiko), MIT-licensed.
4 4
 -->
5 5
 <svg
2  lib/rack/auth/digest/md5.rb
@@ -24,7 +24,7 @@ class MD5 < AbstractHandler
24 24
         def initialize(app, realm=nil, opaque=nil, &authenticator)
25 25
           @passwords_hashed = nil
26 26
           if opaque.nil? and realm.respond_to? :values_at
27  
-            realm, opaque, @passwords_hashed = realm.values_at :realm, :opaque, :passwords_hashed 
  27
+            realm, opaque, @passwords_hashed = realm.values_at :realm, :opaque, :passwords_hashed
28 28
           end
29 29
           super(app, realm, &authenticator)
30 30
           @opaque = opaque
2  lib/rack/builder.rb
@@ -113,7 +113,7 @@ def run(app)
113 113
     #     end
114 114
     #   end
115 115
     #
116  
-    # This example includes a piece of middleware which will run before requests hit +Heartbeat+. 
  116
+    # This example includes a piece of middleware which will run before requests hit +Heartbeat+.
117 117
     #
118 118
     def map(path, &block)
119 119
       if @ins.last.kind_of? Hash
2  lib/rack/handler/fastcgi.rb
@@ -28,7 +28,7 @@ def self.run(app, options={})
28 28
           serve request, app
29 29
         }
30 30
       end
31  
-      
  31
+
32 32
       def self.valid_options
33 33
         {
34 34
           "Host=HOST" => "Hostname to listen on (default: localhost)",
2  lib/rack/handler/scgi.rb
@@ -15,7 +15,7 @@ def self.run(app, options=nil)
15 15
                           :port=>options[:Port],
16 16
                           :socket=>options[:Socket])).listen
17 17
       end
18  
-      
  18
+
19 19
       def self.valid_options
20 20
         {
21 21
           "Host=HOST" => "Hostname to listen on (default: localhost)",
2  lib/rack/handler/webrick.rb
@@ -12,7 +12,7 @@ def self.run(app, options={})
12 12
         yield @server  if block_given?
13 13
         @server.start
14 14
       end
15  
-      
  15
+
16 16
       def self.valid_options
17 17
         {
18 18
           "Host=HOST" => "Hostname to listen on (default: localhost)",
2  lib/rack/multipart/generator.rb
@@ -68,7 +68,7 @@ def flattened_params
68 68
           h
69 69
         end
70 70
       end
71  
-   
  71
+
72 72
       def content_for_tempfile(io, file, name)
73 73
 <<-EOF
74 74
 --#{MULTIPART_BOUNDARY}\r
2  lib/rack/multipart/parser.rb
@@ -15,7 +15,7 @@ def parse
15 15
         fast_forward_to_first_boundary
16 16
 
17 17
         loop do
18  
-          head, filename, content_type, name, body = 
  18
+          head, filename, content_type, name, body =
19 19
             get_current_head_and_filename_and_content_type_and_name_and_body
20 20
 
21 21
           # Save the rest.
10  lib/rack/server.rb
@@ -47,11 +47,11 @@ def parse!(args)
47 47
           opts.on("-p", "--port PORT", "use PORT (default: 9292)") { |port|
48 48
             options[:Port] = port
49 49
           }
50  
-          
  50
+
51 51
           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|
52 52
             name, value = name.split('=', 2)
53 53
             value = true if value.nil?
54  
-            options[name.to_sym] = value              
  54
+            options[name.to_sym] = value
55 55
           }
56 56
 
57 57
           opts.on("-E", "--env ENVIRONMENT", "use ENVIRONMENT for defaults (default: development)") { |e|
@@ -72,7 +72,7 @@ def parse!(args)
72 72
           opts.on_tail("-h", "-?", "--help", "Show this message") do
73 73
             puts opts
74 74
             puts handler_opts(options)
75  
-            
  75
+
76 76
             exit
77 77
           end
78 78
 
@@ -92,7 +92,7 @@ def parse!(args)
92 92
         options[:config] = args.last if args.last
93 93
         options
94 94
       end
95  
-      
  95
+
96 96
       def handler_opts(options)
97 97
         begin
98 98
           info = []
@@ -100,7 +100,7 @@ def handler_opts(options)
100 100
           if server && server.respond_to?(:valid_options)
101 101
             info << ""
102 102
             info << "Server-specific options for #{server.name}:"
103  
-          
  103
+
104 104
             has_options = false
105 105
             server.valid_options.each do |name, description|
106 106
               next if name.to_s.match(/^(Host|Port)[^a-zA-Z]/) # ignore handler's host and port options, we do our own.
2  test/spec_utils.rb
@@ -76,7 +76,7 @@
76 76
       should.equal "foo" => "bar", "baz" => ""
77 77
     Rack::Utils.parse_nested_query("my+weird+field=q1%212%22%27w%245%267%2Fz8%29%3F").
78 78
       should.equal "my weird field" => "q1!2\"'w$5&7/z8)?"
79  
-      
  79
+
80 80
     Rack::Utils.parse_nested_query("a=b&pid%3D1234=1023").
81 81
       should.equal "pid=1234" => "1023", "a" => "b"
82 82
 

0 notes on commit 49b241e

Please sign in to comment.
Something went wrong with that request. Please try again.