Two very simple ruby scripts (I love ruby!) and a little bash script that searches all ebuilds with 9999 in the name, orders them by dependencies and then emerge -a them. Very useful when you got a lot of 9999 ebuilds.
Tag: ruby
Ruby and parenthesis
Do you prefer
p = Pathaname.new('.').realpath
or
p = (Pathname.new '.').realpath
?
sinp.rb
irb> require 'sinp'
irb> c = SINP::Client.new nil, nil, [:http]
irb> c.getPublicDocument('Kristy@w-nz.com').write
<requested version='2'>
<sinp-id>
<name><nick>kristy</nick></name>
<address type='email'>kbuiter@hotmail.com</address>
<uri>hotmail.com</uri>
</sinp-id>
</requested>
As you can see, I’ve almost finished the implementation of a Ruby SINP client — I only got to finish SINP Negotiation.