made ReportTagHelper#raphael_report_tag work with ruby 1.9 (see http://redmine.ruby-lang.org/issues/show/2161) - reportable - Fork of reportable required by WarVox, from hdm/reportable.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit a631f8df0e52e45eae135bf8ecf158b08a7374a3
 (DIR) parent de7922a1a0fd55d0c699c8bfa4e3acc37e9d35b7
 (HTM) Author: Lars Kuhnt <lars.kuhnt@gmail.com>
       Date:   Wed, 15 Sep 2010 15:07:20 +0200
       
       made ReportTagHelper#raphael_report_tag work with ruby 1.9 (see http://redmine.ruby-lang.org/issues/show/2161)
       
       Diffstat:
         M lib/saulabs/reportable/report_tag_… |       2 +-
         M spec/other/report_tag_helper_spec.… |       4 ++++
       
       2 files changed, 5 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/lib/saulabs/reportable/report_tag_helper.rb b/lib/saulabs/reportable/report_tag_helper.rb
       @@ -94,7 +94,7 @@ module Saulabs
                  graph.g.linechart(
                    -10, 4, #{options[:width]}, #{options[:height]},
                    #{(0..data.size).to_a.to_json},
       -            #{data.map { |d| eval options[:format], d[1].send(:binding) }.to_json},
       +            #{data.map { |d| d[1].send(options[:format]) }.to_json},
                    #{raphael_options.to_json}
                  ).hover(function() {
                    this.disc = graph.g.disc(this.x, this.y, 3).attr({fill: "#{options[:hover_fill_color]}", stroke: '#{options[:hover_line_color]}' }).insertBefore(this);
 (DIR) diff --git a/spec/other/report_tag_helper_spec.rb b/spec/other/report_tag_helper_spec.rb
       @@ -30,6 +30,10 @@ describe Saulabs::Reportable::ReportTagHelper do
              @helper.raphael_report_tag(data_set).should =~ /^<div id="#{data_set.model_name.downcase}_#{data_set.report_name}".*<\/div>/
              @helper.raphael_report_tag(data_set).should =~ /^<div id="#{data_set.model_name.downcase}_#{data_set.report_name}1".*<\/div>/
            end
       +    
       +    it 'should include the data [1,3]' do
       +      @helper.raphael_report_tag(data_set).should =~ /\[1,3\]/
       +    end
        
          end