skellington 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/config/config.yaml +34 -4
  4. data/lib/{jekyll → common}/templates/.ruby-version.eruby +0 -0
  5. data/lib/{jekyll → common}/templates/LICENSE.md.eruby +0 -0
  6. data/lib/common/templates/gitignore +7 -0
  7. data/lib/{sinatra/templates/views/includes/footer.erb.eruby → common/templates/includes/footer} +0 -0
  8. data/lib/common/templates/includes/header +43 -0
  9. data/lib/common/templates/includes/ie-cruft +6 -0
  10. data/lib/common/templates/sass/colours.scss +1 -0
  11. data/lib/common/templates/sass/fonts.scss +1 -0
  12. data/lib/{sinatra/templates/public/sass/_footer.scss.eruby → common/templates/sass/footer.scss} +0 -0
  13. data/lib/{sinatra/templates/public/sass/styles.scss.eruby → common/templates/sass/styles.scss} +5 -2
  14. data/lib/common/templates/sass/variables.scss +1 -0
  15. data/lib/common/templates/views/layout +28 -0
  16. data/lib/jekyll/templates/_config.yml.eruby +2 -0
  17. data/lib/jekyll/templates/_data/libs.yml.eruby +15 -0
  18. data/lib/jekyll/templates/index.md.eruby +1 -1
  19. data/lib/jekyll/templates/post-run.eruby +1 -1
  20. data/lib/sinatra/templates/Gemfile.eruby +1 -1
  21. data/lib/sinatra/templates/lib/app.rb.eruby +1 -1
  22. data/lib/sinatra/templates/views/includes/css-libs.erb.eruby +6 -0
  23. data/lib/sinatra/templates/views/includes/fonts-libs.erb.eruby +8 -0
  24. data/lib/sinatra/templates/views/includes/js-libs.erb.eruby +8 -0
  25. data/lib/skellington/generator.rb +4 -5
  26. data/lib/skellington/template.rb +19 -1
  27. data/lib/skellington/version.rb +1 -1
  28. data/spec/jekyll/bootstrap/css_spec.rb +93 -0
  29. data/spec/jekyll/bootstrap_4/bootstrap_4_spec.rb +45 -0
  30. data/spec/jekyll/cli_spec.rb +1 -1
  31. data/spec/jekyll/data/libs_spec.rb +33 -0
  32. data/spec/jekyll/{cli/git_spec.rb → git_spec.rb} +0 -0
  33. data/spec/jekyll/{cli/index_md.rb → layout/index_md_spec.rb} +2 -3
  34. data/spec/jekyll/layout/layout_spec.rb +104 -0
  35. data/spec/jekyll/{cli → root_files}/config_yml_spec.rb +2 -0
  36. data/spec/jekyll/{cli → root_files}/gemfile_spec.rb +0 -0
  37. data/spec/jekyll/{cli → root_files}/license_spec.rb +0 -0
  38. data/spec/jekyll/{cli → root_files}/rbenv_spec.rb +0 -0
  39. data/spec/non_local_path_spec.rb +1 -1
  40. data/spec/sinatra/{cli → app}/app_spec.rb +1 -1
  41. data/spec/sinatra/{cli → app}/config_yml_spec.rb +0 -0
  42. data/spec/sinatra/{cli → app}/helpers_spec.rb +0 -0
  43. data/spec/sinatra/app/public_spec.rb +14 -0
  44. data/spec/sinatra/{cli → app}/racks_spec.rb +0 -0
  45. data/spec/sinatra/bootstrap/css_spec.rb +42 -0
  46. data/spec/sinatra/{cli → bootstrap_4}/config_rb_bootstrap_4_spec.rb +0 -0
  47. data/spec/sinatra/{cli → bootstrap_4}/gemfile_bootstrap_4_spec.rb +1 -2
  48. data/spec/sinatra/{cli → bootstrap_4}/public_bootstrap_4_spec.rb +0 -0
  49. data/spec/sinatra/{cli/git_spec.rb → git_spec.rb} +0 -0
  50. data/spec/sinatra/{cli → javascript}/javascript_spec.rb +0 -0
  51. data/spec/sinatra/layout/includes_spec.rb +71 -0
  52. data/spec/sinatra/layout/layout_spec.rb +92 -0
  53. data/spec/sinatra/layout/views_spec.rb +17 -0
  54. data/spec/sinatra/{cli → root_files}/config_rb_spec.rb +0 -0
  55. data/spec/sinatra/{cli → root_files}/config_ru_spec.rb +0 -0
  56. data/spec/sinatra/{cli → root_files}/gemfile_spec.rb +0 -1
  57. data/spec/sinatra/{cli → root_files}/guardfile_spec.rb +0 -0
  58. data/spec/sinatra/{cli → root_files}/license_spec.rb +0 -0
  59. data/spec/sinatra/{cli → root_files}/procfile_spec.rb +0 -0
  60. data/spec/sinatra/{cli → root_files}/rakefile_spec.rb +0 -0
  61. data/spec/sinatra/{cli → root_files}/rbenv_spec.rb +0 -0
  62. data/spec/sinatra/{cli → spec}/spec_spec.rb +0 -0
  63. metadata +84 -81
  64. data/lib/jekyll/templates/.gitignore.eruby +0 -2
  65. data/lib/jekyll/templates/_layouts/default.html.eruby +0 -29
  66. data/lib/jekyll/templates/_sass/bootstrap-custom.scss.eruby +0 -1
  67. data/lib/jekyll/templates/_sass/fonts.scss.eruby +0 -4
  68. data/lib/jekyll/templates/assets/application.scss.eruby +0 -6
  69. data/lib/sinatra/templates/.gitignore.eruby +0 -2
  70. data/lib/sinatra/templates/.ruby-version.eruby +0 -1
  71. data/lib/sinatra/templates/LICENSE.md.eruby +0 -27
  72. data/lib/sinatra/templates/public/sass/_fonts.scss.eruby +0 -2
  73. data/lib/sinatra/templates/public/sass/_variables.scss.eruby +0 -2
  74. data/lib/sinatra/templates/views/default.erb.eruby +0 -17
  75. data/lib/sinatra/templates/views/includes/header.erb.eruby +0 -22
  76. data/spec/jekyll/cli/assets_css_spec.rb +0 -23
  77. data/spec/jekyll/cli/bootstrap_4_spec.rb +0 -48
  78. data/spec/jekyll/cli/bootstrap_spec.rb +0 -47
  79. data/spec/jekyll/cli/layout_spec.rb +0 -45
  80. data/spec/sinatra/cli/includes_spec.rb +0 -72
  81. data/spec/sinatra/cli/layout_spec.rb +0 -32
  82. data/spec/sinatra/cli/public_spec.rb +0 -111
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skellington
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-28 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -196,23 +196,26 @@ files:
196
196
  - Rakefile
197
197
  - bin/skellington
198
198
  - config/config.yaml
199
- - lib/jekyll/templates/.gitignore.eruby
200
- - lib/jekyll/templates/.ruby-version.eruby
199
+ - lib/common/templates/.ruby-version.eruby
200
+ - lib/common/templates/LICENSE.md.eruby
201
+ - lib/common/templates/gitignore
202
+ - lib/common/templates/includes/footer
203
+ - lib/common/templates/includes/header
204
+ - lib/common/templates/includes/ie-cruft
205
+ - lib/common/templates/sass/colours.scss
206
+ - lib/common/templates/sass/fonts.scss
207
+ - lib/common/templates/sass/footer.scss
208
+ - lib/common/templates/sass/styles.scss
209
+ - lib/common/templates/sass/variables.scss
210
+ - lib/common/templates/views/layout
201
211
  - lib/jekyll/templates/Gemfile.eruby
202
- - lib/jekyll/templates/LICENSE.md.eruby
203
212
  - lib/jekyll/templates/_config.yml.eruby
204
- - lib/jekyll/templates/_layouts/default.html.eruby
205
- - lib/jekyll/templates/_sass/bootstrap-custom.scss.eruby
206
- - lib/jekyll/templates/_sass/fonts.scss.eruby
207
- - lib/jekyll/templates/assets/application.scss.eruby
213
+ - lib/jekyll/templates/_data/libs.yml.eruby
208
214
  - lib/jekyll/templates/index.md.eruby
209
215
  - lib/jekyll/templates/post-run.eruby
