<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,7 @@
 *SVN*
 
+*0.0.1* (August 17th, 2007)
+
+* Add documentation
+
 * Convert dos newlines to unix newlines</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</diff>
      <filename>MIT-LICENSE</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,10 @@ styled_inputs adds automated styling of input fields with css classes.
 
 == Resources
 
+API
+
+* http://api.pluginaweek.org/styled_inputs
+
 Wiki
 
 * http://wiki.pluginaweek.org/Styled_inputs
@@ -22,3 +26,23 @@ Development
 
 == Description
 
+Normally, it is difficult to style inputs without adding classes to them so
+that you can specify css for each type of input.  Since this can become a
+tedious manual task, styled_inputs automatically adds a classes to each
+input that is generated either by tag or form helpers.  The class that is
+specified is the type of input being generated.
+
+=== Tags
+
+  text_field_tag('name')    # =&gt; &lt;input class=&quot;text&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;text&quot; /&gt;
+  hidden_field_tag('name')  # =&gt; &lt;input class=&quot;hidden&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;hidden&quot; /&gt;
+
+=== Form helpers
+
+  text_field(:person, :name)    # =&gt; &lt;input class=&quot;text&quot; id=&quot;person_name&quot; name=&quot;person[name]&quot; size=&quot;30&quot; type=&quot;text&quot; /&gt;
+  hidden_field(:person, :name)  # =&gt; &lt;input class=&quot;hidden&quot; id=&quot;person_name&quot; name=&quot;person[name]&quot; type=&quot;hidden&quot; /&gt;
+
+== Dependencies
+
+This plugin depends on the presence of the following plugins:
+* set_or_append - http://wiki.pluginaweek.org/Set_or_append</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -38,6 +38,7 @@ spec = Gem::Specification.new do |s|
   s.autorequire     = 'styled_inputs'
   s.has_rdoc        = true
   s.test_files      = Dir['test/**/*_test.rb']
+  s.add_dependency  'set_or_append', '&gt;= 0.0.1'
   
   s.author          = 'Aaron Pfeifer, Neil Abraham'
   s.email           = 'info@pluginaweek.org'
@@ -76,4 +77,4 @@ task :release =&gt; [:gem, :package] do
     
     ruby_forge.add_release(RUBY_FORGE_PROJECT, PKG_NAME, PKG_VERSION, file)
   end
-end
\ No newline at end of file
+end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-require 'styled_inputs'
\ No newline at end of file
+require 'styled_inputs'</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,31 +5,31 @@ module PluginAWeek #:nodoc:
     # Automatically adds css classes to input tags so that fields can be
     # easily styled.
     # 
-    # For example, using tags:
+    # Tag examples:
     #   
     #   text_field_tag('name')        # =&gt; &lt;input class=&quot;text&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;text&quot; /&gt;
     #   hidden_field_tag('name')      # =&gt; &lt;input class=&quot;hidden&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;hidden&quot; /&gt;
     #   radio_button_tag('agree', 1)  # =&gt; &lt;input class=&quot;radio&quot; id=&quot;agree_1&quot; name=&quot;agree&quot; type=&quot;radio&quot; value=&quot;1&quot; /&gt;
     # 
-    # Using the form helpers:
+    # Form helper examples:
     # 
     #   text_field(:person, :name)        # =&gt; &lt;input class=&quot;text&quot; id=&quot;person_name&quot; name=&quot;person[name]&quot; size=&quot;30&quot; type=&quot;text&quot; /&gt;
     #   hidden_field(:person, :name)      # =&gt; &lt;input class=&quot;hidden&quot; id=&quot;person_name&quot; name=&quot;person[name]&quot; type=&quot;hidden&quot; /&gt;
     #   radio_button(:person, :agree, 1)  # =&gt; &lt;input class=&quot;radio&quot; id=&quot;person_agree_1&quot; name=&quot;person[agree]&quot; type=&quot;radio&quot; value=&quot;1&quot; /&gt;
     # 
     # If you specify additional classes when creating a tag, the automated css
-    # classes will be appended to the current ones.  For example,
+    # classes will be prepended to the current ones.  For example,
     # 
