Permalink
Commits on Nov 29, 2016
  1. Fix some issues in the README (Fixes #18)

    The transformers now take tag and input, not just tag.  Fix the
    example code and add a more complete description of how things
    work.
    
    Also, fix example code in the forme_set section.
    committed Nov 29, 2016
Commits on Nov 18, 2016
  1. Add some more bs3 specs

    committed Nov 18, 2016
  2. Remove unneeded branch

    If a is a one element array, then a = [a.first], and a[1..-1] is
    [], which is treated the same as nil by Forme.
    committed Nov 18, 2016
  3. Remove Input#merge_opts

    This was only used internally, and should have been marked as
    private.
    committed Nov 18, 2016
Commits on Nov 16, 2016
  1. Make spec_w task use warning gem

    This task is now only usable on ruby 2.4.
    committed Nov 16, 2016
  2. Remove unused variable

    committed Nov 16, 2016
  3. Remove Forme::Form#namespaces accessor

    The getter was set overridden later in the form to use @opts,
    and the setter therefore had no effect.
    committed Nov 16, 2016
Commits on Nov 15, 2016
  1. Fix spec_cov task name

    committed Nov 15, 2016
Commits on Oct 28, 2016
Commits on Sep 20, 2016
  1. Remove deprecation warnings on Rails 5 when running specs

    Use a long enough secret token.
    
    Manually specify all actions for the controller in the routes.
    
    Use module instead of string when removing middleware.
    committed Sep 20, 2016
Commits on Aug 30, 2016
  1. Restrict Gemfile.lock ignores to the repository root

    For consistency with the existing entries.
    committed Aug 30, 2016
  2. Test using sinatra 2.0 beta on ruby 2.2+

    This is necessary as Sinatra >1.0,<2.0 requries rack <2, and
    Rails 5.0 requires rack >=2, so Travis installs Sinatra 1.0, which
    doesn't work.
    
    So rather than not testing Sinatra at all on ruby 2.2+, start
    testing Sinatra 2.0 beta, since we want Forme to work there too.
    committed Aug 30, 2016
  3. Always define forme_namespace in the Sequel::Model, instead of using …

    …respond_to?
    
    Also, cleanup create constants in the tests, and don't depend
    on String#underscore being defined (it isn't if you skip the
    rails tests).
    committed Aug 30, 2016
Commits on Aug 25, 2016
  1. Allow :label_attr for checkboxset and radioset to set attributes for …

    …individual labels in the set
    committed Aug 25, 2016
Commits on Aug 9, 2016
  1. Bump version to 1.5.0

    committed Aug 9, 2016
Commits on Aug 5, 2016
  1. Handle nil current many association pks values

    This can happen with PostgreSQL array associations.
    committed Aug 5, 2016
Commits on Aug 4, 2016
  1. Revert previous commit

    The setting of :required was in a different branch, so :required
    needs to be set here.  This didn't break the specs as we didn't
    test specifically for this, so add a spec for it.
    committed Aug 4, 2016
  2. Remove unnecessary code

    required is set in #input using the same criteria, so it doesn't
    need to be set here as well.
    committed Aug 4, 2016
  3. Use :required instead of :add_blank for many_to_one forme_set validat…

    …ions
    
    add_blank isn't set automatically when using radio buttons, but
    required is.  In cases where required and add_blank are both used
    and differ, I'm not sure what the correct behavior should be, but
    I expect such cases are unlikely.
    committed Aug 4, 2016
Commits on Jul 15, 2016
Commits on Jul 14, 2016
  1. Remove Heroku-specific files

    The demo site is no longer run directly from the repository, so
    these files are no longer needed.
    committed Jul 14, 2016
Commits on Jun 29, 2016
Commits on Jun 13, 2016
  1. Use a symbol instead of true/false flag for forme_validations

    This makes it easier to extend the API later.
    committed Jun 13, 2016