Comments (5)
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.
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.
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.
Good call. Made the changes to appraisal and clearance.
549f3fa
thoughtbot/clearance@ef95328
from appraisal.
Sweet, thanks a lot for your help and work. Looking forward for the version bump ;-)
from appraisal.
Related Issues (20)
- Support for multiple rubies? HOT 6
- bundle install --local in test tries to contact remote HOT 2
- uninitialized constant Appraisal::DependencyList::Set on Ruby 3 HOT 5
- Error: Process completed with exit code 1. flutter ci/cd HOT 2
- CI: What comes after Travis? HOT 5
- New release for `install_if` support HOT 2
- error HOT 2
- Error: Process completed with exit code 1. HOT 1
- Appraisal loading wrong versions HOT 3
- customize_gemfiles is documented and merged to main but not released HOT 3
- Errno::ENOENT on install with Ruby 3.2 HOT 8
- Cut a new release HOT 1
- Appraisal v3 HOT 28
- Can't find executable appraisal for gem appraisal HOT 4
- `bundle check` returning exit code 1 but gems don't get installed HOT 2
- New release HOT 4
- `customize_gemfiles` not working correctly with Ruby 3.1 due to hash used for keyword arguments HOT 1
- Customise gemfiles adds 1 too many newline chars HOT 1
- Running appraisal specs with Bundler >= 2.4.0 broken HOT 6
- Hound/Rubocop Config HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appraisal.