rack
12 years agoprevent crash when cookie doesn't contain "--" rack-1.2
Santiago Pastorino [Mon, 22 Apr 2013 23:20:51 +0000 (20:20 -0300)]
prevent crash when cookie doesn't contain "--"

This backports 881ce764f3fd70a20c5800892a132f1e6c8e7c50 so that rack
won't crash when there isn't a "--" in the rack_session cookie

Fixes #523

Conflicts:
lib/rack/session/cookie.rb
test/spec_session_cookie.rb

12 years agoAdd Gemfile
Santiago Pastorino [Mon, 22 Apr 2013 23:56:05 +0000 (20:56 -0300)]
Add Gemfile

12 years agoBump version number 1.2.8
James Tucker [Fri, 8 Feb 2013 03:00:33 +0000 (19:00 -0800)]
Bump version number

12 years agoUpdate README for todays releases
James Tucker [Fri, 8 Feb 2013 02:59:02 +0000 (18:59 -0800)]
Update README for todays releases

12 years agoUse secure_compare for hmac comparison
James Tucker [Wed, 6 Feb 2013 23:35:11 +0000 (15:35 -0800)]
Use secure_compare for hmac comparison

 * Closes CVE-2013-0263

12 years agoAdd secure_compare to Rack::Utils
James Tucker [Wed, 6 Feb 2013 23:31:53 +0000 (15:31 -0800)]
Add secure_compare to Rack::Utils

Conflicts:
lib/rack/utils.rb
test/spec_utils.rb

12 years agoBump version 1.2.7
James Tucker [Sun, 13 Jan 2013 22:00:43 +0000 (14:00 -0800)]
Bump version

12 years agoUpdate README for release. Add security section.
James Tucker [Sun, 13 Jan 2013 21:55:50 +0000 (13:55 -0800)]
Update README for release. Add security section.

Conflicts:
README

12 years agoSquash warnings in spec_auth
James Tucker [Sun, 13 Jan 2013 21:33:08 +0000 (13:33 -0800)]
Squash warnings in spec_auth

12 years agoReimplement auth scheme fix
James Tucker [Sun, 13 Jan 2013 21:10:20 +0000 (13:10 -0800)]
Reimplement auth scheme fix

 * Add Rack::Auth.add_scheme to enable folks to fix anything that breaks
 * Add common auth schemes, MS ones, AWS ones, etc are missing, as unlikely
 * Checked Rails - they don't use our authorization code
 * Checked Warden - uses rails
 * Checked Omniauth - uses rails
 * Checked doorkeeper - users rails
 * Checked rack-authentication - does it's own thing
 * Checked warden-oauth - doesn't do headers
 * Checked devise - uses rails
 * Checked oauth2-rack - header creation only
 * Checked rack-oauth2-server - does it's own thing
 * Probably missed a bunch, but that'll have to do

12 years agoRevert incorrect change to release number 1.2.6
James Tucker [Mon, 7 Jan 2013 01:29:57 +0000 (17:29 -0800)]
Revert incorrect change to release number

12 years agoBump to 1.2.6
James Tucker [Mon, 7 Jan 2013 01:28:09 +0000 (17:28 -0800)]
Bump to 1.2.6

12 years agoUpdate README based on master
James Tucker [Sun, 6 Jan 2013 23:46:33 +0000 (15:46 -0800)]
Update README based on master

12 years agoFix parsing performance for unquoted filenames
James Tucker [Fri, 4 Jan 2013 16:02:50 +0000 (11:02 -0500)]
Fix parsing performance for unquoted filenames

Special thanks to Paul Rogers & Eric Wong

13 years agoAdd warning to strongly recommend to people to have secrets protecting their cookies
James Tucker [Mon, 19 Mar 2012 02:11:09 +0000 (19:11 -0700)]
Add warning to strongly recommend to people to have secrets protecting their cookies

