Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bump version and release to 1.1

  • Loading branch information...
commit 2a8c937af7dc9c1e7dc5fb59e8ba70c6cd1b86e8 1 parent d54092e
@josh josh authored
View
4 lib/rack.rb
@@ -11,7 +11,7 @@
module Rack
# The Rack protocol version number implemented.
- VERSION = [1,0]
+ VERSION = [1,1]
# Return the Rack protocol version as a dotted string.
def self.version
@@ -20,7 +20,7 @@ def self.version
# Return the Rack release as a dotted string.
def self.release
- "1.0"
+ "1.1"
end
autoload :Builder, "rack/builder"
View
2  lib/rack/handler/cgi.rb
@@ -15,7 +15,7 @@ def self.serve(app)
env["SCRIPT_NAME"] = "" if env["SCRIPT_NAME"] == "/"
- env.update({"rack.version" => [1,0],
+ env.update({"rack.version" => [1,1],
"rack.input" => $stdin,
"rack.errors" => $stderr,
View
2  lib/rack/handler/fastcgi.rb
@@ -36,7 +36,7 @@ def self.serve(request, app)
rack_input = RewindableInput.new(request.in)
- env.update({"rack.version" => [1,0],
+ env.update({"rack.version" => [1,1],
"rack.input" => rack_input,
"rack.errors" => request.err,
View
2  lib/rack/handler/lsws.rb
@@ -20,7 +20,7 @@ def self.serve(app)
rack_input = RewindableInput.new($stdin.read.to_s)
env.update(
- "rack.version" => [1,0],
+ "rack.version" => [1,1],
"rack.input" => rack_input,
"rack.errors" => $stderr,
"rack.multithread" => false,
View
2  lib/rack/handler/mongrel.rb
@@ -52,7 +52,7 @@ def process(request, response)
rack_input = request.body || StringIO.new('')
rack_input.set_encoding(Encoding::BINARY) if rack_input.respond_to?(:set_encoding)
- env.update({"rack.version" => [1,0],
+ env.update({"rack.version" => [1,1],
"rack.input" => rack_input,
"rack.errors" => $stderr,
View
8 lib/rack/handler/scgi.rb
@@ -7,14 +7,14 @@ module Rack
module Handler
class SCGI < ::SCGI::Processor
attr_accessor :app
-
+
def self.run(app, options=nil)
new(options.merge(:app=>app,
:host=>options[:Host],
:port=>options[:Port],
:socket=>options[:Socket])).listen
end
-
+
def initialize(settings = {})
@app = Rack::Chunked.new(Rack::ContentLength.new(settings[:app]))
@log = Object.new
@@ -22,7 +22,7 @@ def @log.info(*args); end
def @log.error(*args); end
super(settings)
end
-
+
def process_request(request, input_body, socket)
env = {}.replace(request)
env.delete "HTTP_CONTENT_TYPE"
@@ -36,7 +36,7 @@ def process_request(request, input_body, socket)
rack_input = StringIO.new(input_body)
rack_input.set_encoding(Encoding::BINARY) if rack_input.respond_to?(:set_encoding)
- env.update({"rack.version" => [1,0],
+ env.update({"rack.version" => [1,1],
"rack.input" => rack_input,
"rack.errors" => $stderr,
"rack.multithread" => true,
View
2  lib/rack/handler/webrick.rb
@@ -26,7 +26,7 @@ def service(req, res)
rack_input = StringIO.new(req.body.to_s)
rack_input.set_encoding(Encoding::BINARY) if rack_input.respond_to?(:set_encoding)
- env.update({"rack.version" => [1,0],
+ env.update({"rack.version" => [1,1],
"rack.input" => rack_input,
"rack.errors" => $stderr,
View
2  lib/rack/lint.rb
@@ -111,7 +111,7 @@ def check_env(env)
## In addition to this, the Rack environment must include these
## Rack-specific variables:
- ## <tt>rack.version</tt>:: The Array [1,0], representing this version of Rack.
+ ## <tt>rack.version</tt>:: The Array [1,1], representing this version of Rack.
## <tt>rack.url_scheme</tt>:: +http+ or +https+, depending on the request URL.
## <tt>rack.input</tt>:: See below, the input stream.
## <tt>rack.errors</tt>:: See below, the error stream.
View
2  lib/rack/mock.rb
@@ -40,7 +40,7 @@ def string
end
DEFAULT_ENV = {
- "rack.version" => [1,0],
+ "rack.version" => [1,1],
"rack.input" => StringIO.new,
"rack.errors" => StringIO.new,
"rack.multithread" => true,
View
2  test/spec_rack_cgi.rb
@@ -36,7 +36,7 @@
specify "should have rack headers" do
GET("/test")
- response["rack.version"].should.equal [1,0]
+ response["rack.version"].should.equal [1,1]
response["rack.multithread"].should.be false
response["rack.multiprocess"].should.be true
response["rack.run_once"].should.be true
View
2  test/spec_rack_fastcgi.rb
@@ -36,7 +36,7 @@
specify "should have rack headers" do
GET("/test.fcgi")
- response["rack.version"].should.equal [1,0]
+ response["rack.version"].should.equal [1,1]
response["rack.multithread"].should.be false
response["rack.multiprocess"].should.be true
response["rack.run_once"].should.be false
View
2  test/spec_rack_mongrel.rb
@@ -41,7 +41,7 @@
specify "should have rack headers" do
GET("/test")
- response["rack.version"].should.equal [1,0]
+ response["rack.version"].should.equal [1,1]
response["rack.multithread"].should.be true
response["rack.multiprocess"].should.be false
response["rack.run_once"].should.be false
View
2  test/spec_rack_webrick.rb
@@ -39,7 +39,7 @@
specify "should have rack headers" do
GET("/test")
- response["rack.version"].should.equal [1,0]
+ response["rack.version"].should.equal [1,1]
response["rack.multithread"].should.be true
response["rack.multiprocess"].should.be false
response["rack.run_once"].should.be false
Please sign in to comment.
Something went wrong with that request. Please try again.