scms 4.1.0 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTRkMmQ1YTk0OWNlYmUxMTQ5ZWE5N2IwMTE1YmFjZmYzY2E3OWJiNg==
4
+ Mzc0NDUwODJkNDk4Y2FiODVmZDIxZjA3MTEyZjVlNTJjYjNmMTRkYw==
5
5
  data.tar.gz: !binary |-
6
- MzcxZTg1YmMwNThmMjE1MGZhOTk4NDRiZDBkZTY5NjFlNzVlMTNiMw==
6
+ N2FlZjI2YmM2NTkzNWUxNmFiZDZmYWEyNzBmYzYzYmYxNWUwYWIwMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTBiZGE3NmYzZTUyMmI5YjAyZWI3NDJjOTYzNGMwM2ZlZWQ1NzhmNzU2NzYz
10
- MTJmZDIzMmZlMGNiZTM1YTRlMDVlZTE1MmZjZWZkNTVjMWJhZjg3ZDFmODBm
11
- NTY4NTVkMjQ3MWRmYWY1OWRkYTBjNzA3M2U5ZDU3NDkwNDgzZjk=
9
+ Mzg3NTU2MjhjYTgyNzYzMWI0MDUyYWMzMjQ5MmQwYzEzMGE2NWFlMmNjOTIx
10
+ YmNlZDViNjMwNWQ3M2NkM2Q3M2JjODA1NTFjZDY4M2I5YWJmMTU4ZDY5NmEw
11
+ YzRjMDFlN2ExN2M0ZTM4OTFmNmRlOTE2MDk5ODM2OTMyYTE4NjA=
12
12
  data.tar.gz: !binary |-
13
- YzFhZTYyNmVmMjlmODgwMWIzODk3MzEwMGNlZjAwMzBjY2EyYTVmZTdmODk1
14
- MzlhZGZlNWI4ZDEwYjY2ZjBkMTEwZWU4OTc0NDYwMzM5NjY0NmM4ODQ2NDgw
15
- Njg2M2JmMDgyNzE0NGM0M2RhZjU4ZDY0YzBjMGM4Nzg2ZmE2M2E=
13
+ NDk4ZDgzMDk5N2E1MDZlMGIwZTBmZDM0OWJiMTQxMmI4YmU5M2E2M2IwY2E0
14
+ YjAzMWE2NjA2MTUwODUwOGIxNWI1YjRkMWIzYmU2YTA4MWZjN2E0YjBmM2E2
15
+ NDlhYTA2ZDE4MDY5MmQ0MzgxOTRkZTNiNWMxYTQ4NDhlYzk5YWU=
@@ -0,0 +1,57 @@
1
+ PageConfig:
2
+
3
+ root config
4
+
5
+ port
6
+ template
7
+ rooturl
8
+ bootstrap
9
+ pages
10
+ navigation
11
+ navigation_meta
12
+ nav
13
+ text
14
+ url
15
+ meta
16
+ bundles
17
+
18
+ page config
19
+
20
+ template
21
+ cleanurl
22
+ url / generate (depreciated)
23
+ title
24
+ keywords
25
+ description
26
+ handler
27
+ resource
28
+ allowEdit
29
+
30
+
31
+ viewmodel = {
32
+ :name => pageOptions.name,
33
+ :title => pageOptions.title,
34
+ :url => pageOptions.url,
35
+ :resource => pageOptions.resource,
36
+ :rootdir => website,
37
+ :view => {
38
+ :name => viewname,
39
+ :path => viewfullpath,
40
+ :model => viewModel
41
+ }
42
+ }
43
+
44
+ pagemodel = {
45
+ :name => pageOptions.name,
46
+ :title => pageOptions.title,
47
+ :description => pageOptions.description,
48
+ :keywords => pageOptions.keywords,
49
+ :url => pageOptions.url,
50
+ :resource => pageOptions.resource,
51
+ :bundles => bundleModel,
52
+ :navigation => navModel,
53
+ :views => views,
54
+ :rootdir => website,
55
+ :monkeyhook => monkeyhook,
56
+ :livereload => livereload
57
+ }
data/bin/scms CHANGED
@@ -140,7 +140,9 @@ if options[:watch]
140
140
  end
141
141
 
142
142
  if options[:server]
143
- ScmsServer.start(Folders[:website], options[:port])
143
+ port = options[:port]
144
+ port = settings["port"] if settings["port"] != nil
145
+ ScmsServer.start(Folders[:website], port)
144
146
  end
145
147
 
146
148
  if options[:publish]
@@ -0,0 +1,24 @@
1
+ # hasHandler = false
2
+ # if pageOptions.handler != nil
3
+ # handlerpath = File.join(website, pageOptions.handler)
4
+ # if File.exists?(handlerpath)
5
+ # ScmsUtils.log( "Handler found: #{pageOptions.handler}" )
6
+ # hasHandler = true
7
+ # begin
8
+ # require handlerpath
9
+ # ScmsUtils.log("Rendering with handler")
10
+ # begin
11
+ # viewSnippet = ScmsHandler.render(viewpath)
12
+ # rescue Exception=>e
13
+ # ScmsUtils.errLog(e.message)
14
+ # ScmsUtils.log(e.backtrace.inspect)
15
+ # end
16
+ # rescue Exception => e
17
+ # ScmsUtils.errLog( "Problem running: ScmsHandler: #{e.message}" )
18
+ # end
19
+ # else
20
+ # ScmsUtils.errLog("Handler not found: #{pageOptions.handler}")
21
+ # ScmsUtils.writelog("::Handler not found #{pageOptions.handler}", website)
22
+ # ScmsUtils.writelog("type NUL > #{handlerpath}", website)
23
+ # end
24
+ # end
data/lib/scms/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Scms
2
- VERSION = "4.1.0"
2
+ VERSION = "4.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scms
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courtenay Probert
@@ -183,12 +183,14 @@ files:
183
183
  - assets/blank-template/js/jquery-1.8.2.min.js
184
184
  - assets/blank-template/robots.txt
185
185
  - assets/mime.types
186
+ - assets/scms help.txt
186
187
  - assets/yuicompressor/readme
187
188
  - bin/scms
188
189
  - bin/scms-server
189
190
  - build commands.txt
190
191
  - lib/scms.rb
191
192
  - lib/scms/s3deploy.rb
193
+ - lib/scms/scms-customHandler.rb
192
194
  - lib/scms/scms-helpers.rb
193
195
  - lib/scms/scms-httpserver.rb
194
196
  - lib/scms/scms-pageoptions.rb