client_side_validations-simple_form 3.2.3 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9834bbbd1e991f8a8ded640f64da3b9e9691312
4
- data.tar.gz: f9561f3a8c0dd92d39fb95f1e6998d83984f205a
3
+ metadata.gz: 436091d4d3fd07824f71af8ac285162358b29913
4
+ data.tar.gz: 2923dd006c9319325769bbf26d8042a555e4ee02
5
5
  SHA512:
6
- metadata.gz: 8e42a3d900df09bb0e41d76afaae06267365439a491132d06b7bb0dcb2a0288f932c2e8c9d8dc9294a718a1c230221b16ef8321f05225ef25b5c76f59743da26
7
- data.tar.gz: c46a8d07b216481910c4ec11aab394a21ad4854e97d36678ee9e4e65d500614fe4921f62189c1b2f280d7646eeb968eb553f7e71f2c7d6fe4042b2429623d3e9
6
+ metadata.gz: 19bc33d2a100b9bd2ae999e70ba1d65b6ed68b24e68ba4d89415628cbd7618a92f16f8ce201b845aefc5735d3cfbbbfbaf8df44094e0850ce9452f4a1db86746
7
+ data.tar.gz: 8f5353b1c98ac4cb921ffbc5162834aeeabdd6d2f7d91b4d7009ec3d1064f3f36c1edf4b16d31b4ad058adc5fdf20e6f6e7b7319fc8618e83ffab07a705407ad
data/README.md CHANGED
@@ -63,9 +63,9 @@ Per-input options are done with `:validate`
63
63
 
64
64
  ## Authors ##
65
65
 
