scms 1.7.8 → 1.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fb0d048713d9159305b91263603cac2c8f42a81
4
- data.tar.gz: ad10d994ac5df40548c63f84f08b964d946581e8
3
+ metadata.gz: 738808cc7415bb372c5fbaabdaafdc46e5d3df24
4
+ data.tar.gz: 13d075352472f3fd33a9194812145e1fc2f01e52
5
5
  SHA512:
6
- metadata.gz: 55bdf847eb1812d13f691377c8007d5fc4c0b3dff7d9cddd5ee6f8ce9dcb1f19c883ede29ccb502c3cfae4b26bc50d700ee150f107e80dd7756c7d2099c5874d
7
- data.tar.gz: a24886d3165d971ab4c701fbc7fc17df09c8d530f3f4275b4f26df36a970150f1c140d77f3328bf69b64090df8e8195c094f3c7350e3132e204c51199e4a6931
6
+ metadata.gz: 6cdc7d4366a7ed4dd2fb60c7e9237a958d124888f68ca8e6fd81a3ada0da06d009c8ccbfdfe54a93e87d3103810120a6375b64d39e73dfb41fef79a155fa195d
7
+ data.tar.gz: b686d87b124849c1ac747897e104994955d0742da8f95b822ab4881bdb0be39336cf0f3f3a49d2ba68db67f189feea002abbb81d3f62c8e7d6660d341b9df3b6
data/README.md CHANGED
@@ -0,0 +1,52 @@
1
+ A static website CMS
2
+
3
+ StaticCMS is website builder that creates html files from an eruby template.
4
+ This facilitates the management of the skin/theme from a single file.
5
+
6
+ Installing:
7
+
8
+ gem install scms
9
+
10
+ Creating a website:
11
+
12
+ scms -a create -w /path/to/folder
13
+
14
+ Building your website
15
+
16
+ scms - build -w /path/to/folder
17
+
18
+ Publishing your website
19
+
20
+ scms -a deploy -w /path/to/folder
21
+
22
+ Editing a Static-CMS website
23
+
24
+ open /path/to/folder
25
+
26
+ Step 1:
27
+ Edit the config.yml to your website structute
28
+
29
+ Step 2:
30
+ Run the build script this will generate the html files from the views.
31
+ The build atrifacts will be found in the pub directory.
32
+ Please note you need to pass the website folder as a parameter to the build script
33
+
34
+ Step 3:
35
+ To publish you will need to run the deploy script.
36
+ Please note you first need to enter your S3 credentials in the s3config.yml config file (including the bucket name)
37
+ You will also need copy your s3 certs to www/s3certs
38
+
39
+
40
+ Information on the directory structure
41
+
42
+ '/templates'
43
+ Here you will find the template(s) tht's used for the web skin/theme
44
+
45
+ '/views'
46
+ This containd the views that contain the content/html to be inhected into the mater theme
47
+
48
+ '/public'
49
+ Place the other static website assets here.
50
+
51
+ Further reading for the template language
52
+ http://www.stuartellis.eu/articles/erb/
data/bin/scms CHANGED
@@ -15,7 +15,7 @@ options = {}
15
15
  optparse = OptionParser.new do|opts|
16
16
  # Set a banner, displayed at the top
17
17
  # of the help screen.
18
- opts.banner = "Usage: static-cms.rb [options]"
18
+ opts.banner = "Usage: scms [options]"
19
19
 
20
20
  # Define the options, and what they do
21
21
  opts.on('-w', '--website WEBSITE', "Website directory (full path)") do |w|
@@ -47,7 +47,7 @@ optparse = OptionParser.new do|opts|
47
47
  end
48
48
  # This displays the help screen, all programs are
49
49
  # assumed to have this option.
50
- opts.on( '-h', '--help', 'Display this screen' ) do
50
+ opts.on( '-h', '--help', 'Display this help screen' ) do
51
51
  puts opts
52
52
  exit
53
53
  end
@@ -84,6 +84,7 @@ module StaticCMS
84
84
  File.file?(oldfile) ? FileUtils.copy(oldfile, newfile) : FileUtils.mkdir(newfile) unless File.exist? newfile
85
85
  end
86
86
  end
87
+ StaticCMS.sassall(@pub)
87
88
  else
88
89
  ScmsUtils.log("**No 'public' folder in #{$webroot} - skiping merge**")
89
90
  end
@@ -346,12 +347,9 @@ module StaticCMS
346
347
 
347
348
  def StaticCMS.crunch(crunchDir)
348
349
  ScmsUtils.log( "Starting crunching CSS and JavaScript in:\n#{crunchDir}\n\n" )
349
-
350
+ #StaticCMS.sassall(crunchDir)
350
351
  Dir.chdir(crunchDir) do
