-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.liftoffrc #51
.liftoffrc #51
Conversation
Another thing to do is
|
Hey man, thanks for submitting this. Just wanted to let you know that we're not ignoring it. Trying to find time to respond to it properly. |
:) no problems and no rush, liftoff works well already anyway 👍 |
@gfontenot, @21x9 I'd say it's done. Wanna take a look? It would be nice if some of your thoughtbot Ruby guys could take a look at it as well, to check the write in proper Ruby point. |
@@ -2,3 +2,5 @@ source 'https://rubygems.org' | |||
|
|||
# Specify your gem's dependencies in liftoff.gemspec | |||
gemspec | |||
|
|||
gem "rspec" |
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 is rendering oddly in GitHub, but you need a newline at the end of this file. I'm also not sure that the spec gem shouldn't be in the development group in the gemspec.
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.
Yep, I realised I was missing the :test
group only later when I set up Travis.
Took a spin through this, and it's a great start. A few general notes:
Pumped about how much this is going to improve liftoff, man. Thanks for lending a hand. |
Last thing that I just thought of: Instead of having the defaults written out in code, it would probably be best to have a |
Thanks for the code review, I learn a new bunch of stuff in like 5 minutes. Awesome!
Great idea! It could also work as reference for users to look at when rolling out their own settings. |
Oh! Also... 👍 👍 for the YAML, it made sense to me to use JSON for simple key-value settings, but YAML is definitely better for describing a directory structure, plus there's less to write. |
@@ -1 +1,8 @@ | |||
require "bundler/gem_tasks" | |||
|
|||
desc "Runs the tests for the project" |
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.
The changes to this file can be like this instead, to avoid calling system
:
require "rspec/core/rake_task"
task :default => :spec
If you want color, I'd add --color
to a .rspec
file in the root of the project.
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.
Nice! That's awesome thanks!
One question? Would you check-in the .rspec
? Or is stuff like that
considered user specific so it shouldn't be added?
Cheers :)
On Friday, January 31, 2014, Gabe Berke-Williams notifications@github.com
wrote:
In Rakefile:
@@ -1 +1,8 @@
require "bundler/gem_tasks"
+
+desc "Runs the tests for the project"The changes to this file can be like this instead, to avoid calling system
:require "rspec/core/rake_task"
task :default => :spec
If you want color, I'd add --color to a .rspec file in the root of the
project.Reply to this email directly or view it on GitHubhttps://github.com//pull/51/files#r9346409
.
Giò
"Be a yardstick of quality. Some people aren't used to an environment
where excellence is expected" S.J.
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.
I think that's up to @gfontenot. If he doesn't want to merge it, you can make a ~/.rspec
file just on your computer, and RSpec will always check that.
Yo! Got a bit more time this week and did some work done! Now
It made sense to me to use that name to be in line with I also made some comments regarding some doubts I have. |
Awesome, yeah. The move from |
👍 I like |
end | ||
|
||
def user_default_options | ||
evaluted_options = default_options |
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.
evaluted
is misspelled - it should be evaluated
.
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.
Good catch, thanks :)
@@ -34,6 +34,19 @@ Usage: liftoff [options] | |||
-h, --help Display this help message | |||
``` | |||
|
|||
### Configuration - .liftoffrc | |||
|
|||
You can use the `.liftoffrc` file to speedup your workflow by defining your favorite settings for liftoff. |
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.
Lets add a note here about ~/.liftoffrc
vs ./.liftoffrc
and how the precedence/per-key system works.
Cool! Awesome stuff! Thank you guys for coming up with this in the first place! Such a valuable addition to my toolbelt! |
Here's a first draft of the
.liftoffrc
feature. See #47.The file is a simple JSON, the
turn_on_all_options
method looks for it first onpwd
, then on~
, and if it doesn't find it falls back to the default set of settings.I think JSON is a natural and smart option for this, but other format could be valid as well, YAML maybe?
Some things left to do
Feedbacks? (Please forgive my Ruby)
Some new tasks after the first code review round.
~
options, the override those withpwd
options..rspec
+ Rakefile updateliftoff -a
behaviour, and plug options inspection on justliftoff
.Forgot something!
DEFAULT_INDENTATION_LEVEL