13 years agoAdd release notes, and bump version 1.2.5
James Tucker [Wed, 28 Dec 2011 02:47:26 +0000 (22:47 -0400)]
Add release notes, and bump version

13 years agorubygems no longer preloads thread, which means we need it for Mutex
James Tucker [Wed, 28 Dec 2011 01:05:58 +0000 (21:05 -0400)]
rubygems no longer preloads thread, which means we need it for Mutex

13 years agoBackport `Limit the size of parameter keys`
James Tucker [Wed, 28 Dec 2011 00:59:42 +0000 (20:59 -0400)]
Backport `Limit the size of parameter keys`

Conflicts:

lib/rack/utils.rb
test/spec_request.rb

13 years agoMerge pull request #270 from mtfuji/rack-1.2
Michael Fellinger [Sat, 19 Nov 2011 19:24:44 +0000 (11:24 -0800)]
Merge pull request #270 from mtfuji/rack-1.2

Rack 1.2

13 years agoadd .docx and .xlsx mime types.
John Doe [Sat, 19 Nov 2011 09:51:24 +0000 (18:51 +0900)]
add .docx and .xlsx mime types.

13 years agoUpdate readme 1.2.4
James Tucker [Fri, 16 Sep 2011 23:58:38 +0000 (16:58 -0700)]
Update readme

13 years agoBump version
James Tucker [Fri, 16 Sep 2011 23:56:43 +0000 (16:56 -0700)]
Bump version

13 years agoEnsure that the MRI regex engine isn't fooled by bad unicode
James Tucker [Fri, 16 Sep 2011 23:56:13 +0000 (16:56 -0700)]
Ensure that the MRI regex engine isn't fooled by bad unicode

13 years agoEdited lib/rack/sendfile.rb via GitHub
nleguen [Sat, 2 Jul 2011 20:57:29 +0000 (13:57 -0700)]
Edited lib/rack/sendfile.rb via GitHub

14 years agoMinor error in documentation regarding the order of parameters in HTTP_X_ACCEL_MAPPING.
Samuel Williams [Wed, 29 Jun 2011 17:21:14 +0000 (10:21 -0700)]
Minor error in documentation regarding the order of parameters in HTTP_X_ACCEL_MAPPING.

Conflicts:

lib/rack/sendfile.rb

14 years agoupdate core team list
Konstantin Haase [Thu, 16 Jun 2011 09:15:30 +0000 (11:15 +0200)]
update core team list

14 years agoUpdate gemspec for 1.2.3 release 1.2.3
James Tucker [Mon, 23 May 2011 07:41:00 +0000 (00:41 -0700)]
Update gemspec for 1.2.3 release

14 years agoUpdate for 1.2.3 release
James Tucker [Mon, 23 May 2011 07:31:33 +0000 (00:31 -0700)]
Update for 1.2.3 release

14 years agoPull in 1.3.0 release notes to README
James Tucker [Mon, 23 May 2011 07:23:54 +0000 (00:23 -0700)]
Pull in 1.3.0 release notes to README

14 years agoWe don't actually use rdoctask
James Tucker [Mon, 23 May 2011 05:50:04 +0000 (22:50 -0700)]
We don't actually use rdoctask

14 years agoUpdate SPEC
James Tucker [Mon, 23 May 2011 05:49:10 +0000 (22:49 -0700)]
Update SPEC

14 years agoGrammatical corrections (thanks digitalally)
James Tucker [Mon, 23 May 2011 05:48:17 +0000 (22:48 -0700)]
Grammatical corrections (thanks digitalally)

14 years agoUpdate links and correct a spelling error
James Tucker [Mon, 23 May 2011 05:19:33 +0000 (22:19 -0700)]
Update links and correct a spelling error

14 years ago1.9 not having '.' in load path
raggi [Tue, 3 May 2011 05:27:10 +0000 (22:27 -0700)]
1.9 not having '.' in load path

