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
@@ -1,111 +0,0 @@
1
- module Skellington
2
- describe CLI do
3
- let :subject do
4
- described_class.new
5
- end
6
-
7
- it 'generates placeholders for static files' do
8
- expect { subject.generate 'dummy_app' }.to produce_file 'dummy_app/public/css/styles.css'
9
- expect(File).to exist 'dummy_app/public/js/dummy_app.js'
10
- expect(File).to exist 'dummy_app/public/assets/favicon.ico'
11
- expect('dummy_app/public/sass/styles.scss').to have_content (
12
- """
13
- @import 'bootstrap';
14
- @import 'fonts';
15
- @import 'variables';
16
- @import 'footer';
17
- @import 'github-corner';
18
-
19
- h1 {
20
- color: $brand-primary;
21
- font-family: $font-primary;
22
- }
23
- """
24
- )
25
-
26
- expect('dummy_app/public/sass/_variables.scss').to have_content (
27
- """
28
- $footer-height: 40px;
29
- $brand-primary: #fa8100;
30
- """
31
- )
32
-
33
- expect('dummy_app/public/sass/_footer.scss').to have_content (
34
- """
35
- html {
36
- position: relative;
37
- min-height: 100%;
38
- }
39
-
40
- body {
41
- margin-bottom: $footer-height;
42
- }
43
-
44
- .footer {
45
- position: absolute;
46
- bottom: 0;
47
- width: 100%;
48
-
49
- margin-top: $padding-large-vertical;
50
- background: $brand-primary;
51
- color: white;
52
- height: $footer-height;
53
-
54
- padding: $padding-large-vertical $padding-large-horizontal;
55
-
56
- a {
57
- color: white;
58
- }
59
- }
60
- """
61
- )
62
-
63
- expect('dummy_app/public/sass/_github-corner.scss').to have_content (
64
- """
65
- .octo-background {
66
- fill: $brand-primary;
67
- }
68
-
69
- .octo-arm, .octo-body {
70
- fill: white;
71
- }
72
-
73
- .github-corner:hover .octo-arm {
74
- animation: octocat-wave 560ms ease-in-out
75
- }
76
-
77
- @keyframes octocat-wave {
78
- 0%, 100% {
79
- transform: rotate(0)
80
- }
81
-
82
- 20%, 60% {
83
- transform: rotate(-25deg)
84
- }
85
-
86
- 40%, 80% {
87
- transform: rotate(10deg)
88
- }
89
- }
90
-
91
- @media (max-width: 500px) {
92
- .github-corner:hover .octo-arm {
93
- animation: none
94
- }
95
-
96
- .github-corner .octo-arm {
97
- animation: octocat-wave 560ms ease-in-out
98
- }
99
- }
100
- """
101
- )
102
-
103
- expect('dummy_app/public/sass/_fonts.scss').to have_content (
104
- """
105
- @import 'https://fonts.googleapis.com/css?family=Lobster';
106
- $font-primary: 'Lobster';
107
- """
108
- )
109
- end
110
- end
111
- end