210
- - lib/sinatra/templates/.gitignore.eruby
211
216
  - lib/sinatra/templates/.rspec.eruby
212
- - lib/sinatra/templates/.ruby-version.eruby
213
217
  - lib/sinatra/templates/Gemfile.eruby
214
218
  - lib/sinatra/templates/Guardfile.eruby
215
- - lib/sinatra/templates/LICENSE.md.eruby
216
219
  - lib/sinatra/templates/Procfile.eruby
217
220
  - lib/sinatra/templates/Rakefile.eruby
218
221
  - lib/sinatra/templates/config.rb.eruby
@@ -225,21 +228,17 @@ files:
225
228
  - lib/sinatra/templates/public/assets/favicon.ico.eruby
226
229
  - lib/sinatra/templates/public/css/styles.css.eruby
227
230
  - lib/sinatra/templates/public/js/app.js.eruby
228
- - lib/sinatra/templates/public/sass/_fonts.scss.eruby
229
- - lib/sinatra/templates/public/sass/_footer.scss.eruby
230
231
  - lib/sinatra/templates/public/sass/_github-corner.scss.eruby
231
- - lib/sinatra/templates/public/sass/_variables.scss.eruby
232
- - lib/sinatra/templates/public/sass/styles.scss.eruby
233
232
  - lib/sinatra/templates/spec/app/app_spec.rb.eruby
234
233
  - lib/sinatra/templates/spec/app/helpers_spec.rb.eruby
235
234
  - lib/sinatra/templates/spec/javascripts/app_spec.js.eruby
236
235
  - lib/sinatra/templates/spec/javascripts/support/jasmine.yml.eruby
237
236
  - lib/sinatra/templates/spec/javascripts/support/jasmine_helper.rb.eruby
238
237
  - lib/sinatra/templates/spec/spec_helper.rb.eruby
239
- - lib/sinatra/templates/views/default.erb.eruby
240
- - lib/sinatra/templates/views/includes/footer.erb.eruby
238
+ - lib/sinatra/templates/views/includes/css-libs.erb.eruby
239
+ - lib/sinatra/templates/views/includes/fonts-libs.erb.eruby
241
240
  - lib/sinatra/templates/views/includes/github-corner.erb.eruby
242
- - lib/sinatra/templates/views/includes/header.erb.eruby
241
+ - lib/sinatra/templates/views/includes/js-libs.erb.eruby
243
242
  - lib/sinatra/templates/views/index.erb.eruby
244
243
  - lib/skellington.rb
245
244
  - lib/skellington/cli.rb
@@ -249,41 +248,43 @@ files:
249
248
  - lib/skellington/version.rb
250
249
  - skellington.gemspec
251
250
  - spec/hyphens_spec.rb
252
- - spec/jekyll/cli/assets_css_spec.rb
253
- - spec/jekyll/cli/bootstrap_4_spec.rb
254
- - spec/jekyll/cli/bootstrap_spec.rb
255
- - spec/jekyll/cli/config_yml_spec.rb
256
- - spec/jekyll/cli/gemfile_spec.rb
257
- - spec/jekyll/cli/git_spec.rb
258
- - spec/jekyll/cli/index_md.rb
259
- - spec/jekyll/cli/layout_spec.rb
260
- - spec/jekyll/cli/license_spec.rb
261
- - spec/jekyll/cli/rbenv_spec.rb
251
+ - spec/jekyll/bootstrap/css_spec.rb
252
+ - spec/jekyll/bootstrap_4/bootstrap_4_spec.rb
262
253
  - spec/jekyll/cli_spec.rb
254
+ - spec/jekyll/data/libs_spec.rb
255
+ - spec/jekyll/git_spec.rb
256
+ - spec/jekyll/layout/index_md_spec.rb
257
+ - spec/jekyll/layout/layout_spec.rb
258
+ - spec/jekyll/root_files/config_yml_spec.rb
259
+ - spec/jekyll/root_files/gemfile_spec.rb
260
+ - spec/jekyll/root_files/license_spec.rb
261
+ - spec/jekyll/root_files/rbenv_spec.rb
263
262
  - spec/no-clobber_spec.rb
264
263
  - spec/non_local_path_spec.rb