14 years agoForce content-length to 0 so apache mod_xsendfile does not hang
Maël Clérambault [Fri, 18 Mar 2011 23:05:42 +0000 (16:05 -0700)]
Force content-length to 0 so apache mod_xsendfile does not hang

14 years agoin auth/digest/params, do not accidentially pass block used for construction to Hash...
Konstantin Haase [Fri, 18 Mar 2011 13:35:53 +0000 (14:35 +0100)]
in auth/digest/params, do not accidentially pass block used for construction to Hash#initialize, where it is used for default values at might be triggered again later on

14 years agoimprove gemloader to include runtime deps if any, and not break on complex requirements
raggi [Thu, 10 Feb 2011 02:32:26 +0000 (18:32 -0800)]
improve gemloader to include runtime deps if any, and not break on complex requirements

14 years agoAdding SPEC with rake task dependencies
raggi [Sat, 1 Jan 2011 01:18:27 +0000 (20:18 -0500)]
Adding SPEC with rake task dependencies

14 years agoUse gemloader in fulltest
raggi [Mon, 20 Dec 2010 03:25:45 +0000 (19:25 -0800)]
Use gemloader in fulltest

14 years agoAdd gemloader script that will provide the ability to activate development dependenci...
raggi [Mon, 20 Dec 2010 03:19:47 +0000 (19:19 -0800)]
Add gemloader script that will provide the ability to activate development dependencies at the correct version for point releases

14 years agoAdd stage to gitignore
raggi [Mon, 20 Dec 2010 03:06:45 +0000 (19:06 -0800)]
Add stage to gitignore

14 years agoResolve absolute path of config so daemonize works
Andrew Bortz [Tue, 7 Sep 2010 20:40:48 +0000 (04:40 +0800)]
Resolve absolute path of config so daemonize works

14 years agoRack::Logger conforms to Rack::Lint, closes Lighthouse #89
raggi [Mon, 4 Oct 2010 01:09:13 +0000 (22:09 -0300)]
Rack::Logger conforms to Rack::Lint, closes Lighthouse #89

14 years agoAdding Rakefile to rack.gemspec
stahnma [Fri, 10 Sep 2010 22:03:15 +0000 (06:03 +0800)]
Adding Rakefile to rack.gemspec

14 years agoSkip Rack::Lint::InputWrapper serialization in TestRequest. Makes tests pass on Ruby...
Konstantin Haase [Wed, 8 Sep 2010 12:59:52 +0000 (20:59 +0800)]
Skip Rack::Lint::InputWrapper serialization in TestRequest. Makes tests pass on Ruby 1.9.1p378.

14 years agoThe application should be loaded prior to daemonization to prevent issues with chdir...
raggi [Thu, 8 Jul 2010 13:23:39 +0000 (14:23 +0100)]
The application should be loaded prior to daemonization to prevent issues with chdir etc.

14 years agoDebugging should not change semantics of load path or require modification before...
raggi [Thu, 8 Jul 2010 13:23:12 +0000 (14:23 +0100)]
Debugging should not change semantics of load path or require modification before loading the application

14 years agoUpdate gitignore to ignore compiled classes and the lighttpd error log
raggi [Thu, 17 Jun 2010 11:18:27 +0000 (08:18 -0300)]
Update gitignore to ignore compiled classes and the lighttpd error log

14 years agoUse ::File.unlink in place of Tempfile#unlink to avoid 1.9.1 bug
raggi [Thu, 17 Jun 2010 11:17:31 +0000 (08:17 -0300)]
Use ::File.unlink in place of Tempfile#unlink to avoid 1.9.1 bug

14 years agoFix ESCAPE_HTML_PATTERN construction
Michael Fellinger [Thu, 17 Jun 2010 02:43:36 +0000 (11:43 +0900)]
Fix ESCAPE_HTML_PATTERN construction

14 years agoPrepare for 1.2.2 1.2.2
Christian Neukirchen [Sun, 13 Mar 2011 00:36:34 +0000 (01:36 +0100)]
Prepare for 1.2.2

