client_side_validations 4.2.3 → 4.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: 155b33e90db6430cf62b5a60e825e5f663c3c71c
4
- data.tar.gz: 2b4aeb977ab6688a4edfb46cab7d733cb0d83712
3
+ metadata.gz: dc3095ada6d732f685ae5a89448fb73f0bf67d2b
4
+ data.tar.gz: 0a7a366e16a11fda003e4cc5a5e5fb1b88ed13f3
5
5
  SHA512:
6
- metadata.gz: 7391469f5e8e7ccd8d5ff46b2d2c4f7aad354850c62d578d8336480c49d4f28d188a11b35d75ef3d2385cc1903cf16f7179f22a59a2c1e74cd558baf8772c76b
7
- data.tar.gz: 81b1baecf7882350643146fafb7258b23e7ffe9ba919b89c283e0c74026f322fcb50f0a659a52d8ade1551a6fc595d6c38c6875abc0886fed3eb337a3996dfaa
6
+ metadata.gz: 52b2a3c40f0f9ff9c165303989bd9a7ed52bbe0cf86ae019d56ed3f8b98e325672acb5bf239b70b5bfb33dd1134dbf56534389e2dddb46aed26f87602c70e0c0
7
+ data.tar.gz: dca548a1b975ba6c80ed4c8e6726e8020dd7e3ffa13b807ae4f6245cd670247c5f4707467db238582c8a590398ea0ecfa131f84c0f9ef9f261c21f58111c8b8f
data/HISTORY.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Version 4.2
4
4
 
5
+ * [v4.2.4](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.3...v4.2.4)
5
6
  * [v4.2.3](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.2...v4.2.3)
6
7
  * [v4.2.2](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.1...v4.2.2)
7
8
  * [v4.2.1](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.0...v4.2.1)
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ## Project Goals ##
12
12
 
13
- 1. Follow the best practices for client side validations developed by [Luke Wroblewski](http://www.alistapart.com/articles/inline-validation-in-web-forms/)
13
+ 1. Follow the best practices for client side validations developed by [Luke Wroblewski](http://alistapart.com/article/inline-validation-in-web-forms)
14
14
  2. Automatically extract and apply validation rules defined on the
15
15
  server to the client.
16
16
  3. In the cases where a server-side validation rule would not work on
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ClientSideValidations
3
- VERSION = '4.2.3'.freeze
3
+ VERSION = '4.2.4'.freeze
4
4
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - v4.2.3 (https://github.com/DavyJonesLocker/client_side_validations)
3
+ * Client Side Validations - v4.2.4 (https://github.com/DavyJonesLocker/client_side_validations)
4
4
  * Copyright (c) 2016 Geremia Taglialatela, Brian Cardarella
5
5
  * Licensed under MIT (http://opensource.org/licenses/mit-license.php)
6
6
  */
@@ -653,7 +653,9 @@
653
653
  }
654
654
  };
655
655
 
656
- $(document).bind((window.Turbolinks ? 'page:change' : 'ready'), function() {
656
+ window.ClientSideValidations.event = (window.Turbolinks != null) && window.Turbolinks.supported ? window.Turbolinks.EVENTS != null ? 'page:change' : 'turbolinks:load' : 'ready';
657
+
658
+ $(document).bind(window.ClientSideValidations.event, function() {
657
659
  ClientSideValidations.disableValidators();
658
660
  return $(ClientSideValidations.selectors.forms).validate();
659
661
  });
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: 4.2.3
4
+ version: 4.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-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -105,14 +105,14 @@ dependencies:
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: '1.4'
108
+ version: '1.5'
109
109
  type: :development
110
110
  prerelease: false
111
111
  version_requirements: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '1.4'
115
+ version: '1.5'
116
116
  - !ruby/object:Gem::Dependency
117
117
  name: minitest
118
118
  requirement: !ruby/object:Gem::Requirement
@@ -153,28 +153,28 @@ dependencies:
153
153
  requirements:
154
154
  - - "~>"
155
155
  - !ruby/object:Gem::Version
156
- version: '11.1'
156
+ version: '11.2'
157
157
  type: :development
158
158
  prerelease: false
159
159
  version_requirements: !ruby/object:Gem::Requirement
160
160
  requirements:
161
161
  - - "~>"
162
162
  - !ruby/object:Gem::Version
163
- version: '11.1'
163
+ version: '11.2'
164
164
  - !ruby/object:Gem::Dependency
165
165
  name: rubocop
166
166
  requirement: !ruby/object:Gem::Requirement
167
167
  requirements:
168
168
  - - "~>"
169
169
  - !ruby/object:Gem::Version
170
- version: 0.38.0
170
+ version: 0.40.0
171
171
  type: :development
172
172
  prerelease: false
173
173
  version_requirements: !ruby/object:Gem::Requirement
174
174
  requirements:
175
175
  - - "~>"
176
176
  - !ruby/object:Gem::Version
177
- version: 0.38.0
177
+ version: 0.40.0
178
178
  - !ruby/object:Gem::Dependency
179
179
  name: simplecov
180
180
  requirement: !ruby/object:Gem::Requirement
@@ -209,14 +209,14 @@ dependencies:
209
209
  requirements:
210
210
  - - "~>"
211
211
  - !ruby/object:Gem::Version
212
- version: '8.2'
212
+ version: '9.0'
213
213
  type: :development
214
214
  prerelease: false
215
215
  version_requirements: !ruby/object:Gem::Requirement
216
216
  requirements:
217
217
  - - "~>"
218
218
  - !ruby/object:Gem::Version
219
- version: '8.2'
219
+ version: '9.0'
220
220
  - !ruby/object:Gem::Dependency
221
221
  name: sinatra
222
222
  requirement: !ruby/object:Gem::Requirement
@@ -251,14 +251,14 @@ dependencies:
251
251
  requirements:
252
252
  - - "~>"
253
253
  - !ruby/object:Gem::Version
254
- version: '1.6'
254
+ version: '1.7'
255
255
  type: :development
256
256
  prerelease: false
257
257
  version_requirements: !ruby/object:Gem::Requirement
258
258
  requirements:
259
259
  - - "~>"
260
260
  - !ruby/object:Gem::Version
261
- version: '1.6'
261
+ version: '1.7'
262
262
  - !ruby/object:Gem::Dependency
263
263
  name: json
264
264
  requirement: !ruby/object:Gem::Requirement
@@ -348,7 +348,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
348
348
  version: '0'
349
349
  requirements: []
350
350
  rubyforge_project:
351
- rubygems_version: 2.5.1
351
+ rubygems_version: 2.6.4
352
352
  signing_key:
353
353
  specification_version: 4
354
354
  summary: Client Side Validations