<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,8 +1,10 @@
-HEAD
+1.0
   * make it more like a gem with a /lib folder
   * add early failure if tinder gem is not available
+	* show project name in the messages spoken into Campfire
+	* Upping version to 1.0 to reflect stability, feature completion
 0.1
- * Forked from http://rubyforge.org/projects/campfire-ccrb/
- * apr_error are also SVN errors (BUG FIX)
- * doesn't spam campfire when the build loop breaks (BUG FIX)
- * Include link back to build report
\ No newline at end of file
+  * Forked from http://rubyforge.org/projects/campfire-ccrb/
+  * apr_error are also SVN errors (BUG FIX)
+  * doesn't spam campfire when the build loop breaks (BUG FIX)
+  * Include link back to build report</diff>
      <filename>HISTORY</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ end
 require 'tinder'
 
 class SmokeSignals
-  VERSION = 0.1
+  VERSION = 1.0
   attr_accessor :room_name
 
   def initialize(project = nil)
@@ -18,11 +18,11 @@ class SmokeSignals
   def self.settings
     YAML.load_file(File.join(RAILS_ROOT, &quot;config&quot;, &quot;smoke_signals.yml&quot;)) rescue nil
   end
-  
+
   def settings
     SmokeSignals.settings
   end
-  
+
   def room
     self.room_name ||= settings[&quot;room&quot;]
     return if room_name.nil?
