formtastic 4.0.0.rc1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +61 -0
- data/CHANGELOG.md +6 -3
- data/Gemfile.lock +31 -30
- data/MIT-LICENSE +1 -1
- data/README.md +9 -10
- data/RELEASE_PROCESS +3 -1
- data/formtastic.gemspec +1 -1
- data/gemfiles/rails_6.1/Gemfile +5 -0
- data/lib/formtastic/helpers/inputs_helper.rb +1 -1
- data/lib/formtastic/version.rb +1 -1
- data/lib/generators/templates/formtastic.rb +2 -2
- data/sample/basic_inputs.html +1 -1
- data/script/integration-template.rb +7 -4
- data/spec/builder/custom_builder_spec.rb +1 -1
- metadata +5 -5
- data/.travis.yml +0 -34
- data/DEPRECATIONS +0 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb44ea01df970135604cdddd0ac7b762ea56077f915810c4c8fe6be3487cafa3
|
4
|
+
data.tar.gz: 18630a8282b76e40d0c6e9faad19f99112dfd9e22ba22e7b025d8730ebf26ace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73a3ad17e91765150e4e15e03d3031f5b9efd975a09bbb21c7f404709b7d2462e9cf16c708beaf2745b783def3a631ca1b3bd47278d79c16012d79ba1f549fc0
|
7
|
+
data.tar.gz: d418a7e65f928dedfd36627c3ece7c4fe7e371984500ddc4bcb6c5929087264541476c469be6520270000a0e8348bc2cd41415e94d46c86da2e48021bf54d4be
|
@@ -0,0 +1,61 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
pull_request:
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
test:
|
9
|
+
runs-on: ubuntu-20.04
|
10
|
+
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
|
14
|
+
matrix:
|
15
|
+
gemfile:
|
16
|
+
- gemfiles/rails_5.2/Gemfile
|
17
|
+
- gemfiles/rails_6.0/Gemfile
|
18
|
+
- gemfiles/rails_6.1/Gemfile
|
19
|
+
- gemfiles/rails_edge/Gemfile
|
20
|
+
|
21
|
+
ruby:
|
22
|
+
- 2.4.10
|
23
|
+
- 2.5.8
|
24
|
+
- 2.6.6
|
25
|
+
- 2.7.2
|
26
|
+
- 3.0.0
|
27
|
+
|
28
|
+
exclude:
|
29
|
+
- ruby: 2.4.10
|
30
|
+
gemfile: gemfiles/rails_6.0/Gemfile
|
31
|
+
|
32
|
+
- ruby: 2.4.10
|
33
|
+
gemfile: gemfiles/rails_6.1/Gemfile
|
34
|
+
|
35
|
+
- ruby: 2.4.10
|
36
|
+
gemfile: gemfiles/rails_edge/Gemfile
|
37
|
+
|
38
|
+
- ruby: 3.0.0
|
39
|
+
gemfile: gemfiles/rails_5.2/Gemfile
|
40
|
+
|
41
|
+
env:
|
42
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
43
|
+
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v2
|
46
|
+
|
47
|
+
- uses: actions/setup-node@v2
|
48
|
+
with:
|
49
|
+
node-version: 11
|
50
|
+
|
51
|
+
- name: Set up Ruby
|
52
|
+
uses: ruby/setup-ruby@v1
|
53
|
+
with:
|
54
|
+
ruby-version: ${{ matrix.ruby }}
|
55
|
+
bundler-cache: true
|
56
|
+
|
57
|
+
- name: Run tests
|
58
|
+
run: |
|
59
|
+
bundle exec rake spec
|
60
|
+
script/integration.sh
|
61
|
+
continue-on-error: ${{ matrix.gemfile == 'gemfiles/rails_edge/Gemfile' }}
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## master
|
1
|
+
## master / 4.0.0
|
2
2
|
* Fixed default_columns_for_object when object has non-standard foreign keys (#1241)
|
3
3
|
* Fixed missing constants in production (#911)
|
4
4
|
* Removed support for Rails 3 and 4.0 (#1108)
|
@@ -11,6 +11,9 @@
|
|
11
11
|
* Allow symbols for numericality options (#1258)
|
12
12
|
* Support for rubies under 2.4.0 has been dropped (#1292)
|
13
13
|
* Support for Rails under 5.2.0 has been dropped (#1293)
|
14
|
+
* Support for Rails 6.0 has been added (#1300)
|
15
|
+
* Support for Rails 6.1 has been added (#1324)
|
16
|
+
* Support for Ruby 3 has been added (#1323)
|
14
17
|
|
15
18
|
## 3.1.2
|
16
19
|
|
@@ -43,7 +46,7 @@
|
|
43
46
|
---
|
44
47
|
|
45
48
|
See 3.0-stable branch for 3.0.x changes
|
46
|
-
https://github.com/
|
49
|
+
https://github.com/formtastic/formtastic/blob/3.0-stable/CHANGELOG
|
47
50
|
|
48
51
|
See 2.3-stable branch for 2.3.x and earlier releases
|
49
|
-
https://github.com/
|
52
|
+
https://github.com/formtastic/formtastic/blob/2.3-stable/CHANGELOG
|
data/Gemfile.lock
CHANGED
@@ -1,50 +1,52 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
formtastic (
|
4
|
+
formtastic (4.0.0.rc1)
|
5
5
|
actionpack (>= 5.2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (6.
|
11
|
-
actionview (= 6.
|
12
|
-
activesupport (= 6.
|
13
|
-
rack (~> 2.0, >= 2.0.
|
10
|
+
actionpack (6.1.1)
|
11
|
+
actionview (= 6.1.1)
|
12
|
+
activesupport (= 6.1.1)
|
13
|
+
rack (~> 2.0, >= 2.0.9)
|
14
14
|
rack-test (>= 0.6.3)
|
15
15
|
rails-dom-testing (~> 2.0)
|
16
16
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
17
|
-
actionview (6.
|
18
|
-
activesupport (= 6.
|
17
|
+
actionview (6.1.1)
|
18
|
+
activesupport (= 6.1.1)
|
19
19
|
builder (~> 3.1)
|
20
20
|
erubi (~> 1.4)
|
21
21
|
rails-dom-testing (~> 2.0)
|
22
22
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
23
|
-
activesupport (6.
|
23
|
+
activesupport (6.1.1)
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
|
-
i18n (>=
|
26
|
-
minitest (
|
27
|
-
tzinfo (~>
|
28
|
-
zeitwerk (~> 2.
|
25
|
+
i18n (>= 1.6, < 2)
|
26
|
+
minitest (>= 5.1)
|
27
|
+
tzinfo (~> 2.0)
|
28
|
+
zeitwerk (~> 2.3)
|
29
29
|
ammeter (1.1.4)
|
30
30
|
activesupport (>= 3.0)
|
31
31
|
railties (>= 3.0)
|
32
32
|
rspec-rails (>= 2.2)
|
33
33
|
builder (3.2.4)
|
34
|
-
concurrent-ruby (1.1.
|
34
|
+
concurrent-ruby (1.1.8)
|
35
35
|
crass (1.0.6)
|
36
36
|
diff-lcs (1.3)
|
37
|
-
erubi (1.
|
38
|
-
i18n (1.8.
|
37
|
+
erubi (1.10.0)
|
38
|
+
i18n (1.8.7)
|
39
39
|
concurrent-ruby (~> 1.0)
|
40
|
-
loofah (2.
|
40
|
+
loofah (2.9.0)
|
41
41
|
crass (~> 1.0.2)
|
42
42
|
nokogiri (>= 1.5.9)
|
43
43
|
method_source (1.0.0)
|
44
|
-
mini_portile2 (2.
|
45
|
-
minitest (5.14.
|
46
|
-
nokogiri (1.
|
47
|
-
mini_portile2 (~> 2.
|
44
|
+
mini_portile2 (2.5.0)
|
45
|
+
minitest (5.14.3)
|
46
|
+
nokogiri (1.11.1)
|
47
|
+
mini_portile2 (~> 2.5.0)
|
48
|
+
racc (~> 1.4)
|
49
|
+
racc (1.5.2)
|
48
50
|
rack (2.2.3)
|
49
51
|
rack-test (1.1.0)
|
50
52
|
rack (>= 1.0, < 3)
|
@@ -53,13 +55,13 @@ GEM
|
|
53
55
|
nokogiri (>= 1.6)
|
54
56
|
rails-html-sanitizer (1.3.0)
|
55
57
|
loofah (~> 2.3)
|
56
|
-
railties (6.
|
57
|
-
actionpack (= 6.
|
58
|
-
activesupport (= 6.
|
58
|
+
railties (6.1.1)
|
59
|
+
actionpack (= 6.1.1)
|
60
|
+
activesupport (= 6.1.1)
|
59
61
|
method_source
|
60
62
|
rake (>= 0.8.7)
|
61
|
-
thor (
|
62
|
-
rake (13.0.
|
63
|
+
thor (~> 1.0)
|
64
|
+
rake (13.0.3)
|
63
65
|
rspec-core (3.9.2)
|
64
66
|
rspec-support (~> 3.9.3)
|
65
67
|
rspec-dom-testing (0.1.0)
|
@@ -81,12 +83,11 @@ GEM
|
|
81
83
|
rspec-support (~> 3.9.0)
|
82
84
|
rspec-support (3.9.3)
|
83
85
|
sqlite3 (1.4.2)
|
84
|
-
thor (1.0
|
85
|
-
|
86
|
-
|
87
|
-
thread_safe (~> 0.1)
|
86
|
+
thor (1.1.0)
|
87
|
+
tzinfo (2.0.4)
|
88
|
+
concurrent-ruby (~> 1.0)
|
88
89
|
yard (0.9.25)
|
89
|
-
zeitwerk (2.
|
90
|
+
zeitwerk (2.4.2)
|
90
91
|
|
91
92
|
PLATFORMS
|
92
93
|
ruby
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,23 +1,22 @@
|
|
1
1
|
# Formtastic
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/formtastic/formtastic/workflows/test/badge.svg)](https://github.com/formtastic/formtastic/actions)
|
4
4
|
[![Inline docs](https://inch-ci.org/github/justinfrench/formtastic.svg?branch=master)](https://inch-ci.org/github/justinfrench/formtastic)
|
5
|
-
[![Code Climate](https://codeclimate.com/github/
|
5
|
+
[![Code Climate](https://codeclimate.com/github/formtastic/formtastic/badges/gpa.svg)](https://codeclimate.com/github/formtastic/formtastic)
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/formtastic.svg)](https://badge.fury.io/rb/formtastic)
|
7
7
|
|
8
8
|
Formtastic is a Rails FormBuilder DSL (with some other goodies) to make it far easier to create beautiful, semantically rich, syntactically awesome, readily stylable and wonderfully accessible HTML forms in your Rails applications.
|
9
9
|
|
10
10
|
## Documentation & Support
|
11
11
|
|
12
|
-
* [Documentation is available on rdoc.info](https://rdoc.info/projects/
|
13
|
-
* [We track issues & bugs on GitHub](https://github.com/
|
14
|
-
* [We have a wiki on GitHub](https://github.com/
|
12
|
+
* [Documentation is available on rdoc.info](https://rdoc.info/projects/formtastic/formtastic)
|
13
|
+
* [We track issues & bugs on GitHub](https://github.com/formtastic/formtastic/issues)
|
14
|
+
* [We have a wiki on GitHub](https://github.com/formtastic/formtastic/wiki)
|
15
15
|
* [StackOverflow can help](https://stackoverflow.com/questions/tagged/formtastic)
|
16
|
-
* [Follow @formtastic on Twitter for news & updates](https://twitter.com/formtastic)
|
17
16
|
|
18
17
|
## Compatibility
|
19
18
|
|
20
|
-
* Formtastic 4
|
19
|
+
* Formtastic 4 requires Rails 5.2 and Ruby 2.5 minimum
|
21
20
|
* Formtastic 3 requires Rails 3.2.13 minimum
|
22
21
|
* Formtastic 2 requires Rails 3
|
23
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!
|
@@ -89,7 +88,7 @@ I also wrote the accompanying HTML output I expected, favoring something very si
|
|
89
88
|
Simply add Formtastic to your Gemfile and bundle it up:
|
90
89
|
|
91
90
|
```ruby
|
92
|
-
gem 'formtastic', '~>
|
91
|
+
gem 'formtastic', '~> 4.0'
|
93
92
|
```
|
94
93
|
|
95
94
|
Run the installation generator:
|
@@ -622,7 +621,7 @@ There are none other than Rails itself, but...
|
|
622
621
|
|
623
622
|
Formtastic was created by [Justin French](https://www.justinfrench.com) with contributions from around 180 awesome developers. Run `git shortlog -n -s` to see the awesome.
|
624
623
|
|
625
|
-
The project is hosted on Github: [https://github.com/
|
624
|
+
The project is hosted on Github: [https://github.com/formtastic/formtastic](https://github.com/formtastic/formtastic), where your contributions, forkings, comments, issues and feedback are greatly welcomed.
|
626
625
|
|
627
|
-
Copyright (c) 2007-
|
626
|
+
Copyright (c) 2007-2021, released under the MIT license.
|
628
627
|
|
data/RELEASE_PROCESS
CHANGED
data/formtastic.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = [%q{Justin French}]
|
10
10
|
s.email = [%q{justin@indent.com.au}]
|
11
|
-
s.homepage = %q{http://github.com/
|
11
|
+
s.homepage = %q{http://github.com/formtastic/formtastic}
|
12
12
|
s.summary = %q{A Rails form builder plugin/gem with semantically rich and accessible markup}
|
13
13
|
s.description = %q{A Rails form builder plugin/gem with semantically rich and accessible markup}
|
14
14
|
s.license = 'MIT'
|
@@ -353,7 +353,7 @@ module Formtastic
|
|
353
353
|
# Collects all foreign key columns
|
354
354
|
def foreign_key_columns # @private
|
355
355
|
if @object.present? && @object.class.respond_to?(:reflect_on_all_associations)
|
356
|
-
@object.class.reflect_on_all_associations(:belongs_to).map
|
356
|
+
@object.class.reflect_on_all_associations(:belongs_to).map{ |reflection| reflection.foreign_key.to_sym }
|
357
357
|
else
|
358
358
|
[]
|
359
359
|
end
|
data/lib/formtastic/version.rb
CHANGED
@@ -91,7 +91,7 @@
|
|
91
91
|
|
92
92
|
# By creating custom input class finder, you can change how input classes are looked up.
|
93
93
|
# For example you can make it to search for TextInputFilter instead of TextInput.
|
94
|
-
# See https://github.com/
|
94
|
+
# See https://github.com/formtastic/formtastic/wiki/Custom-Class-Finders
|
95
95
|
# Formtastic::FormBuilder.input_class_finder = Formtastic::InputClassFinder
|
96
96
|
|
97
97
|
# Define custom namespaces in which to look up your Input classes. Default is
|
@@ -100,7 +100,7 @@
|
|
100
100
|
|
101
101
|
# By creating custom action class finder, you can change how action classes are looked up.
|
102
102
|
# For example you can make it to search for MyButtonAction instead of ButtonAction.
|
103
|
-
# See https://github.com/
|
103
|
+
# See https://github.com/formtastic/formtastic/wiki/Custom-Class-Finders
|
104
104
|
# Formtastic::FormBuilder.action_class_finder = Formtastic::ActionClassFinder
|
105
105
|
|
106
106
|
# Define custom namespaces in which to look up your Action classes. Default is
|
data/sample/basic_inputs.html
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
<li class="input url stringish optional" id="gem_url_input">
|
37
37
|
<label class="label" for="gem_url">URL</label>
|
38
38
|
<input id="gem_url" name="gem[url]" type="url">
|
39
|
-
<p class="inline-hints">Example: https://github.com/
|
39
|
+
<p class="inline-hints">Example: https://github.com/formtastic/formtastic</p>
|
40
40
|
</li>
|
41
41
|
|
42
42
|
<li class="input password stringish required" id="gem_password_input">
|
@@ -1,14 +1,17 @@
|
|
1
1
|
gem 'formtastic', path: '..'
|
2
2
|
gem 'bcrypt', '~> 3.1.7'
|
3
3
|
gem 'rails-dom-testing', group: :test
|
4
|
+
gem 'rexml', '~> 3.2' # to compensate for missing dependency in selenium-webdriver
|
4
5
|
|
5
|
-
# to speed up
|
6
|
+
# to speed up bundle install, reuse the bundle path
|
6
7
|
def bundle_path
|
7
|
-
File.expand_path ENV.fetch('BUNDLE_PATH', 'vendor/bundle')
|
8
|
+
File.expand_path ENV.fetch('BUNDLE_PATH', 'vendor/bundle')
|
8
9
|
end
|
9
10
|
|
10
|
-
if Rails.version >= '6.
|
11
|
+
if Rails.version >= '6.2'
|
11
12
|
gsub_file 'Gemfile', /gem 'rails'.*/, "gem 'rails', '~> #{Rails.version}', github: 'rails/rails'"
|
13
|
+
elsif Rails.version >= '6.1'
|
14
|
+
gsub_file 'Gemfile', /gem 'rails'.*/, "gem 'rails', '~> #{Rails.version}', github: 'rails/rails', branch: '6-1-stable'"
|
12
15
|
elsif Rails.version >= '6.0'
|
13
16
|
gsub_file 'Gemfile', /gem 'rails'.*/, "gem 'rails', '~> #{Rails.version}', github: 'rails/rails', branch: '6-0-stable'"
|
14
17
|
elsif Rails.version >= '5.2'
|
@@ -19,7 +22,7 @@ end
|
|
19
22
|
ruby_version = "ruby '#{RUBY_VERSION}'"
|
20
23
|
gsub_file 'Gemfile', /ruby '\d+.\d+.\d+'/, ruby_version
|
21
24
|
|
22
|
-
if
|
25
|
+
if bundle_install?
|
23
26
|
def run_bundle
|
24
27
|
previous_bundle_path = bundle_path
|
25
28
|
|
@@ -70,7 +70,7 @@ RSpec.describe 'Formtastic::Helpers::FormHelper.builder' do
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
# See: https://github.com/
|
73
|
+
# See: https://github.com/formtastic/formtastic/issues/657
|
74
74
|
it "should not conflict with navigasmic" do
|
75
75
|
allow_any_instance_of(self.class).to receive(:builder).and_return('navigasmic')
|
76
76
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formtastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin French
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -118,12 +118,11 @@ extra_rdoc_files:
|
|
118
118
|
- README.md
|
119
119
|
files:
|
120
120
|
- ".gitattributes"
|
121
|
+
- ".github/workflows/test.yml"
|
121
122
|
- ".gitignore"
|
122
123
|
- ".rspec"
|
123
|
-
- ".travis.yml"
|
124
124
|
- ".yardopts"
|
125
125
|
- CHANGELOG.md
|
126
|
-
- DEPRECATIONS
|
127
126
|
- Gemfile
|
128
127
|
- Gemfile.lock
|
129
128
|
- MIT-LICENSE
|
@@ -137,6 +136,7 @@ files:
|
|
137
136
|
- formtastic.gemspec
|
138
137
|
- gemfiles/rails_5.2/Gemfile
|
139
138
|
- gemfiles/rails_6.0/Gemfile
|
139
|
+
- gemfiles/rails_6.1/Gemfile
|
140
140
|
- gemfiles/rails_edge/Gemfile
|
141
141
|
- lib/formtastic.rb
|
142
142
|
- lib/formtastic/action_class_finder.rb
|
@@ -290,7 +290,7 @@ files:
|
|
290
290
|
- spec/support/shared_examples.rb
|
291
291
|
- spec/support/specialized_class_finder_shared_example.rb
|
292
292
|
- spec/support/test_environment.rb
|
293
|
-
homepage: http://github.com/
|
293
|
+
homepage: http://github.com/formtastic/formtastic
|
294
294
|
licenses:
|
295
295
|
- MIT
|
296
296
|
metadata: {}
|
data/.travis.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
cache:
|
2
|
-
- bundler
|
3
|
-
- directories:
|
4
|
-
- gemfiles/rails_52/vendor/bundle
|
5
|
-
- gemfiles/rails_60/vendor/bundle
|
6
|
-
- gemfiles/rails_edge/vendor/bundle
|
7
|
-
dist: bionic
|
8
|
-
language: ruby
|
9
|
-
node_js: 11
|
10
|
-
rvm:
|
11
|
-
- 2.4.9
|
12
|
-
- 2.5.7
|
13
|
-
- 2.6.5
|
14
|
-
- 2.7.0
|
15
|
-
gemfile:
|
16
|
-
- gemfiles/rails_5.2/Gemfile
|
17
|
-
- gemfiles/rails_6.0/Gemfile
|
18
|
-
- gemfiles/rails_edge/Gemfile
|
19
|
-
before_install:
|
20
|
-
- gem install bundler
|
21
|
-
- export BUNDLE_PATH=$(dirname $(readlink -f $BUNDLE_GEMFILE))/vendor/bundle
|
22
|
-
before_cache:
|
23
|
-
- rm -f ${BUNDLE_PATH}/**/extensions/**/{gem_make.out,mkmf.log}
|
24
|
-
script:
|
25
|
-
- bundle exec rake spec
|
26
|
-
- script/integration.sh
|
27
|
-
matrix:
|
28
|
-
exclude:
|
29
|
-
- rvm: 2.4.9
|
30
|
-
gemfile: gemfiles/rails_6.0/Gemfile
|
31
|
-
- rvm: 2.4.9
|
32
|
-
gemfile: gemfiles/rails_edge/Gemfile
|
33
|
-
allow_failures:
|
34
|
-
- gemfile: gemfiles/rails_edge/Gemfile
|
data/DEPRECATIONS
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
This document is for tracking deprecations and removals of
|
2
|
-
Formtastic features and compatibilities.
|
3
|
-
|
4
|
-
v4.0 (planned)
|
5
|
-
|
6
|
-
* Remove support for Rails < 5.2
|
7
|
-
* Remove support for country_select 1.x syntax (they want to remove it in 3.0)
|
8
|
-
* Remove support for input_class, custom_input_class_name, standard_input_class_name, action_class, custom_action_class_name, standard_action_class_name
|
9
|
-
|
10
|
-
v3.1 (master)
|
11
|
-
|
12
|
-
* Deprecate support for Rails < 4.1
|
13
|
-
* Deprecate :member_value option
|
14
|
-
* Deprecate :member_label option
|
15
|
-
* Deprecate internal custom input class finder methods (input_class, custom_input_class_name, standard_input_class_name)
|
16
|
-
* Deprecate internal custom action class finder methods (action_class, custom_action_class_name, standard_action_class_name)
|
17
|
-
|
18
|
-
v3.0
|
19
|
-
|
20
|
-
* Remove support for Ruby version < 1.9.3
|
21
|
-
* Remove support for Rails version < 3.2.13
|
22
|
-
* Remove deprecated option :value (#1025)
|
23
|
-
* Remove deprecated option :hint_class (#1025)
|
24
|
-
* Remove deprecated option :error_class (#1025)
|
25
|
-
* Remove deprecated option :group_by (#1025)
|
26
|
-
* Remove deprecated option :group_label (#1025)
|
27
|
-
* Remove deprecated option :find_options (#1025)
|
28
|
-
* Deprecate support for Rails < 4.0.4
|
29
|
-
|
30
|
-
v2.3
|
31
|
-
|
32
|
-
* Remove deprecated date, time and datetime inputs
|
33
|
-
* Deprecate :error_class option
|
34
|
-
* Deprecate support for Rails < 3.2.13
|
35
|
-
|
36
|
-
v2.2
|
37
|
-
|
38
|
-
* Remove deprecated buttons DSL, ButtonHelper and commit_button helper
|
39
|
-
* Deprecate :value option
|
40
|
-
* Deprecate :hint_class option
|
41
|
-
* Deprecate :error_class option
|
42
|
-
* Deprecate :group_by and :group_label options
|
43
|
-
* Deprecate :find_options option
|
44
|
-
|
45
|
-
v2.1
|
46
|
-
|
47
|
-
* Remove the previously deprecated :label_method, :value_method & :group_label_method options
|
48
|
-
* Remove the previously deprecated :as => :numeric
|
49
|
-
* Remove the previously deprecated inline_errors_for and related methods
|
50
|
-
* Remove the previously deprecated SemanticFormHelper and SemanticFormBuilder
|
51
|
-
* Deprecate the Buttons DSL (f.buttons, f.commit_button) in favor of the new Actions DSL — see above
|
52
|
-
|