265
- - spec/sinatra/cli/app_spec.rb
266
- - spec/sinatra/cli/config_rb_bootstrap_4_spec.rb
267
- - spec/sinatra/cli/config_rb_spec.rb
268
- - spec/sinatra/cli/config_ru_spec.rb
269
- - spec/sinatra/cli/config_yml_spec.rb
270
- - spec/sinatra/cli/gemfile_bootstrap_4_spec.rb
271
- - spec/sinatra/cli/gemfile_spec.rb
272
- - spec/sinatra/cli/git_spec.rb
273
- - spec/sinatra/cli/guardfile_spec.rb
274
- - spec/sinatra/cli/helpers_spec.rb
275
- - spec/sinatra/cli/includes_spec.rb
276
- - spec/sinatra/cli/javascript_spec.rb
277
- - spec/sinatra/cli/layout_spec.rb
278
- - spec/sinatra/cli/license_spec.rb
279
- - spec/sinatra/cli/procfile_spec.rb
280
- - spec/sinatra/cli/public_bootstrap_4_spec.rb
281
- - spec/sinatra/cli/public_spec.rb
282
- - spec/sinatra/cli/racks_spec.rb
283
- - spec/sinatra/cli/rakefile_spec.rb
284
- - spec/sinatra/cli/rbenv_spec.rb
285
- - spec/sinatra/cli/spec_spec.rb
264
+ - spec/sinatra/app/app_spec.rb
265
+ - spec/sinatra/app/config_yml_spec.rb
266
+ - spec/sinatra/app/helpers_spec.rb
267
+ - spec/sinatra/app/public_spec.rb
268
+ - spec/sinatra/app/racks_spec.rb
269
+ - spec/sinatra/bootstrap/css_spec.rb
270
+ - spec/sinatra/bootstrap_4/config_rb_bootstrap_4_spec.rb
271
+ - spec/sinatra/bootstrap_4/gemfile_bootstrap_4_spec.rb
272
+ - spec/sinatra/bootstrap_4/public_bootstrap_4_spec.rb
286
273
  - spec/sinatra/cli_spec.rb
274
+ - spec/sinatra/git_spec.rb
275
+ - spec/sinatra/javascript/javascript_spec.rb
276
+ - spec/sinatra/layout/includes_spec.rb
277
+ - spec/sinatra/layout/layout_spec.rb
278
+ - spec/sinatra/layout/views_spec.rb
279
+ - spec/sinatra/root_files/config_rb_spec.rb
280
+ - spec/sinatra/root_files/config_ru_spec.rb
281
+ - spec/sinatra/root_files/gemfile_spec.rb
282
+ - spec/sinatra/root_files/guardfile_spec.rb
283
+ - spec/sinatra/root_files/license_spec.rb
284
+ - spec/sinatra/root_files/procfile_spec.rb
285
+ - spec/sinatra/root_files/rakefile_spec.rb
286
+ - spec/sinatra/root_files/rbenv_spec.rb
287
+ - spec/sinatra/spec/spec_spec.rb
287
288
  - spec/skellington_spec.rb
288
289
  - spec/spec_helper.rb
289
290
  homepage: http://sam.pikesley.org/projects/skellington/
@@ -312,40 +313,42 @@ specification_version: 4
312
313
  summary: Opinionated boilerplate skeleton generator for a Sinatra app
313
314
  test_files:
314
315
  - spec/hyphens_spec.rb
315
- - spec/jekyll/cli/assets_css_spec.rb
316
- - spec/jekyll/cli/bootstrap_4_spec.rb
317
- - spec/jekyll/cli/bootstrap_spec.rb
318
- - spec/jekyll/cli/config_yml_spec.rb
319
- - spec/jekyll/cli/gemfile_spec.rb
320
- - spec/jekyll/cli/git_spec.rb
321
- - spec/jekyll/cli/index_md.rb
322
- - spec/jekyll/cli/layout_spec.rb
323
- - spec/jekyll/cli/license_spec.rb
324
- - spec/jekyll/cli/rbenv_spec.rb
316
+ - spec/jekyll/bootstrap/css_spec.rb
317
+ - spec/jekyll/bootstrap_4/bootstrap_4_spec.rb
325
318
  - spec/jekyll/cli_spec.rb
