<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Scout ~ The Blog comments on Everything is easier with Scout Client 2.0</title>
    <link>http://blog.scoutapp.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Scout ~ The Blog comments</description>
    <item>
      <title>"Everything is easier with Scout Client 2.0" by derek</title>
      <description>&lt;p&gt;We&amp;#8217;ve released the 2nd version of our &lt;a href="http:scoutapp.com"&gt;Scout&lt;/a&gt; client. What I love about this release is that it doesn&amp;#8217;t make anything more complex or break compatibility with our first release. It just makes writing plugins easier.&lt;/p&gt;


	&lt;p&gt;For example &amp;#8211; lets say you want to generate an alert. How&amp;#8217;s this for simplicity?&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
class INeedASandwich &amp;lt; Scout::Plugin
  def build_report
     alert(:subject =&amp;gt; "Get me a sandwich")
  end
end
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;We&amp;#8217;ve also made the process for managing memory (data stored on the client between runs of the plugin) easier to work with. Memory is a great tool for storing state.&lt;/p&gt;


	&lt;p&gt;For example:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
class INeedASandwich &amp;lt; Scout::Plugin
  def build_report
    if memory(:am_i_hungry)
      alert(:subject =&amp;gt; "Get me a sandwich")
      remember(:am_i_hungry =&amp;gt; false)
    else
      remember(:am_i_hungry =&amp;gt; true)
    end
  end
end
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;As always, updating to the latest release is as simple as:&lt;/p&gt;


&lt;div class="terminal"&gt;
&lt;strike&gt;gem install scout&lt;/strike&gt; [1]&lt;br /&gt;
gem install scout &amp;#45;&amp;#45;source http://gems.scoutapp.com/
&lt;/div&gt;

	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://scoutapp.com/plugin_urls/static/client_updates"&gt;Learn about the differences between v2 and v1&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://scoutapp.com/plugin_urls/static/creating_a_plugin"&gt;View the updated HowTo Write a Plugin Article&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;[1] Rubyforge is slow to update, in the meantime, use our gem server mirror&lt;/p&gt;

</description>
      <pubDate>Mon,  9 Jun 2008 09:26:00 CDT</pubDate>
      <guid>&lt;a href="/articles/2008/06/09/everything-is-easier-with-scout-client-2-0"&gt;Everything is easier with Scout Client 2.0&lt;/a&gt;</guid>
      <link>&lt;a href="/articles/2008/06/09/everything-is-easier-with-scout-client-2-0"&gt;Everything is easier with Scout Client 2.0&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
