formtastic 1.2.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.travis.yml +46 -0
- data/.yardopts +1 -0
- data/Appraisals +43 -0
- data/CHANGELOG +54 -0
- data/DEPRECATIONS +52 -0
- data/Gemfile +3 -0
- data/README.md +629 -0
- data/RELEASE_PROCESS +6 -0
- data/Rakefile +35 -0
- data/app/assets/stylesheets/formtastic.css +289 -0
- data/app/assets/stylesheets/formtastic_ie6.css +33 -0
- data/app/assets/stylesheets/formtastic_ie7.css +23 -0
- data/formtastic.gemspec +42 -0
- data/gemfiles/rails_3.2.gemfile +9 -0
- data/gemfiles/rails_4.0.4.gemfile +8 -0
- data/gemfiles/rails_4.1.gemfile +8 -0
- data/gemfiles/rails_4.2.gemfile +8 -0
- data/gemfiles/rails_4.gemfile +8 -0
- data/gemfiles/rails_5.0.gemfile +8 -0
- data/gemfiles/rails_edge.gemfile +15 -0
- data/lib/formtastic.rb +40 -1945
- data/lib/formtastic/action_class_finder.rb +18 -0
- data/lib/formtastic/actions.rb +11 -0
- data/lib/formtastic/actions/base.rb +156 -0
- data/lib/formtastic/actions/button_action.rb +67 -0
- data/lib/formtastic/actions/buttonish.rb +17 -0
- data/lib/formtastic/actions/input_action.rb +70 -0
- data/lib/formtastic/actions/link_action.rb +88 -0
- data/lib/formtastic/deprecation.rb +42 -0
- data/lib/formtastic/engine.rb +11 -0
- data/lib/formtastic/form_builder.rb +124 -0
- data/lib/formtastic/helpers.rb +16 -0
- data/lib/formtastic/helpers/action_helper.rb +162 -0
- data/lib/formtastic/helpers/actions_helper.rb +168 -0
- data/lib/formtastic/helpers/enum.rb +13 -0
- data/lib/formtastic/helpers/errors_helper.rb +81 -0
- data/lib/formtastic/helpers/fieldset_wrapper.rb +80 -0
- data/lib/formtastic/helpers/file_column_detection.rb +16 -0
- data/lib/formtastic/helpers/form_helper.rb +203 -0
- data/lib/formtastic/helpers/input_helper.rb +407 -0
- data/lib/formtastic/helpers/inputs_helper.rb +411 -0
- data/lib/formtastic/helpers/reflection.rb +37 -0
- data/lib/formtastic/html_attributes.rb +32 -0
- data/lib/formtastic/i18n.rb +4 -2
- data/lib/formtastic/input_class_finder.rb +18 -0
- data/lib/formtastic/inputs.rb +39 -0
- data/lib/formtastic/inputs/base.rb +76 -0
- data/lib/formtastic/inputs/base/associations.rb +31 -0
- data/lib/formtastic/inputs/base/choices.rb +108 -0
- data/lib/formtastic/inputs/base/collections.rb +159 -0
- data/lib/formtastic/inputs/base/database.rb +22 -0
- data/lib/formtastic/inputs/base/datetime_pickerish.rb +85 -0
- data/lib/formtastic/inputs/base/errors.rb +58 -0
- data/lib/formtastic/inputs/base/fileish.rb +23 -0
- data/lib/formtastic/inputs/base/hints.rb +31 -0
- data/lib/formtastic/inputs/base/html.rb +53 -0
- data/lib/formtastic/inputs/base/labelling.rb +52 -0
- data/lib/formtastic/inputs/base/naming.rb +42 -0
- data/lib/formtastic/inputs/base/numeric.rb +50 -0
- data/lib/formtastic/inputs/base/options.rb +17 -0
- data/lib/formtastic/inputs/base/placeholder.rb +17 -0
- data/lib/formtastic/inputs/base/stringish.rb +38 -0
- data/lib/formtastic/inputs/base/timeish.rb +241 -0
- data/lib/formtastic/inputs/base/validations.rb +215 -0
- data/lib/formtastic/inputs/base/wrapping.rb +50 -0
- data/lib/formtastic/inputs/boolean_input.rb +118 -0
- data/lib/formtastic/inputs/check_boxes_input.rb +197 -0
- data/lib/formtastic/inputs/color_input.rb +42 -0
- data/lib/formtastic/inputs/country_input.rb +86 -0
- data/lib/formtastic/inputs/datalist_input.rb +41 -0
- data/lib/formtastic/inputs/date_picker_input.rb +93 -0
- data/lib/formtastic/inputs/date_select_input.rb +34 -0
- data/lib/formtastic/inputs/datetime_picker_input.rb +103 -0
- data/lib/formtastic/inputs/datetime_select_input.rb +12 -0
- data/lib/formtastic/inputs/email_input.rb +41 -0
- data/lib/formtastic/inputs/file_input.rb +42 -0
- data/lib/formtastic/inputs/hidden_input.rb +62 -0
- data/lib/formtastic/inputs/number_input.rb +88 -0
- data/lib/formtastic/inputs/password_input.rb +41 -0
- data/lib/formtastic/inputs/phone_input.rb +42 -0
- data/lib/formtastic/inputs/radio_input.rb +163 -0
- data/lib/formtastic/inputs/range_input.rb +95 -0
- data/lib/formtastic/inputs/search_input.rb +41 -0
- data/lib/formtastic/inputs/select_input.rb +235 -0
- data/lib/formtastic/inputs/string_input.rb +36 -0
- data/lib/formtastic/inputs/text_input.rb +48 -0
- data/lib/formtastic/inputs/time_picker_input.rb +99 -0
- data/lib/formtastic/inputs/time_select_input.rb +38 -0
- data/lib/formtastic/inputs/time_zone_input.rb +58 -0
- data/lib/formtastic/inputs/url_input.rb +41 -0
- data/lib/formtastic/localized_string.rb +17 -0
- data/lib/formtastic/localizer.rb +152 -0
- data/lib/formtastic/namespaced_class_finder.rb +99 -0
- data/lib/formtastic/util.rb +35 -16
- data/lib/formtastic/version.rb +3 -0
- data/lib/generators/formtastic/form/form_generator.rb +64 -37
- data/lib/generators/formtastic/input/input_generator.rb +46 -0
- data/lib/generators/formtastic/install/install_generator.rb +13 -5
- data/lib/generators/templates/_form.html.erb +10 -4
- data/lib/generators/templates/_form.html.haml +8 -4
- data/lib/generators/templates/_form.html.slim +8 -0
- data/lib/generators/templates/formtastic.rb +77 -44
- data/lib/generators/templates/input.rb +19 -0
- data/lib/locale/en.yml +3 -0
- data/sample/basic_inputs.html +224 -0
- data/sample/config.ru +69 -0
- data/sample/index.html +14 -0
- data/spec/action_class_finder_spec.rb +12 -0
- data/spec/actions/button_action_spec.rb +63 -0
- data/spec/actions/generic_action_spec.rb +521 -0
- data/spec/actions/input_action_spec.rb +59 -0
- data/spec/actions/link_action_spec.rb +92 -0
- data/spec/builder/custom_builder_spec.rb +116 -0
- data/spec/builder/error_proc_spec.rb +27 -0
- data/spec/builder/semantic_fields_for_spec.rb +142 -0
- data/spec/fast_spec_helper.rb +12 -0
- data/spec/generators/formtastic/form/form_generator_spec.rb +131 -0
- data/spec/generators/formtastic/input/input_generator_spec.rb +124 -0
- data/spec/generators/formtastic/install/install_generator_spec.rb +47 -0
- data/spec/helpers/action_helper_spec.rb +19 -0
- data/spec/helpers/actions_helper_spec.rb +143 -0
- data/spec/helpers/form_helper_spec.rb +218 -0
- data/spec/helpers/input_helper_spec.rb +6 -0
- data/spec/helpers/inputs_helper_spec.rb +655 -0
- data/spec/helpers/namespaced_action_helper_spec.rb +43 -0
- data/spec/helpers/namespaced_input_helper_spec.rb +36 -0
- data/spec/helpers/reflection_helper_spec.rb +32 -0
- data/spec/helpers/semantic_errors_helper_spec.rb +112 -0
- data/spec/i18n_spec.rb +210 -0
- data/spec/input_class_finder_spec.rb +10 -0
- data/spec/inputs/base/collections_spec.rb +76 -0
- data/spec/inputs/base/validations_spec.rb +342 -0
- data/spec/inputs/boolean_input_spec.rb +254 -0
- data/spec/inputs/check_boxes_input_spec.rb +546 -0
- data/spec/inputs/color_input_spec.rb +97 -0
- data/spec/inputs/country_input_spec.rb +133 -0
- data/spec/inputs/custom_input_spec.rb +55 -0
- data/spec/inputs/datalist_input_spec.rb +61 -0
- data/spec/inputs/date_picker_input_spec.rb +449 -0
- data/spec/inputs/date_select_input_spec.rb +235 -0
- data/spec/inputs/datetime_picker_input_spec.rb +490 -0
- data/spec/inputs/datetime_select_input_spec.rb +193 -0
- data/spec/inputs/email_input_spec.rb +85 -0
- data/spec/inputs/file_input_spec.rb +89 -0
- data/spec/inputs/hidden_input_spec.rb +135 -0
- data/spec/inputs/include_blank_spec.rb +78 -0
- data/spec/inputs/label_spec.rb +149 -0
- data/spec/inputs/number_input_spec.rb +815 -0
- data/spec/inputs/password_input_spec.rb +99 -0
- data/spec/inputs/phone_input_spec.rb +85 -0
- data/spec/inputs/placeholder_spec.rb +71 -0
- data/spec/inputs/radio_input_spec.rb +328 -0
- data/spec/inputs/range_input_spec.rb +505 -0
- data/spec/inputs/readonly_spec.rb +50 -0
- data/spec/inputs/search_input_spec.rb +84 -0
- data/spec/inputs/select_input_spec.rb +615 -0
- data/spec/inputs/string_input_spec.rb +260 -0
- data/spec/inputs/text_input_spec.rb +187 -0
- data/spec/inputs/time_picker_input_spec.rb +455 -0
- data/spec/inputs/time_select_input_spec.rb +248 -0
- data/spec/inputs/time_zone_input_spec.rb +143 -0
- data/spec/inputs/url_input_spec.rb +85 -0
- data/spec/inputs/with_options_spec.rb +43 -0
- data/spec/localizer_spec.rb +130 -0
- data/spec/namespaced_class_finder_spec.rb +79 -0
- data/spec/spec.opts +2 -0
- data/spec/spec_helper.rb +525 -0
- data/spec/support/custom_macros.rb +564 -0
- data/spec/support/deprecation.rb +6 -0
- data/spec/support/shared_examples.rb +1313 -0
- data/spec/support/specialized_class_finder_shared_example.rb +27 -0
- data/spec/support/test_environment.rb +31 -0
- data/spec/util_spec.rb +66 -0
- metadata +434 -161
- data/README.textile +0 -682
- data/generators/form/USAGE +0 -16
- data/generators/form/form_generator.rb +0 -111
- data/generators/formtastic/formtastic_generator.rb +0 -26
- data/init.rb +0 -5
- data/lib/formtastic/layout_helper.rb +0 -12
- data/lib/formtastic/railtie.rb +0 -14
- data/lib/generators/templates/formtastic.css +0 -145
- data/lib/generators/templates/formtastic_changes.css +0 -14
- data/lib/generators/templates/rails2/_form.html.erb +0 -5
- data/lib/generators/templates/rails2/_form.html.haml +0 -4
- data/rails/init.rb +0 -2
@@ -0,0 +1,27 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
RSpec.shared_examples 'Specialized Class Finder' do
|
4
|
+
let(:builder) { Formtastic::FormBuilder.allocate }
|
5
|
+
subject(:finder) { described_class.new(builder) }
|
6
|
+
|
7
|
+
context 'by default' do
|
8
|
+
it 'includes Object and the default namespaces' do
|
9
|
+
expect(finder.namespaces).to eq([Object, default])
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
context 'with namespace configuration set to a custom list of modules' do
|
14
|
+
before do
|
15
|
+
stub_const('CustomModule', Module.new)
|
16
|
+
stub_const('AnotherModule', Module.new)
|
17
|
+
|
18
|
+
allow(Formtastic::FormBuilder).to receive(namespaces_setting)
|
19
|
+
.and_return([ CustomModule, AnotherModule ])
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'includes just the custom namespaces' do
|
23
|
+
expect(finder.namespaces).to eq([CustomModule, AnotherModule])
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'rspec/core'
|
3
|
+
require 'rspec_tag_matchers'
|
4
|
+
|
5
|
+
RSpec.configure do |config|
|
6
|
+
config.include RspecTagMatchers
|
7
|
+
config.include CustomMacros
|
8
|
+
config.mock_with :rspec
|
9
|
+
end
|
10
|
+
|
11
|
+
require "action_controller/railtie"
|
12
|
+
require 'active_model'
|
13
|
+
|
14
|
+
# Create a simple rails application for use in testing the viewhelper
|
15
|
+
module FormtasticTest
|
16
|
+
class Application < Rails::Application
|
17
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
18
|
+
config.encoding = "utf-8"
|
19
|
+
config.active_support.deprecation = :stderr
|
20
|
+
config.secret_key_base = "secret"
|
21
|
+
config.eager_load = false
|
22
|
+
end
|
23
|
+
end
|
24
|
+
FormtasticTest::Application.initialize!
|
25
|
+
|
26
|
+
require 'rspec/rails'
|
27
|
+
|
28
|
+
# Quick hack to avoid the 'Spec' deprecation warnings from rspec_tag_matchers
|
29
|
+
module Spec
|
30
|
+
include RSpec
|
31
|
+
end
|
data/spec/util_spec.rb
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe 'Formtastic::Util' do
|
5
|
+
|
6
|
+
describe '.deprecated_version_of_rails?' do
|
7
|
+
|
8
|
+
subject { Formtastic::Util.deprecated_version_of_rails? }
|
9
|
+
|
10
|
+
context '4.0.0' do
|
11
|
+
before { allow(Formtastic::Util).to receive(:rails_version) { "4.0.0" } }
|
12
|
+
it 'should be true' do
|
13
|
+
expect(subject).to be_truthy
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
context '4.0.3' do
|
18
|
+
before { allow(Formtastic::Util).to receive(:rails_version) { "4.0.3" } }
|
19
|
+
it 'should be true' do
|
20
|
+
expect(subject).to be_truthy
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
context '4.0.4' do
|
25
|
+
before { allow(Formtastic::Util).to receive(:rails_version) { "4.0.4" } }
|
26
|
+
it 'should be false' do
|
27
|
+
expect(subject).to be_truthy
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
context '4.0.5' do
|
32
|
+
before { allow(Formtastic::Util).to receive(:rails_version) { "4.0.5" } }
|
33
|
+
it 'should be false' do
|
34
|
+
expect(subject).to be_truthy
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
context '4.1.0' do
|
39
|
+
before { allow(Formtastic::Util).to receive(:rails_version) { "4.1.0" } }
|
40
|
+
it 'should be false' do
|
41
|
+
expect(subject).to be_falsey
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
context '4.1.1' do
|
46
|
+
before { allow(Formtastic::Util).to receive(:rails_version) { "4.1.1" } }
|
47
|
+
it 'should be false' do
|
48
|
+
expect(subject).to be_falsey
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
context '4.2.0' do
|
53
|
+
before { allow(Formtastic::Util).to receive(:rails_version) { "4.2.0" } }
|
54
|
+
it 'should be false' do
|
55
|
+
expect(subject).to be_falsey
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context '5.0.0' do
|
60
|
+
before { allow(Formtastic::Util).to receive(:rails_version) { "5.0.0" } }
|
61
|
+
it 'should be true' do
|
62
|
+
expect(subject).to be_falsey
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
metadata
CHANGED
@@ -1,198 +1,471 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: formtastic
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
- 4
|
10
|
-
version: 1.2.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.1.5
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Justin French
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
name: activesupport
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 13
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 3
|
33
|
-
- 7
|
34
|
-
version: 2.3.7
|
35
|
-
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2017-02-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
38
14
|
name: actionpack
|
39
|
-
|
40
|
-
|
41
|
-
none: false
|
42
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
43
17
|
- - ">="
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 2
|
48
|
-
- 3
|
49
|
-
- 7
|
50
|
-
version: 2.3.7
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.13
|
51
20
|
type: :runtime
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: i18n
|
55
21
|
prerelease: false
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
version: "0.4"
|
66
|
-
type: :runtime
|
67
|
-
version_requirements: *id003
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: rails
|
70
|
-
prerelease: false
|
71
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
|
-
requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.13
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
74
31
|
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
segments:
|
78
|
-
- 3
|
79
|
-
- 0
|
80
|
-
- 0
|
81
|
-
version: 3.0.0
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
82
34
|
type: :development
|
83
|
-
version_requirements: *id004
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: rspec-rails
|
86
35
|
prerelease: false
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.3.2
|
98
48
|
type: :development
|
99
|
-
version_requirements: *id005
|
100
|
-
- !ruby/object:Gem::Dependency
|
101
|
-
name: rspec_tag_matchers
|
102
49
|
prerelease: false
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.3.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec_tag_matchers
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
114
62
|
type: :development
|
115
|
-
|
116
|
-
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
117
70
|
name: hpricot
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.8.3
|
76
|
+
type: :development
|
118
77
|
prerelease: false
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
hash: 57
|
125
|
-
segments:
|
126
|
-
- 0
|
127
|
-
- 8
|
128
|
-
- 3
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
129
82
|
version: 0.8.3
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: RedCloth
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '4.2'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: yard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.8'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.8'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: colored
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.2'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.2'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: tzinfo
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: ammeter
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.1.3
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.1.3
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: appraisal
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '2.1'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '2.1'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rake
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "<"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '12'
|
130
174
|
type: :development
|
131
|
-
|
132
|
-
|
133
|
-
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "<"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '12'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: activemodel
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 3.2.13
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 3.2.13
|
195
|
+
description: A Rails form builder plugin/gem with semantically rich and accessible
|
196
|
+
markup
|
197
|
+
email:
|
198
|
+
- justin@indent.com.au
|
134
199
|
executables: []
|
135
|
-
|
136
200
|
extensions: []
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
201
|
+
extra_rdoc_files:
|
202
|
+
- README.md
|
203
|
+
files:
|
204
|
+
- ".gitignore"
|
205
|
+
- ".rspec"
|
206
|
+
- ".travis.yml"
|
207
|
+
- ".yardopts"
|
208
|
+
- Appraisals
|
209
|
+
- CHANGELOG
|
210
|
+
- DEPRECATIONS
|
211
|
+
- Gemfile
|
212
|
+
- MIT-LICENSE
|
213
|
+
- README.md
|
214
|
+
- RELEASE_PROCESS
|
215
|
+
- Rakefile
|
216
|
+
- app/assets/stylesheets/formtastic.css
|
217
|
+
- app/assets/stylesheets/formtastic_ie6.css
|
218
|
+
- app/assets/stylesheets/formtastic_ie7.css
|
219
|
+
- formtastic.gemspec
|
220
|
+
- gemfiles/rails_3.2.gemfile
|
221
|
+
- gemfiles/rails_4.0.4.gemfile
|
222
|
+
- gemfiles/rails_4.1.gemfile
|
223
|
+
- gemfiles/rails_4.2.gemfile
|
224
|
+
- gemfiles/rails_4.gemfile
|
225
|
+
- gemfiles/rails_5.0.gemfile
|
226
|
+
- gemfiles/rails_edge.gemfile
|
227
|
+
- lib/formtastic.rb
|
228
|
+
- lib/formtastic/action_class_finder.rb
|
229
|
+
- lib/formtastic/actions.rb
|
230
|
+
- lib/formtastic/actions/base.rb
|
231
|
+
- lib/formtastic/actions/button_action.rb
|
232
|
+
- lib/formtastic/actions/buttonish.rb
|
233
|
+
- lib/formtastic/actions/input_action.rb
|
234
|
+
- lib/formtastic/actions/link_action.rb
|
235
|
+
- lib/formtastic/deprecation.rb
|
236
|
+
- lib/formtastic/engine.rb
|
237
|
+
- lib/formtastic/form_builder.rb
|
238
|
+
- lib/formtastic/helpers.rb
|
239
|
+
- lib/formtastic/helpers/action_helper.rb
|
240
|
+
- lib/formtastic/helpers/actions_helper.rb
|
241
|
+
- lib/formtastic/helpers/enum.rb
|
242
|
+
- lib/formtastic/helpers/errors_helper.rb
|
243
|
+
- lib/formtastic/helpers/fieldset_wrapper.rb
|
244
|
+
- lib/formtastic/helpers/file_column_detection.rb
|
245
|
+
- lib/formtastic/helpers/form_helper.rb
|
246
|
+
- lib/formtastic/helpers/input_helper.rb
|
247
|
+
- lib/formtastic/helpers/inputs_helper.rb
|
248
|
+
- lib/formtastic/helpers/reflection.rb
|
249
|
+
- lib/formtastic/html_attributes.rb
|
144
250
|
- lib/formtastic/i18n.rb
|
145
|
-
- lib/formtastic/
|
146
|
-
- lib/formtastic/
|
251
|
+
- lib/formtastic/input_class_finder.rb
|
252
|
+
- lib/formtastic/inputs.rb
|
253
|
+
- lib/formtastic/inputs/base.rb
|
254
|
+
- lib/formtastic/inputs/base/associations.rb
|
255
|
+
- lib/formtastic/inputs/base/choices.rb
|
256
|
+
- lib/formtastic/inputs/base/collections.rb
|
257
|
+
- lib/formtastic/inputs/base/database.rb
|
258
|
+
- lib/formtastic/inputs/base/datetime_pickerish.rb
|
259
|
+
- lib/formtastic/inputs/base/errors.rb
|
260
|
+
- lib/formtastic/inputs/base/fileish.rb
|
261
|
+
- lib/formtastic/inputs/base/hints.rb
|
262
|
+
- lib/formtastic/inputs/base/html.rb
|
263
|
+
- lib/formtastic/inputs/base/labelling.rb
|
264
|
+
- lib/formtastic/inputs/base/naming.rb
|
265
|
+
- lib/formtastic/inputs/base/numeric.rb
|
266
|
+
- lib/formtastic/inputs/base/options.rb
|
267
|
+
- lib/formtastic/inputs/base/placeholder.rb
|
268
|
+
- lib/formtastic/inputs/base/stringish.rb
|
269
|
+
- lib/formtastic/inputs/base/timeish.rb
|
270
|
+
- lib/formtastic/inputs/base/validations.rb
|
271
|
+
- lib/formtastic/inputs/base/wrapping.rb
|
272
|
+
- lib/formtastic/inputs/boolean_input.rb
|
273
|
+
- lib/formtastic/inputs/check_boxes_input.rb
|
274
|
+
- lib/formtastic/inputs/color_input.rb
|
275
|
+
- lib/formtastic/inputs/country_input.rb
|
276
|
+
- lib/formtastic/inputs/datalist_input.rb
|
277
|
+
- lib/formtastic/inputs/date_picker_input.rb
|
278
|
+
- lib/formtastic/inputs/date_select_input.rb
|
279
|
+
- lib/formtastic/inputs/datetime_picker_input.rb
|
280
|
+
- lib/formtastic/inputs/datetime_select_input.rb
|
281
|
+
- lib/formtastic/inputs/email_input.rb
|
282
|
+
- lib/formtastic/inputs/file_input.rb
|
283
|
+
- lib/formtastic/inputs/hidden_input.rb
|
284
|
+
- lib/formtastic/inputs/number_input.rb
|
285
|
+
- lib/formtastic/inputs/password_input.rb
|
286
|
+
- lib/formtastic/inputs/phone_input.rb
|
287
|
+
- lib/formtastic/inputs/radio_input.rb
|
288
|
+
- lib/formtastic/inputs/range_input.rb
|
289
|
+
- lib/formtastic/inputs/search_input.rb
|
290
|
+
- lib/formtastic/inputs/select_input.rb
|
291
|
+
- lib/formtastic/inputs/string_input.rb
|
292
|
+
- lib/formtastic/inputs/text_input.rb
|
293
|
+
- lib/formtastic/inputs/time_picker_input.rb
|
294
|
+
- lib/formtastic/inputs/time_select_input.rb
|
295
|
+
- lib/formtastic/inputs/time_zone_input.rb
|
296
|
+
- lib/formtastic/inputs/url_input.rb
|
297
|
+
- lib/formtastic/localized_string.rb
|
298
|
+
- lib/formtastic/localizer.rb
|
299
|
+
- lib/formtastic/namespaced_class_finder.rb
|
147
300
|
- lib/formtastic/util.rb
|
148
|
-
- lib/formtastic.rb
|
301
|
+
- lib/formtastic/version.rb
|
149
302
|
- lib/generators/formtastic/form/form_generator.rb
|
303
|
+
- lib/generators/formtastic/input/input_generator.rb
|
150
304
|
- lib/generators/formtastic/install/install_generator.rb
|
151
305
|
- lib/generators/templates/_form.html.erb
|
152
306
|
- lib/generators/templates/_form.html.haml
|
153
|
-
- lib/generators/templates/
|
307
|
+
- lib/generators/templates/_form.html.slim
|
154
308
|
- lib/generators/templates/formtastic.rb
|
155
|
-
- lib/generators/templates/
|
156
|
-
- lib/generators/templates/rails2/_form.html.erb
|
157
|
-
- lib/generators/templates/rails2/_form.html.haml
|
309
|
+
- lib/generators/templates/input.rb
|
158
310
|
- lib/locale/en.yml
|
159
|
-
-
|
160
|
-
-
|
161
|
-
-
|
162
|
-
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
-
|
170
|
-
|
311
|
+
- sample/basic_inputs.html
|
312
|
+
- sample/config.ru
|
313
|
+
- sample/index.html
|
314
|
+
- spec/action_class_finder_spec.rb
|
315
|
+
- spec/actions/button_action_spec.rb
|
316
|
+
- spec/actions/generic_action_spec.rb
|
317
|
+
- spec/actions/input_action_spec.rb
|
318
|
+
- spec/actions/link_action_spec.rb
|
319
|
+
- spec/builder/custom_builder_spec.rb
|
320
|
+
- spec/builder/error_proc_spec.rb
|
321
|
+
- spec/builder/semantic_fields_for_spec.rb
|
322
|
+
- spec/fast_spec_helper.rb
|
323
|
+
- spec/generators/formtastic/form/form_generator_spec.rb
|
324
|
+
- spec/generators/formtastic/input/input_generator_spec.rb
|
325
|
+
- spec/generators/formtastic/install/install_generator_spec.rb
|
326
|
+
- spec/helpers/action_helper_spec.rb
|
327
|
+
- spec/helpers/actions_helper_spec.rb
|
328
|
+
- spec/helpers/form_helper_spec.rb
|
329
|
+
- spec/helpers/input_helper_spec.rb
|
330
|
+
- spec/helpers/inputs_helper_spec.rb
|
331
|
+
- spec/helpers/namespaced_action_helper_spec.rb
|
332
|
+
- spec/helpers/namespaced_input_helper_spec.rb
|
333
|
+
- spec/helpers/reflection_helper_spec.rb
|
334
|
+
- spec/helpers/semantic_errors_helper_spec.rb
|
335
|
+
- spec/i18n_spec.rb
|
336
|
+
- spec/input_class_finder_spec.rb
|
337
|
+
- spec/inputs/base/collections_spec.rb
|
338
|
+
- spec/inputs/base/validations_spec.rb
|
339
|
+
- spec/inputs/boolean_input_spec.rb
|
340
|
+
- spec/inputs/check_boxes_input_spec.rb
|
341
|
+
- spec/inputs/color_input_spec.rb
|
342
|
+
- spec/inputs/country_input_spec.rb
|
343
|
+
- spec/inputs/custom_input_spec.rb
|
344
|
+
- spec/inputs/datalist_input_spec.rb
|
345
|
+
- spec/inputs/date_picker_input_spec.rb
|
346
|
+
- spec/inputs/date_select_input_spec.rb
|
347
|
+
- spec/inputs/datetime_picker_input_spec.rb
|
348
|
+
- spec/inputs/datetime_select_input_spec.rb
|
349
|
+
- spec/inputs/email_input_spec.rb
|
350
|
+
- spec/inputs/file_input_spec.rb
|
351
|
+
- spec/inputs/hidden_input_spec.rb
|
352
|
+
- spec/inputs/include_blank_spec.rb
|
353
|
+
- spec/inputs/label_spec.rb
|
354
|
+
- spec/inputs/number_input_spec.rb
|
355
|
+
- spec/inputs/password_input_spec.rb
|
356
|
+
- spec/inputs/phone_input_spec.rb
|
357
|
+
- spec/inputs/placeholder_spec.rb
|
358
|
+
- spec/inputs/radio_input_spec.rb
|
359
|
+
- spec/inputs/range_input_spec.rb
|
360
|
+
- spec/inputs/readonly_spec.rb
|
361
|
+
- spec/inputs/search_input_spec.rb
|
362
|
+
- spec/inputs/select_input_spec.rb
|
363
|
+
- spec/inputs/string_input_spec.rb
|
364
|
+
- spec/inputs/text_input_spec.rb
|
365
|
+
- spec/inputs/time_picker_input_spec.rb
|
366
|
+
- spec/inputs/time_select_input_spec.rb
|
367
|
+
- spec/inputs/time_zone_input_spec.rb
|
368
|
+
- spec/inputs/url_input_spec.rb
|
369
|
+
- spec/inputs/with_options_spec.rb
|
370
|
+
- spec/localizer_spec.rb
|
371
|
+
- spec/namespaced_class_finder_spec.rb
|
372
|
+
- spec/spec.opts
|
373
|
+
- spec/spec_helper.rb
|
374
|
+
- spec/support/custom_macros.rb
|
375
|
+
- spec/support/deprecation.rb
|
376
|
+
- spec/support/shared_examples.rb
|
377
|
+
- spec/support/specialized_class_finder_shared_example.rb
|
378
|
+
- spec/support/test_environment.rb
|
379
|
+
- spec/util_spec.rb
|
380
|
+
homepage: http://github.com/justinfrench/formtastic
|
381
|
+
licenses:
|
382
|
+
- MIT
|
383
|
+
metadata: {}
|
384
|
+
post_install_message:
|
385
|
+
rdoc_options:
|
386
|
+
- "--charset=UTF-8"
|
387
|
+
require_paths:
|
171
388
|
- lib
|
172
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
-
|
174
|
-
requirements:
|
389
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
390
|
+
requirements:
|
175
391
|
- - ">="
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
version: "0"
|
181
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
|
-
none: false
|
183
|
-
requirements:
|
392
|
+
- !ruby/object:Gem::Version
|
393
|
+
version: 1.9.3
|
394
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
395
|
+
requirements:
|
184
396
|
- - ">="
|
185
|
-
- !ruby/object:Gem::Version
|
186
|
-
|
187
|
-
segments:
|
188
|
-
- 0
|
189
|
-
version: "0"
|
397
|
+
- !ruby/object:Gem::Version
|
398
|
+
version: '0'
|
190
399
|
requirements: []
|
191
|
-
|
192
400
|
rubyforge_project:
|
193
|
-
rubygems_version:
|
401
|
+
rubygems_version: 2.4.5.1
|
194
402
|
signing_key:
|
195
|
-
specification_version:
|
403
|
+
specification_version: 4
|
196
404
|
summary: A Rails form builder plugin/gem with semantically rich and accessible markup
|
197
|
-
test_files:
|
198
|
-
|
405
|
+
test_files:
|
406
|
+
- spec/action_class_finder_spec.rb
|
407
|
+
- spec/actions/button_action_spec.rb
|
408
|
+
- spec/actions/generic_action_spec.rb
|
409
|
+
- spec/actions/input_action_spec.rb
|
410
|
+
- spec/actions/link_action_spec.rb
|
411
|
+
- spec/builder/custom_builder_spec.rb
|
412
|
+
- spec/builder/error_proc_spec.rb
|
413
|
+
- spec/builder/semantic_fields_for_spec.rb
|
414
|
+
- spec/fast_spec_helper.rb
|
415
|
+
- spec/generators/formtastic/form/form_generator_spec.rb
|
416
|
+
- spec/generators/formtastic/input/input_generator_spec.rb
|
417
|
+
- spec/generators/formtastic/install/install_generator_spec.rb
|
418
|
+
- spec/helpers/action_helper_spec.rb
|
419
|
+
- spec/helpers/actions_helper_spec.rb
|
420
|
+
- spec/helpers/form_helper_spec.rb
|
421
|
+
- spec/helpers/input_helper_spec.rb
|
422
|
+
- spec/helpers/inputs_helper_spec.rb
|
423
|
+
- spec/helpers/namespaced_action_helper_spec.rb
|
424
|
+
- spec/helpers/namespaced_input_helper_spec.rb
|
425
|
+
- spec/helpers/reflection_helper_spec.rb
|
426
|
+
- spec/helpers/semantic_errors_helper_spec.rb
|
427
|
+
- spec/i18n_spec.rb
|
428
|
+
- spec/input_class_finder_spec.rb
|
429
|
+
- spec/inputs/base/collections_spec.rb
|
430
|
+
- spec/inputs/base/validations_spec.rb
|
431
|
+
- spec/inputs/boolean_input_spec.rb
|
432
|
+
- spec/inputs/check_boxes_input_spec.rb
|
433
|
+
- spec/inputs/color_input_spec.rb
|
434
|
+
- spec/inputs/country_input_spec.rb
|
435
|
+
- spec/inputs/custom_input_spec.rb
|
436
|
+
- spec/inputs/datalist_input_spec.rb
|
437
|
+
- spec/inputs/date_picker_input_spec.rb
|
438
|
+
- spec/inputs/date_select_input_spec.rb
|
439
|
+
- spec/inputs/datetime_picker_input_spec.rb
|
440
|
+
- spec/inputs/datetime_select_input_spec.rb
|
441
|
+
- spec/inputs/email_input_spec.rb
|
442
|
+
- spec/inputs/file_input_spec.rb
|
443
|
+
- spec/inputs/hidden_input_spec.rb
|
444
|
+
- spec/inputs/include_blank_spec.rb
|
445
|
+
- spec/inputs/label_spec.rb
|
446
|
+
- spec/inputs/number_input_spec.rb
|
447
|
+
- spec/inputs/password_input_spec.rb
|
448
|
+
- spec/inputs/phone_input_spec.rb
|
449
|
+
- spec/inputs/placeholder_spec.rb
|
450
|
+
- spec/inputs/radio_input_spec.rb
|
451
|
+
- spec/inputs/range_input_spec.rb
|
452
|
+
- spec/inputs/readonly_spec.rb
|
453
|
+
- spec/inputs/search_input_spec.rb
|
454
|
+
- spec/inputs/select_input_spec.rb
|
455
|
+
- spec/inputs/string_input_spec.rb
|
456
|
+
- spec/inputs/text_input_spec.rb
|
457
|
+
- spec/inputs/time_picker_input_spec.rb
|
458
|
+
- spec/inputs/time_select_input_spec.rb
|
459
|
+
- spec/inputs/time_zone_input_spec.rb
|
460
|
+
- spec/inputs/url_input_spec.rb
|
461
|
+
- spec/inputs/with_options_spec.rb
|
462
|
+
- spec/localizer_spec.rb
|
463
|
+
- spec/namespaced_class_finder_spec.rb
|
464
|
+
- spec/spec.opts
|
465
|
+
- spec/spec_helper.rb
|
466
|
+
- spec/support/custom_macros.rb
|
467
|
+
- spec/support/deprecation.rb
|
468
|
+
- spec/support/shared_examples.rb
|
469
|
+
- spec/support/specialized_class_finder_shared_example.rb
|
470
|
+
- spec/support/test_environment.rb
|
471
|
+
- spec/util_spec.rb
|