huoxito has joined #rubygems
huoxito has quit [Ping timeout: 250 seconds]
huoxito has joined #rubygems
huoxito has quit [Ping timeout: 255 seconds]
huoxito has joined #rubygems
havenwood has quit [Ping timeout: 256 seconds]
hakunin has quit []
havenwood has joined #rubygems
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> This works fine with ruby 2.x and rubygems 2.x, but fails badly with rubygems 1.8.x https://gist.github.com/pombredanne/c05c557305bb7106ec61
<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
imperator has joined #rubygems
thoraxe has quit [Quit: signing off]
swills has joined #rubygems
Guest84619 is now known as silverdust
silverdust has joined #rubygems
silverdust has quit [Changing host]
bbrowning is now known as bbrowning_away
<pombreda> FWIW, this is what I ended up with https://gist.github.com/pombredanne/c05c557305bb7106ec61 and it works with RubyGems 1.8.2x and 2.x
huoxito_ has quit [Remote host closed the connection]
bbrowning_away is now known as bbrowning
tenderlove has joined #rubygems
workmad3 has joined #rubygems
huoxito has joined #rubygems
pombreda has quit [Ping timeout: 246 seconds]
bbrowning is now known as bbrowning_away
bffff_ has quit [Quit: Connection closed for inactivity]
bbrowning_away is now known as bbrowning
<swills> got gitlab working
<swills> greetings new people. :)
* swills wonders what he missed
<swills> oops, i see i'm in the wrong window. :)
djbkd has joined #rubygems
bbrowning is now known as bbrowning_away
imperator has quit [Quit: Leaving]
huoxito has quit [Remote host closed the connection]