scms 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/scms.rb +13 -8
- data/lib/scms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGY4MWMyMjE3ZjdlOTBiOGU1Y2Y5ZmFlY2ViY2VlNDRkMmE2ZTBlNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2U4NjVkMDM3Mjc0OWZiZmFkYTNmOTliNjkzMDBkYzgzMGJkZmM4OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmE1MWJhOGU0N2Q3NjA0MThjMmEyOWNmYmI2NDdhYTY3NWM1ZmFiNWExMDZi
|
10
|
+
NGFkMzMzYWQ2MDRiM2Y0YzdlMDg3MGU4ZWVkYmFhMjAzNzdjMWVlNWU1Nzg5
|
11
|
+
OGQxNzUzOWY5ZWVjMGM1MGJjNTQ4MDhmYTRhZTYwZmMzNThiYmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTJhNDVjNmQ2NzcxNTE4ZjhjZGVjNDk5MTVhZmE1MTdhZjA4ZjkwZTZkYTEy
|
14
|
+
YjBkZTAwMWI1YzYzOWIzMGMwNDkyZGEwMDFiZTA5Njc0NDUyODVmYTRkYzI1
|
15
|
+
Yzk4MDhhZTU1NTllMDA1ZGE3OGI1NmJlZWI1MzFhZjhiMWJlNWE=
|
data/lib/scms.rb
CHANGED
@@ -111,13 +111,18 @@ module Scms
|
|
111
111
|
if pageconfig["handler"] != nil
|
112
112
|
handlerpath = File.join(@website, pageconfig["handler"])
|
113
113
|
if File.exists?(handlerpath)
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
114
|
+
ScmsUtils.log( "Handler found: #{pageconfig["handler"]}" )
|
115
|
+
hasHandler = true
|
116
|
+
begin
|
117
|
+
require handlerpath
|
118
|
+
# #hasHandler = ScmsHandler.instance_methods(false).include? :render
|
119
|
+
# hasHandler = ScmsHandler.method_defined?(:render)
|
120
|
+
# puts "has render method: #{hasHandler}"
|
121
|
+
# if !hasHandler
|
122
|
+
# ScmsUtils.errLog( "Handler doesnt have a render method" )
|
123
|
+
# end
|
124
|
+
rescue Exception => e
|
125
|
+
ScmsUtils.errLog( "Problem running: ScmsHandler: #{e.message}" )
|
121
126
|
end
|
122
127
|
else
|
123
128
|
ScmsUtils.errLog("Handler not found: #{pageconfig["handler"]}")
|
@@ -171,7 +176,7 @@ module Scms
|
|
171
176
|
if hasHandler
|
172
177
|
ScmsUtils.log("Rendering with handler")
|
173
178
|
begin
|
174
|
-
viewSnippet =
|
179
|
+
viewSnippet = ScmsHandler.render(viewpath)
|
175
180
|
rescue Exception=>e
|
176
181
|
ScmsUtils.errLog(e.message)
|
177
182
|
ScmsUtils.log(e.backtrace.inspect)
|
data/lib/scms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Courtenay Probert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cprobert-s3sync
|