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
Commits on Jun 10, 2016
  1. Handle input names ending in []

    Rack turns these into an array and strips off the [].
    committed Jun 10, 2016
  2. Make forme_validations use boolean flag instead of association reflec…

    …tion
    
    One issue with using the association reflection is it contains
    procs and isn't marshallable.
    committed Jun 10, 2016
  3. Split off forme_parse method from forme_set

    This splits the modification of the object from the parsing of the
    parameters, making it possible to modify the parsed data before
    updating the object.
    
    This also adds a custom validate method instead of relying on
    instance_hooks.
    
    Additionally, this adds more documentation to the forme_set plugin.
    committed Jun 10, 2016
  4. Don't handle Sequel::Model values in :options in forme_set

    The formatter and Sequel plugin don't handle these values, so
    forme_set should not either.
    committed Jun 10, 2016
Commits on Jun 9, 2016
  1. Add forme_set Sequel plugin, for handling the intake of submitted par…

    …ams based on form fields
    
    This plugin tracks which inputs have been added for an object, and
    adds a forme_set model instance method that will take a parameter
    hash and only set the values that match one of the inputs added via
    the form.  Additionally, when filtering associated objects when
    displaying the form (or when using filters on associations), adds
    validations that the value submitted by the form matches one of the
    options in the form.
    
    This doesn't handle all possible cases.  For example, it's possible
    to use non-model backed fields on a model form via :obj=>nil.
    forme_set will just ignore those inputs, but you'll still be
    able to set them manually.
    committed Jun 9, 2016
Commits on Jun 8, 2016
  1. Only add csrf tag in forme/erb support if there is a current session …

    …in the environment
    
    If Rack::Csrf is defined but is not being used by the application,
    ::Rack::Csrf.token(env) would raise an exception.  If sessions
    aren't being used, then there is no way to use a CSRF tag, so just
    skip adding the tag in that case.
    committed Jun 8, 2016
Commits on Jun 7, 2016
Commits on May 31, 2016
  1. Add spec/all.rb for running specs

    This allows the specs to work with a non-sh compatible shell,
    such as Windows cmd.exe.
    committed May 31, 2016
Commits on May 19, 2016
Commits on Feb 22, 2016
  1. Minor changes to previous commit

    Remove unnecessary model.include(self), and use .send(:include)
    instead of .include.
    
    Simplify the module structure in the forme_i18n plugin.
    
    Require i18n >=0.7.0 to run the specs, as the code does not
    appear to work in 0.6.0.
    
    Skip the i18n related specs if the library is not installed,
    and just print a warning, similar to the other integrations.
    committed Feb 22, 2016
  2. @badosu

    Add forme_i18n plugin

    This plugin loads the forme plugin and prepends methods that extract
    translation keys and passes them as options to the original ones
    
    Input Labels: 'models.<table_name>.<input>'
    Association Labels: 'models.<table_name>.<association>'
    badosu committed Feb 20, 2016
Commits on Feb 5, 2016
Commits on Feb 2, 2016
  1. Fix CHANGELOG entry

    committed Feb 1, 2016
  2. Update Gemfile.lock

    committed Feb 1, 2016
Commits on Jan 29, 2016
Commits on Jan 28, 2016
  1. Bump copyright year

    committed Jan 28, 2016
  2. Add frozen_string_literal: true to files

    Though I don't like doing it, this makes it so Forme users running
    on ruby 2.3 can still get the benefit of frozen string literals in
    Forme code, without having to make sure all of the other dependencies
    in their apps support frozen string literals.
    committed Jan 28, 2016
  3. Add support for running with --enable-frozen-string-literal on ruby 2.3

    Note that because some of the optional dependencies don't support
    running with --enable-frozen-string-literal yet, if you have them
    installed some of the specs will fail.  Patches have been sent
    upstream to fix these issues, with the exception of Rails.
    committed Jan 28, 2016