@@ -35,10 +35,10 @@ class SmokeSignals
     logger.error(&quot;Trouble initalizing campfire room #{room_name}&quot;)
     raise
   end
-  
+
   def build_finished(build)
     clear_flag
-    build_text = &quot;Build #{build.label}&quot;
+    build_text = &quot;#{@project.name} build #{build.label}&quot;
     build_text &lt;&lt; (build.failed? ? &quot; broken&quot; : &quot; successful&quot;)
     build_text &lt;&lt; &quot;.&lt;br/&gt;See #{build.url} for details.&quot;
     speak(build_text)
@@ -46,16 +46,16 @@ class SmokeSignals
 
   def build_fixed(build, previous_build=nil)
     clear_flag
-    speak(&quot;Build fixed in #{build.label}.&quot;)
+    speak(&quot;#{@project.name} build fixed in #{build.label}.&quot;)
   end
-  
+
   def build_loop_failed(error)
     return if flagged? &amp;&amp; is_subversion_down?(error)
     if is_subversion_down?(error)
-      speak &quot;Build loop failed: Error connecting to Subversion: #{error.message}&quot;
+      speak &quot;#{@project.name} build loop failed: Error connecting to Subversion: #{error.message}&quot;
       set_flag
     else
-      speak( &quot;Build loop failed with: #{error.class}: #{error.message}&quot;)
+      speak( &quot;#{@project.name} build loop failed with: #{error.class}: #{error.message}&quot;)
       speak error.backtrace.join(&quot;\n&quot;)
     end
   end
@@ -63,30 +63,30 @@ class SmokeSignals
   def speak(message)
     room.speak(message) unless room_name.nil?
   rescue =&gt; e
-    logger.error(&quot;Error speaking into campfire room #{room_name}&quot;)
+    logger.error(&quot;Error speaking into campfire room #{room_name} for #{@project.name}&quot;)
     raise
   end
-  
+
   def logger
     CruiseControl::Log
   end
-  
+
   def flagged?
     File.exists?(&quot;#{@project.name}.svn_flag&quot;)
   end
-    
+
   def set_flag
     File.open(&quot;#{@project.name}.svn_flag&quot;,&quot;w&quot;) do |file|
       file.puts &quot;#{@project.name} subversion down&quot;
     end
   end
-  
+
   def clear_flag
     return unless flagged?
     File.delete(&quot;#{@project.name}.svn_flag&quot;)
     speak &quot;Subversion is back&quot;
   end
-    
+
   def is_subversion_down?(error)
     !(/(svn: PROPFIND request failed|apr_error)/.match(error.message).nil?)
   end</diff>
      <filename>lib/smoke_signals.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,23 +5,23 @@ require 'test/spec'
 
 describe &quot;SmokeSignals&quot; do
   it &quot;speaks when the build is fixed&quot; do
-    notifier = SmokeSignals.new
+    notifier = SmokeSignals.new(stub(:name =&gt; &quot;project_name&quot;))
     build = stub(:label =&gt; &quot;label&quot;, :url =&gt; &quot;url&quot;)
-    notifier.expects(:speak).with(&quot;Build fixed in label.&quot;)
+    notifier.expects(:speak).with(&quot;project_name build fixed in label.&quot;)
     notifier.expects(:clear_flag)
     notifier.build_fixed(build)
   end
   it &quot;speaks when the build is successful&quot; do
-    notifier = SmokeSignals.new
+    notifier = SmokeSignals.new(stub(:name =&gt; &quot;project_name&quot;))
     build = stub(:label =&gt; &quot;label&quot;, :failed? =&gt; false, :url =&gt; &quot;http://cc.project.com/builds/Project/label&quot;)
-    notifier.expects(:speak).with(&quot;Build label successful.&lt;br/&gt;See http://cc.project.com/builds/Project/label for details.&quot;)
+    notifier.expects(:speak).with(&quot;project_name build label successful.&lt;br/&gt;See http://cc.project.com/builds/Project/label for details.&quot;)
     notifier.expects(:clear_flag)
     notifier.build_finished(build)
   end
   it &quot;speaks when the build fails&quot; do
-    notifier = SmokeSignals.new
+    notifier = SmokeSignals.new(stub(:name =&gt; &quot;project_name&quot;))
     build = stub(:label =&gt; &quot;label&quot;, :failed? =&gt; true, :url =&gt; &quot;http://cc.project.com/builds/Project/label&quot;)
-    notifier.expects(:speak).with(&quot;Build label broken.&lt;br/&gt;See http://cc.project.com/builds/Project/label for details.&quot;)
+    notifier.expects(:speak).with(&quot;project_name build label broken.&lt;br/&gt;See http://cc.project.com/builds/Project/label for details.&quot;)
     notifier.expects(:clear_flag)
     notifier.build_finished(build)
   end
@@ -34,15 +34,15 @@ describe &quot;SmokeSignals&quot; do
     notifier.is_subversion_down?(stub(:message =&gt; &quot;svn: PROPFIND request failed|apr_error&quot;)).should == true
   end
   it &quot;speaks when the build loop fails because of a subversion error&quot; do
-    notifier = SmokeSignals.new
+    notifier = SmokeSignals.new(stub(:name =&gt; &quot;project_name&quot;))
     notifier.stubs(:flagged?).returns(false)
-    notifier.expects(:speak).with(&quot;Build loop failed: Error connecting to Subversion: svn: PROPFIND request failed&quot;)
+    notifier.expects(:speak).with(&quot;project_name build loop failed: Error connecting to Subversion: svn: PROPFIND request failed&quot;)
     notifier.expects(:is_subversion_down?).returns(true)
     notifier.expects(:set_flag)
     notifier.build_loop_failed(stub(:message =&gt; &quot;svn: PROPFIND request failed&quot;))
   end
   it &quot;doesn't spam campfire when failing because it's not an svn error&quot; do
-    notifier = SmokeSignals.new
+    notifier = SmokeSignals.new(stub_everything)
     notifier.stubs(:flagged?).returns(false)
     notifier.expects(:speak).times(2)
     notifier.expects(:is_subversion_down?).returns(false)
@@ -56,6 +56,6 @@ describe &quot;SmokeSignals&quot; do
   end
   it &quot;delegates settings to the class variable settings&quot; do
     SmokeSignals.stubs(:settings).returns(settings = stub)
-    SmokeSignals.new.settings.should == settings
+    SmokeSignals.new(stub(:name =&gt; &quot;project_name&quot;)).settings.should == settings
   end
-end
\ No newline at end of file
+end</diff>
      <filename>test/smoke_signals_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4b546642c704e69d566782dfc7f78acff85d9851</id>
    </parent>
  </parents>
  <author>
    <name>Muness Alrubaie</name>
    <email>muness@thinkrelevance.com</email>
  </author>
  <url>http://github.com/relevance/smoke_signals/commit/cf08f4690c567a97ca84d6cb447ae85e03e81b31</url>
  <id>cf08f4690c567a97ca84d6cb447ae85e03e81b31</id>
  <committed-date>2008-09-19T20:28:13-07:00</committed-date>
  <authored-date>2008-09-19T20:28:13-07:00</authored-date>
  <message>Trac#21, up version number to 1.0</message>
  <tree>b370965acad2ff384d2bc25029852a93d5b4d855</tree>
  <committer>
    <name>Muness Alrubaie</name>
    <email>muness@thinkrelevance.com</email>
  </committer>
</commit>
