Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3789500
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:09:59+00:00 2026-05-19T12:09:59+00:00

Initial Problem I was using yaml_db in a Rails project, but it seems the

  • 0

Initial Problem

I was using yaml_db in a Rails project, but it seems the default branch has some issues with boolean records. Now I know that there’s a branch on github that has a fixed version.

I changed my Gemfile so that this branch will be installed instead of the default yaml_db,

gem 'yaml_db', :git => "https://github.com/robsharp/yaml_db.git"

I run bundle install and it shows:

Using yaml_db (0.2.0) from https://github.com/robsharp/yaml_db.git (at master).

Your bundle is complete! It was installed into /Users/user/.rvm/gems/ruby-1.9.2-p0

Fine. Now the fixed file in the Git repository should have this line in lib/serialization_helper.rb:

record[column] = convert_boolean(record[column])

Yet, when I look at my local file, which is .rvm/gems/ruby-1.9.2-p0/bundler/gems/yaml_db-ca178cfb59cf/lib/serialization_helper.rb, it still shows the unpatched old line:

record[column] = (record[column] == 't' or record[column] == '1')

Fine, seems as my local file isn’t changed.


Gem not being installed correctly

Running gem list won’t show me yaml_db at all. I removed the Gem lockfile and installed the bundle again, still there is no yaml_db in my Gem listing. Running gem install yaml_db of course only installs the broken version.


Manual Install

I now try to manually install from the Git source.

git clone https://github.com/robsharp/yaml_db.git
cd yaml_db
git checkout -b fix_boolean_checks_to_support_oracle

Still, the serialization_helper.rb file is not updated correctly. I just manually changed it and built the Gem. Everything works fine now.

My new question: Why won’t it check out the correct file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T12:10:00+00:00Added an answer on May 19, 2026 at 12:10 pm

    If you run gem list yaml_db and see multiple versions in parenthesis, define the version you need in your Gemfile like so

    gem 'yaml_db', '~> 0.2.0', :git => "https://github.com/robsharp/yaml_db.git"
    

    I had a similar problem and found out that the Gemfile.lock file stored my old and not–updated version and used that for my project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

NOTE: ORIGINAL PROBLEM WAS FIXED, but there's still some issues using the plugin on
I would like to set some initial variables (like format compact and the current
I have the same initial problem as described in Integrate NSStepper with NSTextField: I
I'll like to combine both my initial problem which leads me to this one
I am using C#, Visual Studio 2005, and SQL Server 2000. My problem is
I have a feeling my problem is a bit strange, but here goes... I
I have a school problem but I do not understand what it actually asks.
I would like to solve/implement the 8 puzzle problem using the A* algorithm in
Our initial page load is a beast in our Rails app. The great thing
INITIAL QUESTION (UPDATED BELOW) I'm using an AutoPopulatingList list to instatiate an object invoking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.