<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,6 +10,7 @@ begin
     s.description = &quot;Provides an API to send metrics from Merb 1.0+ applications to the FiveRuns Dash service&quot;
     s.authors = [&quot;FiveRuns Development Team&quot;]
     s.add_dependency('fiveruns-dash-ruby', '&gt;= 0.8.0')
+    s.add_dependency('merb-core', '&gt;= 1.0.0')
   end
 rescue LoadError
   puts &quot;Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@
 
 Gem::Specification.new do |s|
   s.name = %q{dash-merb}
-  s.version = &quot;0.6.1&quot;
+  s.version = &quot;0.6.2&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;FiveRuns Development Team&quot;]
@@ -23,10 +23,13 @@ Gem::Specification.new do |s|
 
     if Gem::Version.new(Gem::RubyGemsVersion) &gt;= Gem::Version.new('1.2.0') then
       s.add_runtime_dependency(%q&lt;fiveruns-dash-ruby&gt;, [&quot;&gt;= 0.8.0&quot;])
+      s.add_runtime_dependency(%q&lt;merb-core&gt;, [&quot;&gt;= 1.0.0&quot;])
     else
       s.add_dependency(%q&lt;fiveruns-dash-ruby&gt;, [&quot;&gt;= 0.8.0&quot;])
+      s.add_dependency(%q&lt;merb-core&gt;, [&quot;&gt;= 1.0.0&quot;])
     end
   else
     s.add_dependency(%q&lt;fiveruns-dash-ruby&gt;, [&quot;&gt;= 0.8.0&quot;])
+    s.add_dependency(%q&lt;merb-core&gt;, [&quot;&gt;= 1.0.0&quot;])
   end
 end</diff>
      <filename>dash-merb.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 # Depends on non-ActiveSupport fiveruns-dash-ruby (&gt;= 0.8.0)
 dependency 'fiveruns-dash-ruby', '&gt;= 0.8.0', :require_as =&gt; 'fiveruns/dash',
                                              :immediate =&gt; true
-Merb::Config[:dash] = {
+Merb::Config[:dash] ||= {
   :token =&gt; nil,
   :recipes   =&gt; [
     # This recipe can be removed, if desired
@@ -12,5 +12,7 @@ Merb::Config[:dash] = {
 Merb::BootLoader.after_app_loads do
   Fiveruns::Dash.logger = Merb.logger
   require 'fiveruns/dash/merb'
-  Fiveruns::Dash::Merb.start if Merb::Config[:dash][:token]
+  if Merb::Config[:adapter] != 'irb' &amp;&amp; Merb::Config[:dash][:token]
+    Fiveruns::Dash::Merb.start
+  end
 end
\ No newline at end of file</diff>
      <filename>lib/dash-merb.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,28 @@
 Fiveruns::Dash.register_recipe :merb, :url =&gt; 'http://dash.fiveruns.com' do |recipe|
-  recipe.time 'response_time', :method =&gt; 'Merb::Request#dispatch_action'
-  recipe.counter 'requests', :incremented_by =&gt; 'Merb::Request#dispatch_action'
-  recipe.time 'render_time', :method =&gt; 'Merb::RenderMixin#render'
+  recipe.time :response_time, :method =&gt; 'Merb::Request#dispatch_action'
+  recipe.counter :requests, :incremented_by =&gt; 'Merb::Request#dispatch_action'
+  recipe.time :render_time, :method =&gt; 'Merb::RenderMixin#render'
+  merb_exceptions = Merb::ControllerExceptions.constants.map do |name|
+    &quot;Merb::ControllerExceptions::#{name}&quot;
+  end
+  recipe.ignore_exceptions do |ex|
+    merb_exceptions.include?(ex.class.name)
+  end
+  recipe.add_exceptions_from 'Merb::Request#dispatch_action' do |ex, request|
+    info = {:name =&gt; &quot;#{ex.class.name} in #{request.controller}##{request.params[:action]}&quot;}
+    # TODO: We shouldn't need to double-serialize to_json -- BW
+    begin
+      info[:params] = request.params.to_json
+    rescue
+      Merb.logger.warn &quot;Could not capture request params for exception&quot;
+    end
+    begin
+      info[:environment] = request.env.to_json
+    rescue
+      Merb.logger.warn &quot;Could not capture request env for exception&quot;
+    end
+    # TODO: capture session
+    # TODO: capture headers
+    info
+  end
 end
\ No newline at end of file</diff>
      <filename>lib/fiveruns/dash/merb/recipe.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>LICENSE</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>d783a35956a75e8334abc578aaa1d88945a04643</id>
    </parent>
  </parents>
  <author>
    <name>Bruce Williams</name>
    <email>bruce@codefluency.com</email>
  </author>
  <url>http://github.com/fiveruns/dash-merb/commit/d4d32bfbfdc83dea70af7e215d17b03a6cdd4ae3</url>
  <id>d4d32bfbfdc83dea70af7e215d17b03a6cdd4ae3</id>
  <committed-date>2009-02-17T09:16:24-08:00</committed-date>
  <authored-date>2009-02-17T09:16:24-08:00</authored-date>
  <message>Capture non-Merb::ControllerException exceptions &amp; send to service
Add Merb gem dependency, increment version number for build</message>
  <tree>0a4fa3f535666e46affa57d7fe2ec16cea039961</tree>
  <committer>
    <name>Bruce Williams</name>
    <email>bruce@codefluency.com</email>
  </committer>
</commit>
