Code Monkey home page Code Monkey logo

Comments (5)

croaky avatar croaky commented on May 18, 2024

I tried changing the gemfile_root method of Appraisal::Appraisal to be:

::File.join(Dir.pwd, "gemfiles")

That passes the test suite and works for the first appraisal (trying it out on Clearance). However, the second appraisal it tries to run, it had a duplicated path:

/Users/lawless/dev/clearance/Users/lawless/dev/clearance/gemfiles/3.0.9.gemfile

So there's something about the process going on that I don't quite understand yet.

from appraisal.

ZenCocoon avatar ZenCocoon commented on May 18, 2024

Hmm weird behavior.

I've tried on my end with

def gemfile_root
  ::File.join(Dir.pwd, "gemfiles")
end

With rspec-subject-extensions it works like a charm with 2 appraisals (under MRI 1.8.7 and MRI 1.9.2)
However I've tried with Clearance as well and it fails at the first appraisal in my case.

I'll keep investigating to see what's going on.

from appraisal.

ZenCocoon avatar ZenCocoon commented on May 18, 2024

Ok, here's the catch. https://github.com/thoughtbot/clearance/blob/master/features/support/appraisal.rb#L4

If using ::File.join(Dir.pwd, "gemfiles") directly in appraisal, this is no longer required. As long as it can break compatibility, I think it's a nice update to make Appraisal usage even easier.

Tested with Clearance and works nicely.

from appraisal.

croaky avatar croaky commented on May 18, 2024

Good call. Made the changes to appraisal and clearance.

549f3fa
thoughtbot/clearance@ef95328

from appraisal.

ZenCocoon avatar ZenCocoon commented on May 18, 2024

Sweet, thanks a lot for your help and work. Looking forward for the version bump ;-)

from appraisal.

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.