client_side_validations 11.0.0 → 11.1.0

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
- SHA1:
3
- metadata.gz: 7b12e94a9904b5e558739d60fd18acc2b0412c08
4
- data.tar.gz: 3d8a0892aeb96e18f017b60f70cc6df27c6dfcb1
2
+ SHA256:
3
+ metadata.gz: b77f89ee672faa4271cf1a614822a579e6e04d75892830e52cdac63cf15218f2
4
+ data.tar.gz: 92f66d7e69220221bbe2a46b3b0926cd1e56c5ad3b75460fcf273eb44a7e312f
5
5
  SHA512:
6
- metadata.gz: a67ca10301f05fdbc9ce9b1fdf619f0a8ef47a5d55b7ad3b569f4eebbfacebb1c0e60c525ea123b2e4ee918f824ed369ac151cea933af83623ddc33c6354e27e
7
- data.tar.gz: e61947d28c58c11615d84b988a6b94d49ed5c2888c07de793bfe2bcd9dad3dc2546d5eda74af5b28d7f1c539b5eede57ff500f7dca9cdbb668f0d7706b71ea51
6
+ metadata.gz: cae55380d0420d3a9fce634c42878ef37c33b47bada9a60e0c40dcc3383908854cd6b60e58ae6d87468e32ffb3dadd9b53f8d14a22c7e0adef829e3d32406253
7
+ data.tar.gz: 922fb5f338fd08f8caa6124639f65ce5a0c8f765e97273e7a077b232c62830432042b94eaa627273b0731f5a55ca5307d5e10f3072cc168a8d783b9df741ab0e
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 11.1.0 / 2018-02-02
4
+
5
+ * [FEATURE] Rails 5.2 support
6
+ * [ENHANCEMENT] Test against Ruby 2.2.9, 2.3.6, 2.4.3, and 2.5.0
7
+ * [ENHANCEMENT] Test against jQuery 3.3.1
8
+ * [ENHANCEMENT] Update development dependencies
9
+
3
10
  ## 11.0.0 / 2017-11-29
4
11
 
5
12
  * [BUGFIX] Fix association validations (potential breaking change) ([#712](https://github.com/DavyJonesLocker/client_side_validations/issues/712))
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/client_side_validations.svg)](http://badge.fury.io/rb/client_side_validations)
4
4
  [![Build Status](https://secure.travis-ci.org/DavyJonesLocker/client_side_validations.svg?branch=master)](https://travis-ci.org/DavyJonesLocker/client_side_validations)
5
5
  [![Dependency Status](https://gemnasium.com/badges/github.com/DavyJonesLocker/client_side_validations.svg)](https://gemnasium.com/github.com/DavyJonesLocker/client_side_validations)
6
- [![Code Climate](https://codeclimate.com/github/DavyJonesLocker/client_side_validations/badges/gpa.svg)](https://codeclimate.com/github/DavyJonesLocker/client_side_validations)
6
+ [![Maintainability](https://api.codeclimate.com/v1/badges/9f9e8bb6edc92615f34e/maintainability)](https://codeclimate.com/github/DavyJonesLocker/client_side_validations/maintainability)
7
7
  [![Coverage Status](https://coveralls.io/repos/github/DavyJonesLocker/client_side_validations/badge.svg?branch=master)](https://coveralls.io/github/DavyJonesLocker/client_side_validations?branch=master)
8
8
 
9
9
  `ClientSideValidations` made easy for your Rails 5 applications!
@@ -6,7 +6,7 @@ module ClientSideValidations
6
6
  module FormBuilder
7
7
  def self.prepended(base)
8
8
  (base.field_helpers - %i[label check_box radio_button fields_for hidden_field file_field]).each do |selector|
9
- base.class_eval <<-RUBY_EVAL
9
+ base.class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
10
10
  def #{selector}(method, options = {})
11
11
  build_validation_options(method, options)
12
12
  options.delete(:validate)
@@ -32,7 +32,7 @@ module ClientSideValidations
32
32
 
33
33
  def validate(*attrs)
34
34
  options = attrs.pop if attrs.last.is_a?(Hash)
35
- (attrs.present? ? attrs : @object._validators.keys).each do |attr|
35
+ (attrs.presence || @object._validators.keys).each do |attr|
36
36
  build_validation_options(attr, validate: options)
37
37
  end
38
38
  nil
@@ -29,7 +29,7 @@ module ClientSideValidations
29
29
  end
30
30
  when String
31
31
  # rubocop:disable Security/Eval'
32
- l = eval "lambda { |value| #{conditional} }"
32
+ l = eval("lambda { |value| #{conditional} }", binding, __FILE__, __LINE__)
33
33
  # rubocop:enable Security/Eval'
34
34
  instance_exec(nil, &l)
35
35
  when Symbol
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClientSideValidations
4
- VERSION = '11.0.0'.freeze
4
+ VERSION = '11.1.0'.freeze
5
5
  end
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - v11.0.0 (https://github.com/DavyJonesLocker/client_side_validations)
4
- * Copyright (c) 2017 Geremia Taglialatela, Brian Cardarella
3
+ * Client Side Validations - v11.1.0 (https://github.com/DavyJonesLocker/client_side_validations)
4
+ * Copyright (c) 2018 Geremia Taglialatela, Brian Cardarella
5
5
  * Licensed under MIT (http://opensource.org/licenses/mit-license.php)
6
6
  */
7
7
 
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: 11.0.0
4
+ version: 11.1.0
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-11-29 00:00:00.000000000 Z
12
+ date: 2018-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: 5.0.0.1
21
21
  - - "<="
22
22
  - !ruby/object:Gem::Version
23
- version: 5.2.0.beta2
23
+ version: '6.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: 5.0.0.1
31
31
  - - "<="
32
32
  - !ruby/object:Gem::Version
33
- version: 5.2.0.beta2
33
+ version: '6.0'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: jquery-rails
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -79,14 +79,14 @@ dependencies:
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '9.1'
82
+ version: '10.0'
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '9.1'
89
+ version: '10.0'
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: coveralls_reborn
92
92
  requirement: !ruby/object:Gem::Requirement
@@ -121,14 +121,14 @@ dependencies:
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '5.10'
124
+ version: '5.11'
125
125
  type: :development
126
126
  prerelease: false
127
127
  version_requirements: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '5.10'
131
+ version: '5.11'
132
132
  - !ruby/object:Gem::Dependency
133
133
  name: mocha
134
134
  requirement: !ruby/object:Gem::Requirement
@@ -163,14 +163,14 @@ dependencies:
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.51.0
166
+ version: 0.52.1
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.51.0
173
+ version: 0.52.1
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: simplecov
176
176
  requirement: !ruby/object:Gem::Requirement
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  version: '0'
317
317
  requirements: []
318
318
  rubyforge_project:
319
- rubygems_version: 2.6.13
319
+ rubygems_version: 2.7.3
320
320
  signing_key:
321
321
  specification_version: 4
322
322
  summary: Client Side Validations