From: Marcin Raczkowski on
NICE!

I was looking for something like this few times, never stubled upon it,
thanks for sharing!

From: Florian Gilcher on

On Apr 20, 2010, at 6:30 AM, Mooffie n/a wrote:

> DrX is an object inspector (and a source-code browser).
>
> See screenshots at its homepage:
>
> http://drx.rubyforge.org
>
> I hope it isn't considered bad manners to publish it here.

Not at all.

> My little gem
> exists for over a year but I have the impression nobody knows about it,
> so I've decided to take more "aggressive" measures.


Be more aggressive, I like it! A bit rough around the edges, but pretty interesting.

I already used it to explain Classes and Modules to some colleagues today ;).

Regards,
Florian
From: Brian Candler on
Mooffie n/a wrote:
> http://drx.rubyforge.org

Looks like this is awesome. However it doesn't work for me under Ubuntu
Hardy with its stock ruby-1.8.6p111. The extensions built successfully,
but:

irb(main):001:0> require 'rubygems'
req=> true
irb(main):002:0> require 'sinatra'
=> true
irb(main):003:0> Sinatra.see
NoMethodError: undefined method `see' for Sinatra:Module
from (irb):3
irb(main):004:0> require 'drx'
/usr/lib/ruby/gems/1.8/gems/drx-0.4.4/lib/drx/graphviz.rb:239: warning:
parenthesize argument(s) for future version
=> true
irb(main):005:0> Sinatra.see
/usr/lib/ruby/gems/1.8/gems/drx-0.4.4/lib/drx/tk/app.rb:390: warning:
parenthesize argument(s) for future version
NoMethodError: undefined method `default_widget_set=' for Tk:Module
from /usr/lib/ruby/gems/1.8/gems/drx-0.4.4/lib/drx/tk/app.rb:11
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/lib/ruby/gems/1.8/gems/drx-0.4.4/lib/drx.rb:11:in `see'
from /usr/lib/ruby/gems/1.8/gems/drx-0.4.4/lib/drx.rb:31:in `see'
from (irb):5

If I comment out the line with the error then instead I get:

NameError: uninitialized constant Tk::Tile
from /usr/lib/ruby/1.8/tk.rb:1889:in `const_missing'
from /usr/lib/ruby/gems/1.8/gems/drx-0.4.4/lib/drx/tk/app.rb:581

I have the following packages installed:

$ dpkg-query -l | grep tk8
ii tk8.4 8.4.16-2ubuntu1.1
Tk toolkit for Tcl and X11, v8.4 - run-time files
ii tk8.4-dev 8.4.16-2ubuntu1.1
Tk toolkit for Tcl and X11, v8.4 - development files
$ dpkg-query -l | grep ruby | grep tk
ii libtcltk-ruby 4.1
Tcl/Tk interface for Ruby
ii libtcltk-ruby1.8 1.8.6.111-2ubuntu1.3
Tcl/Tk interface for Ruby 1.8
ii libtk-ruby 4.1
transitional dummy package
$ dpkg-query -l | grep graphviz
ii graphviz 2.16-3ubuntu2
rich set of graph drawing tools
ii graphviz-cairo 2.8-3
Cairo rendering plugin for graphviz
ii graphviz-doc 2.16-3ubuntu2
additional documentation for graphviz
ii libgraphviz4 2.16-3ubuntu2
rich set of graph drawing tools

Regards,

Brian.
--
Posted via http://www.ruby-forum.com/.

From: David Espada on
El martes 20 de abril, Mooffie n/a escribió:
> DrX is an object inspector (and a source-code browser).
>
> See screenshots at its homepage:
>
> http://drx.rubyforge.org
>
> I hope it isn't considered bad manners to publish it here. My little gem
> exists for over a year but I have the impression nobody knows about it,
> so I've decided to take more "aggressive" measures.

I didn't know about it and... it is great! :)

Any plan to extend it for JRuby?.... 0:D

--
David
From: Mooffie n/a on
David Espada wrote:
> Any plan to extend it for JRuby?.... 0:D

I'm not familiar with JRuby, but it was always on my mind to look into
it, so the short answer to your question is "yes".

DrX is composed of three independent components (GUI; GraphViz DOT
generation; A helper C extension) exactly for this reason. While the
current GUI, written in Tk, probably isn't portable, it isn't a
stumbling block.
--
Posted via http://www.ruby-forum.com/.

 |  Next  |  Last
Pages: 1 2 3 4 5 6
Prev: [BUG] Segmentation fault
Next: ya config file parser