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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:24:19+00:00 2026-06-02T16:24:19+00:00

So, reading http://git-scm.com/book/en/v1/Git-on-the-Server-Public-Access , I’m trying to setup a bare repo as instructed on

  • 0

So, reading http://git-scm.com/book/en/v1/Git-on-the-Server-Public-Access, I’m trying to setup a bare repo as instructed on a simple http server (no git-daemon, do I need one?).

My gem has a gemname.gemspec in the root and all seems well.

On using a Gemfile with:

gem 'gemname', :git => 'http://path'

Ok, then

> bundle install
...
Installing blah...
Using gemname (1.0.0) from source at 'http://path'
...

and all seems well, until I list the gems and ‘gemname’ isn’t there. Require also fails.

So then, plan #2: since we mirror the server as paths, I figure I’ll use a direct path to the gem without the git repo:

gem 'gemname', :path => 'path/to_gemname'

again, bundler says ok.

Using gemname (1.0.0) from source at 'path/to_gemname'

but again, doesn’t install it or reference it correctly from within the app.

Any idea on how this should work (i.e. proper directory layout, etc.) or do I need a real git/gem server to do this?

Thanks!

  • 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-02T16:24:20+00:00Added an answer on June 2, 2026 at 4:24 pm

    You need to use Bundler.setup first.

    require "rubygems"
    require "bundler/setup"
    
    require "gemname"
    
    # use gemname
    

    You might also find it useful to call Bundler.require. This will require all gems in the Gemfile automagically. No need to call require "gem name" for every gem you use.

    require "rubygems"
    require "bundler/setup"
    
    Bundler.require
    
    # use any gem in Gemfile
    

    Also have a look at this similar answer, which provides a more sophisticated version of the above code: Bundler isn't loading gems

    You can check if everything worked by typing bundle list in a command line window. You should see something like the following.

    $ bundle list
    Gems included by the bundle:
      * bundler (1.1.3)
      * some_dependency (0.0.1)
      * gemname (1.2.3 <git-sha-hash>)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm reading about using git as an svn client here: http://learn.github.com/p/git-svn.html That page suggests
I'm trying to understand how variants are implemented, and reading: http://www.codeproject.com/KB/cpp/TTLTyplist.aspx And I'm getting
I was reading http://www.kernel.org/pub/software/scm/git/docs/v1.7.10/gitignore.html and the 6 points used to explain the ignore patterns
After reading http://www.w3schools.com/tags/tag_noscript.asp confused about onclick event on noscript tag. Anybody knows the purpose?
After reading http://www.pragprog.com/magazines/2010-03/javascript-its-not-just-for-browsers-any-more I'm wondering which is the best IDE to develop server-side javascript
I was reading http://embeddedgurus.com/embedded-bridge/2010/03/different-bit-types-in-different-registers/ , which said: With read/write bits, firmware sets and clears
After reading this: http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#how-to-use-it I came to the conclusion that it is not valid
Reading this article http://support.microsoft.com/kb/813878 I have a question: Where can I get ipseccmd.exe for
just was reading this article http://highscalability.com/blog/2010/3/23/digg-4000-performance-increase-by-sorting-in-php-rather-than.html And found this nice article http://wiki.apache.org/cassandra/DataModel I just
by reading http://www.weston-fl.com/blog/?p=840 , I noticed that on the required list of icons, there

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.