All threads / How to Test Gem Dependencies with Appraisal Discussion

Ask A Question


You’re not receiving notifications from this thread.

How to Test Gem Dependencies with Appraisal Discussion

Thanks Chris, I actually can use this for making futurism future-proof πŸ˜…

The only thing I see is (and I'm using the exact same setup you do in that video), that appraisal fails to correctly load the sqlite3 gem, because apparently ActiveRecord 5.2 and 6.0 have different dependencies:

Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.2. Make sure all dependencies are added to Gemfile. (Gem::LoadError)

Have you seen this and/or have any idea how to fix it?

Silly me... added it to my Appraisals file:

appraise "rails-6-0" do
gem "rails", "~> 6.0"
gem "sqlite3", "~> 1.4"

appraise "rails-5-2" do
gem "rails", "~> 5.2"
gem "sqlite3", "~> 1.3", "< 1.4"

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,629+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.