Closed bradgessler closed 7 years ago
I fixed this and opened a PR at https://github.com/thoughtbot/appraisal/pull/125.
Coincidentally I'm using this for https://github.com/sitepress/sitepress, which is a really souped up version of https://github.com/thoughtbot/high_voltage with frontmatter, page hierarchy traversal, and other useful features. Thanks both for this gem and high_voltage!
Closing this since 2.2.0
has been released, with #125 included.
Gemfile's that have multiple
gemspec
directives don't work correctly with appraisal.Given the Gemfile https://github.com/sitepress/sitepress/blob/appraisals/Gemfile and Appraisals file https://github.com/sitepress/sitepress/blob/appraisals/Appraisals, when I run the
appraisal generate
command, I end up with:Expected result:
Investigation of the
bundler_dsl.rb
source code at https://github.com/thoughtbot/appraisal/blob/master/lib/appraisal/bundler_dsl.rb#L15 indicates that Appraisal incorrectly assumes only onegemspec
directive will be defined. According to the official bundler documentation at http://bundler.io/v1.14/man/gemfile.5.html#GEMSPEC multiplegemspec
directives may be defined in a Gemfile.