从github源安装的Gem未在`gem list`中显示

Sho*_*eNN 4 ruby git rubygems github

我尝试从github源安装一些gem,它已成功安装,但之后它不会显示在gem list输出中,也不是必需的.

我的宝石是私人回购,但我可以在随机的公共回购中重现这些步骤.例如:

  1. 我用内容创建Gemfile:
source 'http://rubygems.org'
gem 'http_parser.rb', git: 'https://github.com/tmm1/http_parser.rb.git'
Run Code Online (Sandbox Code Playgroud)
  1. 我打电话bundle install,它的输出是:
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.
Run Code Online (Sandbox Code Playgroud)
  1. 之后,我打电话gem list | grep http,什么都没得到.此外,我不能require "http/parser"在我的代码中调用它,它无法找到.

我做错了什么?

Sho*_*eNN 5

谢谢@stefan,
require 'bundler/setup' 解决了我的问题