14 years agoMD5 Digest auth: fail if authenticator returns nil
Brad Ediger [Fri, 4 Mar 2011 17:50:27 +0000 (11:50 -0600)]
MD5 Digest auth: fail if authenticator returns nil

Fixes the authenticator API to deny access if nil is returned from the
authenticator block. Without this patch, the nil gets to_s'd to "" and
an empty password would be accepted.

Signed-off-by: Christian Neukirchen <chneukirchen@gmail.com>
15 years agoFix Rakefile 1.2.1
Christian Neukirchen [Tue, 15 Jun 2010 09:52:37 +0000 (11:52 +0200)]
Fix Rakefile

15 years agoPrepare 1.2.1
Christian Neukirchen [Tue, 15 Jun 2010 09:39:08 +0000 (11:39 +0200)]
Prepare 1.2.1

15 years agoRename spec/ back to test/
Christian Neukirchen [Tue, 15 Jun 2010 09:37:52 +0000 (11:37 +0200)]
Rename spec/ back to test/

15 years agoMake CGI handler obey rack spec by wrapping stdin in a rewindable
visudo [Wed, 12 May 2010 04:43:31 +0000 (00:43 -0400)]
Make CGI handler obey rack spec by wrapping stdin in a rewindable
stream.

Signed-off-by: raggi <jftucker@gmail.com>
15 years agoMerge remote branch 'official/master'
Christian Neukirchen [Sun, 13 Jun 2010 17:57:49 +0000 (19:57 +0200)]
Merge remote branch 'official/master'

15 years agoMore gemspec fixes 1.2
Christian Neukirchen [Sun, 13 Jun 2010 17:38:43 +0000 (19:38 +0200)]
More gemspec fixes

15 years agoHard-core version number in gemspec
Christian Neukirchen [Sun, 13 Jun 2010 17:37:40 +0000 (19:37 +0200)]
Hard-core version number in gemspec

15 years agoPush Rack.release to 1.2
Christian Neukirchen [Sun, 13 Jun 2010 17:36:13 +0000 (19:36 +0200)]
Push Rack.release to 1.2

15 years agoLast README updates
Christian Neukirchen [Sun, 13 Jun 2010 17:35:35 +0000 (19:35 +0200)]
Last README updates

15 years agoMerge branch 'bacon'
Christian Neukirchen [Sun, 13 Jun 2010 17:34:01 +0000 (19:34 +0200)]
Merge branch 'bacon'

15 years agoFix gem dependencies to use bacon
Christian Neukirchen [Sun, 13 Jun 2010 15:00:34 +0000 (17:00 +0200)]
Fix gem dependencies to use bacon

15 years agoSilence test suite
Christian Neukirchen [Sun, 13 Jun 2010 14:54:03 +0000 (16:54 +0200)]
Silence test suite

15 years agoFix thin specs for 1.0 and bacon
raggi [Sun, 13 Jun 2010 12:18:07 +0000 (09:18 -0300)]
Fix thin specs for 1.0 and bacon
Fix TestRequest for servers that add unserializables in env.

15 years agoImprove performance and flexibility of Rack::Utils.escape_html
Michael Fellinger [Sun, 13 Jun 2010 09:40:09 +0000 (18:40 +0900)]
Improve performance and flexibility of Rack::Utils.escape_html

15 years agorequire time in response because it's used for cookies
Michael Fellinger [Sat, 12 Jun 2010 14:34:13 +0000 (23:34 +0900)]
require time in response because it's used for cookies

15 years agoFix Handler::CGI so it uses $stdin.binmode
Michael Fellinger [Sat, 12 Jun 2010 14:33:52 +0000 (23:33 +0900)]
Fix Handler::CGI so it uses $stdin.binmode

15 years agoFix spec requires and the missing ones
Michael Fellinger [Sat, 12 Jun 2010 14:33:25 +0000 (23:33 +0900)]
Fix spec requires and the missing ones

15 years agoUpdate README and gemspec
Christian Neukirchen [Sat, 12 Jun 2010 10:43:36 +0000 (12:43 +0200)]
Update README and gemspec

15 years agoPorted specs to bacon
Michael Fellinger [Sat, 12 Jun 2010 09:44:04 +0000 (18:44 +0900)]
Ported specs to bacon

15 years agoAdd Request.trace? and Request.options?
Michael Fellinger [Fri, 11 Jun 2010 01:29:10 +0000 (10:29 +0900)]
Add Request.trace? and Request.options?

15 years agoAdd mime-type for webm
Michael Fellinger [Thu, 10 Jun 2010 03:45:39 +0000 (12:45 +0900)]
Add mime-type for webm

15 years agoRemove trailing whitespace
Michael Fellinger [Wed, 9 Jun 2010 03:59:59 +0000 (12:59 +0900)]
Remove trailing whitespace

15 years agomake sure PATH_INFO and SCRIPT_NAME get reset
Konstantin Haase [Tue, 8 Jun 2010 19:06:39 +0000 (21:06 +0200)]
make sure PATH_INFO and SCRIPT_NAME get reset

15 years agodon't dupe env in urlmap so modifications down the chain persist back up
Tim Connor [Sat, 1 May 2010 06:57:36 +0000 (23:57 -0700)]
don't dupe env in urlmap so modifications down the chain persist back up

15 years agotest for mapping in builder
Tim Connor [Sat, 1 May 2010 06:38:07 +0000 (23:38 -0700)]
test for mapping in builder

15 years agoDon't use 'unknown' in HTTP_X_FORWARDED_FOR
Michael Fellinger [Wed, 9 Jun 2010 03:44:59 +0000 (12:44 +0900)]
Don't use 'unknown' in HTTP_X_FORWARDED_FOR

15 years agoset ENV["RACK_ENV"] to options[:environment] as many frameworks rely on this
Timur Batyrshin [Wed, 31 Mar 2010 11:29:47 +0000 (19:29 +0800)]
set ENV["RACK_ENV"] to options[:environment] as many frameworks rely on this

15 years agoImplement proper RFC 2822 Time format based on RFC 2109 example for cookie expires
Michael Fellinger [Tue, 8 Jun 2010 16:03:01 +0000 (01:03 +0900)]
Implement proper RFC 2822 Time format based on RFC 2109 example for cookie expires

15 years agoGet rid of a few more warnings
Michael Fellinger [Tue, 8 Jun 2010 15:29:10 +0000 (00:29 +0900)]
Get rid of a few more warnings

15 years agoAvoid warning on 1.8.7 regarding File.to_path
Michael Fellinger [Tue, 8 Jun 2010 15:27:03 +0000 (00:27 +0900)]
Avoid warning on 1.8.7 regarding File.to_path

15 years agoThe correct IP from HTTP_X_FORWARDED_FOR is the first one
Michael Fellinger [Tue, 8 Jun 2010 15:22:16 +0000 (00:22 +0900)]
The correct IP from HTTP_X_FORWARDED_FOR is the first one

15 years agoremoved parsing of quoted values
Simon Chiang [Fri, 14 May 2010 23:26:15 +0000 (07:26 +0800)]
removed parsing of quoted values

15 years agoFixes the nginx #send_file configuration example.
Matias Korhonen [Wed, 26 May 2010 13:46:30 +0000 (16:46 +0300)]
Fixes the nginx #send_file configuration example.

15 years agoupdated Session::Memcache initialization to pass MemCache options correctly
Simon Chiang [Wed, 5 May 2010 17:54:07 +0000 (11:54 -0600)]
updated Session::Memcache initialization to pass MemCache options correctly

