webs 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/lib/controller/webs_controller.rb +14 -0
- data/lib/views/layouts/webs_page.html.erb +1 -2
- data/lib/webs.rb +1 -1
- data/webs.gemspec +2 -2
- metadata +4 -4
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
|
|
3
3
|
require 'rake'
|
4
4
|
require 'echoe'
|
5
5
|
|
6
|
-
Echoe.new('webs', '0.1.
|
6
|
+
Echoe.new('webs', '0.1.14') do |p|
|
7
7
|
p.description = "Reusable webs stuff."
|
8
8
|
p.url = "https://colczak@github.com/websdev/websgem.git"
|
9
9
|
p.author = "Chuck Olczak"
|
@@ -12,4 +12,4 @@ Echoe.new('webs', '0.1.13') do |p|
|
|
12
12
|
p.development_dependencies = []
|
13
13
|
end
|
14
14
|
|
15
|
-
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
15
|
+
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
@@ -18,6 +18,7 @@ module Webs
|
|
18
18
|
include Webs::Cache
|
19
19
|
helper_method :webs_site
|
20
20
|
helper_method :webs_app_name
|
21
|
+
helper_method :webs_permapath
|
21
22
|
helper_method :webs_appenv_name
|
22
23
|
end
|
23
24
|
end
|
@@ -38,6 +39,10 @@ module Webs
|
|
38
39
|
end
|
39
40
|
end
|
40
41
|
|
42
|
+
def webs_permapath
|
43
|
+
@permapath
|
44
|
+
end
|
45
|
+
|
41
46
|
def webs_query_string
|
42
47
|
webs_params.collect{ |k,v| [k,v].join("=") }.join("&").to_s
|
43
48
|
end
|
@@ -87,6 +92,15 @@ module Webs
|
|
87
92
|
@title = Webs::app_title
|
88
93
|
end
|
89
94
|
|
95
|
+
def set_webs_permapath pp=nil
|
96
|
+
@permapath = pp
|
97
|
+
if @permapath.nil?
|
98
|
+
path = request.env["REQUEST_PATH"]
|
99
|
+
@permapath = path.blank? ? "/" : path.sub(/-[^-]*$/, '')
|
100
|
+
end
|
101
|
+
@permapath
|
102
|
+
end
|
103
|
+
|
90
104
|
def validate_webs_session
|
91
105
|
render :text => "Access Denied: Webs::SECRET not defined." and return(false) unless defined?( Webs::SECRET )
|
92
106
|
render :text => "Access Denied" and return(false) unless fw_sig == webs_auth( Webs::SECRET )
|
@@ -3,7 +3,6 @@
|
|
3
3
|
<%= javascript_include_tag 'application' %>
|
4
4
|
<%= stylesheet_link_tag 'styles' %>
|
5
5
|
<%= yield :fw_head %>
|
6
|
-
<div class="clear"></div>
|
7
6
|
</fw:head>
|
8
7
|
|
9
8
|
<fw:paragraph>
|
@@ -12,7 +11,7 @@
|
|
12
11
|
<%= raw( %(<fw:page-title path='/' />) ) %>
|
13
12
|
<%= yield :fw_title %>
|
14
13
|
</span>
|
15
|
-
<div class="clear"></div>
|
14
|
+
<div class="clear clear_head"></div>
|
16
15
|
</fw:title>
|
17
16
|
|
18
17
|
<%= yield %>
|
data/lib/webs.rb
CHANGED
data/webs.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{webs}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.14"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Chuck Olczak"]
|
9
|
-
s.date = %q{2011-02-
|
9
|
+
s.date = %q{2011-02-04}
|
10
10
|
s.description = %q{Reusable webs stuff.}
|
11
11
|
s.email = %q{chuck@webs.com}
|
12
12
|
gemfiles = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 14
|
10
|
+
version: 0.1.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chuck Olczak
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-04 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|