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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e998c7205bef06ca890216c759a19ca541f62e4
4
- data.tar.gz: 44ca89705f2dc08b19e52ba42e42ead745c7682b
3
+ metadata.gz: 256e2e3e7b7e51b2c04e9949232e0a809f2d5336
4
+ data.tar.gz: d34b5830e7e82b1d28afc080db0e1e17aa7165b0
5
5
  SHA512:
6
- metadata.gz: 2a089fd4669b80df5011df0fdc6c81380508762e39f0ad8196af7b947b511c63bef9e680f0dac1fb00e96584b495a7ff9b83d97c9d98c6c4af7b96d095e4511c
7
- data.tar.gz: a1c742eb0851a8bd28ea9208bbef693eba05a512eaae39f1e41319c48f269dcc8c44342da9f9c922f3a227ebe3e893edc206b50e5161826769df7db42ca42e77
6
+ metadata.gz: 6569c2184e7863e8d008ff5820b3f9ce22c851c75d8f75c1d11e89b808e6b4301b84021e8401860eb1cc70fb0c6e592a823a460a18020076cbab6b1ed5adf025
7
+ data.tar.gz: 00317fbec5a468ab4fb6a1ef7064b4db33f74e4d8515bc5431dbe2021a91bc94ca21bb04d939c05287286b305dcb44ac693d1353cdb2144cec7cd815ad1377bf
data/.travis.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.0
3
+ - 2.2.3
4
+ - 2.3.0
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
- cd naming_things_is_hard
31
- bundle
32
- rake
31
+ cd naming_things_is_hard
32
+ bundle
33
+ rake
33
34
 
34
35
  And presuming that passes OK
35
36
 
36
- git add .
37
- git commit -m 'First commit'
37
+ git add .
38
+ git commit -m 'First commit'
38
39
 
39
40
  You can run the app with
40
41
 
41
- rackup
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
- skellington postinstall
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:
@@ -1,3 +1,3 @@
1
1
  module Skellington
2
- VERSION = '0.5.2'
2
+ VERSION = '0.6.1'
3
3
  end
@@ -11,3 +11,8 @@ unless ENV['RACK_ENV'] == 'production'
11
11
 
12
12
  task :default => [:spec, 'jasmine:ci', 'coveralls:push']
13
13
  end
14
+
15
+ task :run do
16
+ sh 'bundle exec compass watch . &'
17
+ sh 'bundle exec rackup'
18
+ end
@@ -0,0 +1,4 @@
1
+ require 'bootstrap-sass'
2
+
3
+ css_dir = 'public/css'
4
+ sass_dir = 'public/sass'
@@ -16,9 +16,11 @@ And presuming that passes OK
16
16
  git add .
17
17
  git commit -m 'First commit'
18
18
 
19
- You can run the app with
19
+ Then try
20
20
 
21
- bundle exec rackup
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' />
@@ -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
@@ -17,6 +17,8 @@ module Skellington
17
17
  gem 'rack-google-analytics'
18
18
  gem 'rake'
19
19
  gem 'puma'
20
+ gem 'compass'
21
+ gem 'bootstrap-sass'
20
22
 
21
23
  group :test do
22
24
  gem 'rspec'
@@ -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
@@ -21,6 +21,11 @@ module Skellington
21
21
 
22
22
  task :default => [:spec, 'jasmine:ci', 'coveralls:push']
23
23
  end
24
+
25
+ task :run do
26
+ sh 'bundle exec compass watch . &'
27
+ sh 'bundle exec rackup'
28
+ end
24
29
  """
25
30
  )
26
31
  end
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
- You can run the app with
26
+ Then try
27
27
 
28
- bundle exec rackup
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
@@ -25,9 +25,9 @@ And presuming that passes OK
25
25
  git add .
26
26
  git commit -m 'First commit'
27
27
 
28
- You can run the app with
28
+ Then try
29
29
 
30
- bundle exec rackup
30
+ bundle exec rake run
31
31
  /).to_stdout
32
32
 
33
33
  expect(File).to exist 'hyphenated_name/lib/hyphenated_name.rb'
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.5.2
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-04-29 00:00:00.000000000 Z
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