Tag Archives: ruby

Ruby: hessian client

gem 'hessian2', :git => 'git://github.com/takafan/hessian2.git'

Example:

    client = Hessian2::HessianClient.new('http://127.0.0.1:2222/tool/hessian/account.api')
    client.user = 'username'
    client.password = 'password'
    result = client.getAllShards()

Ruby: How to install version 1.9.2

bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

add to your .bashrc:

# Load RVM if it is installed,
# first try to load user install
# then try to load root install, if user install is not there.
if [ -s "$HOME/.rvm/scripts/rvm" ] ;
 then . "$HOME/.rvm/scripts/rvm"
elif [ -s "/usr/local/rvm/scripts/rvm" ] ;
 then . "/usr/local/rvm/scripts/rvm"
fi

1
rvm update --head &amp;&amp; rvm reload &amp;&amp; rvm install 1.9.2 &amp;&amp; rvm 1.9.2 --default