diff --git a/.gitignore b/.gitignore index affdfb0c3..27b0fe945 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,14 @@ .DS_Store +.rvmrc coverage +coverage.data pkg *~ *watchr.rb +log/* +.rvmrc +.bundle +Gemfile.lock +.yardoc +doc/ +tmp \ No newline at end of file diff --git a/.rspec b/.rspec new file mode 100644 index 000000000..8f815c60d --- /dev/null +++ b/.rspec @@ -0,0 +1,2 @@ +--color +--format=progress diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..45d2e28bb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +rvm: + - 1.8.7 + - ree + - 1.9.2 + - 1.9.3 +env: + - DEFER_GC=false \ No newline at end of file diff --git a/.yardopts b/.yardopts new file mode 100644 index 000000000..3e6286549 --- /dev/null +++ b/.yardopts @@ -0,0 +1 @@ +--no-private --title "Formtastic Documentation" --markup markdown --quiet \ No newline at end of file diff --git a/CHANGELOG b/CHANGELOG index 631bb621e..7c722d0c4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,311 @@ +HEAD + +* Fixed that MongoMapper does not use `associations(method)`. `.associations` is an accessor. + +2.0.1 + +* fixed that `:multiple => true` wasn't working when no association present + +2.0.0 + +* Fixed that all check boxes were incorrectly checked if an Array was passed in to :collection +* Improved README +* Added form generator template for Slim template engine +* Added support for Proc conditions in collection_from_association +* Refactored commit button. Split it into a couple of different methods to make it easier to override. + +2.0.0.rc5 + +* Changed perform_browser_validations and use_required_attribute configuration defaults from true to false for a better out-of-the-box experience and upgrade path +* Fixed that the `novalidate` attribute was being applied to the `
` tag when it shouldn't have been (and vice-versa) +* Fixed `undefined method `last' for #` with a `:collection` containing an array of arrays + +2.0.0.rc4 + +* Fixed that TimeInput was not rendering hidden y/m/d inputs by default. +* Fixed test suite under Rails 3.1.0.rc5 +* Fixed false and blank fragment labels on date/time inputs producing unsafe HTML. +* Fixed that inputs were 'required' withput considering `:on => :create` validations +* Fixed that collections of strings in CheckBoxesInput were ot being correctly checked be checked if they match the model +* Fixed that the required attribute was added to the choices in a :radio or :check_boxes input, instead of just the parent input wrapper +* Fixed semantic_fields_for when used with a hash-like model +* Fixed that models without defined validations (even if validators_on exists) should not be considered required +* Fixed min/max attributes when the validation uses a Proc +* Fixed that inputs should not be considered required if :allow_blank => true is set on validates_inclusion_of +* Fixed that inputs should not be considered required if if either :allow_blank => true, :minimum is > 0, or :within's least value is > 0 is set on validates_length_of +* Fixed a typo in the config template +* Fixed semantic_fields_for to work with Rails 3 *and* 3.1's method sigs (I hope), many thanks to the simple_form guys for figuring this out +* Changed HTML5 `step` attribute to default to "any" instead of "1" +* Added CarrierWave support for to file input detection +* Added a configuration 'perform_browser_validations' to opt out of HTML5 browser validations. +* Added more support for mongo documents, including MongoMapper-specific reflection capability +* Added IE specific stylesheets & moved those styles out of main stylesheet, include them yourself if needed +* Added a new configuration to opt out of HTML5 required attribute + +2.0.0.rc3 + +* Fixed that .label class was incorrectly applied to