Commits on Jul 1, 2011
  1. Bump version to 0.5.0

    jeremyevans committed Jul 1, 2011
Commits on Jun 29, 2011
  1. Update README

    jeremyevans committed Jun 29, 2011
  2. Add framework for parsing validation reflections from the validation_…

    jeremyevans committed Jun 29, 2011
    …class_methods plugin
    Support the html5 pattern attribute for the format validation.
  3. Make the demo site read-only if DATABASE_URL is given

    jeremyevans committed Jun 29, 2011
    This way if the repository is cloned, the demo site can
    be run locally for testing of updates.  However, allowing
    updating on a public demo site is problematic because multiple
    users can be making changes as once.  As the purpose of the site
    is to show off Forme, allowing updating is not necessary.
  4. Add leading zeros for months, days, hours, minutes, and seconds for d…

    jeremyevans committed Jun 29, 2011
    …ate/datetime multiple select support
  5. DRY up some spec code

    jeremyevans committed Jun 29, 2011
  6. Use typical date separators (- and :) to make date/datetime multiple …

    jeremyevans committed Jun 29, 2011
    …select boxes more friendly
  7. Mark many_to_one fields as required instead of eliminating the blank …

    jeremyevans committed Jun 29, 2011
    Eliminating the blank option made it automatically select the
    first option by default, which is often not the desired behavior.
  8. Allow sinatra integration testing with Erubis using ENV['ERUBIS']

    jeremyevans committed Jun 29, 2011
    No change in results other than a minor whitespace issue.
  9. Support a :wrapper_attr input option used by the wrapper to add attri…

    jeremyevans committed Jun 29, 2011
    …butes to the wrapping tag
    In the Sequel plugin, use this to set default CSS classes for
    wrapped inputs.
Commits on Jun 17, 2011
  1. Create file, password, email, tel, and url inputs based on column nam…

    jeremyevans committed Jun 17, 2011
    …e and type in Sequel plugin
  2. Don't raise an error in explicit labeler if no id can be found

    jeremyevans committed Jun 17, 2011
    Also, rename the :label_id option to :label_for, as :label_id
    makes it sound like the label's id attribute.
  3. Don't copy all input options to tag attributes, use an :attr hash

    jeremyevans committed Jun 17, 2011
    This cleans up the code and makes it so that we don't need to
    do so much hash mangling.
    Still copy the common options such as name, id, placeholder, class,
    and value, to make the API nice.  Combine class entries instead of
    Support a :data option to create data-* attributes easily.
  4. Fix explicit labeler example page on demo site

    jeremyevans committed Jun 17, 2011
    Also use some plugins by default.
  5. Replace TagArray class with Serialized module

    jeremyevans committed Jun 17, 2011
    Instead of wrapping all arrays in TagArray instances, just
    extend the arrays with a module that overrides to_s to use
    the form's serializer.
    This is currently only needed if Form#input can return an array of
    inputs, which the Sequel plugin does for the associations as
    multiple radios/checkboxes option.
  6. Make error_handler, labeler, and wrapper take tag and input

    jeremyevans committed Jun 17, 2011
    This unifies handling of the error_handler, labeler, and wrapper
    transformers so they call take the same types of arguments. This
    removes the need to scan TagArrays looking for tags which was
    previously done by some of the transformers.  It will enable the
    ability for those transformers to modify the transformations
    based on the initial input, which previously was not possible.
    Remove TagArray#tag and add Input#tag, and have all of the
    transformers call #tag on the input argument instead of the
    tag argument.
    Add Input#merge_opts for merging new options into the input's
    opts without modifying the input's opts hash.  This is necessary
    for cases where the formatter needs to modify the Input's opts
    in order for correct behavior of another transformer, currently
    used by the date to multiple select options code.
    Only turn arrays of tags into TagArrays at the very end of the
    formatter, since the other transformers should no longer care.
    TagArray is still needed, but hopefully it can go away in the
Commits on Jun 16, 2011