active_model_validators 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +2 -2
- data/README.md +2 -4
- data/lib/active_model_validators/version.rb +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 91bea6b44183cc43ec1cd369427b5c43dffae8e25967d7efdfc617de53629f25
|
4
|
+
data.tar.gz: fc45b0eb4da387154744c3820c2b27667622b3a717af3d25e55ac8c7ac956766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed8a3d692ceb26682c5a3d7487a6c3c76c6506cd00c5299359f5d3a4f9ee05cafe7b6cdba1df410bb05045c3a8d25761e9d71b42c614a81e3752e82cd8b2786e
|
7
|
+
data.tar.gz: a39879d0a3c60d2d37ae724bec72f8880738d3e9e15836f2067e0ee44f6d8ee241f90ed4f8e35a8cd7563c15e51fbb52aa72302a8ca6880766d5a7d826577440
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright
|
1
|
+
Copyright 2023 Virtuozzo
|
2
2
|
|
3
3
|
Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
you may not use this file except in compliance with the License.
|
@@ -10,4 +10,4 @@ Unless required by applicable law or agreed to in writing, software
|
|
10
10
|
distributed under the License is distributed on an "AS IS" BASIS,
|
11
11
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
12
|
See the License for the specific language governing permissions and
|
13
|
-
limitations under the License.
|
13
|
+
limitations under the License.
|
data/README.md
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
<!-- [gem]: [TODO] -->
|
2
|
-
[travis]: https://travis-ci.org/OnApp/active_model_validators
|
3
2
|
|
4
3
|
# ActiveModelValidators
|
5
4
|
|
6
5
|
<!-- [![Gem Version](TODO)][gem] -->
|
7
|
-
[![Build Status](https://travis-ci.org/OnApp/active_model_validators.svg?branch=master)][travis]
|
8
6
|
|
9
7
|
### Installation
|
10
8
|
Add the following code to your `Gemfile`
|
@@ -33,7 +31,7 @@ class Model < ActiveRecord::Base
|
|
33
31
|
# my_model_instance.my_immutable_attribute = 'bar'
|
34
32
|
# my_model_instance.valid? # => false
|
35
33
|
|
36
|
-
validates :
|
34
|
+
validates :my_attribute_with_array, :'active_model_validators/numeric_array' => true
|
37
35
|
# my_model_instance = MyModel.create(my_attribute_with_array: [1,2,3])
|
38
36
|
# my_model_instance.valid? # => true
|
39
37
|
# my_model_instance.my_attribute_with_array = 'I am not an array'
|
@@ -52,4 +50,4 @@ end
|
|
52
50
|
```
|
53
51
|
|
54
52
|
### Licence
|
55
|
-
See [`LICENSE`](LICENSE) file.
|
53
|
+
See [`LICENSE`](LICENSE) file.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_model_validators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Virtuozzo
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -38,8 +38,8 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description:
|
42
|
-
email:
|
41
|
+
description: Virtuozzo ActiveModel validators.
|
42
|
+
email: igor.sidorov@virtuozzo.com
|
43
43
|
executables: []
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
@@ -53,11 +53,11 @@ files:
|
|
53
53
|
- lib/active_model_validators/numeric_array_validator.rb
|
54
54
|
- lib/active_model_validators/url_validator.rb
|
55
55
|
- lib/active_model_validators/version.rb
|
56
|
-
homepage: https://github.com/
|
56
|
+
homepage: https://github.com/virtuozzo/active_model_validators
|
57
57
|
licenses:
|
58
58
|
- Apache 2.0
|
59
59
|
metadata: {}
|
60
|
-
post_install_message:
|
60
|
+
post_install_message:
|
61
61
|
rdoc_options: []
|
62
62
|
require_paths:
|
63
63
|
- lib
|
@@ -72,9 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
|
76
|
-
|
77
|
-
signing_key:
|
75
|
+
rubygems_version: 3.2.16
|
76
|
+
signing_key:
|
78
77
|
specification_version: 4
|
79
78
|
summary: A small handy library to validate active_record models
|
80
79
|
test_files: []
|