simple_form 3.1.1 → 3.2.0

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.

Potentially problematic release.


This version of simple_form might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e30c2408e03c6ec8e50e4c96eb6b6ed2496c2c17
4
- data.tar.gz: 324665062b839154b5c7b2c2fd8d2a603466c854
3
+ metadata.gz: 5db9c72e3a5c06c71d99163bfaf4206c37cf6770
4
+ data.tar.gz: a79c7066e8584acf008a9c45a13a3055457f131a
5
5
  SHA512:
6
- metadata.gz: 1b58ac3394c6237e862f81de9eae3c8511d72a27f3e65ec4c11929f6e30f52378ff325a5c7a336f18015d5707f8bce061e797c264b8fc4a15b95e653f1c8613c
7
- data.tar.gz: 81e743325007ec095390aac7762bfe62c7ac5e0f1650a133db3834faa8303931b6e287acf5f4ed191241e3d50b9afa1d0aeba68dc43c6d0ae4229fdd27a1b94d
6
+ metadata.gz: 40e45eac78c5655e3a4675f4dc0227dc55538bee8f641ac561370b8be4effba398d6b77869cdab97447e6b44ffc8dccb3c74592d9b718e25ff9a6edeb1d453b4
7
+ data.tar.gz: 9c8ed9f7753bb99bc536b79f37551e13125d5292a3fa071e10370e89bfa37f9d69e56862ab6b2df336699c8a70a256428c1127e8d1555b20e6bc9b810b71523b
@@ -1,8 +1,7 @@
1
- ## master
1
+ ## 3.2.0
2
2
 
3
- ## enhancements
4
-
5
- ## bug fix
3
+ ### bug fix
4
+ * Improve performance of input generation by disabling support for `_html` translations. This reverts the feature introduced on the 3.1.0 branch
6
5
 
7
6
  ## 3.1.1
8
7
 
