JRuby语言:《JRuby语言实战技术》预计2008年6月出版
Posted by cnruby Mon, 26 May 2008 09:06:00 GMT
《JRuby语言实战技术》预计2008年6月出版
- 封面

- 样章
样章已经在Google cnRails论坛上(需要注册)可以下载了。
________________________________________________________________ 您只要点击下面图标,就可以把本文加入到您喜欢的公共收藏库中去。
Posted by cnruby Mon, 26 May 2008 09:06:00 GMT

Posted by cnruby Fri, 21 Mar 2008 20:14:00 GMT
jruby -S gem install antwrap -r
命令执行输出结果
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
ERROR: could not find antwrap locally or in a repository
jruby -S gem install Antwrap -r
命令执行 输出结果
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Successfully installed Antwrap-0.7.0-java
1 gem installed
Installing ri documentation for Antwrap-0.7.0-java...
Installing RDoc documentation for Antwrap-0.7.0-java...
Posted by cnruby Sat, 26 Jan 2008 21:53:00 GMT
require 'Win32API'
def system(cmd)
sys = Win32API.new "crtdll", "system", ['P'], 'L'
sys.Call cmd
end
system("d: && cd D:\opt\rails-app && ruby script/server")
Posted by cnruby Fri, 25 Jan 2008 21:39:00 GMT
require 'Win32API'
def system(cmd)
sys = Win32API.new "crtdll", "system", ['P'], 'L'
sys.Call cmd
end
system("del ./hello.txt")
require "Shell"
sh = Shell.new
sh.ls "-al ."
sh.cd "/opt/java"
require "Shell"
sh = Shell.new
sh.echo("puts 'Hello World!'") > hello.rb
sh.time("ruby hello.rb")