-
-
Notifications
You must be signed in to change notification settings - Fork 425
Conversation
desc "install", "Install Neat into your project" | ||
def install | ||
if neat_files_already_exist? | ||
puts "Neat files already installed, doing nothing." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not write to stdout. Use Rails' logger if you want to log.
This looks good to me. |
Anything holding back this can I help with? |
@@ -1,5 +1,5 @@ | |||
#!/usr/bin/env ruby | |||
|
|||
require "neat" | |||
require File.dirname(__FILE__) + "/../lib/neat.rb" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is seemingly unrelated. You can avoid this, and it's common to do something along these lines: bundle exec ruby -I lib bin/neat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@teoljungberg Just built the gem locally and testing all of this with and without the above change, and it breaks without. This also aligns with the executable in Bourbon and Bitters, so I’m going to run with it.
This moves to Thor, like Bitters and Bourbon, and add a
--version
command (was missing before, as described by #315)Closes #315