client_side_validations-simple_form 3.4.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6882ce2260d8ac0c19b8403cf7b6c052f0f051a5
4
- data.tar.gz: 5d71db48f24bcc8aefa3278a8eeb960b11b5b9ee
3
+ metadata.gz: 423596a1832554f591ee1eb9afe0b65fa8eb6d7c
4
+ data.tar.gz: 654ad69e2249efbf7966572332a99fbc2b877cf0
5
5
  SHA512:
6
- metadata.gz: 5c9369423aae45e507c11332e2f7854280df531d1bc366d0aa9084960276f4fb5b0dc90fa381711705786cbe1b4efc44638192c98d6806b10711ef83b54e8b45
7
- data.tar.gz: 5e7b2a10f419840a5348d23eff8b19dee785c9456e88cfd3961ff8d5831d4dba5a11bc378ad83e5a0db40a3c8b3512e77d00b3c58b70df332746e2299b620394
6
+ metadata.gz: 93cafeabb7141d27283cc7b467ccc6d07219bcb6ad93be09be1409b9d00343bc0b5e48a9be240fcbd0a7c4326a81c74851e0bec5aad9da4f0967bcaea4fa425e
7
+ data.tar.gz: 0fa94487809f3de8842bf01f4479ee5d94b8ac4ddc717da5727a1aaad3543bf6c77132d5aaec44a863bee0eca8329934b0fe6d622fd91a4a533f9db8ce18858c
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 5.0.0 (2017-01-20)
4
+
5
+ * ClientSideValidations 6.0 compatibility
data/README.md CHANGED
@@ -73,11 +73,6 @@ Per-input options are done with `:validate`
73
73
 
74
74
  This gem follows [Semantic Versioning](http://semver.org)
75
75
 
76
- Major and minor version numbers will follow `simple_form`'s major and
77
- minor version numbers. For example,
78
- `client_side_validations-simple_form-3.4.0` will be compatible up to
79
- `~> simple_form-3.4.0`
80
-
81
76
  ## Want to help? ##
82
77
 
83
78
  Please do! We are always looking to improve this gem. Please see our
@@ -86,7 +81,7 @@ on how to properly submit issues and pull requests.
86
81
 
87
82
  ## Legal ##
88
83
 
89
- [DockYard](https://dockyard.com/), LLC © 2012-2016
84
+ [DockYard](https://dockyard.com/), LLC © 2012-2017
90
85
 
91
86
  [@dockyard](https://twitter.com/dockyard)
92
87
 
@@ -1,12 +1,6 @@
1
1
  module ClientSideValidations
2
2
  module SimpleForm
3
3
  module FormBuilder
4
- def self.included(base)
5
- base.class_eval do
6
- alias_method_chain :input, :client_side_validations
7
- end
8
- end
9
-
10
4
  def client_side_form_settings(options, _form_helper)
11
5
  {
12
6
  type: self.class.to_s,
@@ -19,17 +13,17 @@ module ClientSideValidations
19
13
  }
20
14
  end
21
15
 
22
- def input_with_client_side_validations(attribute_name, options = {}, &block)
16
+ def input(attribute_name, options = {}, &block)
23
17
  if options.key?(:validate)
24
18
  options[:input_html] ||= {}
25
19
  options[:input_html][:validate] = options[:validate]
26
20
  options.delete(:validate)
27
21
  end
28
22
 
29
- input_without_client_side_validations(attribute_name, options, &block)
23
+ super(attribute_name, options, &block)
30
24
  end
31
25
  end
32
26
  end
33
27
  end
34
28
 
35
- SimpleForm::FormBuilder.send(:include, ClientSideValidations::SimpleForm::FormBuilder)
29
+ SimpleForm::FormBuilder.send(:prepend, ClientSideValidations::SimpleForm::FormBuilder)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module ClientSideValidations
3
3
  module SimpleForm
4
- VERSION = '3.4.0'.freeze
4
+ VERSION = '5.0.0'.freeze
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - SimpleForm - v3.4.0 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
3
+ * Client Side Validations - SimpleForm - v5.0.0 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
4
4
  * Copyright (c) 2017 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-simple_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 5.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: 2017-01-19 00:00:00.000000000 Z
12
+ date: 2017-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: client_side_validations
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 4.2.12
20
+ version: '6.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 4.2.12
27
+ version: '6.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: simple_form
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -177,14 +177,14 @@ dependencies:
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '1.4'
180
+ version: 2.0.0.beta2
181
181
  type: :development
182
182
  prerelease: false
183
183
  version_requirements: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '1.4'
187
+ version: 2.0.0.beta2
188
188
  - !ruby/object:Gem::Dependency
189
189
  name: shotgun
190
190
  requirement: !ruby/object:Gem::Requirement
@@ -235,6 +235,7 @@ executables: []
235
235
  extensions: []
236
236
  extra_rdoc_files: []
237
237
  files:
238
+ - CHANGELOG.md
238
239
  - README.md
239
240
  - lib/client_side_validations/generators/simple_form.rb
240
241
  - lib/client_side_validations/simple_form.rb
@@ -246,10 +247,7 @@ homepage: https://github.com/DavyJonesLocker/client_side_validations-simple_form
246
247
  licenses:
247
248
  - MIT
248
249
  metadata: {}
249
- post_install_message: |-
250
- *** POTENTIAL BREAKING CHANGE ***
251
- If you are upgrading from client_side_validations-simple_form <= 3.2.1,
252
- please take a look at https://goo.gl/j70wIR
250
+ post_install_message:
253
251
  rdoc_options: []
254
252
  require_paths:
255
253
  - lib
@@ -265,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
263
  version: '0'
266
264
  requirements: []
267
265
  rubyforge_project:
268
- rubygems_version: 2.5.2
266
+ rubygems_version: 2.6.8
269
267
  signing_key:
270
268
  specification_version: 4
271
269
  summary: SimpleForm Plugin for ClientSideValidations