servactory 2.5.0.rc6 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/servactory/tool_kit/dynamic_options/format.rb +8 -0
- data/lib/servactory/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e3b9dc1f4b8b79eecd523adef3ce9ae79590bfabe8e019f16f1bc79a239b174
|
4
|
+
data.tar.gz: b888b6236babd65a9e3d216f4ea7186ace4bedf2c5a0036d998882ca2366aa52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03f415e2bced7aa9736f2549bb5ca146cec9805ac9f8d4e85408d5b25c0a092c96a52c3637fcc3a30b01b920786a8e8bfe2710deeb36f7ae2d9e41a419b3f98c
|
7
|
+
data.tar.gz: 7ecc07ca699b36f2a83a7411d0eab78e675a7c161ad2f20c9f9da96250d90342fb41fcfa76b8d002c782ae1bec5312934ab01ab15e44d9885a48fb9fbb4153d5
|
@@ -21,6 +21,14 @@ module Servactory
|
|
21
21
|
pattern: /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{8,16}$/,
|
22
22
|
validator: ->(value:) { value.present? }
|
23
23
|
},
|
24
|
+
duration: {
|
25
|
+
pattern: nil,
|
26
|
+
validator: lambda do |value:|
|
27
|
+
ActiveSupport::Duration.parse(value) and return true
|
28
|
+
rescue ActiveSupport::Duration::ISO8601Parser::ParsingError
|
29
|
+
false
|
30
|
+
end
|
31
|
+
},
|
24
32
|
date: {
|
25
33
|
pattern: nil,
|
26
34
|
validator: lambda do |value:|
|
data/lib/servactory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servactory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.0
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|