从我的正文中删除<代码>ruby <>/code>(原文封顶),代之以与<代码>ruby1.9/code>的链接,并以<代码>irb和gem
取代?
是否有任何具体的问题?
从我的正文中删除<代码>ruby <>/code>(原文封顶),代之以与<代码>ruby1.9/code>的链接,并以<代码>irb和gem
取代?
是否有任何具体的问题?
我不想删除。 我个人下载了垃圾源,并汇编/填入了垃圾目录。 然后,我对我的道路进行了编辑,使/opt/bin/ruby(irb和gem)的排名高于系统违约。 这样,你就可以同时保持系统违约和最新版本。 此外,如果 Apple果不断更新其MacRuby版本,你就不必担心失去任何东西或降级。
我用篮子管理:
alias ruby18=/usr/bin/ruby
alias ruby19=/opt/ruby1.9/bin/ruby
alias ruby=ruby19
安装两种版本,特别是用于1.9read的地壳。
您可以将废墟1.8双亲档案重新命名为废墟1.8、irb1.8等,然后将废墟1连接起来。 9个档案成为废墟。 如果你与某个项目有兼容问题,或你甚至可以使用诸如瓦莱-辛特等工具,在两者之间很容易地回去。 。
我不想完全删除 Apple果。 它可能不会伤害任何东西,但它是该系统的一部分,有些事情可能无法预料到该版本(例如,包括Ruby Coa)。
但是,你可以将Ruby 1.9安装到/usr/ local/bin,并将这排在你本人的PATH/usr/bin之前,这样,就是当你说ruby <>/code时,就叫到的Rub。
作为附带说明,您可尝试“受尊重的Ruby FCCC/SBI/2007/INF/4。 在那里,帮助你一边管理几个Rubies。
The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...
collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...
All of the following API do the same thing: open a file and call a block for each line. Is there any preference we should use one than another? File.open("file").each_line {|line| puts line} open("...
I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?
Here s the string: 04046955104021109 I need it to be formatted like so: 040469551-0402-1109 What s the shortest/most efficient way to do that with ruby?
I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml
Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...
guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...