<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,42 +1,34 @@
 #!/usr/bin/env perl
 
-use strict ;
-use warnings ;
+use strict;
+use warnings;
 
-use Config ;
-use File::Spec ;
-use Data::Dumper ;
+use Config;
+use File::Spec;
+use Data::Dumper;
 
-use BuildStem ;
+use BuildStem;
 
-my $version_from = File::Spec-&gt;catfile( 
-    File::Spec-&gt;curdir, 'lib', 'Stem.pm' 
-);
+my $version_from = File::Spec-&gt;catfile( File::Spec-&gt;curdir, 'lib', 'Stem.pm' );
 
 my $build = BuildStem-&gt;new(
-    module_name		 =&gt; 'Stem',
-    dist_version_from	 =&gt; $version_from,
-    requires		 =&gt; {
-      YAML        =&gt; 0,
-    },
-    dist_abstract	 =&gt; 
-        'An asynchronous message passing framework for Perl',
-    license		 =&gt; 'gpl',
-    dynamic_config	 =&gt; 1,
+    module_name       =&gt; 'Stem',
+    dist_version_from =&gt; $version_from,
+    requires          =&gt; { YAML =&gt; 0, },
+    dist_abstract     =&gt; 'An asynchronous message passing framework for Perl',
+    license           =&gt; 'gpl',
+    dynamic_config    =&gt; 1,
     recursive_test_files =&gt; 1,
     needs_compiler       =&gt; 0,
     recommends           =&gt; {
-	DBI    =&gt; 0,
-        Event  =&gt; 0,
+        DBI   =&gt; 0,
+        Event =&gt; 0,
     },
-    create_makefile_pl	 =&gt; 'passthrough'
+    create_makefile_pl =&gt; 'passthrough'
 );
 
-
-
-$build-&gt;is_unixish() or 
-  die &quot;Stem currently only installs properly on *nix-like platforms.\n&quot;;
-
+$build-&gt;is_unixish()
+  or die &quot;Stem currently only installs properly on *nix-like platforms.\n&quot;;
 
 ### ask about the config path and where to install bundled config files
 
@@ -53,14 +45,13 @@ how to do this.
 
 EOT
 
-$build-&gt;config_data( 
+$build-&gt;config_data(
     conf_path =&gt; scalar $build-&gt;prompt(
         &quot;Please enter a list of directory paths separated by ':'\n&quot;,
-	'.:~/.stem/conf:/usr/local/stem/conf'
+        '.:~/.stem/conf:/usr/local/stem/conf'
     )
 );
 
-
 print &lt;&lt;'EOT';
 
 Where would you like to install the config files bundled with Stem?
@@ -69,24 +60,22 @@ appended. If this directory does not exist, it will be created.
 
 EOT
 
-$build-&gt;config_data( 
+$build-&gt;config_data(
     conf_dir =&gt; scalar $build-&gt;prompt(
         &quot;Please enter a directory path:\n&quot;,
-	'/usr/local/stem/conf'
+        '/usr/local/stem/conf'
     )
 );
 
 ### add the conf_dir to the conf_path, if necessary
 {
-    my $conf_path = $build-&gt;config_data( 'conf_path' );
-    my $conf_dir  = $build-&gt;config_data( 'conf_dir' );
+    my $conf_path = $build-&gt;config_data('conf_path');
+    my $conf_dir  = $build-&gt;config_data('conf_dir');
     if ( $conf_path =~ /(^|:)\Q$conf_dir\E(:|$)/ ) {
         $build-&gt;config_data( conf_path =&gt; &quot;$conf_path:$conf_dir&quot; );
     }
 }
 
-
-
 ### ask about building the demo scripts
 print &lt;&lt;'EOT';
 
@@ -97,57 +86,48 @@ to the system, even after you install the rest of Stem.
 
 EOT
 
-$build-&gt;config_data(
-    build_demos =&gt; scalar $build-&gt;y_n(
-        &quot;Do you want to build the demos?\n&quot;, 'y'
-    )
-);
-
+$build-&gt;config_data( build_demos =&gt;
+      scalar $build-&gt;y_n( &quot;Do you want to build the demos?\n&quot;, 'y' ) );
 
-if ( $build-&gt;config_data( 'build_demos' ) ) {
+if ( $build-&gt;config_data('build_demos') ) {
 
-
-	### Try to find telnet
-	my $telnet_path = $build-&gt;find_binary( 'telnet' ) || '' ;
-	while ( ! -x $telnet_path &amp;&amp; ! $build-&gt;_is_unattended() ) {
-		print &lt;&lt;'EOT';
+    ### Try to find telnet
+    my $telnet_path = $build-&gt;find_binary('telnet') || '';
+    while ( !-x $telnet_path &amp;&amp; !$build-&gt;_is_unattended() ) {
+        print &lt;&lt;'EOT';
 
 telnet was not found on this system. the demo programs won't run properly
 without telnet. Please enter a valid path to telnet, or a single &lt;space&gt; 
 to give up trying.
 
 EOT
-		$telnet_path = $build-&gt;prompt(
-			  &quot;Enter the path to telnet &quot;
-			. &quot;(or another compatible telnet client)&quot;,
-					      '/usr/bin/telnet'
-		) ;
-		last if $telnet_path =~ s/^\w+$//;
-	}
-	$build-&gt;config_data( telnet_path =&gt; $telnet_path || undef ) ;
-
-
-
+        $telnet_path = $build-&gt;prompt(
+            &quot;Enter the path to telnet &quot;
+              . &quot;(or another compatible telnet client)&quot;,
+            '/usr/bin/telnet'
+        );
+        last if $telnet_path =~ s/^\w+$//;
+    }
+    $build-&gt;config_data( telnet_path =&gt; $telnet_path || undef );
 
-	# Try to find xterm
-	my $xterm_path = $build-&gt;find_binary( 'xterm' ) || '' ;
-	while ( ! -x $xterm_path &amp;&amp; ! $build-&gt;_is_unattended() ) {
-	    print &lt;&lt;'EOT';
+    ### Try to find xterm
+    my $xterm_path = $build-&gt;find_binary('xterm') || '';
+    while ( !-x $xterm_path &amp;&amp; !$build-&gt;_is_unattended() ) {
+        print &lt;&lt;'EOT';
 
 xterm was not found on this system. the demo programs won't run properly
 without xterm.  Please enter a valid path to xterm or a single &lt;space&gt; to
 give up trying.
 
 EOT
-	    $xterm_path = $build-&gt;prompt(
-	        &quot;Enter the path to xterm &quot;
-	      . &quot;(or another compatible terminal emulator)&quot;,
-	      '/usr/bin/xterm'
-	    ) ;
-	    last if $xterm_path =~ s/^\w+$//;
-	}
-	$build-&gt;config_data( xterm_path =&gt; $xterm_path || undef ) ;
-
+        $xterm_path = $build-&gt;prompt(
+            &quot;Enter the path to xterm &quot;
+              . &quot;(or another compatible terminal emulator)&quot;,
+            '/usr/bin/xterm'
+        );
+        last if $xterm_path =~ s/^\w+$//;
+    }
+    $build-&gt;config_data( xterm_path =&gt; $xterm_path || undef );
 
     ### Only build ssfe if we have a working C compiler
     if ( $build-&gt;have_c_compiler() ) {
@@ -163,45 +143,34 @@ it will be installed in the demo/ directory. You may copy it to a place
 in your $PATH is you wish.
 
 EOT
-	$build-&gt;config_data(
-	    build_ssfe =&gt; scalar $build-&gt;y_n(
-                &quot;Do you want to build ssfe for the demos?\n&quot;, 'y'
-            )
-        );
+        $build-&gt;config_data( build_ssfe =&gt;
+              scalar $build-&gt;y_n( &quot;Do you want to build ssfe for the demos?\n&quot;,
+                'y' ) );
     }
 }
 
-
-
-
-### NOTE: find out whether or not each of the following 
+### NOTE: find out whether or not each of the following
 ### config_data settings are actually being *used* for anything
 
-my $script_dest = $build-&gt;install_destination('script') ;
-my $run_stem_path = File::Spec-&gt;catfile( $script_dest, 'run_stem' ) ;
-$build-&gt;config_data( run_stem_path =&gt; $run_stem_path ) ;
-
-
+my $script_dest = $build-&gt;install_destination('script');
+my $run_stem_path = File::Spec-&gt;catfile( $script_dest, 'run_stem' );
+$build-&gt;config_data( run_stem_path =&gt; $run_stem_path );
 
+my $bin_path = $build-&gt;install_destination('bin');
+$build-&gt;config_data( bin_path =&gt; $bin_path );
 
-my $bin_path = $build-&gt;install_destination('bin') ;
-$build-&gt;config_data( bin_path =&gt; $bin_path ) ;
-
-$build-&gt;config_data( perl_path =&gt; $build-&gt;config( 'perlpath' ) ) ;
+$build-&gt;config_data( perl_path =&gt; $build-&gt;config('perlpath') );
 
 # Several different prefixes... which one to use??
 #$build-&gt;config_data( prefix =&gt; $build-&gt;prefix() ) ;
-$build-&gt;config_data( prefix =&gt; $build-&gt;config( 'install_base' ) ) ;
-
-
-$build-&gt;config_data( config_done =&gt; 1 ) ;
+$build-&gt;config_data( prefix =&gt; $build-&gt;config('install_base') );
 
+$build-&gt;config_data( config_done =&gt; 1 );
 
 #print Dumper \%{ $build-&gt;config_data() };
 
+$build-&gt;create_build_script();
 
-$build-&gt;create_build_script() ;
-
-exit ;
+exit;
 
-1 ;
+1;</diff>
      <filename>Build.PL</filename>
    </modified>
    <modified>
      <diff>@@ -29,7 +29,7 @@ sub ACTION_build {
 }
 
 
-# yes, hard coded, will fix some other time
+# yes, hard coded paths are bad, will fix some other time
 sub build_ssfe {
     my ( $self ) = @_;
     print &quot;Compiling ssfe\n&quot;;
@@ -40,6 +40,7 @@ sub build_ssfe {
 
 
 
+# handle demo scripts differently from other binaries.
 sub build_demo_scripts {
     my ( $self ) = @_;
     </diff>
      <filename>BuildStem.pm</filename>
    </modified>
    <modified>
      <diff>@@ -52,7 +52,7 @@ some examples) but most Stem applications will use the startup script
 use strict ;
 use vars qw( $VERSION ) ;
 
-$VERSION = 0.12 ;
+$VERSION = 0.13 ;
 
 use Stem::Util ;
 use Stem::Class ;</diff>
      <filename>lib/Stem.pm</filename>
    </modified>
    <modified>
      <diff>@@ -64,7 +64,7 @@ my %loop_to_class = (
 
 my $loop_class = _get_loop_class() ;
 
-INIT{ init_loop() ; }
+init_loop() ;
 
 
 sub init_loop {</diff>
      <filename>lib/Stem/Event.pm</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a14fe3a734c90ffff501b9e04b4713e9060c7dd8</id>
    </parent>
  </parents>
  <author>
    <name>Steve Scaffidi</name>
    <email>sscaffidi@gmail.com</email>
  </author>
  <url>http://github.com/Hercynium/stem/commit/197cb60940f21e2c5a0bc8c7e6add01c5ad5b9d3</url>
  <id>197cb60940f21e2c5a0bc8c7e6add01c5ad5b9d3</id>
  <committed-date>2009-10-06T10:20:50-07:00</committed-date>
  <authored-date>2009-10-06T10:20:50-07:00</authored-date>
  <message>formatting cleanup and removed unnecessary INIT block</message>
  <tree>360de672523bbf2d48fa9f3d8edf6094e87e3145</tree>
  <committer>
    <name>Steve Scaffidi</name>
    <email>sscaffidi@gmail.com</email>
  </committer>
</commit>
