Sho*_*eNN 4 ruby git rubygems github
我尝试从github源安装一些gem,它已成功安装,但之后它不会显示在gem list输出中,也不是必需的.
我的宝石是私人回购,但我可以在随机的公共回购中重现这些步骤.例如:
Run Code Online (Sandbox Code Playgroud)source 'http://rubygems.org' gem 'http_parser.rb', git: 'https://github.com/tmm1/http_parser.rb.git'
bundle install,它的输出是:Run Code Online (Sandbox Code Playgroud)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.
gem list | grep http,什么都没得到.此外,我不能require "http/parser"在我的代码中调用它,它无法找到.我做错了什么?
| 归档时间: |
|
| 查看次数: |
359 次 |
| 最近记录: |