simple_form 2.0.4 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of simple_form might be problematic. Click here for more details.
- data/CHANGELOG.md +33 -301
- data/MIT-LICENSE +1 -1
- data/README.md +30 -12
- data/lib/generators/simple_form/install_generator.rb +7 -4
- data/lib/generators/simple_form/templates/config/initializers/simple_form_foundation.rb +26 -0
- data/lib/simple_form.rb +11 -8
- data/lib/simple_form/action_view_extensions/builder.rb +32 -18
- data/lib/simple_form/action_view_extensions/builder.rb.orig +247 -0
- data/lib/simple_form/components.rb +12 -10
- data/lib/simple_form/components/hints.rb +1 -1
- data/lib/simple_form/components/label_input.rb +1 -1
- data/lib/simple_form/components/maxlength.rb +1 -1
- data/lib/simple_form/components/min_max.rb +1 -1
- data/lib/simple_form/components/pattern.rb +1 -1
- data/lib/simple_form/form_builder.rb +6 -3
- data/lib/simple_form/form_builder.rb.orig +486 -0
- data/lib/simple_form/helpers/validators.rb +2 -2
- data/lib/simple_form/inputs.rb +19 -17
- data/lib/simple_form/inputs/base.rb +8 -2
- data/lib/simple_form/inputs/date_time_input.rb +0 -4
- data/lib/simple_form/version.rb +1 -1
- data/lib/simple_form/version.rb.orig +7 -0
- data/lib/simple_form/wrappers/root.rb +3 -1
- data/test/action_view_extensions/builder_test.rb +113 -67
- data/test/action_view_extensions/form_helper_test.rb +5 -0
- data/test/components/label_test.rb +27 -17
- data/test/form_builder/association_test.rb +10 -7
- data/test/form_builder/general_test.rb +48 -25
- data/test/form_builder/input_field_test.rb +45 -0
- data/test/form_builder/wrapper_test.rb +22 -0
- data/test/generators/simple_form_generator_test.rb +8 -0
- data/test/inputs/datetime_input_test.rb +2 -2
- data/test/inputs/grouped_collection_select_input_test.rb +15 -0
- data/test/support/misc_helpers.rb +6 -0
- data/test/test_helper.rb +6 -1
- metadata +12 -2
data/test/test_helper.rb
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'bundler/setup'
|
3
3
|
|
4
4
|
require 'test/unit'
|
5
|
-
require 'mocha'
|
5
|
+
require 'mocha/setup'
|
6
6
|
|
7
7
|
require 'active_model'
|
8
8
|
require 'action_controller'
|
@@ -82,6 +82,11 @@ class ActionView::TestCase
|
|
82
82
|
def user_path(*args)
|
83
83
|
'/users'
|
84
84
|
end
|
85
|
+
|
86
|
+
def company_user_path(*args)
|
87
|
+
'/company/users'
|
88
|
+
end
|
89
|
+
|
85
90
|
alias :users_path :user_path
|
86
91
|
alias :super_user_path :user_path
|
87
92
|
alias :validating_user_path :user_path
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2013-02-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activemodel
|
@@ -60,10 +60,12 @@ files:
|
|
60
60
|
- lib/generators/simple_form/templates/_form.html.slim
|
61
61
|
- lib/generators/simple_form/templates/config/initializers/simple_form.rb
|
62
62
|
- lib/generators/simple_form/templates/config/initializers/simple_form_bootstrap.rb
|
63
|
+
- lib/generators/simple_form/templates/config/initializers/simple_form_foundation.rb
|
63
64
|
- lib/generators/simple_form/templates/config/locales/simple_form.en.yml
|
64
65
|
- lib/generators/simple_form/templates/README
|
65
66
|
- lib/generators/simple_form/USAGE
|
66
67
|
- lib/simple_form/action_view_extensions/builder.rb
|
68
|
+
- lib/simple_form/action_view_extensions/builder.rb.orig
|
67
69
|
- lib/simple_form/action_view_extensions/form_helper.rb
|
68
70
|
- lib/simple_form/components/errors.rb
|
69
71
|
- lib/simple_form/components/hints.rb
|
@@ -79,6 +81,7 @@ files:
|
|
79
81
|
- lib/simple_form/core_ext/hash.rb
|
80
82
|
- lib/simple_form/error_notification.rb
|
81
83
|
- lib/simple_form/form_builder.rb
|
84
|
+
- lib/simple_form/form_builder.rb.orig
|
82
85
|
- lib/simple_form/helpers/autofocus.rb
|
83
86
|
- lib/simple_form/helpers/disabled.rb
|
84
87
|
- lib/simple_form/helpers/readonly.rb
|
@@ -106,6 +109,7 @@ files:
|
|
106
109
|
- lib/simple_form/inputs.rb
|
107
110
|
- lib/simple_form/map_type.rb
|
108
111
|
- lib/simple_form/version.rb
|
112
|
+
- lib/simple_form/version.rb.orig
|
109
113
|
- lib/simple_form/wrappers/builder.rb
|
110
114
|
- lib/simple_form/wrappers/many.rb
|
111
115
|
- lib/simple_form/wrappers/root.rb
|
@@ -160,12 +164,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
164
|
- - ! '>='
|
161
165
|
- !ruby/object:Gem::Version
|
162
166
|
version: '0'
|
167
|
+
segments:
|
168
|
+
- 0
|
169
|
+
hash: -389428450847468473
|
163
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
171
|
none: false
|
165
172
|
requirements:
|
166
173
|
- - ! '>='
|
167
174
|
- !ruby/object:Gem::Version
|
168
175
|
version: '0'
|
176
|
+
segments:
|
177
|
+
- 0
|
178
|
+
hash: -389428450847468473
|
169
179
|
requirements: []
|
170
180
|
rubyforge_project: simple_form
|
171
181
|
rubygems_version: 1.8.23
|