houhoulis has quit [Remote host closed the connection]
huoxito has quit [Remote host closed the connection]
silverdust has quit [Ping timeout: 240 seconds]
silverdust has joined #rubygems
silverdust is now known as Guest84619
bbrowning has joined #rubygems
huoxito has joined #rubygems
pombreda has joined #rubygems
huoxito has quit [Ping timeout: 260 seconds]
<pombreda>
Howdy, I am building a utility around rubygems. With rubygems 2.0.x I can require 'rubygems/package' then gem_spec = Gem::Package.new(gem_or_spec).spec to load a spec for a .gem file
<pombreda>
But with rubygems 1.8.2x which is still the default on some linux distro, I do not have such class. What would be the equivalent code in the 1.8.x stream? I want my code to work with whatvere rubygems version installed 1.8.x or 2.x
<pombreda>
and work with both ruby 1.9x and 2.x ;)
<pombreda>
ok, I think I can self answer to myself: require 'rubygems/format' then Gem::Format.from_file_by_path(gem) seemed to have been the pattern in 1.8 to load a .gem sepc
<pombreda>
*spec
huoxito has joined #rubygems
huoxito_ has joined #rubygems
huoxito has quit [Ping timeout: 255 seconds]
<pombreda>
I just need to fight unicode issues now with rubygems 1.8 and ruby 1.9 ... sounds like some strings are BLOB