-    #   text_field_tag('name', :class =&gt; 'selected')        # =&gt; &lt;input class=&quot;selected text&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;text&quot; /&gt;
-    #   text_field_tag('name', :class =&gt; 'selected shadow') # =&gt; &lt;input class=&quot;selected shadow text&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;text&quot; /&gt;
-    module StyledInputHelper
+    #   text_field_tag('name', :class =&gt; 'selected')        # =&gt; &lt;input class=&quot;text selected&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;text&quot; /&gt;
+    #   text_field_tag('name', :class =&gt; 'selected shadow') # =&gt; &lt;input class=&quot;text selected shadow&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;text&quot; /&gt;
+    module StyledInputsHelper
       # Appends the input type to the value currently stored in the html options
       # for the tag.
       def styled_input(name, options)
         options = options.stringify_keys
         
         if name.to_s == 'input' &amp;&amp; options.include?('type')
-          options.set_or_append('class', options['type'])
+          options.set_or_prepend('class', options['type'])
         end
         
         options
@@ -48,7 +48,7 @@ module ActionView #:nodoc:
     end
     
     class InstanceTag #:nodoc:
-      include PluginAWeek::Helpers::StyledInputHelper
+      include PluginAWeek::Helpers::StyledInputsHelper
       
       def tag_with_styled_input(name, options) #:nodoc:
         tag_without_styled_input(name, styled_input(name, options))
@@ -59,5 +59,5 @@ module ActionView #:nodoc:
 end
 
 ActionController::Base.class_eval do
-  helper PluginAWeek::Helpers::StyledInputHelper
-end
\ No newline at end of file
+  helper PluginAWeek::Helpers::StyledInputsHelper
+end</diff>
      <filename>lib/styled_inputs.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ class Person
 end
 
 class StyledInputsTest &lt; Test::Unit::TestCase
-  include PluginAWeek::Helpers::StyledInputHelper
+  include PluginAWeek::Helpers::StyledInputsHelper
   include ActionView::Helpers::TagHelper
   include ActionView::Helpers::FormTagHelper
   include ActionView::Helpers::FormHelper
@@ -17,100 +17,100 @@ class StyledInputsTest &lt; Test::Unit::TestCase
     @person = Person.new
   end
   
-  def test_styled_input_not_input
+  def test_should_not_style_input_if_tag_is_not_input
     expected = {}
     assert_equal expected, styled_input('td', expected)
   end
   
-  def test_styled_input_not_input_with_type
+  def test_should_not_style_input_if_correct_type_but_tag_is_not_input
     expected = {'type' =&gt; 'text'}
     assert_equal expected, styled_input('td', expected)
   end
   
-  def test_styled_input
+  def test_should_style_input_if_tag_is_input
     expected = {'type' =&gt; 'text', 'class' =&gt; 'text'}
     assert_equal expected, styled_input('input', {'type' =&gt; 'text'})
   end
   
-  def test_styled_input_with_symbolic_name
+  def test_should_style_input_if_tag_is_symbolic_input
     expected = {'type' =&gt; 'text', 'class' =&gt; 'text'}
     assert_equal expected, styled_input(:input, {'type' =&gt; 'text'})
   end
   
-  def test_styled_input_without_type
+  def test_should_not_style_input_if_tag_is_input_but_type_not_specified
     expected = {}
     assert_equal expected, styled_input('input', expected)
   end
   
-  def test_styled_input_with_predefined_class
-    expected = {'type' =&gt; 'text', 'class' =&gt; 'selected text'}
+  def test_should_prepend_style_if_class_is_already_populated
+    expected = {'type' =&gt; 'text', 'class' =&gt; 'text selected'}
     assert_equal expected, styled_input('input', {'type' =&gt; 'text', 'class' =&gt; 'selected'})
   end
   
-  def test_tag
+  def test_should_style_general_tag_builder
     assert_equal '&lt;input class=&quot;text&quot; type=&quot;text&quot; /&gt;', tag('input', {'type' =&gt; 'text'})
   end
   
   # FormHelper tests
   
-  def test_text_field
+  def test_should_style_text_field
     assert_equal '&lt;input class=&quot;text&quot; id=&quot;person_name&quot; name=&quot;person[name]&quot; size=&quot;30&quot; type=&quot;text&quot; /&gt;', text_field(:person, :name)
   end
   
-  def test_password_field
+  def test_should_style_password_field
     assert_equal '&lt;input class=&quot;password&quot; id=&quot;person_secret&quot; name=&quot;person[secret]&quot; size=&quot;30&quot; type=&quot;password&quot; /&gt;', password_field(:person, :secret)
   end
   
-  def test_hidden_field
+  def test_should_style_hidden_field
     assert_equal '&lt;input class=&quot;hidden&quot; id=&quot;person_name&quot; name=&quot;person[name]&quot; type=&quot;hidden&quot; /&gt;', hidden_field(:person, :name)
   end
   
