scms 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/scms.rb +13 -8
  3. data/lib/scms/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWVmZDQ5MGVhNjU5ZGE0MGY1MjNlYTVkZDFlOGE2NjRlZjIzN2Y4Nw==
4
+ MGY4MWMyMjE3ZjdlOTBiOGU1Y2Y5ZmFlY2ViY2VlNDRkMmE2ZTBlNA==
5
5
  data.tar.gz: !binary |-
6
- MjMxN2Q1Y2UzZDdhNDdmYzIyZDRkYjBiZDc2ZDhiY2IwODhlZjQ5Zg==
6
+ N2U4NjVkMDM3Mjc0OWZiZmFkYTNmOTliNjkzMDBkYzgzMGJkZmM4OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzMxMDJmZWU1MTdiMGU5ZmYyOTUxZTM4Y2E2NmVhODY3OGJiMDIyZWMzYTAy
10
- MjU2OGM4YmJlMzNmZDk1NjljN2ZlZGE2NWU4ZjZkZmVkODc5MDIzYjNiZTFi
11
- NjdiOTRmYTc3ZTAzZTI4Y2UxOTU2YzcxOTc2YWQ1MDQyOGNkMTA=
9
+ MmE1MWJhOGU0N2Q3NjA0MThjMmEyOWNmYmI2NDdhYTY3NWM1ZmFiNWExMDZi
10
+ NGFkMzMzYWQ2MDRiM2Y0YzdlMDg3MGU4ZWVkYmFhMjAzNzdjMWVlNWU1Nzg5
11
+ OGQxNzUzOWY5ZWVjMGM1MGJjNTQ4MDhmYTRhZTYwZmMzNThiYmM=
12
12
  data.tar.gz: !binary |-
13
- YWQ3ODFiOGI4ZTZkNmRlMDkyODBhZWYwZTEzOWVmMTI5ZjIzZDdmZTBjYjRh
14
- ODg5ZGZjYmJmMzQ3YTk4YmMyNThkZDUyODcwNDMzNGNmZmYxMGQyNWVlYzMw
15
- NGNhNDkwMzcyYmM1ZmJmMDQwZmY2OTVkNThlZmI1MGNmMTlhYmQ=
13
+ ZTJhNDVjNmQ2NzcxNTE4ZjhjZGVjNDk5MTVhZmE1MTdhZjA4ZjkwZTZkYTEy
14
+ YjBkZTAwMWI1YzYzOWIzMGMwNDkyZGEwMDFiZTA5Njc0NDUyODVmYTRkYzI1
15
+ Yzk4MDhhZTU1NTllMDA1ZGE3OGI1NmJlZWI1MzFhZjhiMWJlNWE=
@@ -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
- #ScmsUtils.log( "Handler found: #{pageconfig["handler"]}" )
115
- require handlerpath
116
- funDefined = defined? Handler.render
117
- if funDefined != nil
118
- hasHandler = true
119
- else
120
- ScmsUtils.errLog( "Handler doesnt have a render method" )
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 = Handler.render(viewpath)
179
+ viewSnippet = ScmsHandler.render(viewpath)
175
180
  rescue Exception=>e
176
181
  ScmsUtils.errLog(e.message)
177
182
  ScmsUtils.log(e.backtrace.inspect)
@@ -1,3 +1,3 @@
1
1
  module Scms
2
- VERSION = "3.0.4"
2
+ VERSION = "3.0.5"
3
3
  end
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
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-13 00:00:00.000000000 Z
11
+ date: 2013-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cprobert-s3sync