webs 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/controller/webs_controller.rb +2 -2
- data/lib/helper/application.rb +8 -0
- data/lib/views/layouts/webs_page.html.erb +2 -2
- data/lib/views/layouts/webs_utility.html.erb +1 -1
- data/lib/webs.rb +1 -1
- data/webs.gemspec +2 -2
- metadata +4 -4
data/Rakefile
CHANGED
@@ -86,7 +86,7 @@ module Webs
|
|
86
86
|
|
87
87
|
# FILTERS
|
88
88
|
def set_page_title
|
89
|
-
@title = Webs::app_title
|
89
|
+
@title = @page_title = Webs::app_title
|
90
90
|
end
|
91
91
|
|
92
92
|
def set_webs_permapath pp=nil
|
@@ -103,7 +103,7 @@ module Webs
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def require_webs_admin
|
106
|
-
render( :text => "You are not authorized.", :status=>403 ) unless
|
106
|
+
render( :text => "You are not authorized.", :status=>403 ) unless webs_admin_owner?
|
107
107
|
end
|
108
108
|
|
109
109
|
def require_sitebuilder
|
data/lib/helper/application.rb
CHANGED
@@ -35,6 +35,14 @@ module Webs
|
|
35
35
|
[ lvl[:value], names[lvl_key] || lvl[:name] ]
|
36
36
|
end
|
37
37
|
end
|
38
|
+
|
39
|
+
def webs_page_settings options = {}
|
40
|
+
options.keys.each do |k|
|
41
|
+
val = options[k]
|
42
|
+
val = h(val)
|
43
|
+
self.instance_variable_set("@#{k.to_s}".to_sym, val)
|
44
|
+
end
|
45
|
+
end
|
38
46
|
end
|
39
47
|
end
|
40
48
|
end
|
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.20"
|
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-03-
|
9
|
+
s.date = %q{2011-03-17}
|
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: 51
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 20
|
10
|
+
version: 0.1.20
|
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-03-
|
18
|
+
date: 2011-03-17 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|