gem generate_index -d /path/to/your/gemfiles/
cd /path/to/your/gemfiles/
gem server
然后修改你的Gemfile的source,改成如下:
source "http://0.0.0.0:8808"
然后运行bundle install,看到的结果一定是让你激动的效果~
最后,建议每个ruby工程目录中增加一个.rvmrc文件,这个文件就是用来指定你该工程使用的ruby版本,已经bundle安装目录和cache目录。.rvmrc的内容只有一句话:
rvm --create use ruby-1.9.2@myprojectname
然后你每次进到工程目录种后都会看到自动切换到相应版本的ruby提示信息。
注意,第一次设置后,需要重新安装bundler以及bundle install,原因可以自己想一下。
另外,每次修改Gemfile时,都需要bundle install一下,这个时候不会安装所有的bundle,因为上次bundle install的时候会生成一个Gemfile.lock文件,告诉bundler哪些bundle已经安装了,而且依赖关系也知道了。 这次只会安装新增的bundle
ruby的汉语意思如下:
n.
红宝石深红色。
adj.
红宝石的红宝石色的。
ruby的读音是:英 [ˈruːbi] 美 [ˈruːbi] 。
ruby的造句如下:
1、RDT is a far more full-featured Ruby IDE with a ton of exciting and time-saving options.
RDT是一个功能更为完善的Ruby开发环境,具备许多令人兴奋并且可以节省大量开发时间的选项。
2、Rich ruby color with tastes of black cherry, full plum and soft vanilla and toffee notes.
酒体呈漂亮的宝石红色,富含蓝莓和熟李子的果香,以及优雅的香草及太妃糖香气。
3、Download and install Ruby libraries easily.
容易地下载和安装ruby库。
4、Tasting notes: A bright ruby red colour with attractive purple hues.
品酿笔记:酒泽如红宝石般明亮动人,但又透露著 * 紫色于其中。
5、Deep ruby coloured with purple reflections in the first years and tending to orange when older.
深宝石红,年轻时泛紫色边缘,随着时间变化会慢慢转成橘黄色。
6、The origin of Ruby Fall.
红宝石瀑布的起源.