client_side_validations 10.0.1 → 10.0.2

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: 6c8881a1ecca9dfb2235fcee5a001fec7013d582
4
- data.tar.gz: ef25a4a99a57a55f32f58fc0cf8123ce904aa1eb
3
+ metadata.gz: 15b17868aa578adadc21ae01b4710f738cea4ac5
4
+ data.tar.gz: 1938888b7e17e39c6533e48b9251d00b11952a1f
5
5
  SHA512:
6
- metadata.gz: d113890b7b37a533aec7e260af33463e3f08a2d62f9fbabe2fa7af04a8d7805d70b9b918fdd494b56ac0307f79e33aabbb8218abfbcf28eceb3bd2aa9629cd16
7
- data.tar.gz: 784364e0c9e97a6b6f0ceca96579b7ee713690e5f6b7c1af6d511c1b1299db9f15b00a5be4bb356d6cde3d73df72d2f3975c04878b046d8184a3bffa2ef8e005
6
+ metadata.gz: 1f54d8260cc6d82ded9dde21e1083cc5132c026fd369184acaa7898d0237eb9559db993dbfe086b9d2f6e6f9e6989f7e819094b77e017437c2559e599a1613b8
7
+ data.tar.gz: f3a6829afc61187bfb05987499b025aa75aaeaa02255a28b83e58f3373fca6eb2e0a3cc5daffb57a13140d84b2fe247143638755e450cfc0d243dafb469c315f
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 10.0.2 / 2017-11-11
4
+
5
+ * [BUGFIX] Fix jQuery 3.0 support ([#726](https://github.com/DavyJonesLocker/client_side_validations/pull/726))
6
+ * [ENHANCEMENT] Update development dependencies
7
+
3
8
  ## 10.0.1 / 2017-10-10
4
9
 
5
10
  * [BUGFIX] Fix regression in JavaScript numericality validator ([#724](https://github.com/DavyJonesLocker/client_side_validations/issues/724))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClientSideValidations
4
- VERSION = '10.0.1'.freeze
4
+ VERSION = '10.0.2'.freeze
5
5
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - v10.0.1 (https://github.com/DavyJonesLocker/client_side_validations)
3
+ * Client Side Validations - v10.0.2 (https://github.com/DavyJonesLocker/client_side_validations)
4
4
  * Copyright (c) 2017 Geremia Taglialatela, Brian Cardarella
5
5
  * Licensed under MIT (http://opensource.org/licenses/mit-license.php)
6
6
  */
@@ -50,8 +50,6 @@
50
50
  }
51
51
  };
52
52
 
53
- initializeOnEvent = (window.Turbolinks != null) && window.Turbolinks.supported ? window.Turbolinks.EVENTS != null ? 'page:change' : 'turbolinks:load' : 'ready';
54
-
55
53
  validatorsFor = function(name, validators) {
56
54
  var captures, validator, validator_name;
57
55
  if (validators.hasOwnProperty(name)) {
@@ -570,9 +568,16 @@
570
568
  }
571
569
  };
572
570
 
573
- $(document).on(initializeOnEvent, function() {
574
- return $(ClientSideValidations.selectors.forms).validate();
575
- });
571
+ if ((window.Turbolinks != null) && window.Turbolinks.supported) {
572
+ initializeOnEvent = window.Turbolinks.EVENTS != null ? 'page:change' : 'turbolinks:load';
573
+ $(document).on(initializeOnEvent, function() {
574
+ return $(ClientSideValidations.selectors.forms).validate();
575
+ });
576
+ } else {
577
+ $(function() {
578
+ return $(ClientSideValidations.selectors.forms).validate();
579
+ });
580
+ }
576
581
 
577
582
  window.ClientSideValidations = ClientSideValidations;
578
583
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: client_side_validations
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.1
4
+ version: 10.0.2
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: 2017-10-10 00:00:00.000000000 Z
12
+ date: 2017-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -51,14 +51,14 @@ dependencies:
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.0'
54
+ version: '2.1'
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.0'
61
+ version: '2.1'
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: appraisal
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -88,19 +88,19 @@ dependencies:
88
88
  - !ruby/object:Gem::Version
89
89
  version: '9.1'
90
90
  - !ruby/object:Gem::Dependency
91
- name: coveralls
91
+ name: coveralls_reborn
92
92
  requirement: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.8.21
96
+ version: 0.9.0
97
97
  type: :development
98
98
  prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.8.21
103
+ version: 0.9.0
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: m
106
106
  requirement: !ruby/object:Gem::Requirement
@@ -149,42 +149,42 @@ dependencies:
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '12.1'
152
+ version: '12.2'
153
153
  type: :development
154
154
  prerelease: false
155
155
  version_requirements: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '12.1'
159
+ version: '12.2'
160
160
  - !ruby/object:Gem::Dependency
161
161
  name: rubocop
162
162
  requirement: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.50.0
166
+ version: 0.51.0
167
167
  type: :development
168
168
  prerelease: false
169
169
  version_requirements: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.50.0
173
+ version: 0.51.0
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: simplecov
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.14.1
180
+ version: 0.15.1
181
181
  type: :development
182
182
  prerelease: false
183
183
  version_requirements: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.14.1
187
+ version: 0.15.1
188
188
  - !ruby/object:Gem::Dependency
189
189
  name: sqlite3
190
190
  requirement: !ruby/object:Gem::Requirement
@@ -200,19 +200,19 @@ dependencies:
200
200
  - !ruby/object:Gem::Version
201
201
  version: '1.3'
202
202
  - !ruby/object:Gem::Dependency
203
- name: sinatra
203
+ name: coffee-script
204
204
  requirement: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '2.0'
208
+ version: '2.4'
209
209
  type: :development
210
210
  prerelease: false
211
211
  version_requirements: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: '2.0'
215
+ version: '2.4'
216
216
  - !ruby/object:Gem::Dependency
217
217
  name: shotgun
218
218
  requirement: !ruby/object:Gem::Requirement
@@ -228,33 +228,33 @@ dependencies:
228
228
  - !ruby/object:Gem::Version
229
229
  version: 0.9.2
230
230
  - !ruby/object:Gem::Dependency
231
- name: thin
231
+ name: sinatra
232
232
  requirement: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
- version: '1.7'
236
+ version: '2.0'
237
237
  type: :development
238
238
  prerelease: false
239
239
  version_requirements: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: '1.7'
243
+ version: '2.0'
244
244
  - !ruby/object:Gem::Dependency
245
- name: coffee-script
245
+ name: thin
246
246
  requirement: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: '2.4'
250
+ version: '1.7'
251
251
  type: :development
252
252
  prerelease: false
253
253
  version_requirements: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - "~>"
256
256
  - !ruby/object:Gem::Version
257
- version: '2.4'
257
+ version: '1.7'
258
258
  description: Client Side Validations made easy for your Rails 5 applications
259
259
  email:
260
260
  - tagliala.dev@gmail.com