client_side_validations 4.2.2 → 4.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 155b33e90db6430cf62b5a60e825e5f663c3c71c
|
4
|
+
data.tar.gz: 2b4aeb977ab6688a4edfb46cab7d733cb0d83712
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7391469f5e8e7ccd8d5ff46b2d2c4f7aad354850c62d578d8336480c49d4f28d188a11b35d75ef3d2385cc1903cf16f7179f22a59a2c1e74cd558baf8772c76b
|
7
|
+
data.tar.gz: 81b1baecf7882350643146fafb7258b23e7ffe9ba919b89c283e0c74026f322fcb50f0a659a52d8ade1551a6fc595d6c38c6875abc0886fed3eb337a3996dfaa
|
data/HISTORY.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
## Version 4.2
|
4
4
|
|
5
|
+
* [v4.2.3](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.2...v4.2.3)
|
5
6
|
* [v4.2.2](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.1...v4.2.2)
|
6
7
|
* [v4.2.1](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.0...v4.2.1)
|
7
8
|
* [v4.2.0](https://github.com/DavyJonesLocker/client_side_validations/compare/v3.2.6...v4.2.0)
|
@@ -16,7 +16,7 @@ module ClientSideValidations
|
|
16
16
|
|
17
17
|
case record
|
18
18
|
when String, Symbol
|
19
|
-
|
19
|
+
raise ClientSideValidations::ActionView::Helpers::FormHelper::Error, 'Using form_for(:name, @resource) is not supported with ClientSideValidations. Please use form_for(@resource, as: :name) instead.'
|
20
20
|
else
|
21
21
|
object = record.is_a?(Array) ? record.last : record
|
22
22
|
object_name = options[:as] || model_name_from_record_or_class(object).param_key
|
@@ -13,7 +13,7 @@ module ClientSideValidations
|
|
13
13
|
sql = sql_statement(klass, attribute, value, params)
|
14
14
|
relation = Arel::Nodes::SqlLiteral.new(sql)
|
15
15
|
|
16
|
-
|
16
|
+
klass.where(relation).empty?
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.sql_statement(klass, attribute, value, params)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Client Side Validations - v4.2.
|
3
|
+
* Client Side Validations - v4.2.3 (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
|
*/
|
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.
|
4
|
+
version: 4.2.3
|
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-
|
12
|
+
date: 2016-03-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -91,14 +91,14 @@ dependencies:
|
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.8.
|
94
|
+
version: 0.8.13
|
95
95
|
type: :development
|
96
96
|
prerelease: false
|
97
97
|
version_requirements: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
99
|
- - "~>"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.8.
|
101
|
+
version: 0.8.13
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: m
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,20 +147,34 @@ dependencies:
|
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '1.1'
|
150
|
+
- !ruby/object:Gem::Dependency
|
151
|
+
name: rake
|
152
|
+
requirement: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - "~>"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '11.1'
|
157
|
+
type: :development
|
158
|
+
prerelease: false
|
159
|
+
version_requirements: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - "~>"
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '11.1'
|
150
164
|
- !ruby/object:Gem::Dependency
|
151
165
|
name: rubocop
|
152
166
|
requirement: !ruby/object:Gem::Requirement
|
153
167
|
requirements:
|
154
168
|
- - "~>"
|
155
169
|
- !ruby/object:Gem::Version
|
156
|
-
version: 0.
|
170
|
+
version: 0.38.0
|
157
171
|
type: :development
|
158
172
|
prerelease: false
|
159
173
|
version_requirements: !ruby/object:Gem::Requirement
|
160
174
|
requirements:
|
161
175
|
- - "~>"
|
162
176
|
- !ruby/object:Gem::Version
|
163
|
-
version: 0.
|
177
|
+
version: 0.38.0
|
164
178
|
- !ruby/object:Gem::Dependency
|
165
179
|
name: simplecov
|
166
180
|
requirement: !ruby/object:Gem::Requirement
|