Git Product home page Git Product logo

Comments (4)

radar avatar radar commented on August 16, 2024

Perhaps I should have explained the reasoning behind this.

For the specs, I only want the RSpec gem to be loaded, so that's why it goes in the group rather than in the gemspec. Same goes for the Cucumber things, I only want it to be loaded when the features are ran so that's why it also goes in the Gemfile, not the gemspec.

from guides.

radar avatar radar commented on August 16, 2024

I have talked with Andre on the Bundler team about this just then and he recommends just like you do adding these to the gemspec. There's a couple of solid reasons for this.

  1. When a user installs the gem using gem install foodie --dev then they'll get the development dependencies. Personally, I've never done this but Andre says that others do.

  2. The gems will be automatically put into a development group by Bundler and so won't be loaded along with the other gems. When we run bundle exec rspec and bundle exec cucumber, these should require rspec and cucumber respectively.

I will update the gem guide tonight when I get home. Thanks for bringing up this question kef.

from guides.

kef avatar kef commented on August 16, 2024

Ah. I was hoping Bundler would automagically put the dev deps into a dev group of some sort, but hadn't dug around enough to find it yet. Thanks.

from guides.

radar avatar radar commented on August 16, 2024

This is fixed by @3876d4a.

Thanks!

from guides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.