<dangerousdave>
however I am getting it on the cloud host heroku, so am not able to downgrade rubygems
<dangerousdave>
do I have any other options?
<dangerousdave>
please
_elia has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
<jhass>
dangerousdave: sounds like a #heroku question
<dangerousdave>
jhass, they couldn't help me
<dangerousdave>
can i downgrade rubygems from within a rails application using the Gemfile?
elia has joined #rubygems
<jhass>
then I doubt anyone here can, besides telling you to upgrade your stuff fianlly
<dangerousdave>
yeah
workmad3 has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dvu has quit [Remote host closed the connection]
elia has quit [Ping timeout: 240 seconds]
dvu has joined #rubygems
elia has joined #rubygems
hakunin has quit []
dvu has quit [Remote host closed the connection]
mkristian has quit [Quit: bye]
dangerousdave has joined #rubygems
dvu has joined #rubygems
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dvu has quit [Remote host closed the connection]
dvu has joined #rubygems
bbrowning_ has joined #rubygems
bbrowning has quit [Ping timeout: 272 seconds]
dvu has quit [Ping timeout: 244 seconds]
bbrowning_ is now known as bbrowning
dvu has joined #rubygems
dvu has quit [Remote host closed the connection]
dvu has joined #rubygems
elia has quit [Quit: Computer has gone to sleep.]
tbuehlmann has joined #rubygems
robotblake has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has joined #rubygems
dwknoxy is now known as dknox-lunch
jottr has joined #rubygems
tdruez has joined #rubygems
pombreda has joined #rubygems
<pombreda>
Hola ;) given a bunch of gems (not installed) in a directory, how could I get the equivalent of a gem list output? and also can this be a bit more structured list (like a yaml or json) rather than bare text?
tcopeland has quit [Ping timeout: 260 seconds]
<jhass>
what for? Might be easier just parsing the filenames
<pombreda>
jhass: this is to get a report of gems in use, with description, author, homepage, etc
<pombreda>
jhass: not all these gems are open source btw
<jhass>
so what do you have exactly? A directory of .gem files or? A Gemfile?
bbrowning is now known as bbrowning_away
<pombreda>
jhass: a directory with a bunch of .gem files
knoxweb has quit [Quit: Leaving...]
<jhass>
Something like Dir.glob['foo/*.gem'].map {|gem| Gem::Package.new(gem).spec } should get you started
robotblake has joined #rubygems
dvu has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
<pombreda>
jhass: I am rather new to ruby ;) "NameError: uninitialized constant Gem::Package" ... using ruby 2
<jhass>
pombreda: require 'rubygems/package'
<pombreda>
ah
<pombreda>
jhass: got it with require 'rubygems/package';Dir.glob('*.gem').map {|gem| Gem::Package.new(gem).spec}
<pombreda>
jhass: thanks mucho... that should get me going :)
Guest___ has joined #rubygems
dvu has joined #rubygems
tcopeland has joined #rubygems
dvu has quit [Ping timeout: 260 seconds]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #rubygems
<pombreda>
are the gemspec files pure YAML? or not?
<pombreda>
sounds like gem specification --yaml does not output valid yaml (when parsed with anoth language than Ruby)?
dvu has joined #rubygems
elia has quit [Quit: Computer has gone to sleep.]
jottr has quit [Ping timeout: 272 seconds]
dvu has quit [Remote host closed the connection]
<jhass>
what's that other language and what parser it is using?
<jhass>
ah, it does ruby object serialization in there
tdruez has quit [Remote host closed the connection]
<jhass>
so, gem specifications are written in pure ruby, that yaml is just another representation
<jhass>
so if you need that data in another language, best is to write a ruby script that dumps it in a format you can easily read there