Gem installed from github sources not shown in `gem list`

I'm trying to install some kind of stone from github sources, it was installed successfully, but after that it does not appear in the gem listoutputs and cannot be required.

My gem is in a private repo, but I can reproduce these steps on a random public repo. For example:

  • I am creating a gemfile with content:
source 'http://rubygems.org'
gem 'http_parser.rb', git: 'https://github.com/tmm1/http_parser.rb.git'
  1. I call bundle installand it outputs:
Fetching https://github.com/tmm1/http_parser.rb.git
Fetching gem metadata from http://rubygems.org/.........
Fetching version metadata from http://rubygems.org/..
Resolving dependencies...
Using http_parser.rb 0.6.0 from https://github.com/tmm1/http_parser.rb.git (at master@10dd2ed)
Using bundler 1.11.2
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
  1. After that, I call gem list | grep httpand get nothing. Also I can’t name require "http/parser"in my code, I ca n’t find it.

What did I do wrong?

+4
source share
2 answers

@stefan,
require 'bundler/setup'

+5

irb

bundle exec irb

irb
0

Source: https://habr.com/ru/post/1624965/


All Articles