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

  • Home
  • SEARCH
  • 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 8313241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:25:30+00:00 2026-06-08T20:25:30+00:00

I am building a gem using ruby 1.9.3 and bundler 1.1.3. In my gemspec,

  • 0

I am building a gem using ruby 1.9.3 and bundler 1.1.3. In my gemspec, I use the executables method to specify that `bin/curd” is executable:

Gem::Specification.new do |gem|
  ...
  gem.executables   = ["curd"]
  ...
end

The gem source directory has a bin and a lib directory:

bin/
  curd
lib/
  curd.rb

The bin/curd file uses code defined in lib/curd, but I haven’t been able to properly require it.

How can I require the lib/curd file so that when the gem is installed, bin/curd can see it?

  • 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-08T20:25:32+00:00Added an answer on June 8, 2026 at 8:25 pm

    Add to bin/curd:

    require 'curd'
    

    This will require curd gem after installation.

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

Sidebar

Related Questions

I'm using ruby's ai4r gem, building a neural network. Version 1.1 of the gem
Issues building ruby 1.8.7 or installing the bundler gem with GCC 4.7 on linux
I'm building a Rails 3 gem that essentially modifies the records returned from an
building a site using PHP and MySQL that needs to store a lot of
I'm building a Rails 3 application on CouchDB (using SimplyStored gem) and I'd like
I'm building a website based on RoR, and using a third-party gem devise. I
In a little app I'm building, I'm using the the twitter_oauth gem ( source
I am building an Ruby application using Sinatra (over Rack/Thin) and I want to
I want to create a ruby gem that calls a c function I have
I am building a rails app using the wonderful activemerchant gem to save credit

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.