66
- [Brian Cardarella](http://twitter.com/bcardarella)
66
+ [Brian Cardarella](https://twitter.com/bcardarella)
67
67
 
68
- [Geremia Taglialatela](http://twitter.com/gtagliala)
68
+ [Geremia Taglialatela](https://twitter.com/gtagliala)
69
69
 
70
70
  [We are very thankful for the many contributors](https://github.com/DavyJonesLocker/client_side_validations-simple_form/graphs/contributors)
71
71
 
@@ -86,8 +86,8 @@ on how to properly submit issues and pull requests.
86
86
 
87
87
  ## Legal ##
88
88
 
89
- [DockYard](http://dockyard.com), LLC © 2012-2016
89
+ [DockYard](https://dockyard.com/), LLC © 2012-2016
90
90
 
91
- [@dockyard](http://twitter.com/dockyard)
91
+ [@dockyard](https://twitter.com/dockyard)
92
92
 
93
- [Licensed under the MIT license](http://www.opensource.org/licenses/mit-license.php)
93
+ [Licensed under the MIT license](http://opensource.org/licenses/mit-license.php)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module ClientSideValidations
3
3
  module SimpleForm
4
- VERSION = '3.2.3'.freeze
4
+ VERSION = '3.2.4'.freeze
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - SimpleForm - v3.2.3 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
3
+ * Client Side Validations - SimpleForm - v3.2.4 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
4
4
  * Copyright (c) 2016 Geremia Taglialatela, Brian Cardarella
5
5
  * Licensed under MIT (http://opensource.org/licenses/mit-license.php)
6
6
  */
@@ -8,17 +8,20 @@
8
8
  (function() {
9
9
  ClientSideValidations.formBuilders['SimpleForm::FormBuilder'] = {
10
10
  add: function(element, settings, message) {
11
- return this.wrappers[settings.wrapper].add.call(this, element, settings, message);
11
+ return this.wrapper(settings.wrapper).add.call(this, element, settings, message);
12
12
  },
13
13
  remove: function(element, settings) {
14
- return this.wrappers[settings.wrapper].remove.call(this, element, settings);
14
+ return this.wrapper(settings.wrapper).remove.call(this, element, settings);
15
+ },
16
+ wrapper: function(name) {
17
+ return this.wrappers[name] || this.wrappers["default"];
15
18
  },
16
19
  wrappers: {
17
20
  "default": {
18
21
  add: function(element, settings, message) {
19
22
  var errorElement, wrapper;
20
23
  wrapper = element.closest(settings.wrapper_tag + "." + (settings.wrapper_class.replace(/\ /g, '.')));
21
- errorElement = wrapper.find(settings.error_tag + "." + settings.error_class);
24
+ errorElement = wrapper.find(settings.error_tag + "." + (settings.error_class.replace(/\ /g, '.')));
22
25
  if (!errorElement.length) {
23
26
  errorElement = $("<" + settings.error_tag + "/>", {
24
27
  "class": settings.error_class,
@@ -32,7 +35,7 @@
32
35
  remove: function(element, settings) {
33
36
  var errorElement, wrapper;
34
37
  wrapper = element.closest(settings.wrapper_tag + "." + (settings.wrapper_class.replace(/\ /g, '.')) + "." + settings.wrapper_error_class);
35
- errorElement = wrapper.find(settings.error_tag + "." + settings.error_class);
38
+ errorElement = wrapper.find(settings.error_tag + "." + (settings.error_class.replace(/\ /g, '.')));
36
39
  wrapper.removeClass(settings.wrapper_error_class);
37
40
  return errorElement.remove();
38
41
  }
@@ -40,10 +43,4 @@
40
43
  }
41
44
  };
42
45
 
43
- ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.vertical_form = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers["default"];
44
-
45
- ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.horizontal_form = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers["default"];
46
-
47
- ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.inline_form = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers["default"];
48
-
49
46
  }).call(this);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: client_side_validations-simple_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geremia Taglialatela
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-14 00:00:00.000000000 Z
12
+ date: 2016-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: client_side_validations
@@ -53,34 +53,48 @@ dependencies:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '2.1'
56
+ - !ruby/object:Gem::Dependency
57
+ name: byebug
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '9.0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '9.0'
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: coveralls
58
72
  requirement: !ruby/object:Gem::Requirement
59
73
  requirements:
60
74
  - - "~>"
61
75
  - !ruby/object:Gem::Version
62
- version: 0.8.13
76
+ version: 0.8.14
63
77
  type: :development
64
78
  prerelease: false
65
79
  version_requirements: !ruby/object:Gem::Requirement
66
80
  requirements:
67
81
  - - "~>"
68
82
  - !ruby/object:Gem::Version
69
- version: 0.8.13
83
+ version: 0.8.14
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: m
72
86
  requirement: !ruby/object:Gem::Requirement
73
87
  requirements:
74
88
  - - "~>"
75
89
  - !ruby/object:Gem::Version
76
- version: '1.4'
90
+ version: '1.5'
77
91
  type: :development
78
92
  prerelease: false
79
93
  version_requirements: !ruby/object:Gem::Requirement
80
94
  requirements:
81
95
  - - "~>"
82
96
  - !ruby/object:Gem::Version
83
- version: '1.4'
97
+ version: '1.5'
84
98
  - !ruby/object:Gem::Dependency
85
99
  name: minitest
86
100
  requirement: !ruby/object:Gem::Requirement
@@ -121,56 +135,42 @@ dependencies:
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '11.1'
138
+ version: '11.2'
125
139
  type: :development
126
140
  prerelease: false
127
141
  version_requirements: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '11.1'
145
+ version: '11.2'
132
146
  - !ruby/object:Gem::Dependency
133
147
  name: rubocop
134
148
  requirement: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: 0.38.0
152
+ version: 0.41.1
139
153
  type: :development
140
154
  prerelease: false
141
155
  version_requirements: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - "~>"
144
158
  - !ruby/object:Gem::Version
145
- version: 0.38.0
159
+ version: 0.41.1
146
160
  - !ruby/object:Gem::Dependency
147
161
  name: simplecov
148
162
  requirement: !ruby/object:Gem::Requirement
149
163
  requirements:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
- version: 0.11.2
166
+ version: 0.12.0
153
167
  type: :development
154
168
  prerelease: false
155
169
  version_requirements: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: 0.11.2
160
- - !ruby/object:Gem::Dependency
161
- name: byebug
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '8.2'
167
- type: :development
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '8.2'
173
+ version: 0.12.0
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: sinatra
176
176
  requirement: !ruby/object:Gem::Requirement
@@ -205,28 +205,14 @@ dependencies:
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '1.6'
209
- type: :development
210
- prerelease: false
211
- version_requirements: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - "~>"
214
- - !ruby/object:Gem::Version
215
- version: '1.6'
216
- - !ruby/object:Gem::Dependency
217
- name: json
218
- requirement: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - "~>"
221
- - !ruby/object:Gem::Version
222
- version: '1.8'
208
+ version: '1.7'
223
209
  type: :development
224
210
  prerelease: false
225
211
  version_requirements: !ruby/object:Gem::Requirement
226
212
  requirements:
227
213
  - - "~>"
228
214
  - !ruby/object:Gem::Version
229
- version: '1.8'
215
+ version: '1.7'
230
216
  - !ruby/object:Gem::Dependency
231
217
  name: coffee-script
232
218
  requirement: !ruby/object:Gem::Requirement
@@ -279,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
265
  version: '0'
280
266
  requirements: []
281
267
  rubyforge_project:
282
- rubygems_version: 2.5.1
268
+ rubygems_version: 2.6.4
283
269
  signing_key:
284
270
  specification_version: 4
285
271
  summary: SimpleForm Plugin for ClientSideValidations