<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vendor/open_flash_chart_lazy/specs/open_flash_chart_lazy_helper_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -21,19 +21,19 @@ bar =&lt;&lt;-EOS
   bar_chart = OpenFlashChartLazy::Bar.new(&quot;Income&quot;)
   topics=OpenFlashChartLazy::Serie.new(income,{:title=&gt;&quot;Media&quot;})
   bar_chart.add_serie(topics)
-  bar_chart.x_axis[:labels][:rotate]=&quot;vertical&quot;
+  bar_chart.x_axis.labels.rotate=&quot;vertical&quot;
   bar_chart.bg_colour=&quot;#FFFFFF&quot;
 
-  bar_chart.x_axis[:colour]=&quot;#808080&quot;
+  bar_chart.x_axis.colour=&quot;#808080&quot;
   bar_chart.x_axis[&quot;grid-colour&quot;]=&quot;#A0A0A0&quot;
-  bar_chart.x_axis[:stroke]=1
+  bar_chart.x_axis.stroke=1
 
-  bar_chart.y_axis[:colour]=&quot;#808080&quot;
-  bar_chart.y_axis[:stroke]=1
+  bar_chart.y_axis.colour=&quot;#808080&quot;
+  bar_chart.y_axis.stroke=1
   bar_chart.y_axis[&quot;grid-colour&quot;]=&quot;#A0A0A0&quot;
-  bar_chart.y_axis[:min]=0
-  bar_chart.y_axis[:max]=80000
-  bar_chart.y_axis[:steps]=25000
+  bar_chart.y_axis.min=0
+  bar_chart.y_axis.max=80000
+  bar_chart.y_axis.steps=25000
   bar_chart.to_json
 EOS
 bar3d =&lt;&lt;-EOS
@@ -43,19 +43,19 @@ bar3d =&lt;&lt;-EOS
   bar_chart.add_serie(topics)
   bar_chart.bg_colour=&quot;#FFFFFF&quot;
 
-  bar_chart.x_axis[:colour]=&quot;#808080&quot;
+  bar_chart.x_axis.colour=&quot;#808080&quot;
   bar_chart.x_axis[&quot;grid-colour&quot;]=&quot;#A0A0A0&quot;
   # add this setting here because will be placed first to work
   bar_chart.x_axis[&quot;3d&quot;]=10
 
-  bar_chart.y_axis[:colour]=&quot;#808080&quot;
+  bar_chart.y_axis.colour=&quot;#808080&quot;
   bar_chart.y_axis[&quot;grid-colour&quot;]=&quot;#A0A0A0&quot;
-  bar_chart.y_axis[:min]=0
-  bar_chart.y_axis[:max]=80000
-  bar_chart.y_axis[:steps]=25000
+  bar_chart.y_axis.min=0
+  bar_chart.y_axis.max=80000
+  bar_chart.y_axis.steps=25000
   
   #adding tip an color to a bar
-  bar_chart.elements.last[:values][2]={&quot;top&quot;=&gt; income[2][1], &quot;colour&quot;=&gt; &quot;#D54C78&quot;,:tip=&gt;&quot;look here&quot;}
+  bar_chart.elements.last.values[2]={&quot;top&quot;=&gt; income[2][1], &quot;colour&quot;=&gt; &quot;#D54C78&quot;,:tip=&gt;&quot;look here&quot;}
   
   bar_chart.to_json
 EOS
@@ -66,15 +66,14 @@ line =&lt;&lt;-EOS
 
   line_graph.add_serie(active_users)
   line_graph.add_serie(users)
-  line_graph.x_axis[:labels][:rotate]=&quot;vertical&quot;
-  line_graph.x_axis[:labels][:rotate]=&quot;vertical&quot;
+  line_graph.x_axis.labels.rotate=&quot;vertical&quot;
   line_graph.bg_colour=&quot;#FFFFFF&quot;
-  line_graph.x_axis[:colour]=&quot;#808080&quot;
+  line_graph.x_axis.colour=&quot;#808080&quot;
   line_graph.x_axis[&quot;grid-colour&quot;]=&quot;#A0A0A0&quot;
-  line_graph.x_axis[:stroke]=0.5
+  line_graph.x_axis.stroke=0.5
 
-  line_graph.y_axis[:colour]=&quot;#808080&quot;
-  line_graph.y_axis[:stroke]=0.5
+  line_graph.y_axis.colour=&quot;#808080&quot;
+  line_graph.y_axis.stroke=0.5
   line_graph.y_axis[&quot;grid-colour&quot;]=&quot;#A0A0A0&quot;
   line_graph.to_json
 EOS</diff>
      <filename>ofc2.rb</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>public/open-flash-chart.swf</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>vendor/open_flash_chart_lazy/assets/swf/open-flash-chart.swf</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,4 @@
+require 'mash'
 require File.join(File.dirname(__FILE__),'open_flash_chart_lazy/open_flash_chart_lazy')
 
 # dumb hack to support sinatra
@@ -11,3 +12,4 @@ rescue
   require File.join(File.dirname(__FILE__),'open_flash_chart_lazy/open_flash_chart_lazy_sinatra')
   #not rails
 end
+</diff>
      <filename>vendor/open_flash_chart_lazy/lib/open_flash_chart_lazy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,7 @@ module OpenFlashChartLazy
     attr_accessor :max
     attr_accessor :min
     attr_accessor :steps
-    def initialize(data,options={})
+    def initialize(data,options=Mash.new)
       @data = data
       # the labels
       @labels = []
@@ -23,7 +23,7 @@ module OpenFlashChartLazy
       #default options
       @steps = 1
       @options = {:date_label_formatter=&gt;&quot;%b %Y&quot;,:date_key_formatter=&gt;&quot;%Y-%m&quot;,:title=&gt;&quot;Untitled&quot;}
-      if @data.is_a?(Hash)
+      if @data.is_a?(Hash) or @data.is_a?(Mash)
         @items = data.length
       else
         @options.merge!({:items =&gt; data.length})
@@ -48,7 +48,7 @@ module OpenFlashChartLazy
           period = Time.mktime(new_period.year,new_period.month,new_period.day)
           @labels[i] = period.strftime(@options[:date_label_formatter])
           @keys[i] = period.strftime(@options[:date_key_formatter])
-        elsif @data.is_a?(Hash)
+        elsif @data.is_a?(Hash) or @data.is_a?(Mash)
           @labels[i] = &quot;#{@data.keys[i]}&quot;
           @keys[i] = @data.keys[i]
         elsif @data.is_a?(Array)
@@ -90,7 +90,7 @@ module OpenFlashChartLazy
               @values[i]=data
             end
           end
-        when &quot;Hash&quot;
+        when &quot;Hash&quot;,&quot;Mash&quot;
           @values = @data.values
         end
       end
@@ -106,9 +106,9 @@ module OpenFlashChartLazy
     def initialize(title=&quot;Untitled&quot;)
       @series = []
       @elements = []
-      @title = {:text=&gt;title}
-      @y_axis = {}
-      @x_axis = {:labels =&gt; []}
+      @title = Mash.new({:text=&gt;title})
+      @y_axis = Mash.new({})
+      @x_axis = Mash.new({:labels =&gt; []})
     end
     def method_missing(method, value)
       self.instance_variable_set( &quot;@#{method.to_s[0..-2]}&quot;.to_sym,value)
@@ -120,12 +120,12 @@ module OpenFlashChartLazy
     LINE_COLORS = %w{#33ff33 #ff33ff #dd00ee}
     EXCLUDED_ATTRIBUTES = %w{series}
   
-    def add_serie(serie,options={})
+    def add_serie(serie,options=Mash.new())
       @elements &lt;&lt; {:type=&gt;&quot;bar&quot;,:text=&gt;serie.title}
       @elements.last.merge!(options)
       @series &lt;&lt; serie
       @elements.last[:values] = serie.values
-      @x_axis[:labels] = {:labels =&gt; @series.last.labels }
+      @x_axis[:labels] = Mash.new({:labels =&gt; @series.last.labels })
     end
     def to_graph_json
       self.to_json(:except=&gt;EXCLUDED_ATTRIBUTES)
@@ -137,12 +137,12 @@ module OpenFlashChartLazy
     LINE_COLORS = %w{#33ff33 #ff33ff #dd00ee}
     EXCLUDED_ATTRIBUTES = %w{series}
   
-    def add_serie(serie,options={})
-      @elements &lt;&lt; {:type=&gt;&quot;bar_3d&quot;,:text=&gt;serie.title}
+    def add_serie(serie,options=Mash.new)
+      @elements &lt;&lt; Mash.new({:type=&gt;&quot;bar_3d&quot;,:text=&gt;serie.title})
       @elements.last.merge!(options)
       @series &lt;&lt; serie
       @elements.last[:values] = serie.values
-      @x_axis[:labels] = {&quot;3d&quot;=&gt;10,:colour=&gt;&quot;#909090&quot;,:labels =&gt; @series.last.labels }
+      @x_axis[:labels] = Mash.new({&quot;3d&quot;=&gt;10,:colour=&gt;&quot;#909090&quot;,:labels =&gt; @series.last.labels })
     end
     def to_graph_json
       self.to_json(:except=&gt;EXCLUDED_ATTRIBUTES)
@@ -161,11 +161,11 @@ module OpenFlashChartLazy
     LINE_COLORS = %w{#33ff33 #ff33ff #dd00ee}
     def initialize(title=&quot;Untitled&quot;)
       super
-      @y_axis = {:min =&gt;0,:max=&gt;0,:steps=&gt;1}.merge(@y_axis)
+      @y_axis = Mash.new({:min =&gt;0,:max=&gt;0,:steps=&gt;1}.merge(@y_axis))
     end
   
-    def add_serie(serie,options={})
-      @elements &lt;&lt; {:text=&gt;serie.title,:type=&gt;&quot;line_dot&quot;,:width=&gt;4,:dot_size=&gt;5}
+    def add_serie(serie,options=Mash.new)
+      @elements &lt;&lt; Mash.new({:text=&gt;serie.title,:type=&gt;&quot;line_dot&quot;,:width=&gt;4,:dot_size=&gt;5})
       @elements.last.merge!(options)
       @series &lt;&lt; serie
       @elements.last[:values] = serie.values
@@ -188,7 +188,7 @@ module OpenFlashChartLazy
       super
       @x_axis = &quot;null&quot;
     end
-    def add_serie(serie,options={})
+    def add_serie(serie,options=Mash.new)
       @elements &lt;&lt; {:text=&gt;serie.title,
           :type=&gt;&quot;pie&quot;,
           :border=&gt;2,
@@ -200,7 +200,7 @@ module OpenFlashChartLazy
       @elements.last[:values] = []
       @series &lt;&lt; serie
       serie.values.each_with_index do |v,i|
-        @elements.last[:values]&lt;&lt; {:text =&gt; serie.labels[i], :value =&gt; v}
+        @elements.last[:values]&lt;&lt; Mash.new({:text =&gt; serie.labels[i], :value =&gt; v})
       end
     end
     def to_graph_json</diff>
      <filename>vendor/open_flash_chart_lazy/lib/open_flash_chart_lazy/open_flash_chart_lazy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,47 @@
 
 %p I want to know if you are using this plugin, please email me pedro.visintin [[at]] gmail com
 
+%h1 Some news
+
+%p 
+  Open Flash Chart Lazy now requires 
+  %a{:href=&gt;&quot;http://rubyforge.org/projects/mash-hash/&quot;} 
+    Mash 
+  This is helpful to set the parameters as methods. 
+
+%p
+  Before you have to set:
+    
+%pre&gt;&lt;
+  %code.ruby&gt;&lt;
+    - code=&quot;#previous version\n&quot;
+    - code &lt;&lt; &quot;bar_chart.y_axis[:min]=0\n&quot;
+    - code &lt;&lt; &quot;bar_chart.y_axis[:max]=1000\n&quot;
+    - code &lt;&lt; &quot;bar_chart.y_axis[:steps]=100\n&quot;
+    =preserve(code)
+
+%p 
+  With the new version, is compatible with previous but if you fill confortable you can set the values as standard methods. 
+  But remember that some non-standard name parameters as &quot;grid-colour&quot; will still be setted as previous [&quot;grid-colour&quot;]
+
+%pre&gt;&lt;
+  %code.ruby&gt;&lt;
+    - code=&quot;#new version\n&quot;
+    - code &lt;&lt; &quot;bar_chart.y_axis.min=0\n&quot;
+    - code &lt;&lt; &quot;bar_chart.y_axis.max=1000\n&quot;
+    - code &lt;&lt; &quot;bar_chart.y_axis[:steps]=100\n&quot;
+    - code &lt;&lt; &quot;# or \n&quot;
+    - code &lt;&lt; &quot;bar_chart.y_axis.steps=100\n&quot;
+    =preserve(code)
+
+%p 
+  Also the new beta version of Open Flash Chart 
+  %a{:href=&gt;&quot;http://teethgrinder.co.uk/open-flash-chart-2/downloads.php&quot;}
+    Alpha8 
+  is now embbeded.
+
+%p Enjoy
+
 %h1 What is
 %p 
   Is a ruby library to use </diff>
      <filename>views/index.haml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cdf86e81147f842c140a1cbc40e93c624068450d</id>
    </parent>
  </parents>
  <author>
    <name>Pedro Visintin</name>
    <email>pedro.visintin@gmail.com</email>
  </author>
  <url>http://github.com/peterpunk/open_flash_chart_lazy_samples/commit/4877898ecdfa0e3b6ed82457aa8034b5edcb6911</url>
  <id>4877898ecdfa0e3b6ed82457aa8034b5edcb6911</id>
  <committed-date>2008-08-30T11:07:53-07:00</committed-date>
  <authored-date>2008-08-30T11:07:53-07:00</authored-date>
  <message>Mash required and new version alpha 8</message>
  <tree>8778dfabb7635380598aa2b88423568aa7a239f1</tree>
  <committer>
    <name>Pedro Visintin</name>
    <email>pedro.visintin@gmail.com</email>
  </committer>
</commit>
