Skip to content
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

dev vrs. production dependency declarations #2

Closed
fooledbyprimes opened this issue Oct 12, 2010 · 2 comments
Closed

dev vrs. production dependency declarations #2

fooledbyprimes opened this issue Oct 12, 2010 · 2 comments

Comments

@fooledbyprimes
Copy link

"Next, we'll specify in our foodie.gemspec file that rspec is a development dependency by adding this line inside the Gem::Specification block:"

Why was it added to the .gemspec and not the Gemfile? I thought you wanted the noob to adhere to placing dev dependency declarations in Gemfile?

I'm just noting what confused me when looking at the guide. Thanks for this guide!

@fooledbyprimes
Copy link
Author

Also, the generated .gemspec file has one line reading:
s.add_development_dependency "bundler"

So if a noob sees that line then why who said noob bother adding dev dependency declarations in the Gemfile (as suggested in the very beginning of the guide)? Just curious... it tripped me up and made me stop to think too hard.

Thanks.

@radar
Copy link
Owner

radar commented Oct 12, 2010

Oops.

If you see #1, that focussed on a suggestion that dependencies are better placed in the gemspec always, so that if someone does gem install foodie --dev they'll receive all the gems necessary. The text at the beginning of the guide was wrong unfortunately but now it's fixed @b0466b5. Thanks!

radar pushed a commit that referenced this issue Jun 30, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants