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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 469c2625bd8b862f50df1b49789a929c87d056e2
4
- data.tar.gz: 881d2cc9db2542239d943fed706afa5f8725918f
3
+ metadata.gz: 0b6a645a46b6c4d657f2445178b175cffa1d67af
4
+ data.tar.gz: 4d0b99ccf7a9e03b7a871116b9a445cf9b70d5a6
5
5
  SHA512:
6
- metadata.gz: 17726ebe92000f1c75bcf0c3b406e095e62dba19ddcb3167268aa40a53386334b0ec3d374a5888683860f52b6ec1baa952ae6cf99a3205a85216a42d43c49e2d
7
- data.tar.gz: 03410cb56482d90d3c12a35756e36f2e4c1ad047bac468d8472ba339bc41b93bf931b571aa29247dbbcc7826d8fe1dbecb4b23aa5c78cc93f14ff5236b1753da
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 --licensee 'Beyoncé'
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
@@ -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 :licensee,
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.licensee = options[:licensee]
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 = <<HEREDOC
22
- Some other things you might find useful (sweeten to taste):
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
@@ -1,7 +1,7 @@
1
1
  module Skellington
2
2
  class Generator
3
3
  attr_reader :path, :filename, :camelname, :files, :gems
4
- attr_accessor :licensee
4
+ attr_accessor :licensor
5
5
 
6
6
  def initialize path
7
7
  @full_path = path
@@ -1,3 +1,3 @@
1
1
  module Skellington
2
- VERSION = '0.4.13'
2
+ VERSION = '0.4.15'
3
3
  end
@@ -1,5 +1,5 @@
1
- <% if @gen.licensee %>
2
- <% l = @gen.licensee %>
1
+ <% if @gen.licensor %>
2
+ <% l = @gen.licensor %>
3
3
  <% else %>
4
4
  <% l = 'YOUR-NAME-HERE' %>
5
5
  <% end %>
@@ -19,7 +19,7 @@ And presuming that passes OK
19
19
  You can run the app with
20
20
 
21
21
  bundle exec rackup
22
- <% unless @gen.licensee %>
22
+ <% unless @gen.licensor %>
23
23
 
24
24
  You should also fill in your name in LICENSE.md
25
25
  <% end %>
@@ -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 = {licensee: 'Beyoncé'}
42
+ subject.options = {licensor: 'Beyoncé'}
43
43
  subject.generate 'dummy_app'
44
44
  expect('dummy_app/LICENSE.md').to have_content (
45
45
  """
@@ -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 licensee' do
39
- subject.options = {licensee: 'Beyoncé'}
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(/Some other things you might find useful \(sweeten to taste\):
46
+ expect { subject.postinstall }.to output(/For some other things you might find useful, see this gist:
47
47
 
48
- \* Set up continuous integration in Travis:
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.13
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-20 00:00:00.000000000 Z
11
+ date: 2016-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor