formtastic 2.3.0.rc → 2.3.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,6 +1,17 @@
1
- HEAD
1
+ 2.3.0.rc2
2
2
 
3
- * Allow to use a custom ActionView::Base.field_error_proc
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 2.1.x is Rails 3.x compatible
20
- * Formtastic 2.0.x is Rails 3.0.x and 3.1.x compatible only
21
- * Formtastic 1.x is compatible with both Rails 2 and 3, and is being maintained for bug fixes in the the "1.2-stable branch":https://github.com/justinfrench/formtastic/tree/1.2-stable. View the README in that branch for installation instructions, etc.
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
@@ -24,6 +24,10 @@ module Formtastic
24
24
  def rails3?
25
25
  ::Rails::VERSION::MAJOR == 3
26
26
  end
27
+
28
+ def deprecated_version_of_rails?
29
+ const_defined?(:Rails) && ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR < 2
30
+ end
27
31
 
28
32
  end
29
33
  end
@@ -1,3 +1,3 @@
1
1
  module Formtastic
2
- VERSION = "2.3.0.rc"
2
+ VERSION = "2.3.0.rc2"
3
3
  end
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.rc
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-09 00:00:00.000000000 Z
12
+ date: 2013-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack