client_side_validations 20.0.2 → 21.0.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
2
  SHA256:
3
- metadata.gz: 947a8c3e977a52425b7d60ca031c38ba6aa0e22534704859cf10330f42fc7c64
4
- data.tar.gz: 120c000d994694b6cf98ceb28ed40507a43e28132563a1d03f43dde3bcf9a272
3
+ metadata.gz: d1fde76e476a73b701937d5106237ac4525233bb70f3fe6cacbc8367b66cc85e
4
+ data.tar.gz: 561af4b98912431057feb7eec2ef1ce8493f8a92e741b9f42c5f13ea8c608164
5
5
  SHA512:
6
- metadata.gz: 82dadc40eac82e9b38fca023d4732a8f6a3d835bc29f5b41ffa68345b8366a797c3a224ac0af0c8f50bc0067361c527741cf43bbf0d07779309134914c80231e
7
- data.tar.gz: 125ae43cbb60726874f2ddba6aec7f355ebfb4e5a0e6cf7218cb42b9abb55d100e03f464a835b0b7490bc9232d55f73361cb759a0a3533b758ee0464b87b8717
6
+ metadata.gz: f596d52b77b55949970f9bc4bed5a2086fafc8f4130f65d925587389e45d223382cba6ee0dd4d0debef1cf13d8814ffab29a5a3ea5252925c87649f10fd8f9c0
7
+ data.tar.gz: 8647fa1b7f8e79a8510f71fd7f0e94f0f60aaf948c67925f026f83d6f0c9fed2faefb98d936ee7bcbcb6dc84780f9a5a2b0a44bea04c9d96892714e4a5535d3e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 21.0.0 / 2022-09-18
4
+
5
+ * [FEATURE] Drop Ruby 2.5 support
6
+ * [ENHANCEMENT] Test against latest Ruby versions
7
+ * [ENHANCEMENT] Update development dependencies
8
+ * [ENHANCEMENT] Update QUnit to 2.19.1
9
+ * [ENHANCEMENT] Test against jQuery 3.6.1 by default
10
+
3
11
  ## 20.0.2 / 2021-12-22
4
12
 
5
13
  * [BUGFIX] Fix Rails 7.0 compatibility ([#869](https://github.com/DavyJonesLocker/client_side_validations/issues/869))
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
3
+ Copyright (c) 2022 Geremia Taglialatela, Brian Cardarella
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -543,7 +543,7 @@ on how to properly submit issues and pull requests.
543
543
 
544
544
  ## Legal ##
545
545
 
546
- [DockYard](https://dockyard.com/), LLC © 2012-2021
546
+ [DockYard](https://dockyard.com/), LLC © 2012-2022
547
547
 
548
548
  [@dockyard](https://twitter.com/dockyard)
549
549
 
@@ -16,5 +16,5 @@ end
16
16
 
17
17
  require 'client_side_validations/action_view/form_builder'
18
18
 
19
- ActionView::Base.include ClientSideValidations::ActionView::Helpers::FormHelper
19
+ ActiveSupport.on_load(:action_view) { include ClientSideValidations::ActionView::Helpers::FormHelper }
20
20
  ActionView::Helpers::FormBuilder.prepend ClientSideValidations::ActionView::Helpers::FormBuilder
@@ -7,7 +7,7 @@ module ClientSideValidations
7
7
 
8
8
  def self.included(base)
9
9
  checks =
10
- if base.const_defined?('RESERVED_OPTIONS')
10
+ if base.const_defined?(:RESERVED_OPTIONS)
11
11
  base::RESERVED_OPTIONS - [:only_integer]
12
12
  else
13
13
  base::CHECKS.keys
@@ -3,6 +3,6 @@
3
3
  require 'client_side_validations/active_model'
4
4
  require 'client_side_validations/extender'
5
5
 
6
- ActiveRecord::Base.include ClientSideValidations::ActiveModel::Validations
6
+ ActiveSupport.on_load(:active_record) { include ClientSideValidations::ActiveModel::Validations }
7
7
 
8
8
  ClientSideValidations::Extender.extend 'ActiveRecord', %w[Uniqueness]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClientSideValidations
4
- VERSION = '20.0.2'
4
+ VERSION = '21.0.0'
5
5
  end
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Client Side Validations JS - v0.3.0 (https://github.com/DavyJonesLocker/client_side_validations)
3
- * Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
3
+ * Copyright (c) 2022 Geremia Taglialatela, Brian Cardarella
4
4
  * Licensed under MIT (https://opensource.org/licenses/mit-license.php)
5
5
  */
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: 20.0.2
4
+ version: 21.0.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: 2021-12-22 00:00:00.000000000 Z
12
+ date: 2022-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -37,14 +37,14 @@ dependencies:
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.1'
40
+ version: '3.7'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.1'
47
+ version: '3.7'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: appraisal
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -79,42 +79,42 @@ dependencies:
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.5'
82
+ version: '1.6'
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: '1.5'
89
+ version: '1.6'
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: minitest
92
92
  requirement: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '5.14'
96
+ version: '5.16'
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: '5.14'
103
+ version: '5.16'
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: mocha
106
106
  requirement: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.13'
110
+ version: '1.14'
111
111
  type: :development
112
112
  prerelease: false
113
113
  version_requirements: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.13'
117
+ version: '1.14'
118
118
  - !ruby/object:Gem::Dependency
119
119
  name: rake
120
120
  requirement: !ruby/object:Gem::Requirement
@@ -163,14 +163,14 @@ dependencies:
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '1.4'
166
+ version: '1.5'
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: '1.4'
173
+ version: '1.5'
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: shotgun
176
176
  requirement: !ruby/object:Gem::Requirement
@@ -191,14 +191,14 @@ dependencies:
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '2.1'
194
+ version: '2.2'
195
195
  type: :development
196
196
  prerelease: false
197
197
  version_requirements: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '2.1'
201
+ version: '2.2'
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: webrick
204
204
  requirement: !ruby/object:Gem::Requirement
@@ -271,14 +271,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
271
271
  requirements:
272
272
  - - ">="
273
273
  - !ruby/object:Gem::Version
274
- version: '2.5'
274
+ version: '2.6'
275
275
  required_rubygems_version: !ruby/object:Gem::Requirement
276
276
  requirements:
277
277
  - - ">="
278
278
  - !ruby/object:Gem::Version
279
279
  version: '0'
280
280
  requirements: []
281
- rubygems_version: 3.1.6
281
+ rubygems_version: 3.3.12
282
282
  signing_key:
283
283
  specification_version: 4
284
284
  summary: Client Side Validations