-  def test_file_field
+  def test_should_style_file_field
     assert_equal '&lt;input class=&quot;file&quot; id=&quot;person_picture&quot; name=&quot;person[picture]&quot; size=&quot;30&quot; type=&quot;file&quot; /&gt;', file_field(:person, :picture)
   end
   
-  def test_check_box
+  def test_should_style_check_box
     expected =
       '&lt;input class=&quot;checkbox&quot; id=&quot;person_agree&quot; name=&quot;person[agree]&quot; type=&quot;checkbox&quot; value=&quot;1&quot; /&gt;' +
       '&lt;input class=&quot;hidden&quot; name=&quot;person[agree]&quot; type=&quot;hidden&quot; value=&quot;0&quot; /&gt;'
     assert_equal expected, check_box(:person, :agree)
   end
   
-  def test_radio_button
+  def test_should_style_radio_button
     assert_equal '&lt;input class=&quot;radio&quot; id=&quot;person_agree_1&quot; name=&quot;person[agree]&quot; type=&quot;radio&quot; value=&quot;1&quot; /&gt;', radio_button(:person, :agree, 1)
   end
   
   # FormTagHelper tests
   
-  def test_text_field_tag
+  def test_should_style_text_field_tag
     assert_equal '&lt;input class=&quot;text&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;text&quot; /&gt;', text_field_tag('name')
   end
   
-  def test_hidden_field_tag
+  def test_should_style_hidden_field_tag
     assert_equal '&lt;input class=&quot;hidden&quot; id=&quot;name&quot; name=&quot;name&quot; type=&quot;hidden&quot; /&gt;', hidden_field_tag('name')
   end
   
-  def test_file_field_tag
+  def test_should_style_file_field_tag
     assert_equal '&lt;input class=&quot;file&quot; id=&quot;picture&quot; name=&quot;picture&quot; type=&quot;file&quot; /&gt;', file_field_tag('picture')
   end
   
-  def test_password_field_tag
+  def test_should_style_password_field_tag
     assert_equal '&lt;input class=&quot;password&quot; id=&quot;secret&quot; name=&quot;secret&quot; type=&quot;password&quot; /&gt;', password_field_tag('secret')
   end
   
-  def test_check_box_tag
+  def test_should_style_check_box_tag
     assert_equal '&lt;input class=&quot;checkbox&quot; id=&quot;agree&quot; name=&quot;agree&quot; type=&quot;checkbox&quot; value=&quot;1&quot; /&gt;', check_box_tag('agree')
   end
   
-  def test_radio_button_tag
+  def test_should_style_radio_button_tag
     assert_equal '&lt;input class=&quot;radio&quot; id=&quot;agree_1&quot; name=&quot;agree&quot; type=&quot;radio&quot; value=&quot;1&quot; /&gt;', radio_button_tag('agree', 1)
   end
   
-  def test_submit_tag
+  def test_should_style_submit_tag
     assert_equal '&lt;input class=&quot;submit&quot; name=&quot;commit&quot; type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;', submit_tag('Submit')
   end
   
-  def test_image_submit_tag
+  def test_should_style_image_submit_tag
     assert_equal '&lt;input class=&quot;image&quot; src=&quot;button.png&quot; type=&quot;image&quot; /&gt;', image_submit_tag('button.png')
   end
   </diff>
      <filename>test/styled_inputs_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,9 @@
+$:.unshift(&quot;#{File.dirname(__FILE__)}/../../../ruby/hash/set_or_append/lib&quot;)
+
 require 'test/unit'
 require 'rubygems'
 require 'action_controller'
 require 'action_view'
 
 $:.unshift(File.dirname(__FILE__) + '/../lib')
-require File.dirname(__FILE__) + '/../init'
\ No newline at end of file
+require File.dirname(__FILE__) + '/../init'</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8bc9fd8959f936c0ba24ec9e3950a47c9525c9f7</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Pfeifer</name>
    <email>aaron.pfeifer@gmail.com</email>
  </author>
  <url>http://github.com/pluginaweek/styled_inputs/commit/63f63e17c8af75aaee6145684310c2f05750e6b7</url>
  <id>63f63e17c8af75aaee6145684310c2f05750e6b7</id>
  <committed-date>2007-08-16T22:49:29-07:00</committed-date>
  <authored-date>2007-08-16T22:49:29-07:00</authored-date>
  <message>Add documentation
Prepare for 0.0.1 release</message>
  <tree>0b159fcd35ea074b6d09f5f7a9d4f7e150763e69</tree>
  <committer>
    <name>Aaron Pfeifer</name>
    <email>aaron.pfeifer@gmail.com</email>
  </committer>
</commit>
