rack 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rack might be problematic. Click here for more details.

Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rack.rb +1 -1
  3. data/lib/rack/directory.rb +1 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf07380f1952c2d3ae911f2dba3cc6b03cc9270874488cbda132651f4618e928
4
- data.tar.gz: d040738bea53e28625c2d9a7f4fc55e098e63890b9cf539bdacf9873b0e7a690
3
+ metadata.gz: 83025be71b5d57dbb184eb3d2364c727dad01c2214f683377dec5fdb3de0bc7d
4
+ data.tar.gz: c672e59748bb0b5412f017260168b7cd718f99c6bc7fc7ec2fd374d21b5dc7e3
5
5
  SHA512:
6
- metadata.gz: 3ab7bed6e3272ac7441312cc407726ddc9389730289799cff762933fb464e3c162c004c1dcc40f95fcbed05c803010bffb2ce88726c751e7540d405428f09749
7
- data.tar.gz: ccff9e0ea2fc4a09d549cfc4c290b2aff48cd267f323c709cc3afc6803f62763ec208dcc9a55663d7743782fc4ce1ff507e709031c261714a2dc4b04102fb498
6
+ metadata.gz: 9e3eecfe73f0dc2def1653c47d84dc9d044395ffed4a4021ac5dfd565267f214264c06efec8ef84fec3159a0e793acf6190ecf151280ab544cbb852eb32db168
7
+ data.tar.gz: 9c64bdf7f521ef19170025a24627f0e59ea3f18be605da7e623027928f153c1a3a71fc001695d52e99d153a3d50f11ef9b13c11223c3245bbf0a5cc3f10f2e57
@@ -20,7 +20,7 @@ module Rack
20
20
  VERSION.join(".")
21
21
  end
22
22
 
23
- RELEASE = "2.1.2"
23
+ RELEASE = "2.1.3"
24
24
 
25
25
  # Return the Rack release as a dotted string.
26
26
  def self.release
@@ -106,13 +106,12 @@ table { width:100%%; }
106
106
 
107
107
  def list_directory(path_info, path, script_name)
108
108
  files = [['../', 'Parent Directory', '', '', '']]
109
- glob = ::File.join(path, '*')
110
109
 
111
110
  url_head = (script_name.split('/') + path_info.split('/')).map do |part|
112
111
  Rack::Utils.escape_path part
113
112
  end
114
113
 
115
- Dir[glob].sort.each do |node|
114
+ Dir.entries(path).reject { |e| e.start_with?('.') }.sort.each do |node|
116
115
  stat = stat(node)
117
116
  next unless stat
118
117
  basename = ::File.basename(node)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leah Neukirchen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-27 00:00:00.000000000 Z
11
+ date: 2020-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest