scms 4.4.4 → 4.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +5 -15
- data/Gemfile.lock +18 -13
- data/README.md +2 -2
- data/lib/scms.rb +14 -3
- data/lib/scms/scms-bundler.rb +4 -2
- data/lib/scms/scms-utils.rb +4 -0
- data/lib/scms/version.rb +1 -1
- data/scms.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Nzk5MDBjMmFlZGNjNDVlOTA3OTIxMjgwMzY3YzQ2NDRiMWRjZjAxZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Mzc0MTgwOTk1NTRlZjAyNzk5NTg0ZDEzYWI1ODJiM2M2Y2IwMThhNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjM1OTQ3MTY0Zjk4YWRiZWQ5ZTcyZGIwZGEzODk3NjM5YWJkMDNmYTRkMzM3
|
10
|
+
Y2I4ODc1MmJmMDFhNGE5NzUzNjEzYjZjMmNmOTc3NWI0ZWU4YjI1NDRlNGEz
|
11
|
+
MTVkNDdiOTA3NDI0MzQwNDIwYzEyNTE0OGJmNjgzYmM3MTk4N2M=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmQzNTdjNjY4YjExYzM2YmZiNGZkYjJlOWQzN2Q3NmM1YzA5Yjg5YjFmMDYz
|
14
|
+
ZDI4MjE3ZTIwNzNjMmY0MTdjYjE0MjMxN2EwNDljMTVlZWE3MzdlMmZkMTFm
|
15
|
+
MzlkMDYwYTU3ZDI1NjA5YWQ3NWFmYjQ1YjEzZDU5ODcwMzY5NTI=
|
data/.gitignore
CHANGED
@@ -1,16 +1,11 @@
|
|
1
1
|
*.gem
|
2
2
|
*.sublime-project
|
3
3
|
*.sublime-workspace
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
DocProject/Help/*.hhc
|
10
|
-
DocProject/Help/*.hhk
|
11
|
-
DocProject/Help/*.hhp
|
12
|
-
DocProject/Help/Html2
|
13
|
-
DocProject/Help/html
|
4
|
+
assets/blank-template/index.html
|
5
|
+
assets/blank-template/about.html
|
6
|
+
assets/blank-template/scripts/bootstrap.min-v2.1.1.js
|
7
|
+
assets/blank-template/stylesheets/style-1.0.css
|
8
|
+
assets/blank-template/getting-started.html
|
14
9
|
|
15
10
|
|
16
11
|
############
|
@@ -26,8 +21,3 @@ Desktop.ini
|
|
26
21
|
|
27
22
|
# Mac crap
|
28
23
|
.DS_Store
|
29
|
-
/assets/blank-template/index.html
|
30
|
-
/assets/blank-template/about.html
|
31
|
-
/assets/blank-template/scripts/bootstrap.min-v2.1.1.js
|
32
|
-
/assets/blank-template/stylesheets/style-1.0.css
|
33
|
-
assets/blank-template/getting-started.html
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
scms (4.
|
4
|
+
scms (4.4.4)
|
5
5
|
cprobert-s3sync
|
6
|
-
filewatcher
|
7
|
-
launchy
|
8
|
-
listen
|
9
|
-
maruku
|
10
|
-
nokogiri
|
11
|
-
packr
|
12
|
-
sass
|
13
|
-
webrick
|
6
|
+
filewatcher (~> 0.3)
|
7
|
+
launchy (~> 2.4)
|
8
|
+
listen (~> 2.5)
|
9
|
+
maruku (~> 0.7)
|
10
|
+
nokogiri (~> 1.6)
|
11
|
+
packr (~> 3.2)
|
12
|
+
sass (~> 3.2)
|
13
|
+
webrick (~> 1.3)
|
14
14
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
@@ -18,18 +18,23 @@ GEM
|
|
18
18
|
addressable (2.3.5)
|
19
19
|
celluloid (0.15.2)
|
20
20
|
timers (~> 1.1.0)
|
21
|
+
celluloid-io (0.15.0)
|
22
|
+
celluloid (>= 0.15.0)
|
23
|
+
nio4r (>= 0.5.0)
|
21
24
|
cprobert-s3sync (1.4.1)
|
22
25
|
ffi (1.9.3-x86-mingw32)
|
23
26
|
filewatcher (0.3.2)
|
24
27
|
trollop (>= 1.16.2)
|
25
28
|
launchy (2.4.2)
|
26
29
|
addressable (~> 2.3)
|
27
|
-
listen (2.
|
30
|
+
listen (2.7.1)
|
28
31
|
celluloid (>= 0.15.2)
|
32
|
+
celluloid-io (>= 0.15.0)
|
29
33
|
rb-fsevent (>= 0.9.3)
|
30
34
|
rb-inotify (>= 0.9)
|
31
35
|
maruku (0.7.1)
|
32
|
-
mini_portile (0.5.
|
36
|
+
mini_portile (0.5.3)
|
37
|
+
nio4r (1.0.0)
|
33
38
|
nokogiri (1.6.1-x86-mingw32)
|
34
39
|
mini_portile (~> 0.5.0)
|
35
40
|
oyster (0.9.5)
|
@@ -39,7 +44,7 @@ GEM
|
|
39
44
|
rb-fsevent (0.9.4)
|
40
45
|
rb-inotify (0.9.3)
|
41
46
|
ffi (>= 0.5.0)
|
42
|
-
sass (3.
|
47
|
+
sass (3.3.4)
|
43
48
|
timers (1.1.0)
|
44
49
|
trollop (2.0)
|
45
50
|
webrick (1.3.1)
|
@@ -48,5 +53,5 @@ PLATFORMS
|
|
48
53
|
x86-mingw32
|
49
54
|
|
50
55
|
DEPENDENCIES
|
51
|
-
rake
|
56
|
+
rake (~> 10.1, >= 10.1.1)
|
52
57
|
scms!
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
A static website CMS
|
2
2
|
====================
|
3
3
|
|
4
|
-
If you need to build a quick html website but don't want to maintain each page
|
4
|
+
If you need to build a quick html website but don't want to maintain each page independently Static-CMS could be for you.
|
5
5
|
StaticCMS is a static website builder that creates html files from an eruby template. This facilitates the management of the layout/skin/theme from a single file.
|
6
6
|
It also has a few nifty features such as JavaScript and CSS bundeling and minimisation
|
7
|
-
When your happy with your website StaticCMS will also deploy to AmazonS3 setting
|
7
|
+
When your happy with your website StaticCMS will also deploy to AmazonS3 setting appropriate caching settings.
|
8
8
|
|
9
9
|
Find it useful? Then let me know: https://twitter.com/c_probert
|
10
10
|
|
data/lib/scms.rb
CHANGED
@@ -196,8 +196,9 @@ module Scms
|
|
196
196
|
#ScmsUtils.log("Generating: #{fileName} with #{pageOptions.template}")
|
197
197
|
|
198
198
|
if File.exists?(erb)
|
199
|
-
bundleModel = Scms.getBundleModel(website, settings, options)# Build bundle model
|
200
|
-
navModel = Scms.getNavModel(website, settings, options)# Build navigation model
|
199
|
+
bundleModel = Scms.getBundleModel(website, settings, options) # Build bundle model
|
200
|
+
navModel = Scms.getNavModel(website, settings, options) # Build navigation model
|
201
|
+
metaModel = Scms.getMetaModel(settings)
|
201
202
|
|
202
203
|
websiteroot = '/'
|
203
204
|
websiteroot = settings["rooturl"] if settings["rooturl"] != nil
|
@@ -221,6 +222,7 @@ module Scms
|
|
221
222
|
:resource => pageOptions.resource,
|
222
223
|
:bundles => bundleModel,
|
223
224
|
:navigation => navModel,
|
225
|
+
:meta => metaModel,
|
224
226
|
:views => views,
|
225
227
|
:rootdir => website,
|
226
228
|
:monkeyhook => monkeyhook,
|
@@ -301,6 +303,15 @@ module Scms
|
|
301
303
|
end
|
302
304
|
end
|
303
305
|
return navModel
|
306
|
+
end
|
307
|
+
|
308
|
+
private
|
309
|
+
def Scms.getMetaModel(settings)
|
310
|
+
metaModel = Hash.new
|
311
|
+
if settings["meta"] != nil
|
312
|
+
metaModel = settings["meta"]
|
313
|
+
end
|
314
|
+
return metaModel
|
304
315
|
end
|
305
316
|
|
306
317
|
private
|
@@ -485,7 +496,7 @@ module Scms
|
|
485
496
|
if page.views != nil
|
486
497
|
htmlSnippet = page.views[viewname]
|
487
498
|
if htmlSnippet != nil
|
488
|
-
return htmlSnippet
|
499
|
+
return ScmsUtils.makeSafe(htmlSnippet)
|
489
500
|
else
|
490
501
|
begin
|
491
502
|
viewPath = File.join(page.rootdir, "_pages", page.name, viewname +"."+ ext)
|
data/lib/scms/scms-bundler.rb
CHANGED
@@ -32,8 +32,10 @@ module ScmsBundler
|
|
32
32
|
fileContents = File.read(b)
|
33
33
|
|
34
34
|
if File.extname(b) == ".js"
|
35
|
-
|
36
|
-
|
35
|
+
if f.include? ".fat."
|
36
|
+
puts "Minifing: #{b}"
|
37
|
+
fileContents = Packr.pack(fileContents) unless /(-min)|(\.min)|(\-pack)|(\.pack)/.match(b)
|
38
|
+
end
|
37
39
|
end
|
38
40
|
|
39
41
|
content += fileContents + "\n"
|
data/lib/scms/scms-utils.rb
CHANGED
data/lib/scms/version.rb
CHANGED
data/scms.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
spec.add_dependency 'maruku', '~> 0.7'
|
33
33
|
spec.add_dependency 'packr', '~> 3.2'
|
34
|
-
spec.add_dependency 'listen', '~> 2.
|
34
|
+
spec.add_dependency 'listen', '~> 2.5'
|
35
35
|
spec.add_dependency 'filewatcher', '~> 0.3'
|
36
36
|
spec.add_dependency 'webrick', '~> 1.3'
|
37
37
|
spec.add_dependency 'launchy', '~> 2.4'
|
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: 4.4.
|
4
|
+
version: 4.4.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: 2014-
|
11
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cprobert-s3sync
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.5'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.5'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: filewatcher
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|