actionpack 3.2.20 → 3.2.21

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cb479f45ae3a51098b0d320b13c3f731c364205
4
- data.tar.gz: f5d72deafc7e5b03ab0b1e298902edb4edaaf518
3
+ metadata.gz: 52cd17e210af21dfe0dffce98e8e742e8ff6130a
4
+ data.tar.gz: 0d01a402377176908f1044cc4530fd5e02f74b23
5
5
  SHA512:
6
- metadata.gz: 43d70c4f572a5047584209c6f3b927d10caddd55342606d04820961bf78871c2746f04946fa70a64c288709ad1b9d4aa9e01c8af85416f090663aedbc148cace
7
- data.tar.gz: 61ffe18b143a17b1217e453146131640a47bf10f4f1aea1c983137b218edbbff0e458931fc4e483807b26b357e7fdb2df970df5fc5e95c428e8ee5c015df40bb
6
+ metadata.gz: b50465ad69c39896976ea9f24d5635bfeeeb5fa9c7344216963822cb4e751f4db16adc0bcd0cbcf5bc409e5a39cf99645306cd9277e50f1af8cbc7a3e2db12c9
7
+ data.tar.gz: 3acbe7c956af42cfdb2fa3026000b3815960371568de1612b5339b7663a929b2404564acd377ae2ac63ac0618845902fb2bb25aaecbf415e7bfa707c55bf6068
@@ -16,9 +16,9 @@ module ActionDispatch
16
16
 
17
17
  # Get a session from the cache.
18
18
  def get_session(env, sid)
19
- sid ||= generate_sid
20
- session = @cache.read(cache_key(sid))
21
- session ||= {}
19
+ unless sid and session = @cache.read(cache_key(sid))
20
+ sid, session = generate_sid, {}
21
+ end
22
22
  [sid, session]
23
23
  end
24
24
 
@@ -16,7 +16,7 @@ module ActionDispatch
16
16
  paths = "#{full_path}#{ext}"
17
17
 
18
18
  matches = Dir[paths]
19
- match = matches.detect { |m| File.file?(m) }
19
+ match = matches.detect { |m| File.file?(m) && File.readable?(m) }
20
20
  if match
21
21
  match.sub!(@compiled_root, '')
22
22
  ::Rack::Utils.escape(match)
@@ -40,7 +40,7 @@ module ActionDispatch
40
40
 
41
41
  def escape_glob_chars(path)
42
42
  path.force_encoding('binary') if path.respond_to? :force_encoding
43
- path.gsub(/[*?{}\[\]]/, "\\\\\\&")
43
+ path.gsub(/[*?{}\[\]\\]/, "\\\\\\&")
44
44
  end
45
45
 
46
46
  private
@@ -48,6 +48,7 @@ module ActionDispatch
48
48
  PATH_SEPS = Regexp.union(*[::File::SEPARATOR, ::File::ALT_SEPARATOR].compact)
49
49
 
50
50
  def clean_path_info(path_info)
51
+ path_info.force_encoding('binary') if path_info.respond_to? :force_encoding
51
52
  parts = path_info.split PATH_SEPS
52
53
 
53
54
  clean = []
@@ -2,7 +2,7 @@ module ActionPack
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- TINY = 20
5
+ TINY = 21
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.20
4
+ version: 3.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.20
19
+ version: 3.2.21
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.20
26
+ version: 3.2.21
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.20
33
+ version: 3.2.21
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.2.20
40
+ version: 3.2.21
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rack-cache
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -369,7 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
369
369
  requirements:
370
370
  - none
371
371
  rubyforge_project:
372
- rubygems_version: 2.2.2
372
+ rubygems_version: 2.4.2
373
373
  signing_key:
374
374
  specification_version: 4
375
375
  summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).