skellington 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/config.yaml +1 -0
- data/lib/skellington/cli.rb +1 -0
- data/lib/skellington/generator.rb +5 -0
- data/lib/skellington/version.rb +1 -1
- data/lib/templates/public/sass/_fonts.scss.eruby +2 -0
- data/lib/templates/public/sass/styles.scss.eruby +2 -0
- data/spec/cli/public_spec.rb +9 -0
- data/spec/no-clobber_spec.rb +13 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbd76221c09b908914e8c3d2c1bdadad36aa4d6a
|
4
|
+
data.tar.gz: ad17e8d867e25d0d99dedeeb592b6454ec777270
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 872a5fd3c1e773b342eee2f9e89512e3dd31212587fcda57f38ba483e131945f40fd3d29280d30eeb721bbbcdac4e8bee60522a4542bb6744ae1403ab753d2a1
|
7
|
+
data.tar.gz: c440a7039edb19b21152724dc073312414e0a9d18512503540134b60ac68fffc7656205657c3012c7c5e81860d626860fdf611136dd82287859c792c78d7dc1e
|
data/config/config.yaml
CHANGED
data/lib/skellington/cli.rb
CHANGED
data/lib/skellington/version.rb
CHANGED
data/spec/cli/public_spec.rb
CHANGED
@@ -11,12 +11,14 @@ module Skellington
|
|
11
11
|
expect('dummy_app/public/sass/styles.scss').to have_content (
|
12
12
|
"""
|
13
13
|
@import 'bootstrap';
|
14
|
+
@import 'fonts';
|
14
15
|
@import 'variables';
|
15
16
|
@import 'footer';
|
16
17
|
@import 'github-corner';
|
17
18
|
|
18
19
|
h1 {
|
19
20
|
color: $brand-primary;
|
21
|
+
font-family: $font-primary;
|
20
22
|
}
|
21
23
|
"""
|
22
24
|
)
|
@@ -69,6 +71,13 @@ module Skellington
|
|
69
71
|
}
|
70
72
|
"""
|
71
73
|
)
|
74
|
+
|
75
|
+
expect('dummy_app/public/sass/_fonts.scss').to have_content (
|
76
|
+
"""
|
77
|
+
@import 'https://fonts.googleapis.com/css?family=Lobster';
|
78
|
+
$font-primary: 'Lobster';
|
79
|
+
"""
|
80
|
+
)
|
72
81
|
end
|
73
82
|
end
|
74
83
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Skellington
|
2
|
+
describe CLI do
|
3
|
+
let :subject do
|
4
|
+
described_class.new
|
5
|
+
end
|
6
|
+
|
7
|
+
it 'does not overwrite an existing path' do
|
8
|
+
FileUtils.mkdir 'existing_path'
|
9
|
+
expect { subject.generate 'existing_path' }.to exit_with_status 1
|
10
|
+
expect(File).to_not exist 'existing_path/lib'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
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.7.
|
4
|
+
version: 0.7.4
|
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-
|
11
|
+
date: 2016-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- lib/templates/public/assets/favicon.ico.eruby
|
193
193
|
- lib/templates/public/css/styles.css.eruby
|
194
194
|
- lib/templates/public/js/app.js.eruby
|
195
|
+
- lib/templates/public/sass/_fonts.scss.eruby
|
195
196
|
- lib/templates/public/sass/_footer.scss.eruby
|
196
197
|
- lib/templates/public/sass/_github-corner.scss.eruby
|
197
198
|
- lib/templates/public/sass/_variables.scss.eruby
|
@@ -229,6 +230,7 @@ files:
|
|
229
230
|
- spec/cli/spec_spec.rb
|
230
231
|
- spec/cli_spec.rb
|
231
232
|
- spec/hyphens_spec.rb
|
233
|
+
- spec/no-clobber_spec.rb
|
232
234
|
- spec/skellington_spec.rb
|
233
235
|
- spec/spec_helper.rb
|
234
236
|
homepage: http://sam.pikesley.org/projects/skellington/
|
@@ -277,5 +279,6 @@ test_files:
|
|
277
279
|
- spec/cli/spec_spec.rb
|
278
280
|
- spec/cli_spec.rb
|
279
281
|
- spec/hyphens_spec.rb
|
282
|
+
- spec/no-clobber_spec.rb
|
280
283
|
- spec/skellington_spec.rb
|
281
284
|
- spec/spec_helper.rb
|