Skip to content

Commit

Permalink
Github Corner now optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Sep 2, 2016
1 parent 4e30426 commit f580afc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions lib/skellington/cli.rb
Expand Up @@ -15,6 +15,7 @@ def generate wormname
@g.licensor = options[:licensor]
@g.run
end
map %w(-g) => :generate

desc 'postinstall', 'Show some helpful hints'
def postinstall
Expand Down
2 changes: 1 addition & 1 deletion lib/skellington/version.rb
@@ -1,3 +1,3 @@
module Skellington
VERSION = '0.7.2'
VERSION = '0.7.3'
end
2 changes: 1 addition & 1 deletion lib/templates/lib/app.rb.eruby
Expand Up @@ -19,7 +19,7 @@ module <%= @gen.camelname %>
wants.html do
@content = '<h1>Hello from <%= @gen.camelname %></h1>'
@title = '<%= @gen.camelname %>'
@github_url = CONFIG['github_url'] || 'https://github.com'
@github_url = CONFIG['github_url']
erb :index, layout: :default
end

Expand Down
2 changes: 1 addition & 1 deletion lib/templates/views/default.erb.eruby
Expand Up @@ -2,7 +2,7 @@
<html lang='en'>
<%%= erb :'includes/header' %>
<body>
<%%= erb :'includes/github-corner' %>
<%%= erb :'includes/github-corner' if @github_url %>
<div class='container'>
<div class='row'>
<div class='col-md-2'></div>
Expand Down
2 changes: 1 addition & 1 deletion spec/cli/app_spec.rb
Expand Up @@ -29,7 +29,7 @@ class App < Sinatra::Base
wants.html do
@content = '<h1>Hello from DummyApp</h1>'
@title = 'DummyApp'
@github_url = CONFIG['github_url'] || 'https://github.com'
@github_url = CONFIG['github_url']
erb :index, layout: :default
end
Expand Down
2 changes: 1 addition & 1 deletion spec/cli/layout_spec.rb
Expand Up @@ -12,7 +12,7 @@ module Skellington
<html lang='en'>
/erb.*'includes/header'/
<body>
/erb.*'includes/github-corner'/
/erb.*'includes/github-corner' if @github_url/
<div class='container'>
<div class='row'>
<div class='col-md-2'></div>
Expand Down
2 changes: 1 addition & 1 deletion spec/cli/non_local_path_spec.rb
Expand Up @@ -29,7 +29,7 @@ class App < Sinatra::Base
wants.html do
@content = '<h1>Hello from SomeApp</h1>'
@title = 'SomeApp'
@github_url = CONFIG['github_url'] || 'https://github.com'
@github_url = CONFIG['github_url']
erb :index, layout: :default
end
Expand Down

0 comments on commit f580afc

Please sign in to comment.