319
+ - spec/jekyll/data/libs_spec.rb
320
+ - spec/jekyll/git_spec.rb
321
+ - spec/jekyll/layout/index_md_spec.rb
322
+ - spec/jekyll/layout/layout_spec.rb
323
+ - spec/jekyll/root_files/config_yml_spec.rb
324
+ - spec/jekyll/root_files/gemfile_spec.rb
325
+ - spec/jekyll/root_files/license_spec.rb
326
+ - spec/jekyll/root_files/rbenv_spec.rb
326
327
  - spec/no-clobber_spec.rb
327
328
  - spec/non_local_path_spec.rb
328
- - spec/sinatra/cli/app_spec.rb
329
- - spec/sinatra/cli/config_rb_bootstrap_4_spec.rb
330
- - spec/sinatra/cli/config_rb_spec.rb
331
- - spec/sinatra/cli/config_ru_spec.rb
332
- - spec/sinatra/cli/config_yml_spec.rb
333
- - spec/sinatra/cli/gemfile_bootstrap_4_spec.rb
334
- - spec/sinatra/cli/gemfile_spec.rb
335
- - spec/sinatra/cli/git_spec.rb
336
- - spec/sinatra/cli/guardfile_spec.rb
337
- - spec/sinatra/cli/helpers_spec.rb
338
- - spec/sinatra/cli/includes_spec.rb
339
- - spec/sinatra/cli/javascript_spec.rb
340
- - spec/sinatra/cli/layout_spec.rb
341
- - spec/sinatra/cli/license_spec.rb
342
- - spec/sinatra/cli/procfile_spec.rb
343
- - spec/sinatra/cli/public_bootstrap_4_spec.rb
344
- - spec/sinatra/cli/public_spec.rb
345
- - spec/sinatra/cli/racks_spec.rb
346
- - spec/sinatra/cli/rakefile_spec.rb
347
- - spec/sinatra/cli/rbenv_spec.rb
348
- - spec/sinatra/cli/spec_spec.rb
329
+ - spec/sinatra/app/app_spec.rb
330
+ - spec/sinatra/app/config_yml_spec.rb
331
+ - spec/sinatra/app/helpers_spec.rb
332
+ - spec/sinatra/app/public_spec.rb
333
+ - spec/sinatra/app/racks_spec.rb
334
+ - spec/sinatra/bootstrap/css_spec.rb
335
+ - spec/sinatra/bootstrap_4/config_rb_bootstrap_4_spec.rb
336
+ - spec/sinatra/bootstrap_4/gemfile_bootstrap_4_spec.rb
337
+ - spec/sinatra/bootstrap_4/public_bootstrap_4_spec.rb
349
338
  - spec/sinatra/cli_spec.rb
339
+ - spec/sinatra/git_spec.rb
340
+ - spec/sinatra/javascript/javascript_spec.rb
341
+ - spec/sinatra/layout/includes_spec.rb
342
+ - spec/sinatra/layout/layout_spec.rb
343
+ - spec/sinatra/layout/views_spec.rb
344
+ - spec/sinatra/root_files/config_rb_spec.rb
345
+ - spec/sinatra/root_files/config_ru_spec.rb
346
+ - spec/sinatra/root_files/gemfile_spec.rb
347
+ - spec/sinatra/root_files/guardfile_spec.rb
348
+ - spec/sinatra/root_files/license_spec.rb
349
+ - spec/sinatra/root_files/procfile_spec.rb
350
+ - spec/sinatra/root_files/rakefile_spec.rb
351
+ - spec/sinatra/root_files/rbenv_spec.rb
352
+ - spec/sinatra/spec/spec_spec.rb
350
353
  - spec/skellington_spec.rb
351
354
  - spec/spec_helper.rb
