formtastic 2.3.0.rc → 2.3.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +13 -2
- data/README.textile +4 -4
- data/lib/formtastic.rb +7 -0
- data/lib/formtastic/util.rb +4 -0
- data/lib/formtastic/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,6 +1,17 @@
|
|
1
|
-
|
1
|
+
2.3.0.rc2
|
2
2
|
|
3
|
-
*
|
3
|
+
* deprecate support for Rails < 3.2
|
4
|
+
|
5
|
+
2.3.0.rc
|
6
|
+
|
7
|
+
* Updated to support Rails 4
|
8
|
+
* Added custom HTML for the options within a checkboxes input group
|
9
|
+
* Changed the format of the `value` attribute on `datetime_picker` input to be compliant with the HTML standards
|
10
|
+
* Added `Formtastic::Helpers::FormHelper.field_error_proc=` for setting a custom proc
|
11
|
+
* Fixed checked state of checkboxes when the values are integers
|
12
|
+
* Fixed CSS to prevent numeric inputs with a `max` from stretching to full width
|
13
|
+
* Added support for `:labels => false` on time selects
|
14
|
+
* Improved documentation
|
4
15
|
|
5
16
|
2.2.1
|
6
17
|
|
data/README.textile
CHANGED
@@ -16,9 +16,9 @@ h2. Documentation & Support
|
|
16
16
|
|
17
17
|
h2. Compatibility
|
18
18
|
|
19
|
-
* Formtastic
|
20
|
-
* Formtastic 2.
|
21
|
-
* Formtastic 1.
|
19
|
+
* Formtastic 4 (master on Github) will require Rails 3.2 minimum
|
20
|
+
* Formtastic 2.3 is Rails 3 and Rails 4 compatible (Rails < 3.2 is deprecated)
|
21
|
+
* Formtastic 2.1 & 2.2 is Rails 3 and Rails 4 compatible
|
22
22
|
* Formtastic, much like Rails, is very ActiveRecord-centric. Many are successfully using other ActiveModel-like ORMs and objects (DataMapper, MongoMapper, Mongoid, Authlogic, Devise...) but we're not guaranteeing full compatibility at this stage. Patches are welcome!
|
23
23
|
|
24
24
|
|
@@ -65,7 +65,7 @@ h2. It's awesome because...
|
|
65
65
|
|
66
66
|
* It can handle @belongs_to@ associations (like Post belongs_to :author), rendering a select or set of radio inputs with choices from the parent model.
|
67
67
|
* It can handle @has_many@ and @has_and_belongs_to_many@ associations (like: Post has_many :tags), rendering a multi-select with choices from the child models.
|
68
|
-
* It's Rails 3 compatible (including nested forms).
|
68
|
+
* It's Rails 3/4 compatible (including nested forms).
|
69
69
|
* It has internationalization (I18n)!
|
70
70
|
* It's _really_ quick to get started with a basic form in place (4 lines), then go back to add in more detail if you need it.
|
71
71
|
* There's heaps of elements, id and class attributes for you to hook in your CSS and JS.
|
data/lib/formtastic.rb
CHANGED
@@ -14,6 +14,13 @@ module Formtastic
|
|
14
14
|
autoload :Localizer
|
15
15
|
autoload :Util
|
16
16
|
|
17
|
+
# Deprecate support for Rails < 3.2
|
18
|
+
if Util.deprecated_version_of_rails?
|
19
|
+
::ActiveSupport::Deprecation.warn(
|
20
|
+
"Support for Rails 3.0 and 3.1 will be dropped from Formtastic 3.0",
|
21
|
+
caller)
|
22
|
+
end
|
23
|
+
|
17
24
|
# @private
|
18
25
|
class UnknownInputError < NameError
|
19
26
|
end
|
data/lib/formtastic/util.rb
CHANGED
data/lib/formtastic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formtastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.0.
|
4
|
+
version: 2.3.0.rc2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|