351
- Dir.glob("**/*.{css,scss}").reject{|f| /-min/.match(f) != nil || /\.min/.match(f) != nil }.each do |asset|
352
- StaticCMS.sass(asset)
353
- end
354
- Dir.glob("**/*.js").reject{|f| /-min/.match(f) != nil || /\.min/.match(f) != nil }.each do |asset|
352
+ Dir.glob("**/*.js").reject{|f| /-min/.match(f) != nil || /\.min/.match(f) != nil || /\.pack/.match(f) != nil }.each do |asset|
355
353
  StaticCMS.packr(asset)
356
354
  end
357
355
  #Dir.glob("**/*.{css, js}").each do |asset|
@@ -362,7 +360,15 @@ module StaticCMS
362
360
  #end
363
361
  end
364
362
  end
365
-
363
+
364
+ def StaticCMS.sassall(crunchDir)
365
+ Dir.chdir(crunchDir) do
366
+ Dir.glob("**/*.{scss}").each do |asset|
367
+ StaticCMS.sass(asset)
368
+ end
369
+ end
370
+ end
371
+
366
372
  def StaticCMS.sass(asset)
367
373
  if File.exists?(asset)
368
374
  begin
@@ -1,3 +1,3 @@
1
1
  module StaticCMS
2
- VERSION = '1.7.8'
2
+ VERSION = '1.7.9'
3
3
  end
@@ -3,6 +3,10 @@
3
3
  {
4
4
  "selected_items":
5
5
  [
6
+ [
7
+ "ex",
8
+ "exit"
9
+ ],
6
10
  [
7
11
  "margin",
8
12
  "margin-bottom"
@@ -47,10 +51,6 @@
47
51
  "web",
48
52
  "Websites"
49
53
  ],
50
- [
51
- "ex",
52
- "exists"
53
- ],
54
54
  [
55
55
  "is",
56
56
  "isApp"
@@ -136,6 +136,15 @@
136
136
  },
137
137
  "file_history":
138
138
  [
139
+ "/I/Code/GitHub/Static-CMS/lib/scms.rb",
140
+ "/I/Code/GitHub/Static-CMS/bin/scms",
141
+ "/I/Code/GitHub/Static-CMS/lib/scms/s3deploy.rb",
142
+ "/I/Code/GitHub/Static-CMS/lib/scms/version.rb",
143
+ "/I/Code/GitHub/Static-CMS/scms.gemspec",
144
+ "/I/Code/GitHub/Static-CMS/lib/staticcms/ScmsUtils.rb",
145
+ "/I/Code/GitHub/Static-CMS/lib/staticcms/ScmsDeploy.rb",
146
+ "/I/Code/GitHub/Static-CMS/staticcms.gemspec",
147
+ "/I/Code/GitHub/Static-CMS/lib/staticcms.rb",
139
148
  "/I/Code/cs-scripts/QSonic/orderdate.csx",
140
149
  "/C/Code/static_cms/air-monkey/update-config.xml",
141
150
  "/C/Code/static_cms/air-monkey/package.bat",
@@ -191,6 +200,7 @@
191
200
  "height": 0.0,
192
201
  "where_history":
193
202
  [
203
+ "I:\\Code\\GitHub\\Static-CMS",
194
204
  "C:\\Code\\static_cms\\air-monkey",
195
205
  "C:\\Code\\static_cms\\air-monkey\\assets\\scripts",
196
206
  "C:\\Code\\static_cms\\air-monkey"
@@ -201,6 +211,23 @@
201
211
  "case_sensitive": false,
202
212
  "find_history":
203
213
  [
214
+ "Loading config",
215
+ "Loading config:",
216
+ "@configdir",
217
+ "yamlpath",
218
+ "S3Deploy.s3sync",
219
+ "StaticCMS.yuiCompress",
220
+ "StaticCMS.CleanPubDir",
221
+ "StaticCMS.getSettings",
222
+ "StaticCMS.BundleStylesheets",
223
+ "StaticCMS.BundleScripts",
224
+ "StaticCMS.ParseTemplates",
225
+ "StaticCMS.render",
226
+ "$html",
227
+ "StaticCMS.render",
228
+ "ScmsDeploy",
229
+ "ScmsBuild",
230
+ "tools",
204
231
  "Syncing everything else",
205
232
  "silksvn",
206
233
  "Do not close this window",
@@ -318,6 +345,15 @@
318
345
  "regex": false,
319
346
  "replace_history":
320
347
  [
348
+ "S3Deploy.sync",
349
+ "StaticCMS.yuicompress",
350
+ "StaticCMS.cleanpubdir",
351
+ "StaticCMS.getsettings",
352
+ "StaticCMS.bundlestylesheets",
353
+ "StaticCMS.bundlescripts",
354
+ "StaticCMS.parsetemplates",
355
+ "S3Deploy",
356
+ "StaticCMS",
321
357
  "bootstrap.min.css",
322
358
  "air.trace",
323
359
  "getEditWebsitePubFolder",
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: 1.7.8
4
+ version: 1.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courtenay Probert