@@ -1,2 +0,0 @@
1
- _site/
2
- .sass-cache
@@ -1,29 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang='en'>
3
- <head>
4
- <meta charset='utf-8' />
5
- <meta http-equiv='X-UA-Compatible' content='IE=edge' />
6
- <meta name='viewport' content='width=device-width, initial-scale=1' />
7
-
8
- <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
9
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
10
- <!--[if lt IE 9]>
11
- <script src='https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js'></script>
12
- <script src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js'></script>
13
- <![endif]-->
14
-
15
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
16
- <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
17
- <!-- Include all compiled plugins (below), or include individual files as needed -->
18
- <script src='/javascripts/bootstrap.min.js'></script>
19
-
20
- <link rel='stylesheet' href='/assets/application.css' type='text/css' />
21
- <title>{{ page.title }}</title>
22
- </head>
23
-
24
- <body>
25
- <div class='container'>
26
- {{ content }}
27
- </div>
28
- </body>
29
- </html>
@@ -1 +0,0 @@
1
- $brand-primary: #fa8100;
@@ -1,4 +0,0 @@
1
- @import url(http://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css);
2
- @import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono);
3
-
4
- $font-family-san-serif: 'Ubuntu Mono'
@@ -1,6 +0,0 @@
1
- ---
2
- ---
3
-
4
- @import 'bootstrap-custom';
5
- @import 'bootstrap';
6
- @import 'fonts';
@@ -1,2 +0,0 @@
1
- coverage/
2
- .sass-cache
@@ -1 +0,0 @@
1
- <%= RUBY_VERSION %>
@@ -1,27 +0,0 @@
1
- <% if @gen.licensor %>
2
- <% l = @gen.licensor %>
3
- <% else %>
4
- <% l = 'YOUR-NAME-HERE' %>
5
- <% end %>
6
- ##Copyright (c) <%= Time.new.strftime "%Y" %> <%= l %>
7
-
8
- #MIT License
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining
11
- a copy of this software and associated documentation files (the
12
- 'Software'), to deal in the Software without restriction, including
13
- without limitation the rights to use, copy, modify, merge, publish,
14
- distribute, sublicense, and/or sell copies of the Software, and to
15
- permit persons to whom the Software is furnished to do so, subject to
16
- the following conditions:
17
-
18
- The above copyright notice and this permission notice shall be
19
- included in all copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
22
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,2 +0,0 @@
1
- @import 'https://fonts.googleapis.com/css?family=Lobster';
2
- $font-primary: 'Lobster';
@@ -1,2 +0,0 @@
1
- $footer-height: 40px;
2
- $brand-primary: #fa8100;
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang='en'>
3
- <%%= erb :'includes/header' %>
4
- <body>
5
- <%%= erb :'includes/github-corner' if @github_url %>
6
- <div class='container'>
7
- <div class='row'>
8
- <div class='col-md-2'></div>
9
- <div class='col-md-8'>
10
- <%%= yield %>
11
- </div>
12
- <div class='col-md-2'></div>
13
- </div>
14
- </div>
15
- <%%= erb :'includes/footer' %>
16
- </body>
17
- </html>
@@ -1,22 +0,0 @@
1
- <head>
2
- <meta charset='utf-8' />
3
- <meta http-equiv='X-UA-Compatible' content='IE=edge' />
4
- <meta name='viewport' content='width=device-width, initial-scale=1' />
5
-
6
- <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
7
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
8
- <!--[if lt IE 9]>
9
- <script src='https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js'></script>
10
- <script src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js'></script>
11
- <![endif]-->
12
-
13
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
14
- <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
15
- <!-- Include all compiled plugins (below), or include individual files as needed -->
16
- <script src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>
17
- <link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
18
- <link rel='icon' type='image/png' href='/assets/favicon.ico' />
19
- <link rel='stylesheet' href='/css/styles.css' />
20
- <script src='/js/<%= @gen.wormname %>.js'></script>
21
- <title><%%= @title %></title>
22
- </head>
@@ -1,23 +0,0 @@
1
- module Skellington
2
- describe CLI do
3
- let :subject do
4
- described_class.new
5
- end
6
-
7
- it 'sets us sass' do
8
- subject.options = { 'framework' => 'jekyll' }
9
- subject.generate 'dummy_app'
10
-
11
- expect('dummy_app/assets/application.scss').to have_content (
12
- """
13
- ---
14
- ---
15
-
16
- @import 'bootstrap-custom';
17
- @import 'bootstrap';
18
- @import 'fonts';
19
- """
20
- )
21
- end
22
- end
23
- end
@@ -1,48 +0,0 @@
1
- module Skellington
2
- describe CLI, troublesome: true do
3
- let :subject do
4
- described_class.new
5
- end
6
-
7
- it 'installs bootstrap 4' do
8
- subject.options = { 'framework' => 'jekyll', 'bootstrap' => 4 }
9
- subject.generate 'dummy_app'
10
-
11
- expect(Dir).to exist 'dummy_app/javascripts/bootstrap'
12
- expect('dummy_app/javascripts/bootstrap.min.js').to have_content (
13
- """
14
- /*!
15
- * Bootstrap v4.0.0-alpha.4 (http://getbootstrap.com)
16
- * Copyright 2011-2016 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
17
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
18
- */
19
- """
20
- )
21
-
22
- expect(Dir).to exist 'dummy_app/_sass/bootstrap'
23
- expect('dummy_app/_sass/bootstrap.scss').to have_content (
24
- """
25
- /*!
26
- * Bootstrap v4.0.0-alpha.4 (http://getbootstrap.com)
27
- * Copyright 2011-2016 The Bootstrap Authors
28
- * Copyright 2011-2016 Twitter, Inc.
29
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
30
- */
31
- """
32
- )
33
- expect('dummy_app/_sass/bootstrap-custom.scss').to have_content (
34
- """
35
- $brand-primary: #fa8100;
36
- """
37
- )
38
- expect('dummy_app/_sass/fonts.scss').to have_content (
39
- """
40
- @import url(http://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css);
41
- @import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono);
42
-
43
- $font-family-san-serif: 'Ubuntu Mono'
44
- """
45
- )
46
- end
47
- end
48
- end
@@ -1,47 +0,0 @@
1
- module Skellington
2
- describe CLI do
3
- let :subject do
4
- described_class.new
5
- end
6
-
7
- it 'installs bootstrap' do
8
- subject.options = { 'framework' => 'jekyll' }
9
- subject.generate 'dummy_app'
10
-
11
- expect(Dir).to exist 'dummy_app/javascripts/bootstrap'
12
- expect('dummy_app/javascripts/bootstrap.min.js').to have_content (
13
- """
14
- /*!
15
- * Bootstrap v3.3.7 (http://getbootstrap.com)
16
- * Copyright 2011-2016 Twitter, Inc.
17
- * Licensed under the MIT license
18
- */
19
- """
20
- )
21
-
22
- expect(Dir).to exist 'dummy_app/_sass/bootstrap'
23
- expect('dummy_app/_sass/bootstrap.scss').to have_content (
24
- """
25
- /*!
26
- * Bootstrap v3.3.7 (http://getbootstrap.com)
27
- * Copyright 2011-2016 Twitter, Inc.
28
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
29
- */
30
- """
31
- )
32
- expect('dummy_app/_sass/bootstrap-custom.scss').to have_content (
33
- """
34
- $brand-primary: #fa8100;
35
- """
36
- )
37
- expect('dummy_app/_sass/fonts.scss').to have_content (
38
- """
39
- @import url(http://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css);
40
- @import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono);
41
-
42
- $font-family-san-serif: 'Ubuntu Mono'
43
- """
44
- )
45
- end
46
- end
47
- end
@@ -1,45 +0,0 @@
1
- module Skellington
2
- describe CLI do
3
- let :subject do
4
- described_class.new
5
- end
6
-
7
- it 'generates a default layout' do
8
- subject.options = { 'framework' => 'jekyll' }
9
- subject.generate 'dummy_app'
10
- expect('dummy_app/_layouts/default.html').to have_content (
11
- """
12
- <!DOCTYPE html>
13
- <html lang='en'>
14
- <head>
15
- <meta charset='utf-8' />
16
- <meta http-equiv='X-UA-Compatible' content='IE=edge' />
17
- <meta name='viewport' content='width=device-width, initial-scale=1' />
18
-
19
- <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
20
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
21
- <!--[if lt IE 9]>
22
- <script src='https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js'></script>
23
- <script src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js'></script>
24
- <![endif]-->
25
-
26
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
27
- <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
28
- <!-- Include all compiled plugins (below), or include individual files as needed -->
29
- <script src='/javascripts/bootstrap.min.js'></script>
30
-
31
- <link rel='stylesheet' href='/assets/application.css' type='text/css' />
32
- <title>{{ page.title }}</title>
33
- </head>
34
-
35
- <body>
36
- <div class='container'>
37
- {{ content }}
38
- </div>
39
- </body>
40
- </html>
41
- """
42
- )
43
- end
44
- end
45
- end
@@ -1,72 +0,0 @@
1
- module Skellington
2
- describe CLI do
3
- let :subject do
4
- described_class.new
5
- end
6
-
7
- it 'generates some includes' do
8
- subject.generate 'dummy_app'
9
-
10
- expect('dummy_app/views/includes/header.erb').to have_content (
11
- """
12
- <head>
13
- <meta charset='utf-8' />
14
- <meta http-equiv='X-UA-Compatible' content='IE=edge' />
15
- <meta name='viewport' content='width=device-width, initial-scale=1' />
16
-
17
- <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
18
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
19
- <!--[if lt IE 9]>
20
- <script src='https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js'></script>
21
- <script src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js'></script>
22
- <![endif]-->
23
-
24
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
25
- <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
26
- <!-- Include all compiled plugins (below), or include individual files as needed -->
27
- <script src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>
28
- <link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
29
- <link rel='icon' type='image/png' href='/assets/favicon.ico' />
30
- <link rel='stylesheet' href='/css/styles.css' />
31
- <script src='/js/dummy_app.js'></script>
32
- <title><%= @title %></title>
33
- </head>
34
- """
35
- )
36
- expect('dummy_app/views/index.erb').to have_content (
37
- """
38
- <%= @content %>
39
- """
40
- )
41
-
42
- expect('dummy_app/views/includes/footer.erb').to have_content (
43
- """
44
- <div class='footer'>
45
- <div class='row'>
46
- <div class='col-md-12 text-center bottom'>
47
- Generated with
48
- <a href='http://sam.pikesley.org/projects/skellington/' alt='Skellington' title='Skellington'>
49
- Skellington
50
- </a>
51
- </div>
52
- </div>
53
- </div>
54
- """
55
- )
56
-
57
- expect('dummy_app/views/includes/github-corner.erb').to have_content (
58
- """
59
- <?xml version='1.0' standalone='no'?>
60
- <?xml-stylesheet type='text/css' href='styles.css'?>
61
- <a href='<%= @github_url %>' class='github-corner' aria-label='Fork me on Github'>
62
- <svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 250 250' fill='#151513' style='position: absolute; top: 0; right: 0'>
63
- <path class='octo-background' d='M0 0l115 115h15l12 27 108 108V0z' fill='#fff'/>
64
- <path class='octo-arm' d='M128 109c-15-9-9-19-9-19 3-7 2-11 2-11-1-7 3-2 3-2 4 5 2 11 2 11-3 10 5 15 9 16' style='-webkit-transform-origin: 130px 106px; transform-origin: 130px 106px'/>
65
- <path class='octo-body' d='M115 115s4 2 5 0l14-14c3-2 6-3 8-3-8-11-15-24 2-41 5-5 10-7 16-7 1-2 3-7 12-11 0 0 5 3 7 16 4 2 8 5 12 9s7 8 9 12c14 3 17 7 17 7-4 8-9 11-11 11 0 6-2 11-7 16-16 16-30 10-41 2 0 3-1 7-5 11l-12 11c-1 1 1 5 1 5z'/>
66
- </svg>
67
- </a>
68
- """
69
- )
70
- end
71
- end
72
- end
@@ -1,32 +0,0 @@
1
- module Skellington
2
- describe CLI do
3
- let :subject do
4
- described_class.new
5
- end
6
-
7
- it 'generates a default layout' do
8
- subject.generate 'dummy_app'
9
- expect('dummy_app/views/default.erb').to have_content (
10
- """
11
- <!DOCTYPE html>
12
- <html lang='en'>
13
- /erb.*'includes/header'/
14
- <body>
15
- /erb.*'includes/github-corner' if @github_url/
16
- <div class='container'>
17
- <div class='row'>
18
- <div class='col-md-2'></div>
19
- <div class='col-md-8'>
20
- <%= yield %>
21
- </div>
22
- <div class='col-md-2'></div>
23
- </div>
24
- </div>
25
- /erb.*:'includes/footer'/
26
- </body>
27
- </html>
28
- """
29
- )
30
- end
31
- end
32
- end