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 8702415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:38:53+00:00 2026-06-13T02:38:53+00:00

I have a gem, lock_jar , that changes Bundler classes at runtime . This

  • 0

I have a gem, lock_jar, that changes Bundler classes at runtime. This allows Java Jar dependencies to be added to a Gemfile.

What I would love to do is reuse Bundler’s rspec helpers. Right now I copied the methods from Bundler’s rspec helpers so I could test the integration of LockJar and Bundler. Ideally I would like to just include Bundler’s spec helpers into my specs.

  • 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-06-13T02:38:54+00:00Added an answer on June 13, 2026 at 2:38 am

    There’s got to be a better way to do this, but one was is to get the path to a gem using Gem::Specification.

    dir = Gem::Specification.find_by_name("lock_jar").gem_dir
    files = Dir.glob(File.join(dir, "spec/support/*.rb"))
    files.each { |f| require(f) }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Gem that I need to install it from github using bundler
I've added a gem 'koala' to my Gemfile and seems to have thrown gem
For example I have this gem called Authlogic-openid, that plugin is outdated, no longer
I have created a gem that adds a new method to the class ActiveRecord::Base.
I have a gem which is essentially just a bunch of ActiveRecord::Base classes in
I have a Gem that I found at RubyForge and want to peek inside
I have a gem that uses a binary (htmldoc) that is not bundled into
I just want to pull. I have changes to disregard, my Gemfile and Gemlock
I have a Rails project that uses bundler. Many of the gems I'm included
In my Gemfile I have: gem 'thin' But when I push my application to

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.