A
Andrés Suárez
Hi,
I've the last one-click installer and the scruffy gem. And if I try to
run this example script:
require 'rubygems'
require 'scruffy'
graph = Scruffy::Graph.new
graph.title = "Favourite Snacks"
graph.renderer = Scruffy::Renderers:ie.new
graph.add ie, '', {
'Apple' => 20,
'Banana' => 100,
'Orange' => 70,
'Taco' => 30
}
graph.render :to => "pie_test.svg"
graph.render :width => 300, :height => 200,
:to => "pie_test.png", :as => 'png'
-------------------
but I've obtained the next error:
c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
`report_activate_error': Could
not find RubyGem builder (>= 2.0) (Gem::LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:134:in
`activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:49:in `gem'
from
c:/ruby/lib/ruby/gems/1.8/gems/scruffy-0.2.5/lib/scruffy.rb:18
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `re
quire'
from scruffy_petete.rb:2
shell returned 1
------------
Where is the problem?
Regards,
Andrés
I've the last one-click installer and the scruffy gem. And if I try to
run this example script:
require 'rubygems'
require 'scruffy'
graph = Scruffy::Graph.new
graph.title = "Favourite Snacks"
graph.renderer = Scruffy::Renderers:ie.new
graph.add ie, '', {
'Apple' => 20,
'Banana' => 100,
'Orange' => 70,
'Taco' => 30
}
graph.render :to => "pie_test.svg"
graph.render :width => 300, :height => 200,
:to => "pie_test.png", :as => 'png'
-------------------
but I've obtained the next error:
c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
`report_activate_error': Could
not find RubyGem builder (>= 2.0) (Gem::LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:134:in
`activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:49:in `gem'
from
c:/ruby/lib/ruby/gems/1.8/gems/scruffy-0.2.5/lib/scruffy.rb:18
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `re
quire'
from scruffy_petete.rb:2
shell returned 1
------------
Where is the problem?
Regards,
Andrés