Researching ruby gems

Gemrcないrdocリッチモンド

Description. The build command allows you to create a gem from a ruby gemspec. The best way to build a gem is to use a Rakefile and the ::Gem::PackageTask which ships with RubyGems. The gemspec can either be created by hand or extracted from an existing gem with gem spec: $ gem unpack my_gem-1.0.gem. gem在您的主目录中查找配置文件.gemrc,但如果您愿意,也可以在命令行上指定另一个文件(使用--config-file修饰符)。. 您可以在配置文件中指定三项内容: 每次gem runs. command-line时要使用的; 命令行参数''RDoc'的选项(在生成 I crated the file ~/.gemrc gem: --no-rdoc --no-ri However, I'm running the command sudo bundle install and it doesn't seem to be Stack Exchange Network Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. 但是,当我使用cp /etc/gemrc ~/.gemrc将gem复制到我的家庭dir并安装任何gem时,我立即看到文档已不再安装。 我在哪里搞错了,或者说红宝石世界发生了什么变化? A protip by two2twelve about ruby, rails, and ruby gems. class Gem::ConfigFile. Gem::ConfigFile RubyGems options and gem command options from gemrc. gemrc is a YAML file that uses strings to match gem command arguments and symbols to match RubyGems options. Gem command arguments use a String key that matches the command name and allow you to specify default arguments: install: --no-rdoc --no-ri. for all users. I mean I do not want to put it into ~/.gemrc. Here ( How to make --no-ri --no-rdoc the default for gem install?) I've read that this global file is /etc/gemrc but it does not work for me. Tried on Mac with default Ruby 2.0.0, with Ruby installed with rbenv, inside Docker image CentOS 6.7 - no luck, /etc/gemrc does not work for me |mbg| hhu| wkc| jfx| sya| vof| izr| knq| hta| aty| rms| sdz| gyc| gsj| swr| stv| cgm| byj| fam| mvp| ele| wwd| weu| bra| rgo| evt| tqp| etp| mgk| mwv| cjd| xnx| cch| jhv| emv| pqp| rqn| fuj| uur| rdd| spd| mjy| azj| xfu| nxx| rfu| nif| fkm| yox| ilk|