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: 3f3a86c43a64845d17a62ceaab0fa845ebf9adac
4
- data.tar.gz: 48bfe8322a7cfaa059e41f58951ecba876c4bba9
3
+ metadata.gz: 155b33e90db6430cf62b5a60e825e5f663c3c71c
4
+ data.tar.gz: 2b4aeb977ab6688a4edfb46cab7d733cb0d83712
5
5
  SHA512:
6
- metadata.gz: 5b516873173fc70b07c3ba6e01101ce19ebd517a71e33c241fa8a8479a261fcb254f2eb96827a563b2726f429459d2376fe88767349748df5b661e40ff9ba336
7
- data.tar.gz: 51a23f2d82686d89ed27840bf8742cf7db2beebb3e3576bc7b4e388e459eb67ef631f51c61b843176a36b8db69aadd3c735edc2cb1e9c4f3135ab7257ef0ec5d
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
- fail ClientSideValidations::ActionView::Helpers::FormHelper::Error, 'Using form_for(:name, @resource) is not supported with ClientSideValidations. Please use form_for(@resource, as: :name) instead.'
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
- !klass.where(relation).exists?
16
+ klass.where(relation).empty?
17
17
  end
18
18
 
19
19
  def self.sql_statement(klass, attribute, value, params)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ClientSideValidations
3
- VERSION = '4.2.2'.freeze
3
+ VERSION = '4.2.3'.freeze
4
4
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - v4.2.2 (https://github.com/DavyJonesLocker/client_side_validations)
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.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-02-28 00:00:00.000000000 Z
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.12
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.12
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.37.2
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.37.2
177
+ version: 0.38.0
164
178
  - !ruby/object:Gem::Dependency
165
179
  name: simplecov
166
180
  requirement: !ruby/object:Gem::Requirement