lockdown 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), "lockdown", "helper")
3
3
  module Lockdown
4
4
  extend Lockdown::Helper
5
5
 
6
- VERSION = '0.9.7'
6
+ VERSION = '0.9.8'
7
7
 
8
8
  # Returns the version string for the library.
9
9
  def self.version
@@ -80,8 +80,13 @@ module Lockdown
80
80
  # continue on
81
81
  end
82
82
 
83
+ # Mailto link
83
84
  return true if url =~ /^mailto:/
84
85
 
86
+ # Public file
87
+ file = File.join(RAILS_ROOT, 'public', url)
88
+ return true if File.exists?(file)
89
+
85
90
  # Passing in different domain
86
91
  return remote_url?(url_parts[2])
87
92
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-06 00:00:00 -04:00
12
+ date: 2009-06-07 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency