<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,18 +6,26 @@ License::    Distributes under the same terms as Ruby
 
 A plugin for visually setting expectations throughout application development.
 
-Adds a todo helper for marking page elements with the milestone they are slated to be developed, and makes them unable to be interacted with.
+Adds a helper for marking page elements with the milestone they are slated to be developed, and makes them unable to be interacted with.
 
 Usage:
 
 Once the plugin has been installed, in your views you can now do:
 
-&lt;div class=&quot;person&quot; &lt;%= todo &quot;Milestone 6&quot; %&gt;&gt;
+&lt;div class=&quot;person&quot; &lt;%= mile 6 %&gt;&gt;
   &lt;div class=&quot;name&quot;&gt;Your Name&lt;div&gt;
 &lt;/div&gt;
 
 When viewed in development mode, the person div would be overlaid with a grey box with the words &quot;Milestone 6&quot; in it.
 
+If you happen to not call your milestones, &quot;milestones&quot;, or for any other reason want the label to be something different, just supply a string instead:
+
+&lt;div class=&quot;person&quot; &lt;%= mile &quot;Next Week&quot; %&gt;&gt;
+  &lt;div class=&quot;name&quot;&gt;Your Name&lt;div&gt;
+&lt;/div&gt;
+
+And that will still result in the marker being labeled with &quot;Next Week&quot; instead.
+
 By default, the milestone markers will be only appear in the Rails development environment.  To customize this, add the following to environment.rb
 
 Thoughtbot::MileMarker.environments = %w(development staging production)</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -5,17 +5,17 @@ require 'rake/rdoctask'
 desc 'Default: run unit tests.'
 task :default =&gt; :test
 
-desc 'Test the todo plugin.'
+desc 'Test the mile_marker plugin.'
 Rake::TestTask.new(:test) do |t|
   t.libs &lt;&lt; 'lib'
   t.pattern = 'test/**/*_test.rb'
   t.verbose = true
 end
 
-desc 'Generate documentation for the todo plugin.'
+desc 'Generate documentation for the mile_marker plugin.'
 Rake::RDocTask.new(:rdoc) do |rdoc|
   rdoc.rdoc_dir = 'rdoc'
-  rdoc.title    = 'Todo'
+  rdoc.title    = 'Mile Marker'
   rdoc.options &lt;&lt; '--line-numbers' &lt;&lt; '--inline-source'
   rdoc.rdoc_files.include('README')
   rdoc.rdoc_files.include('lib/**/*.rb')</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
 module Thoughtbot
   module MileMarkerHelper
-    def todo(detail=&quot;&quot;)
+    def mile(detail=&quot;&quot;)
       return unless MileMarker.enabled?
-      &quot;todo=\&quot;&quot; + (detail.is_a?(Fixnum) ? &quot;Milestone &quot; : &quot;&quot;) + &quot;#{detail}\&quot;&quot;
+      &quot;mile=\&quot;&quot; + (detail.is_a?(Fixnum) ? &quot;Milestone &quot; : &quot;&quot;) + &quot;#{detail}\&quot;&quot;
     end
   
     def initialize_mile_marker(request = nil)
@@ -18,12 +18,12 @@ module Thoughtbot
   end
     
   class MileMarker  
-    # The environments in which to enable the Todo functionality to run.  Defaults
+    # The environments in which to enable the Mile Marker functionality to run.  Defaults
     # to 'development' only.
     @@environments = ['development']
     cattr_accessor :environments
 
-    # Return true if the Todo functionality is enabled for the current environment
+    # Return true if the Mile Marker functionality is enabled for the current environment
     def self.enabled?
       environments.include?(ENV['RAILS_ENV'])
     end
@@ -32,15 +32,15 @@ module Thoughtbot
       %Q~
 &lt;script type=&quot;text/javascript&quot;&gt;
 //&lt;![CDATA[
-  function init_todo() {
-    $$('*[todo]').each(function(block, index) {
-      html = '&lt;div id=&quot;todo_'+index+'&quot; style=&quot;display: none; z-index: 1000; position: absolute; background-color: #000; opacity: .33; filter: alpha(opacity=33); color: #fff; font-family: Verdana; font-weight: bold; font-size: 20px;&quot;&gt;&lt;div style=&quot;margin: 5px;&quot;&gt;'+block.getAttribute('todo')+'&lt;/div&gt;&lt;/div&gt;'
+  function init_miles() {
+    $$('*[mile]').each(function(block, index) {
+      html = '&lt;div id=&quot;mile_'+index+'&quot; style=&quot;display: none; z-index: 1000; position: absolute; background-color: #000; opacity: .33; filter: alpha(opacity=33); color: #fff; font-family: Verdana; font-weight: bold; font-size: 20px;&quot;&gt;&lt;div style=&quot;margin: 5px;&quot;&gt;'+block.getAttribute('mile')+'&lt;/div&gt;&lt;/div&gt;'
       new Insertion.Before($(block), html);
-      Position.clone($(block), $('todo_'+index));
-      $('todo_'+index).toggle();
+      Position.clone($(block), $('mile_'+index));
+      $('mile_'+index).toggle();
     });
   }
-  Event.observe(window, 'load', init_todo, false);
+  Event.observe(window, 'load', init_miles, false);
 //]]&gt;
 &lt;/script&gt;
 ~</diff>
      <filename>lib/mile_marker.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,45 +3,45 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'test_helper'))
 class MileMarkerTest &lt; Test::Unit::TestCase
   include Thoughtbot::MileMarkerHelper
 
-  def test_todo_helper_should_return_nothing_if_no_enabled
+  def test_mile_helper_should_return_nothing_if_no_enabled
     Thoughtbot::MileMarker.environments = ['development']
     ENV['RAILS_ENV']=&quot;test_environment&quot;
-    output = todo(&quot;Milestone 1&quot;)
+    output = mile(&quot;Milestone 1&quot;)
     assert_nil output
   end
 
-  def test_todo_helper_should_include_detail_when_supplied_detail
+  def test_mile_helper_should_include_detail_when_supplied_detail
     Thoughtbot::MileMarker.environments = ['development']
     ENV['RAILS_ENV']=&quot;development&quot;
-    output = todo(&quot;Milestone 1&quot;)
-    assert_equal &quot;todo=\&quot;Milestone 1\&quot;&quot;, output
+    output = mile(&quot;Milestone 1&quot;)
+    assert_equal &quot;mile=\&quot;Milestone 1\&quot;&quot;, output
   end
   
-  def test_todo_helper_should_include_add_milestone_when_supplied_integer
+  def test_mile_helper_should_include_add_milestone_when_supplied_integer
     Thoughtbot::MileMarker.environments = ['development']
     ENV['RAILS_ENV']=&quot;development&quot;
-    output = todo(1)
-    assert_equal &quot;todo=\&quot;Milestone 1\&quot;&quot;, output
+    output = mile(1)
+    assert_equal &quot;mile=\&quot;Milestone 1\&quot;&quot;, output
   end
     
-  def test_todo_helper_should_include_no_detail_when_supplied_no_detail
+  def test_mile_helper_should_include_no_detail_when_supplied_no_detail
     Thoughtbot::MileMarker.environments = ['development']
     ENV['RAILS_ENV']=&quot;development&quot;
-    output = todo
-    assert_equal &quot;todo=\&quot;\&quot;&quot;, output
+    output = mile
+    assert_equal &quot;mile=\&quot;\&quot;&quot;, output
   end
   
-  def test_initialize_todo_should_return_nothing_if_not_enabled
+  def test_initialize_mile_should_return_nothing_if_not_enabled
     ENV['RAILS_ENV']=&quot;test_environment&quot;
     output = initialize_mile_marker
     assert_nil output
   end
 
-  def test_initialize_todo_should_return_javascript_if_enabled
+  def test_initialize_mile_should_return_javascript_if_enabled
     Thoughtbot::MileMarker.environments = ['development']
     ENV['RAILS_ENV']=&quot;development&quot;
     output = initialize_mile_marker
-    assert_match /function init_todo/, output
+    assert_match /function init_miles/, output
   end
   
   def test_javascript_should_be_added_to_head_if_enabled</diff>
      <filename>test/mile_marker_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a6da0363d7d84f92a324da70c481fc58160c1b21</id>
    </parent>
  </parents>
  <author>
    <name>cpytel</name>
    <email>cpytel@7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa</email>
  </author>
  <url>http://github.com/thoughtbot/mile_marker/commit/e3396f2bcaf857ec8fabc67e1c979327156d93f5</url>
  <id>e3396f2bcaf857ec8fabc67e1c979327156d93f5</id>
  <committed-date>2007-07-31T09:25:16-07:00</committed-date>
  <authored-date>2007-07-31T09:25:16-07:00</authored-date>
  <message>helper name change



git-svn-id: https://svn.thoughtbot.com/plugins/mile_marker/trunk@152 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa</message>
  <tree>03b560411b7f5f7472454803da674c89349808c8</tree>
  <committer>
    <name>cpytel</name>
    <email>cpytel@7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa</email>
  </committer>
</commit>
