-
Notifications
You must be signed in to change notification settings - Fork 152
Optional automatic Bundler support #75
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,8 @@ | |
|
|
||
| App = Motion::Project::App | ||
|
|
||
| Bundler.require if Object.const_defined?(:Bundler) | ||
|
|
||
| # Check for software updates. | ||
| system('/usr/bin/motion update --check') | ||
| if $?.exitstatus == 2 | ||
|
|
@@ -124,6 +126,7 @@ | |
| desc "Run the test/spec suite on the simulator" | ||
| task :simulator do | ||
| App.config.spec_mode = true | ||
| Bundler.require :default, :spec if Object.const_defined?(:Bundler) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm also worried that people will have more groups, and that even assuming
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want more groups, you can still require them later from the Rakefile. |
||
| Rake::Task["simulator"].invoke | ||
| end | ||
|
|
||
|
|
||
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 the only line I worry about - this includes the
:defaultgroup, right? But some people don't want to callBundler.require. Is this necessary for theBundler.require :default, :specto work?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.
Why would anyone not want to call Bundler.require if the Bundler constant is defined?
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 agree, but http://myronmars.to/n/dev-blog/2012/12/5-reasons-to-avoid-bundler-require are some reasons, I've heard a few people rant about it. You can't please everyone.
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.
Skimming over the post, I agree on the points, but they don't apply to RubyMotion since there is no dynamic require.