skellington 0.4.13 → 0.4.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/skellington/cli.rb +5 -26
- data/lib/skellington/generator.rb +1 -1
- data/lib/skellington/version.rb +1 -1
- data/lib/templates/LICENSE.md.eruby +2 -2
- data/lib/templates/post-run.eruby +1 -1
- data/spec/cli/license_spec.rb +1 -1
- data/spec/cli_spec.rb +4 -23
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b6a645a46b6c4d657f2445178b175cffa1d67af
|
4
|
+
data.tar.gz: 4d0b99ccf7a9e03b7a871116b9a445cf9b70d5a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19714b5afa9da20d34967d097bd89075eb1c2bc05a22621e107338dd97f33941ce7c55490495cad540a6486efd9f97337abd71e8e23ca8998ce1b88df82285cc
|
7
|
+
data.tar.gz: 2b9bd1ef55f607859139fa672bbf745b18d12e0b32e26d61c521cbddd7f48aba57ad0740c5beda335749b383b529b00e9961e7e4ed2a581e461fe8b06de9ca4a
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Extremely opinionated generator for your [Sinatra](http://www.sinatrarb.com/) ap
|
|
20
20
|
Should work fine for both RVM- and rbenv-based setups
|
21
21
|
|
22
22
|
$ gem install skellington
|
23
|
-
$ skellington generate naming-things-is-hard --
|
23
|
+
$ skellington generate naming-things-is-hard --licensor 'Beyoncé'
|
24
24
|
Generating <lots of stuff>... done
|
25
25
|
|
26
26
|
Your new Sinatra app NamingThingsIsHard has been created
|
data/lib/skellington/cli.rb
CHANGED
@@ -7,41 +7,20 @@ module Skellington
|
|
7
7
|
map %w(-v --version) => :version
|
8
8
|
|
9
9
|
desc 'generate some_path', 'Generate a skeleton Sinatra app named SomePath at some_path'
|
10
|
-
method_option :
|
10
|
+
method_option :licensor,
|
11
11
|
aliases: '-l',
|
12
12
|
description: 'Name to insert into the license file'
|
13
13
|
def generate wormname
|
14
14
|
@g = Generator.new wormname
|
15
|
-
@g.
|
15
|
+
@g.licensor = options[:licensor]
|
16
16
|
@g.run
|
17
17
|
end
|
18
18
|
|
19
19
|
desc 'postinstall', 'Show some helpful hints'
|
20
20
|
def postinstall
|
21
|
-
s =
|
22
|
-
|
23
|
-
|
24
|
-
* Set up continuous integration in Travis:
|
25
|
-
|
26
|
-
gem install travis
|
27
|
-
travis init
|
28
|
-
git add .travis.yml
|
29
|
-
|
30
|
-
* Configure a Heroku app:
|
31
|
-
|
32
|
-
gem install heroku
|
33
|
-
heroku apps:create YOUR-APP-NAME-HERE --region=eu
|
34
|
-
|
35
|
-
* Get Travis to continuously deploy to Heroku:
|
36
|
-
|
37
|
-
travis setup heroku
|
38
|
-
|
39
|
-
* Add some badges to your README
|
40
|
-
|
41
|
-
gem install badgerbadgerbadger
|
42
|
-
badger > README.md
|
43
|
-
git add README.md
|
44
|
-
HEREDOC
|
21
|
+
s = 'For some other things you might find useful, see this gist:'
|
22
|
+
s << "\n\n"
|
23
|
+
s << ' https://gist.github.com/pikesley/1789cab7b10f0d8765d4'
|
45
24
|
puts s
|
46
25
|
end
|
47
26
|
end
|
data/lib/skellington/version.rb
CHANGED
data/spec/cli/license_spec.rb
CHANGED
@@ -39,7 +39,7 @@ module Skellington
|
|
39
39
|
|
40
40
|
it 'with a provided name' do
|
41
41
|
Timecop.freeze Time.local 2016, 01, 19
|
42
|
-
subject.options = {
|
42
|
+
subject.options = {licensor: 'Beyoncé'}
|
43
43
|
subject.generate 'dummy_app'
|
44
44
|
expect('dummy_app/LICENSE.md').to have_content (
|
45
45
|
"""
|
data/spec/cli_spec.rb
CHANGED
@@ -35,36 +35,17 @@ For post-install hints, try
|
|
35
35
|
/).to_stdout
|
36
36
|
end
|
37
37
|
|
38
|
-
it 'suppresses the LICENSE help when supplied with a
|
39
|
-
subject.options = {
|
38
|
+
it 'suppresses the LICENSE help when supplied with a licensor' do
|
39
|
+
subject.options = {licensor: 'Beyoncé'}
|
40
40
|
expect { subject.generate 'dummy_app' }.to_not output(/
|
41
41
|
You should also fill in your name in LICENSE.md
|
42
42
|
/).to_stdout
|
43
43
|
end
|
44
44
|
|
45
45
|
it 'gives helpful post-generate advice' do
|
46
|
-
expect { subject.postinstall }.to output(/
|
46
|
+
expect { subject.postinstall }.to output(/For some other things you might find useful, see this gist:
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
gem install travis
|
51
|
-
travis init
|
52
|
-
git add .travis.yml
|
53
|
-
|
54
|
-
\* Configure a Heroku app:
|
55
|
-
|
56
|
-
gem install heroku
|
57
|
-
heroku apps:create YOUR-APP-NAME-HERE --region=eu
|
58
|
-
|
59
|
-
\* Get Travis to continuously deploy to Heroku:
|
60
|
-
|
61
|
-
travis setup heroku
|
62
|
-
|
63
|
-
\* Add some badges to your README
|
64
|
-
|
65
|
-
gem install badgerbadgerbadger
|
66
|
-
badger > README.md
|
67
|
-
git add README.md
|
48
|
+
https:\/\/gist.github.com\/pikesley\/1789cab7b10f0d8765d4
|
68
49
|
/).to_stdout
|
69
50
|
end
|
70
51
|
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.4.
|
4
|
+
version: 0.4.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pikesley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|