@@ -16,7 +15,7 @@
16
15
  HTML5 compatibility is explicitly enabled. [@ericsullivan](https://github.com/ericsullivan)
17
16
 
18
17
  * The datetime, date, and time inputs now have a nice format by default on bootstrap.
19
- [ulissesalmeida](https://github.com/ulissesalmeida) [eltonchrls](https://github.com/eltonchrls)
18
+ [@ulissesalmeida](https://github.com/ulissesalmeida) [@eltonchrls](https://github.com/eltonchrls)
20
19
 
21
20
  * Now it is possible to set custom input mappings for collections.
22
21
 
@@ -178,17 +178,13 @@ module SimpleForm
178
178
  model_names.shift
179
179
 
180
180
  lookups << :"#{joined_model_names}.#{lookup_action}.#{reflection_or_attribute_name}"
181
- lookups << :"#{joined_model_names}.#{lookup_action}.#{reflection_or_attribute_name}_html"
182
181
  lookups << :"#{joined_model_names}.#{reflection_or_attribute_name}"
183
- lookups << :"#{joined_model_names}.#{reflection_or_attribute_name}_html"
184
182
  end
185
183
  lookups << :"defaults.#{lookup_action}.#{reflection_or_attribute_name}"
186
- lookups << :"defaults.#{lookup_action}.#{reflection_or_attribute_name}_html"
187
184
  lookups << :"defaults.#{reflection_or_attribute_name}"
188
- lookups << :"defaults.#{reflection_or_attribute_name}_html"
189
185
  lookups << default
190
186
 
191
- t(lookups.shift, scope: :"#{i18n_scope}.#{namespace}", default: lookups).presence
187
+ I18n.t(lookups.shift, scope: :"#{i18n_scope}.#{namespace}", default: lookups).presence
192
188
  end
193
189
 
194
190
  def merge_wrapper_options(options, wrapper_options)
@@ -1,3 +1,3 @@
1
1
  module SimpleForm
2
- VERSION = "3.1.1".freeze
2
+ VERSION = "3.2.0".freeze
3
3
  end
@@ -115,15 +115,6 @@ class StringInputTest < ActionView::TestCase
115
115
  end
116
116
  end
117
117
 
118
- test 'input translates a key prefixed with _html and return the html markup' do
119
- store_translations(:en, simple_form: { labels: { user: {
120
- name_html: '<b>Name</b>'
121
- } } }) do
122
- with_input_for @user, :name, :string
123
- assert_select 'label b', 'Name'
124
- end
125
- end
126
-
127
118
  [:email, :url, :search, :tel].each do |type|
128
119
  test "input allows type #{type}" do
129
120
  with_input_for @user, :name, type
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: 3.1.1
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Valim
@@ -10,34 +10,34 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-08-30 00:00:00.000000000 Z
13
+ date: 2015-09-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
21
  version: '4.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - ~>
27
27
  - !ruby/object:Gem::Version
28
28
  version: '4.0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: actionpack
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ~>
34
34
  - !ruby/object:Gem::Version
35
35
  version: '4.0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
40
+ - - ~>
41
41
  - !ruby/object:Gem::Version
42
42
  version: '4.0'
43
43
  description: Forms made easy!
@@ -49,9 +49,7 @@ files:
49
49
  - CHANGELOG.md
50
50
  - MIT-LICENSE
51
51
  - README.md
52
- - lib/generators/simple_form/USAGE
53
52
  - lib/generators/simple_form/install_generator.rb
54
- - lib/generators/simple_form/templates/README
55
53
  - lib/generators/simple_form/templates/_form.html.erb
56
54
  - lib/generators/simple_form/templates/_form.html.haml
57
55
  - lib/generators/simple_form/templates/_form.html.slim
@@ -59,10 +57,10 @@ files:
59
57
  - lib/generators/simple_form/templates/config/initializers/simple_form_bootstrap.rb
60
58
  - lib/generators/simple_form/templates/config/initializers/simple_form_foundation.rb
61
59
  - lib/generators/simple_form/templates/config/locales/simple_form.en.yml
62
- - lib/simple_form.rb
60
+ - lib/generators/simple_form/templates/README
61
+ - lib/generators/simple_form/USAGE
63
62
  - lib/simple_form/action_view_extensions/builder.rb
64
63
  - lib/simple_form/action_view_extensions/form_helper.rb
65
- - lib/simple_form/components.rb
66
64
  - lib/simple_form/components/errors.rb
67
65
  - lib/simple_form/components/hints.rb
68
66
  - lib/simple_form/components/html5.rb
@@ -73,16 +71,16 @@ files:
73
71
  - lib/simple_form/components/pattern.rb
74
72
  - lib/simple_form/components/placeholders.rb
75
73
  - lib/simple_form/components/readonly.rb
74
+ - lib/simple_form/components.rb
76
75
  - lib/simple_form/error_notification.rb
77
76
  - lib/simple_form/form_builder.rb
78
- - lib/simple_form/helpers.rb
79
77
  - lib/simple_form/helpers/autofocus.rb
80
78
  - lib/simple_form/helpers/disabled.rb
81
79
  - lib/simple_form/helpers/readonly.rb
82
80
  - lib/simple_form/helpers/required.rb
83
81
  - lib/simple_form/helpers/validators.rb
82
+ - lib/simple_form/helpers.rb
84
83
  - lib/simple_form/i18n_cache.rb
85
- - lib/simple_form/inputs.rb
86
84
  - lib/simple_form/inputs/base.rb
87
85
  - lib/simple_form/inputs/block_input.rb
88
86
  - lib/simple_form/inputs/boolean_input.rb
@@ -100,16 +98,18 @@ files:
100
98
  - lib/simple_form/inputs/range_input.rb
101
99
  - lib/simple_form/inputs/string_input.rb
102
100
  - lib/simple_form/inputs/text_input.rb
101
+ - lib/simple_form/inputs.rb
103
102
  - lib/simple_form/map_type.rb
104
103
  - lib/simple_form/railtie.rb
105
104
  - lib/simple_form/tags.rb
106
105
  - lib/simple_form/version.rb
107
- - lib/simple_form/wrappers.rb
108
106
  - lib/simple_form/wrappers/builder.rb
109
107
  - lib/simple_form/wrappers/leaf.rb
110
108
  - lib/simple_form/wrappers/many.rb
111
109
  - lib/simple_form/wrappers/root.rb
112
110
  - lib/simple_form/wrappers/single.rb
111
+ - lib/simple_form/wrappers.rb
112
+ - lib/simple_form.rb
113
113
  - test/action_view_extensions/builder_test.rb
114
114
  - test/action_view_extensions/form_helper_test.rb
115
115
  - test/components/label_test.rb
@@ -156,17 +156,17 @@ require_paths:
156
156
  - lib
157
157
  required_ruby_version: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - ">="
159
+ - - '>='
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project: simple_form
169
- rubygems_version: 2.4.5
169
+ rubygems_version: 2.0.3
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Forms made easy!