summaryrefslogtreecommitdiff
path: root/www/ruby-rack
diff options
context:
space:
mode:
authortaca <taca>2013-03-10 09:25:56 +0000
committertaca <taca>2013-03-10 09:25:56 +0000
commitdc104d56e40c0608052408c80708c6f41571cbca (patch)
treecafe78bc86c4cb2c4fb61827fa703c5081918a59 /www/ruby-rack
parent100d67a9c6004e8ae5ec95a50d79776730c6b786 (diff)
downloadpkgsrc-dc104d56e40c0608052408c80708c6f41571cbca.tar.gz
Update ruby-rack to 1.5.2.
== Changes Please note that this release includes a few potentially breaking changes. Of particular note are: * SessionHash is no longer a Hash sublcass * Rack::File cache_control parameter is removed in place of headers options Additonally, SPEC has been updated in several areas and is now at 1,2. A new SPEC section was introduced that provides two server-optional IO hijacking APIs. Further information on these APIs will be made available by the community in good time. In the mean time, some information can be found in the original pull request: https://github.com/rack/rack/pull/481 * January 21st, 2013: Thirty third public release 1.5.0 * Introduced hijack SPEC, for before-response and after-response hijacking * SessionHash is no longer a Hash subclass * Rack::File cache_control parameter is removed, in place of headers options * Rack::Auth::AbstractRequest#scheme now yields strings, not symbols * Rack::Utils cookie functions now format expires in RFC 2822 format * Rack::File now has a default mime type * rackup -b 'run Rack::File.new(".")', option provides command line configs * Rack::Deflater will no longer double encode bodies * Rack::Mime#match? provides convenience for Accept header matching * Rack::Utils#q_values provides splitting for Accept headers * Rack::Utils#best_q_match provides a helper for Accept headers * Rack::Handler.pick provides convenience for finding available servers * Puma added to the list of default servers (preferred over Webrick) * Various middleware now correctly close body when replacing it * Rack::Request#params is no longer persistent with only GET params * Rack::Request#update_param and #delete_param provide persistent operations * Rack::Request#trusted_proxy? now returns true for local unix sockets * Rack::Response no longer forces Content-Types * Rack::Sendfile provides local mapping configuration options * Rack::Utils#rfc2109 provides old netscape style time output * Updated HTTP status codes * Ruby 1.8.6 likely no longer passes tests, and is no longer fully supported * January 28th, 2013: Thirty fourth public release 1.5.1 * Rack::Lint check_hijack now conforms to other parts of SPEC * Added hash-like methods to Abstract::ID::SessionHash for compatibility * Various documentation corrections * February 7th, Thirty fifth public release 1.5.2 * Fix CVE-2013-0263, timing attack against Rack::Session::Cookie * Fix CVE-2013-0262, symlink path traversal in Rack::File * Add various methods to Session for enhanced Rails compatibility * Request#trusted_proxy? now only matches whole stirngs * Add JSON cookie coder, to be default in Rack 1.6+ due to security concerns * URLMap host matching in environments that don't set the Host header fixed * Fix a race condition that could result in overwritten pidfiles * Various documentation additions
Diffstat (limited to 'www/ruby-rack')
-rw-r--r--www/ruby-rack/ALTERNATIVES1
-rw-r--r--www/ruby-rack/Makefile9
-rw-r--r--www/ruby-rack/PLIST9
-rw-r--r--www/ruby-rack/distinfo8
4 files changed, 17 insertions, 10 deletions
diff --git a/www/ruby-rack/ALTERNATIVES b/www/ruby-rack/ALTERNATIVES
new file mode 100644
index 00000000000..38420d27b1a
--- /dev/null
+++ b/www/ruby-rack/ALTERNATIVES
@@ -0,0 +1 @@
+bin/rackup @PREFIX@/bin/rackup15
diff --git a/www/ruby-rack/Makefile b/www/ruby-rack/Makefile
index d470d110951..acf83c88f56 100644
--- a/www/ruby-rack/Makefile
+++ b/www/ruby-rack/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2013/02/08 13:22:00 taca Exp $
+# $NetBSD: Makefile,v 1.16 2013/03/10 09:25:56 taca Exp $
-DISTNAME= rack-1.4.5
+DISTNAME= rack-1.5.2
CATEGORIES= www
MAINTAINER= pkgsrc-users@NetBSD.org
@@ -8,8 +8,13 @@ HOMEPAGE= http://rack.github.com/
COMMENT= Modular Ruby webserver interface
LICENSE= mit
+OVERRIDE_GEMSPEC= :executables rackup=rackup15 \
+ :files bin/rackup=bin/rackup15
+
pre-configure:
${FIND} ${WRKSRC} -type f -exec ${CHMOD} g-w {} \;
+ ${TEST} -f ${WRKSRC}/bin/rackup15 || \
+ ${MV} ${WRKSRC}/bin/rackup ${WRKSRC}/bin/rackup15
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/ruby-rack/PLIST b/www/ruby-rack/PLIST
index 12848cd1613..50818ba51b6 100644
--- a/www/ruby-rack/PLIST
+++ b/www/ruby-rack/PLIST
@@ -1,12 +1,12 @@
-@comment $NetBSD: PLIST,v 1.11 2013/01/14 04:35:34 taca Exp $
-bin/rackup
+@comment $NetBSD: PLIST,v 1.12 2013/03/10 09:25:56 taca Exp $
+bin/rackup15
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/COPYING
${GEM_LIBDIR}/KNOWN-ISSUES
${GEM_LIBDIR}/README.rdoc
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/SPEC
-${GEM_LIBDIR}/bin/rackup
+${GEM_LIBDIR}/bin/rackup15
${GEM_LIBDIR}/contrib/rack.png
${GEM_LIBDIR}/contrib/rack.svg
${GEM_LIBDIR}/contrib/rack_logo.svg
@@ -78,6 +78,7 @@ ${GEM_LIBDIR}/lib/rack/showstatus.rb
${GEM_LIBDIR}/lib/rack/static.rb
${GEM_LIBDIR}/lib/rack/urlmap.rb
${GEM_LIBDIR}/lib/rack/utils.rb
+${GEM_LIBDIR}/lib/rack/utils/okjson.rb
${GEM_LIBDIR}/rack.gemspec
${GEM_LIBDIR}/test/builder/anything.rb
${GEM_LIBDIR}/test/builder/comment.ru
@@ -121,7 +122,6 @@ ${GEM_LIBDIR}/test/multipart/text
${GEM_LIBDIR}/test/multipart/webkit
${GEM_LIBDIR}/test/rackup/config.ru
${GEM_LIBDIR}/test/registering_handler/rack/handler/registering_myself.rb
-${GEM_LIBDIR}/test/spec_auth.rb
${GEM_LIBDIR}/test/spec_auth_basic.rb
${GEM_LIBDIR}/test/spec_auth_digest.rb
${GEM_LIBDIR}/test/spec_body_proxy.rb
@@ -146,6 +146,7 @@ ${GEM_LIBDIR}/test/spec_lobster.rb
${GEM_LIBDIR}/test/spec_lock.rb
${GEM_LIBDIR}/test/spec_logger.rb
${GEM_LIBDIR}/test/spec_methodoverride.rb
+${GEM_LIBDIR}/test/spec_mime.rb
${GEM_LIBDIR}/test/spec_mock.rb
${GEM_LIBDIR}/test/spec_mongrel.rb
${GEM_LIBDIR}/test/spec_multipart.rb
diff --git a/www/ruby-rack/distinfo b/www/ruby-rack/distinfo
index 83cb0c1a39a..e404c950a71 100644
--- a/www/ruby-rack/distinfo
+++ b/www/ruby-rack/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2013/02/08 13:22:00 taca Exp $
+$NetBSD: distinfo,v 1.15 2013/03/10 09:25:56 taca Exp $
-SHA1 (rack-1.4.5.gem) = 2bfd9337cde2ad1dfdf14abfa8cee00b963e91cb
-RMD160 (rack-1.4.5.gem) = bb052f2eed4da323e7b977ceb7a3b245e3d72d00
-Size (rack-1.4.5.gem) = 203776 bytes
+SHA1 (rack-1.5.2.gem) = a17f40c9beb03b458f537f42cf36dd90d8230625
+RMD160 (rack-1.5.2.gem) = a0c23b40d8f6644c58b4954485c121989a9d628c
+Size (rack-1.5.2.gem) = 216576 bytes