commit rubygem-rack-1_6 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rack-1_6 for openSUSE:Factory checked in at 2020-03-07 21:39:25 Comparing /work/SRC/openSUSE:Factory/rubygem-rack-1_6 (Old) and /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new.26092 (New) Package is "rubygem-rack-1_6" Sat Mar 7 21:39:25 2020 rev:7 rq:773836 version:1.6.13 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rack-1_6/rubygem-rack-1_6.changes 2018-12-04 20:57:07.036667188 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new.26092/rubygem-rack-1_6.changes 2020-03-07 21:39:31.492324262 +0100 @@ -1,0 +2,6 @@ +Mon Feb 10 15:27:04 UTC 2020 - Stephan Kulow + +- updated to version 1.6.13 + see installed HISTORY.md + +--- Old: rack-1.6.11.gem New: rack-1.6.13.gem Other differences: -- ++ rubygem-rack-1_6.spec ++ --- /var/tmp/diff_new_pack.SFNxoq/_old 2020-03-07 21:39:32.048324638 +0100 +++ /var/tmp/diff_new_pack.SFNxoq/_new 2020-03-07 21:39:32.052324640 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rack-1_6 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-rack-1_6 -Version:1.6.11 +Version:1.6.13 Release:0 %define mod_name rack %define mod_full_name %{mod_name}-%{version} @@ -37,7 +37,7 @@ BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives -Url:http://rack.github.io/ +URL:http://rack.github.io/ Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:rubygem-rack-1_6-rpmlintrc Source2:gem2rpm.yml ++ rack-1.6.11.gem -> rack-1.6.13.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/session/abstract/id.rb new/lib/rack/session/abstract/id.rb --- old/lib/rack/session/abstract/id.rb 2018-11-05 20:58:43.0 +0100 +++ new/lib/rack/session/abstract/id.rb 2020-02-08 19:19:17.0 +0100 @@ -9,11 +9,38 @@ rescue LoadError # We just won't get securerandom end +require "digest/sha2" module Rack module Session +class SessionId + ID_VERSION = 2 + + attr_reader :public_id + + def initialize(public_id) +@public_id = public_id + end + + def private_id +"#{ID_VERSION}::#{hash_sid(public_id)}" + end + + alias :cookie_value :public_id + alias :to_s :public_id + + def empty?; false; end + def inspect; public_id.inspect; end + + private + + def hash_sid(sid) +Digest::SHA256.hexdigest(sid) + end +end + module Abstract ENV_SESSION_KEY = 'rack.session'.freeze ENV_SESSION_OPTIONS_KEY = 'rack.session.options'.freeze @@ -191,7 +218,7 @@ # Not included by default; you must require 'rack/session/abstract/id' # to use. - class ID + class Persisted DEFAULT_OPTIONS = { :key => 'rack.session', :path => '/', @@ -342,10 +369,10 @@ if not data = set_session(env, session_id, session_data, options) env["rack.errors"].puts("Warning! #{self.class.name} failed to save session. Content dropped.") elsif options[:defer] and not options[:renew] -env["rack.errors"].puts("Deferring cookie for #{session_id}") if $VERBOSE +env["rack.errors"].puts("Deferring cookie for #{session_id.public_id}") if $VERBOSE else cookie = Hash.new -cookie[:value] = data +cookie[:value] = cookie_value(data) cookie[:expires] = Time.now + options[:expire_after] if options[:expire_after] cookie[:expires] = Time.now + options[:max_age] if options[:max_age] set_cookie(env, headers, cookie.merge!(options)) @@ -354,6 +381,10 @@ [status, headers, body] end +def cookie_value(data) + data +end + # Sets the cookie back to the client with session id. We skip the cookie # setting if the value didn't change (sid is the same) or expires was given. @@ -394,6 +425,51 @@ raise '#destroy_session not implemented' end end + + class PersistedSecure < Persisted +class SecureSessionHash < SessionHash + def [](key) +if key == "session_id" + load_for_read! +
commit rubygem-rack-1_6 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rack-1_6 for openSUSE:Factory checked in at 2018-12-04 20:57:05 Comparing /work/SRC/openSUSE:Factory/rubygem-rack-1_6 (Old) and /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new.19453 (New) Package is "rubygem-rack-1_6" Tue Dec 4 20:57:05 2018 rev:6 rq:653707 version:1.6.11 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rack-1_6/rubygem-rack-1_6.changes 2018-07-18 22:52:08.223319601 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new.19453/rubygem-rack-1_6.changes 2018-12-04 20:57:07.036667188 +0100 @@ -1,0 +2,6 @@ +Thu Nov 22 05:29:29 UTC 2018 - Stephan Kulow + +- updated to version 1.6.11 + see installed HISTORY.md + +--- Old: rack-1.6.10.gem New: rack-1.6.11.gem Other differences: -- ++ rubygem-rack-1_6.spec ++ --- /var/tmp/diff_new_pack.uNzJ4W/_old 2018-12-04 20:57:07.48494 +0100 +++ /var/tmp/diff_new_pack.uNzJ4W/_new 2018-12-04 20:57:07.48494 +0100 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-rack-1_6 -Version:1.6.10 +Version:1.6.11 Release:0 %define mod_name rack %define mod_full_name %{mod_name}-%{version} ++ rack-1.6.10.gem -> rack-1.6.11.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/request.rb new/lib/rack/request.rb --- old/lib/rack/request.rb 2018-04-23 19:51:23.0 +0200 +++ new/lib/rack/request.rb 2018-11-05 20:58:43.0 +0100 @@ -13,6 +13,8 @@ # The environment of the request. attr_reader :env +SCHEME_WHITELIST = %w(https http).freeze + def initialize(env) @env = env end @@ -68,10 +70,8 @@ 'https' elsif @env['HTTP_X_FORWARDED_SSL'] == 'on' 'https' - elsif @env['HTTP_X_FORWARDED_SCHEME'] -@env['HTTP_X_FORWARDED_SCHEME'] - elsif @env['HTTP_X_FORWARDED_PROTO'] -@env['HTTP_X_FORWARDED_PROTO'].split(',')[0] + elsif forwarded_scheme +forwarded_scheme else @env["rack.url_scheme"] end @@ -394,5 +394,18 @@ s end end + +def forwarded_scheme + scheme_headers = [ +@env['HTTP_X_FORWARDED_SCHEME'], +@env['HTTP_X_FORWARDED_PROTO'].to_s.split(',')[0] + ] + + scheme_headers.each do |header| +return header if SCHEME_WHITELIST.include?(header) + end + + nil +end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/showexceptions.rb new/lib/rack/showexceptions.rb --- old/lib/rack/showexceptions.rb 2018-04-23 19:51:23.0 +0200 +++ new/lib/rack/showexceptions.rb 2018-11-05 20:58:43.0 +0100 @@ -47,7 +47,7 @@ end def prefers_plaintext?(env) - !accepts_html(env) + !accepts_html?(env) end def accepts_html?(env) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack.rb new/lib/rack.rb --- old/lib/rack.rb 2018-04-23 19:51:23.0 +0200 +++ new/lib/rack.rb 2018-11-05 20:58:43.0 +0100 @@ -20,7 +20,7 @@ # Return the Rack release as a dotted string. def self.release -"1.6.10" +"1.6.11" end PATH_INFO = 'PATH_INFO'.freeze REQUEST_METHOD = 'REQUEST_METHOD'.freeze diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2018-04-23 19:51:23.0 +0200 +++ new/metadata2018-11-05 20:58:43.0 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: rack version: !ruby/object:Gem::Version - version: 1.6.10 + version: 1.6.11 platform: ruby authors: - Christian Neukirchen autorequire: bindir: bin cert_chain: [] -date: 2018-04-23 00:00:00.0 Z +date: 2018-11-05 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: bacon @@ -256,57 +256,57 @@ version: '0' requirements: [] rubyforge_project: rack -rubygems_version: 2.6.13 +rubygems_version: 2.7.6 signing_key: specification_version: 4 summary: a modular Ruby webserver interface test_files: -- test/spec_auth_basic.rb -- test/spec_auth_digest.rb -- test/spec_body_proxy.rb -- test/spec_builder.rb -- test/spec_cascade.rb
commit rubygem-rack-1_6 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rack-1_6 for openSUSE:Factory checked in at 2018-07-18 22:50:50 Comparing /work/SRC/openSUSE:Factory/rubygem-rack-1_6 (Old) and /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new (New) Package is "rubygem-rack-1_6" Wed Jul 18 22:50:50 2018 rev:5 rq:621025 version:1.6.10 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rack-1_6/rubygem-rack-1_6.changes 2018-04-24 15:31:01.794779755 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new/rubygem-rack-1_6.changes 2018-07-18 22:52:08.223319601 +0200 @@ -1,0 +2,6 @@ +Mon Apr 23 18:18:48 UTC 2018 - factory-a...@kulow.org + +- updated to version 1.6.10 + see installed HISTORY.md + +--- Old: rack-1.6.9.gem New: rack-1.6.10.gem Other differences: -- ++ rubygem-rack-1_6.spec ++ --- /var/tmp/diff_new_pack.luE8FR/_old 2018-07-18 22:52:08.935317240 +0200 +++ /var/tmp/diff_new_pack.luE8FR/_new 2018-07-18 22:52:08.939317227 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rack-1_6 -Version:1.6.9 +Version:1.6.10 Release:0 %define mod_name rack %define mod_full_name %{mod_name}-%{version} ++ rack-1.6.9.gem -> rack-1.6.10.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/methodoverride.rb new/lib/rack/methodoverride.rb --- old/lib/rack/methodoverride.rb 1970-01-01 01:00:00.0 +0100 +++ new/lib/rack/methodoverride.rb 2018-04-23 19:51:23.0 +0200 @@ -26,7 +26,11 @@ req = Request.new(env) method = method_override_param(req) || env[HTTP_METHOD_OVERRIDE_HEADER] - method.to_s.upcase + begin +method.to_s.upcase + rescue ArgumentError +env["rack.errors"].puts "Invalid string for method" + end end private diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack.rb new/lib/rack.rb --- old/lib/rack.rb 1970-01-01 01:00:00.0 +0100 +++ new/lib/rack.rb 2018-04-23 19:51:23.0 +0200 @@ -20,7 +20,7 @@ # Return the Rack release as a dotted string. def self.release -"1.6.9" +"1.6.10" end PATH_INFO = 'PATH_INFO'.freeze REQUEST_METHOD = 'REQUEST_METHOD'.freeze diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata1970-01-01 01:00:00.0 +0100 +++ new/metadata2018-04-23 19:51:23.0 +0200 @@ -1,41 +1,41 @@ --- !ruby/object:Gem::Specification name: rack version: !ruby/object:Gem::Version - version: 1.6.9 + version: 1.6.10 platform: ruby authors: - Christian Neukirchen autorequire: bindir: bin cert_chain: [] -date: 2018-02-27 00:00:00.0 Z +date: 2018-04-23 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: bacon requirement: !ruby/object:Gem::Requirement requirements: -- - '>=' +- - ">=" - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: -- - '>=' +- - ">=" - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: rake requirement: !ruby/object:Gem::Requirement requirements: -- - '>=' +- - ">=" - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: -- - '>=' +- - ">=" - !ruby/object:Gem::Version version: '0' description: | @@ -55,6 +55,12 @@ - KNOWN-ISSUES - HISTORY.md files: +- COPYING +- HISTORY.md +- KNOWN-ISSUES +- README.rdoc +- Rakefile +- SPEC - bin/rackup - contrib/rack.png - contrib/rack.svg @@ -63,6 +69,7 @@ - example/lobster.ru - example/protectedlobster.rb - example/protectedlobster.ru +- lib/rack.rb - lib/rack/auth/abstract/handler.rb - lib/rack/auth/abstract/request.rb - lib/rack/auth/basic.rb @@ -86,6 +93,7 @@ - lib/rack/directory.rb - lib/rack/etag.rb - lib/rack/file.rb +- lib/rack/handler.rb - lib/rack/handler/cgi.rb - lib/rack/handler/evented_mongrel.rb - lib/rack/handler/fastcgi.rb @@ -95,7 +103,6 @@ - lib/rack/handler/swiftiplied_mongrel.rb - lib/rack/handler/thin.rb - lib/rack/handler/webrick.rb -- lib/rack/handler.rb - lib/rack/head.rb - lib/rack/lint.rb - lib/rack/lobster.rb @@ -104,10 +111,10 @@ - lib/rack/methodoverride.rb - lib/rack/mime.rb - lib/rack/mock.rb +- lib/rack/multipart.r
commit rubygem-rack-1_6 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rack-1_6 for openSUSE:Factory checked in at 2018-04-24 15:31:00 Comparing /work/SRC/openSUSE:Factory/rubygem-rack-1_6 (Old) and /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new (New) Package is "rubygem-rack-1_6" Tue Apr 24 15:31:00 2018 rev:4 rq:581878 version:1.6.9 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rack-1_6/rubygem-rack-1_6.changes 2017-06-08 15:01:20.293121418 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new/rubygem-rack-1_6.changes 2018-04-24 15:31:01.794779755 +0200 @@ -1,0 +2,6 @@ +Wed Feb 28 05:32:02 UTC 2018 - factory-a...@kulow.org + +- updated to version 1.6.9 + see installed HISTORY.md + +--- Old: rack-1.6.8.gem New: rack-1.6.9.gem Other differences: -- ++ rubygem-rack-1_6.spec ++ --- /var/tmp/diff_new_pack.J69gZe/_old 2018-04-24 15:31:02.534752982 +0200 +++ /var/tmp/diff_new_pack.J69gZe/_new 2018-04-24 15:31:02.542752693 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rack-1_6 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-rack-1_6 -Version:1.6.8 +Version:1.6.9 Release:0 %define mod_name rack %define mod_full_name %{mod_name}-%{version} @@ -38,7 +38,7 @@ BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives Url:http://rack.github.io/ -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:rubygem-rack-1_6-rpmlintrc Source2:gem2rpm.yml Summary:A modular Ruby webserver interface ++ rack-1.6.8.gem -> rack-1.6.9.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/methodoverride.rb new/lib/rack/methodoverride.rb --- old/lib/rack/methodoverride.rb 2017-05-16 23:28:07.0 +0200 +++ new/lib/rack/methodoverride.rb 1970-01-01 01:00:00.0 +0100 @@ -38,6 +38,9 @@ def method_override_param(req) req.POST[METHOD_OVERRIDE_PARAM_KEY] rescue Utils::InvalidParameterError, Utils::ParameterTypeError + req.env["rack.errors"].puts "Invalid or incomplete POST params" +rescue EOFError + req.env["rack.errors"].puts "Bad request content body" end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack.rb new/lib/rack.rb --- old/lib/rack.rb 2017-05-16 23:28:07.0 +0200 +++ new/lib/rack.rb 1970-01-01 01:00:00.0 +0100 @@ -20,7 +20,7 @@ # Return the Rack release as a dotted string. def self.release -"1.6.8" +"1.6.9" end PATH_INFO = 'PATH_INFO'.freeze REQUEST_METHOD = 'REQUEST_METHOD'.freeze diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2017-05-16 23:28:06.0 +0200 +++ new/metadata1970-01-01 01:00:00.0 +0100 @@ -1,41 +1,41 @@ --- !ruby/object:Gem::Specification name: rack version: !ruby/object:Gem::Version - version: 1.6.8 + version: 1.6.9 platform: ruby authors: - Christian Neukirchen -autorequire: +autorequire: bindir: bin cert_chain: [] -date: 2017-05-16 00:00:00.0 Z +date: 2018-02-27 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency + name: bacon requirement: !ruby/object:Gem::Requirement requirements: -- - ">=" +- - '>=' - !ruby/object:Gem::Version version: '0' - name: bacon - prerelease: false type: :development + prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: -- - ">=" +- - '>=' - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency + name: rake requirement: !ruby/object:Gem::Requirement requirements: -- - ">=" +- - '>=' - !ruby/object:Gem::Version version: '0' - name: rake - prerelease: false type: :development + prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: -- - ">=" +- - '>=' - !ruby/object:Gem::Version version: '0' description: | @@ -55,12 +55,6 @@ - KNOWN-ISSUES - HISTORY.md files: -- COPYING -- HISTORY.md -- KNOWN-ISSUES -- README.rdoc -- Rakefil
commit rubygem-rack-1_6 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rack-1_6 for openSUSE:Factory checked in at 2017-06-08 15:01:19 Comparing /work/SRC/openSUSE:Factory/rubygem-rack-1_6 (Old) and /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new (New) Package is "rubygem-rack-1_6" Thu Jun 8 15:01:19 2017 rev:3 rq:497695 version:1.6.8 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rack-1_6/rubygem-rack-1_6.changes 2016-11-14 20:14:00.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new/rubygem-rack-1_6.changes 2017-06-08 15:01:20.293121418 +0200 @@ -1,0 +2,6 @@ +Tue May 23 10:12:19 UTC 2017 - co...@suse.com + +- updated to version 1.6.8 + see installed HISTORY.md + +--- Old: rack-1.6.5.gem New: rack-1.6.8.gem Other differences: -- ++ rubygem-rack-1_6.spec ++ --- /var/tmp/diff_new_pack.4DtGZs/_old 2017-06-08 15:01:20.849042961 +0200 +++ /var/tmp/diff_new_pack.4DtGZs/_new 2017-06-08 15:01:20.857041832 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rack-1_6 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-rack-1_6 -Version:1.6.5 +Version:1.6.8 Release:0 %define mod_name rack %define mod_full_name %{mod_name}-%{version} ++ rack-1.6.5.gem -> rack-1.6.8.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/mock.rb new/lib/rack/mock.rb --- old/lib/rack/mock.rb2016-11-10 22:54:16.0 +0100 +++ new/lib/rack/mock.rb2017-05-16 23:28:07.0 +0200 @@ -91,13 +91,7 @@ env = DEFAULT_ENV.dup - env[REQUEST_METHOD] = opts[:method] ? opts[:method].to_s.upcase : "GET" - env["SERVER_NAME"] = uri.host || "example.org" - env["SERVER_PORT"] = uri.port ? uri.port.to_s : "80" - env[QUERY_STRING] = uri.query.to_s - env[PATH_INFO] = (!uri.path || uri.path.empty?) ? "/" : uri.path - env["rack.url_scheme"] = uri.scheme || "http" - env["HTTPS"] = env["rack.url_scheme"] == "https" ? "on" : "off" + env_with_encoding(env, opts, uri) env[SCRIPT_NAME] = opts[:script_name] || "" @@ -148,6 +142,28 @@ env end + +if "<3".respond_to? :b + def self.env_with_encoding(env, opts, uri) +env[REQUEST_METHOD] = (opts[:method] ? opts[:method].to_s.upcase : "GET").b +env["SERVER_NAME"] = (uri.host || "example.org").b +env["SERVER_PORT"] = (uri.port ? uri.port.to_s : "80").b +env[QUERY_STRING] = (uri.query.to_s).b +env[PATH_INFO] = ((!uri.path || uri.path.empty?) ? "/" : uri.path).b +env["rack.url_scheme"] = (uri.scheme || "http").b +env["HTTPS"] = (env["rack.url_scheme"] == "https" ? "on" : "off").b + end +else + def self.env_with_encoding(env, opts, uri) +env[REQUEST_METHOD] = opts[:method] ? opts[:method].to_s.upcase : "GET" +env["SERVER_NAME"] = uri.host || "example.org" +env["SERVER_PORT"] = uri.port ? uri.port.to_s : "80" +env[QUERY_STRING] = uri.query.to_s +env[PATH_INFO] = (!uri.path || uri.path.empty?) ? "/" : uri.path +env["rack.url_scheme"] = uri.scheme || "http" +env["HTTPS"] = env["rack.url_scheme"] == "https" ? "on" : "off" + end +end end # Rack::MockResponse provides useful helpers for testing your apps. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/multipart/parser.rb new/lib/rack/multipart/parser.rb --- old/lib/rack/multipart/parser.rb2016-11-10 22:54:16.0 +0100 +++ new/lib/rack/multipart/parser.rb2017-05-16 23:28:07.0 +0200 @@ -6,7 +6,6 @@ class Parser BUFSIZE = 16384 - DUMMY = Struct.new(:parse).new def self.create(env) @@ -19,7 +18,7 @@ content_length = content_length.to_i if content_length tempfile = env['rack.multipart.tempfile_factory'] || - lambda { |filename, content_type| Tempfile.new(["RackMultipart", ::File.extname(filename)]) } + lambda { |filename, content_type| Tempfile.new(["RackMultipart", ::File.extname(filename.gsub("\0".freeze, '%00'.freeze))]) } bufsize = env['rack.multipart.buffer_size'] || BUFSIZE new($1, io, content_length, env, tempfile, bufsize) diff -urN '--exclude=CVS' '--exclude=.cvsignore'
commit rubygem-rack-1_6 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rack-1_6 for openSUSE:Factory checked in at 2016-11-14 20:13:59 Comparing /work/SRC/openSUSE:Factory/rubygem-rack-1_6 (Old) and /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new (New) Package is "rubygem-rack-1_6" Changes: --- /work/SRC/openSUSE:Factory/rubygem-rack-1_6/rubygem-rack-1_6.changes 2016-07-21 07:55:36.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rack-1_6.new/rubygem-rack-1_6.changes 2016-11-14 20:14:00.0 +0100 @@ -1,0 +2,26 @@ +Fri Nov 11 05:49:18 UTC 2016 - co...@suse.com + +- updated to version 1.6.5 + see installed HISTORY.md + + Sun Dec 4 18:48:03 2015 Jeremy Daer + + * First-party "SameSite" cookies. Browsers omit SameSite cookies + from third-party requests, closing the door on many CSRF attacks. + + Pass `same_site: true` (or `:strict`) to enable: + response.set_cookie 'foo', value: 'bar', same_site: true + or `same_site: :lax` to use Lax enforcement: + response.set_cookie 'foo', value: 'bar', same_site: :lax + + Based on version 7 of the Same-site Cookies internet draft: + https://tools.ietf.org/html/draft-west-first-party-cookies-07 + + Thanks to Ben Toews (@mastahyeti) and Bob Long (@bobjflong) for + updating to drafts 5 and 7. + + Wed Jun 24 12:13:37 2015 Aaron Patterson + + * Fix Ruby 1.8 backwards compatibility + +--- Old: rack-1.6.4.gem New: rack-1.6.5.gem Other differences: -- ++ rubygem-rack-1_6.spec ++ --- /var/tmp/diff_new_pack.ngPL8x/_old 2016-11-14 20:14:02.0 +0100 +++ /var/tmp/diff_new_pack.ngPL8x/_new 2016-11-14 20:14:02.0 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rack-1_6 -Version:1.6.4 +Version:1.6.5 Release:0 %define mod_name rack %define mod_full_name %{mod_name}-%{version} ++ rack-1.6.4.gem -> rack-1.6.5.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HISTORY.md new/HISTORY.md --- old/HISTORY.md 2015-06-18 23:51:22.0 +0200 +++ new/HISTORY.md 2016-11-10 22:54:15.0 +0100 @@ -1,3 +1,23 @@ +Sun Dec 4 18:48:03 2015 Jeremy Daer + + * First-party "SameSite" cookies. Browsers omit SameSite cookies + from third-party requests, closing the door on many CSRF attacks. + + Pass `same_site: true` (or `:strict`) to enable: + response.set_cookie 'foo', value: 'bar', same_site: true + or `same_site: :lax` to use Lax enforcement: + response.set_cookie 'foo', value: 'bar', same_site: :lax + + Based on version 7 of the Same-site Cookies internet draft: + https://tools.ietf.org/html/draft-west-first-party-cookies-07 + + Thanks to Ben Toews (@mastahyeti) and Bob Long (@bobjflong) for + updating to drafts 5 and 7. + +Wed Jun 24 12:13:37 2015 Aaron Patterson + + * Fix Ruby 1.8 backwards compatibility + Fri Jun 19 07:14:50 2015 Matthew Draper * Work around a Rails incompatibility in our private API Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/handler.rb new/lib/rack/handler.rb --- old/lib/rack/handler.rb 2015-06-18 23:51:22.0 +0200 +++ new/lib/rack/handler.rb 2016-11-10 22:54:15.0 +0100 @@ -19,13 +19,25 @@ if klass = @handlers[server] klass.split("::").inject(Object) { |o, x| o.const_get(x) } else -const_get(server, false) +_const_get(server, false) end rescue NameError => name_error raise load_error || name_error end +begin + ::Object.const_get("Object", false) + def self._const_get(str, inherit = true) +const_get(str, inherit) + end +rescue + def self._const_get(str, inherit = true) +const_get(str) + end +end + + # Select first available Rack handler given an `Array` of server names. # Raises `LoadError` if no handler was found. # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/reloader.rb new/lib/rack/reloader.rb --- old/lib/rack/reloader.rb2015-06-18 23:51:22.0 +0200 +++ new/lib/rack/reloader.rb2016-11-10 22:54:16.0 +0100 @@ -26,6 +26,7 @@ @last = (Time.now - cooldown) @cache = {} @mtimes = {} + @reload_mutex = Mutex.new extend backend end @@ -33,7 +34,7 @@ def call(env) if @cooldown and Time.now > @last + @cooldown if Thre