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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7dc5484b1c9079b8be1dae1dac6c47a31e9ba333
4
- data.tar.gz: 993da921c5a9f9764717a8f10f44380db612fdb2
3
+ metadata.gz: fbd76221c09b908914e8c3d2c1bdadad36aa4d6a
4
+ data.tar.gz: ad17e8d867e25d0d99dedeeb592b6454ec777270
5
5
  SHA512:
6
- metadata.gz: 3754fca5ee211a698ac4cd0e2c8991fd5a60995268bc7b38f42eaf0463727546c6c679bdcba9e7fc4b97e3adc96fec0be39adcd17e8da46a3377f89d2eee8732
7
- data.tar.gz: 51df3f90778e82f288f18b94bd8c40f9a18fb03d4b953af3dfed212df61f0e9a129560552ddaec468657c6f0e9c3c7d093d14392b35d0f2a9c50ef36d95175e3
6
+ metadata.gz: 872a5fd3c1e773b342eee2f9e89512e3dd31212587fcda57f38ba483e131945f40fd3d29280d30eeb721bbbcdac4e8bee60522a4542bb6744ae1403ab753d2a1
7
+ data.tar.gz: c440a7039edb19b21152724dc073312414e0a9d18512503540134b60ac68fffc7656205657c3012c7c5e81860d626860fdf611136dd82287859c792c78d7dc1e
@@ -59,6 +59,7 @@ files:
59
59
  public/js/app.js:
60
60
  outpath: app/wormname
61
61
  public/sass/_footer.scss:
62
+ public/sass/_fonts.scss:
62
63
  public/sass/_github-corner.scss:
63
64
  public/sass/_variables.scss:
64
65
  public/sass/styles.scss:
@@ -24,5 +24,6 @@ module Skellington
24
24
  s << ' https://gist.github.com/pikesley/1789cab7b10f0d8765d4'
25
25
  puts s
26
26
  end
27
+ map %w(-p) => :postinstall
27
28
  end
28
29
  end
@@ -17,6 +17,11 @@ module Skellington
17
17
  end
18
18
 
19
19
  def run
20
+ if File.exist? @full_path
21
+ $stderr.puts "Path '#{@full_path}' already exists. Quitting"
22
+ exit 1
23
+ end
24
+
20
25
  generate
21
26
  git_init
22
27
  post_run
@@ -1,3 +1,3 @@
1
1
  module Skellington
2
- VERSION = '0.7.3'
2
+ VERSION = '0.7.4'
3
3
  end
@@ -0,0 +1,2 @@
1
+ @import 'https://fonts.googleapis.com/css?family=Lobster';
2
+ $font-primary: 'Lobster';
@@ -1,8 +1,10 @@
1
1
  @import 'bootstrap';
2
+ @import 'fonts';
2
3
  @import 'variables';
3
4
  @import 'footer';
4
5
  @import 'github-corner';
5
6
 
6
7
  h1 {
7
8
  color: $brand-primary;
9
+ font-family: $font-primary;
8
10
  }
@@ -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.3
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-02 00:00:00.000000000 Z
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