can_has_validations 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{MIT-LICENSE → LICENSE.txt} +1 -1
- data/lib/can_has_validations/validators/ipaddr_validator.rb +1 -3
- data/lib/can_has_validations/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +44 -0
- data/test/dummy/tmp/local_secret.txt +1 -0
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f635564611bf5299054332c630d3a8b79f35df7d7043c2c5fa69916fb9b1c6d
|
4
|
+
data.tar.gz: f4285094a1ce68e23afbadfa184e15a369b80fc17cf7b7f3c3290d03a33ae0b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf8882a6d062c0cb28820fd8fcdd8807033e9a70a7ad870cf601e3358cba9f583d83e42e64a340da811c4d54e20713266c93d21cc23626098aebbbc02491fc64
|
7
|
+
data.tar.gz: aaabdb88bc3eded9d74a7bdbaac39a2ea3fb7d66a33a7b9fc6cc3e7b2e6d4975b7203feb18e1e4d7f6f0042b5a5755c942d1886d5f1cae5064e3b9daf88e101a
|
data/{MIT-LICENSE → LICENSE.txt}
RENAMED
@@ -72,15 +72,13 @@ module ActiveModel::Validations
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def resolve_array(record, val)
|
75
|
-
|
75
|
+
if val.respond_to?(:call)
|
76
76
|
val.call(record)
|
77
77
|
elsif val.is_a?(Symbol)
|
78
78
|
record.send(val)
|
79
79
|
else
|
80
80
|
val
|
81
81
|
end
|
82
|
-
# raise "#{val.inspect} did not resolve to an Array of IPAddr" unless res.is_a?(Array) && res.all?{|r| r.is_a?(IPAddr)}
|
83
|
-
# res
|
84
82
|
end
|
85
83
|
|
86
84
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -11,5 +11,49 @@ CanHasValidationsTest: test_truth
|
|
11
11
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
12
12
|
---------------------------------
|
13
13
|
CanHasValidationsTest: test_truth
|
14
|
+
---------------------------------
|
15
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
16
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
17
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
18
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
19
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
20
|
+
---------------------------------
|
21
|
+
CanHasValidationsTest: test_truth
|
22
|
+
---------------------------------
|
23
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
25
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
26
|
+
---------------------------------
|
27
|
+
CanHasValidationsTest: test_truth
|
28
|
+
---------------------------------
|
29
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
30
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
31
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
32
|
+
---------------------------------
|
33
|
+
CanHasValidationsTest: test_truth
|
34
|
+
---------------------------------
|
35
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
36
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
37
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
38
|
+
---------------------------------
|
39
|
+
CanHasValidationsTest: test_truth
|
40
|
+
---------------------------------
|
41
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
42
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
43
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
44
|
+
---------------------------------
|
45
|
+
CanHasValidationsTest: test_truth
|
46
|
+
---------------------------------
|
47
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
48
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
49
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
50
|
+
---------------------------------
|
51
|
+
CanHasValidationsTest: test_truth
|
52
|
+
---------------------------------
|
53
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
54
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
55
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
56
|
+
---------------------------------
|
57
|
+
CanHasValidationsTest: test_truth
|
14
58
|
---------------------------------
|
15
59
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
@@ -0,0 +1 @@
|
|
1
|
+
61a3c8e99a7b6cc0bb0f95a6ae452d5b035a9b9d0ff2f176f3a0726e9b80c930654d3c14096e5f0db05bcf7cc079f0a68a94c2ff61e27a40d6ed12d1544c112f
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: can_has_validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thomas morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -48,16 +48,16 @@ dependencies:
|
|
48
48
|
name: sqlite3
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '1.4'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '1.4'
|
61
61
|
description: 'Assorted Rails 5.x-7.x validators: Array, Email, Existence, Grandparent,
|
62
62
|
Hash keys, Hash values, Hostname, IP address, Ordering, URL, Write Once'
|
63
63
|
email:
|
@@ -66,7 +66,7 @@ executables: []
|
|
66
66
|
extensions: []
|
67
67
|
extra_rdoc_files: []
|
68
68
|
files:
|
69
|
-
-
|
69
|
+
- LICENSE.txt
|
70
70
|
- README.md
|
71
71
|
- Rakefile
|
72
72
|
- lib/can_has_validations.rb
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- test/dummy/public/favicon.ico
|
127
127
|
- test/dummy/script/rails
|
128
128
|
- test/dummy/tmp/development_secret.txt
|
129
|
+
- test/dummy/tmp/local_secret.txt
|
129
130
|
- test/test_helper.rb
|
130
131
|
homepage: https://github.com/zarqman/can_has_validations
|
131
132
|
licenses:
|
@@ -146,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
147
|
- !ruby/object:Gem::Version
|
147
148
|
version: '0'
|
148
149
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
150
|
+
rubygems_version: 3.5.11
|
150
151
|
signing_key:
|
151
152
|
specification_version: 4
|
152
153
|
summary: Assorted Rails 5.x-7.x validators
|
@@ -191,4 +192,5 @@ test_files:
|
|
191
192
|
- test/dummy/public/favicon.ico
|
192
193
|
- test/dummy/script/rails
|
193
194
|
- test/dummy/tmp/development_secret.txt
|
195
|
+
- test/dummy/tmp/local_secret.txt
|
194
196
|
- test/test_helper.rb
|