Signed-off-by: Christian Neukirchen <chneukirchen@gmail.com>
15 years agoImproved comment by giving example
Anil Wadghule [Wed, 5 May 2010 11:28:20 +0000 (16:58 +0530)]
Improved comment by giving example

Signed-off-by: Christian Neukirchen <chneukirchen@gmail.com>
15 years agoallow delete of cookies with same name but different domain
Zach Brock [Fri, 8 Jan 2010 05:43:51 +0000 (21:43 -0800)]
allow delete of cookies with same name but different domain

Adding a spec for adding multiple cookies with the same name on
different domains

15 years agoadded test for bug with escaping query string parameters
Jon Bardin [Thu, 29 Apr 2010 00:43:55 +0000 (17:43 -0700)]
added test for bug with escaping query string parameters

15 years agoavoid uninitialized ivar warning
Ryan Tomayko [Thu, 29 Apr 2010 21:55:34 +0000 (14:55 -0700)]
avoid uninitialized ivar warning

15 years agoFully remove camping
Christian Neukirchen [Fri, 9 Apr 2010 15:05:25 +0000 (17:05 +0200)]
Fully remove camping

15 years agoRemove Camping adapter
Christian Neukirchen [Fri, 9 Apr 2010 15:02:52 +0000 (17:02 +0200)]
Remove Camping adapter

Camping 2.0 supports Rack as-is.

15 years agosize is not part of the input SPEC
Joshua Peek [Wed, 7 Apr 2010 18:34:00 +0000 (13:34 -0500)]
size is not part of the input SPEC

If size is added as a formal requirement, revert this commit. Till
then Lint should bomb if middleware tries to access
env['rack.input'].size.

Discussion about adding #size to rack.input
http://groups.google.com/group/rack-devel/browse_thread/thread/9c06163a4b13ccad

15 years agoRequire 'rack' from mock.rb since it references Rack::VERSION
Joshua Peek [Wed, 7 Apr 2010 18:32:22 +0000 (13:32 -0500)]
Require 'rack' from mock.rb since it references Rack::VERSION

(Fixes tests)

15 years agoUpdate Rack::Mock to use Rack::VERSION too
raggi [Tue, 23 Mar 2010 19:49:28 +0000 (19:49 +0000)]
Update Rack::Mock to use Rack::VERSION too

15 years agoMerge branch 'rag'
raggi [Tue, 23 Mar 2010 19:48:31 +0000 (19:48 +0000)]
Merge branch 'rag'

* rag:
  Update all handlers to use Rack::VERSION instead of a hardcoded array for the protocol version.
  Make Rack::Recursive thread safe by removing shared state
  Deprecate unused log object in Rack::Handler::SCGI
  Move trap(:INT) to Rack::Server and support optional Handler protocol where handlers may implement .shutdown to do pre-exit cleanup.
  Fix a bug in CGI detection
  Adding options passthrough for Rack::Server.start to make CGI apps easier to author

15 years agoUpdate all handlers to use Rack::VERSION instead of a hardcoded array for the protoco...
raggi [Tue, 23 Mar 2010 19:47:50 +0000 (19:47 +0000)]
Update all handlers to use Rack::VERSION instead of a hardcoded array for the protocol version.

15 years agoMake Rack::Recursive thread safe by removing shared state
raggi [Tue, 23 Mar 2010 19:37:38 +0000 (19:37 +0000)]
Make Rack::Recursive thread safe by removing shared state

15 years agoDeprecate unused log object in Rack::Handler::SCGI
raggi [Tue, 23 Mar 2010 19:36:05 +0000 (19:36 +0000)]
Deprecate unused log object in Rack::Handler::SCGI

15 years agoMove trap(:INT) to Rack::Server and support optional Handler protocol where handlers...
raggi [Tue, 23 Mar 2010 19:29:44 +0000 (19:29 +0000)]
Move trap(:INT) to Rack::Server and support optional Handler protocol where handlers may implement .shutdown to do pre-exit cleanup.