skellington 0.5.2 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/README.md +14 -7
- data/config/config.yaml +4 -1
- data/lib/skellington/version.rb +1 -1
- data/lib/templates/Rakefile.eruby +5 -0
- data/lib/templates/config.rb.eruby +4 -0
- data/lib/templates/post-run.eruby +4 -2
- data/lib/templates/public/sass/styles.scss.eruby +1 -0
- data/lib/templates/views/includes/header.erb.eruby +0 -1
- data/spec/cli/bootstrap_spec.rb +0 -1
- data/spec/cli/config_rb_spec.rb +19 -0
- data/spec/cli/gemfile_spec.rb +2 -0
- data/spec/cli/public_spec.rb +5 -0
- data/spec/cli/rakefile_spec.rb +5 -0
- data/spec/cli_spec.rb +4 -2
- data/spec/hyphens_spec.rb +2 -2
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 256e2e3e7b7e51b2c04e9949232e0a809f2d5336
|
4
|
+
data.tar.gz: d34b5830e7e82b1d28afc080db0e1e17aa7165b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6569c2184e7863e8d008ff5820b3f9ce22c851c75d8f75c1d11e89b808e6b4301b84021e8401860eb1cc70fb0c6e592a823a460a18020076cbab6b1ed5adf025
|
7
|
+
data.tar.gz: 00317fbec5a468ab4fb6a1ef7064b4db33f74e4d8515bc5431dbe2021a91bc94ca21bb04d939c05287286b305dcb44ac693d1353cdb2144cec7cd815ad1377bf
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -13,6 +13,7 @@ Extremely opinionated generator for your [Sinatra](http://www.sinatrarb.com/) ap
|
|
13
13
|
* [Rspec](http://rspec.info/)
|
14
14
|
* [Jasmine](http://jasmine.github.io/2.0/introduction.html)
|
15
15
|
* [Bootstrap](http://getbootstrap.com/)
|
16
|
+
* [Compass](http://compass-style.org/)
|
16
17
|
* An MIT License file
|
17
18
|
|
18
19
|
Should work fine for both RVM- and rbenv-based setups
|
@@ -27,22 +28,28 @@ Should work fine for both RVM- and rbenv-based setups
|
|
27
28
|
|
28
29
|
Now do
|
29
30
|
|
30
|
-
|
31
|
-
|
32
|
-
|
31
|
+
cd naming_things_is_hard
|
32
|
+
bundle
|
33
|
+
rake
|
33
34
|
|
34
35
|
And presuming that passes OK
|
35
36
|
|
36
|
-
|
37
|
-
|
37
|
+
git add .
|
38
|
+
git commit -m 'First commit'
|
38
39
|
|
39
40
|
You can run the app with
|
40
41
|
|
41
|
-
|
42
|
+
bundle exec rackup
|
43
|
+
|
44
|
+
(with
|
45
|
+
|
46
|
+
bundle exec compass watch .
|
47
|
+
|
48
|
+
in a different terminal window)
|
42
49
|
|
43
50
|
For post-install hints, try
|
44
51
|
|
45
|
-
|
52
|
+
skellington postinstall
|
46
53
|
|
47
54
|
This assumes a bunch of things, at least:
|
48
55
|
|
data/config/config.yaml
CHANGED
@@ -5,7 +5,8 @@ gems:
|
|
5
5
|
- rack-google-analytics
|
6
6
|
- rake
|
7
7
|
- puma
|
8
|
-
|
8
|
+
- compass
|
9
|
+
- bootstrap-sass
|
9
10
|
test:
|
10
11
|
- rspec
|
11
12
|
- guard
|
@@ -27,6 +28,7 @@ files:
|
|
27
28
|
.rspec:
|
28
29
|
.gitignore:
|
29
30
|
config.ru:
|
31
|
+
config.rb:
|
30
32
|
# the template has this name
|
31
33
|
lib/app.rb:
|
32
34
|
# but the output file substitutes it like this, where wormname is an attribute
|
@@ -52,3 +54,4 @@ files:
|
|
52
54
|
public/css/styles.css:
|
53
55
|
public/js/app.js:
|
54
56
|
outpath: app/wormname
|
57
|
+
public/sass/styles.scss:
|
data/lib/skellington/version.rb
CHANGED
@@ -16,9 +16,11 @@ And presuming that passes OK
|
|
16
16
|
git add .
|
17
17
|
git commit -m 'First commit'
|
18
18
|
|
19
|
-
|
19
|
+
Then try
|
20
20
|
|
21
|
-
bundle exec
|
21
|
+
bundle exec rake run
|
22
|
+
|
23
|
+
which will launch Compass and then run the app (at http://localhost:9292)
|
22
24
|
<% unless @gen.licensor %>
|
23
25
|
|
24
26
|
You should also fill in your name in LICENSE.md
|
@@ -0,0 +1 @@
|
|
1
|
+
@import 'bootstrap';
|
@@ -14,7 +14,6 @@
|
|
14
14
|
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
|
15
15
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
16
16
|
<script src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>
|
17
|
-
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css' type='text/css' />
|
18
17
|
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
|
19
18
|
<link rel='icon' type='image/png' href='/assets/favicon.ico' />
|
20
19
|
<link rel='stylesheet' href='/css/styles.css' />
|
data/spec/cli/bootstrap_spec.rb
CHANGED
@@ -44,7 +44,6 @@ module Skellington
|
|
44
44
|
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
|
45
45
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
46
46
|
<script src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>
|
47
|
-
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css' type='text/css' />
|
48
47
|
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
|
49
48
|
<link rel='icon' type='image/png' href='/assets/favicon.ico' />
|
50
49
|
<link rel='stylesheet' href='/css/styles.css' />
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Skellington
|
2
|
+
describe CLI do
|
3
|
+
let :subject do
|
4
|
+
described_class.new
|
5
|
+
end
|
6
|
+
|
7
|
+
it 'generates a config.rb file' do
|
8
|
+
subject.generate 'dummy_app'
|
9
|
+
expect('dummy_app/config.rb').to have_content (
|
10
|
+
"""
|
11
|
+
require 'bootstrap-sass'
|
12
|
+
|
13
|
+
css_dir = 'public/css'
|
14
|
+
sass_dir = 'public/sass'
|
15
|
+
"""
|
16
|
+
)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/spec/cli/gemfile_spec.rb
CHANGED
data/spec/cli/public_spec.rb
CHANGED
@@ -8,6 +8,11 @@ module Skellington
|
|
8
8
|
expect { subject.generate 'dummy_app' }.to produce_file 'dummy_app/public/css/styles.css'
|
9
9
|
expect(File).to exist 'dummy_app/public/js/dummy_app.js'
|
10
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
|
+
"""
|
15
|
+
)
|
11
16
|
end
|
12
17
|
end
|
13
18
|
end
|
data/spec/cli/rakefile_spec.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
@@ -23,9 +23,11 @@ And presuming that passes OK
|
|
23
23
|
git add .
|
24
24
|
git commit -m 'First commit'
|
25
25
|
|
26
|
-
|
26
|
+
Then try
|
27
27
|
|
28
|
-
bundle exec
|
28
|
+
bundle exec rake run
|
29
|
+
|
30
|
+
which will launch Compass and then run the app \(at http:\/\/localhost:9292\)
|
29
31
|
|
30
32
|
You should also fill in your name in LICENSE.md
|
31
33
|
|
data/spec/hyphens_spec.rb
CHANGED
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.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pikesley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- lib/templates/LICENSE.md.eruby
|
183
183
|
- lib/templates/Procfile.eruby
|
184
184
|
- lib/templates/Rakefile.eruby
|
185
|
+
- lib/templates/config.rb.eruby
|
185
186
|
- lib/templates/config.ru.eruby
|
186
187
|
- lib/templates/lib/app.rb.eruby
|
187
188
|
- lib/templates/lib/app/helpers.rb.eruby
|
@@ -190,6 +191,7 @@ files:
|
|
190
191
|
- lib/templates/public/assets/favicon.ico.eruby
|
191
192
|
- lib/templates/public/css/styles.css.eruby
|
192
193
|
- lib/templates/public/js/app.js.eruby
|
194
|
+
- lib/templates/public/sass/styles.scss.eruby
|
193
195
|
- lib/templates/spec/app/app_spec.rb.eruby
|
194
196
|
- lib/templates/spec/app/helpers_spec.rb.eruby
|
195
197
|
- lib/templates/spec/javascripts/app_spec.js.eruby
|
@@ -202,6 +204,7 @@ files:
|
|
202
204
|
- skellington.gemspec
|
203
205
|
- spec/cli/app_spec.rb
|
204
206
|
- spec/cli/bootstrap_spec.rb
|
207
|
+
- spec/cli/config_rb_spec.rb
|
205
208
|
- spec/cli/config_ru_spec.rb
|
206
209
|
- spec/cli/gemfile_spec.rb
|
207
210
|
- spec/cli/git_spec.rb
|
@@ -245,6 +248,7 @@ summary: Opinionated boilerplate skeleton generator for a Sinatra app
|
|
245
248
|
test_files:
|
246
249
|
- spec/cli/app_spec.rb
|
247
250
|
- spec/cli/bootstrap_spec.rb
|
251
|
+
- spec/cli/config_rb_spec.rb
|
248
252
|
- spec/cli/config_ru_spec.rb
|
249
253
|
- spec/cli/gemfile_spec.rb
|
250
254
|
- spec/cli/git_spec.rb
|