lockdown 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lockdown.rb +3 -3
- data/lib/lockdown/version.rb +1 -1
- data/website/generator.html +1 -1
- data/website/index.html +1 -1
- metadata +1 -1
data/lib/lockdown.rb
CHANGED
@@ -4,9 +4,9 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|
4
4
|
module Lockdown
|
5
5
|
class << self
|
6
6
|
def format_controller_action(url)
|
7
|
-
url.split("/").delete_if{|p| p.to_i > 0 || p.length == 0}.join("/")
|
8
|
-
|
9
|
-
|
7
|
+
new_url = url.split("/").delete_if{|p| p.to_i > 0 || p.length == 0}.join("/")
|
8
|
+
new_url += "/index" unless new_url =~ /\//
|
9
|
+
new_url
|
10
10
|
end
|
11
11
|
|
12
12
|
def format_controller(ctr)
|
data/lib/lockdown/version.rb
CHANGED
data/website/generator.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>Lockdown</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/lockdown"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.
|
36
|
+
<a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.5</a>
|
37
37
|
</div>
|
38
38
|
<h2>What</h2>
|
39
39
|
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>Lockdown</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/lockdown"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.
|
36
|
+
<a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.5</a>
|
37
37
|
</div>
|
38
38
|
<h2>What</h2>
|
39
39
|
|