servactory 2.5.0.rc3 → 2.5.0.rc4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '03950ff6fd385cfe8ba4506f2eb4dc7c2dc94dcf838d2a10b783e25e6b290af6'
|
4
|
+
data.tar.gz: 64182d91fa7a9042cefb99ec422d3710761f8ab412a8b00184c324bae23debfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f85e47114458349c416a1a64d69098d29a67b8d837025acff53acc91885225c9ecab6036422fcd269793f5cdd22a90fe6ba0b8899074dde10837a6e0989b0cc3
|
7
|
+
data.tar.gz: 96bfba7a9fdc2c763ed8ab4b355a966053fa2a1f0e7bd365bbaa7f51dda089edc30ed00a61566e25252fa12df07eac7e327fb814d5dcb6b77d474f5e3718e1e7
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
<p align="center">
|
16
16
|
<a href="https://rubygems.org/gems/servactory"><img src="https://img.shields.io/gem/v/servactory?logo=rubygems&logoColor=fff" alt="Gem version"></a>
|
17
|
-
<a href="https://github.com/
|
17
|
+
<a href="https://github.com/servactory/servactory/releases"><img src="https://img.shields.io/github/release-date/servactory/servactory" alt="Release Date"></a>
|
18
18
|
</p>
|
19
19
|
|
20
20
|
## Documentation
|
@@ -213,7 +213,7 @@ module Servactory
|
|
213
213
|
)
|
214
214
|
end
|
215
215
|
|
216
|
-
def register_prepare_option # rubocop:disable Metrics/MethodLength
|
216
|
+
def register_prepare_option # rubocop:disable Metrics/MethodLength
|
217
217
|
collection << Servactory::Maintenance::Attributes::Option.new(
|
218
218
|
name: :prepare,
|
219
219
|
attribute: @attribute,
|
@@ -3,16 +3,24 @@
|
|
3
3
|
module Servactory
|
4
4
|
module ToolKit
|
5
5
|
module DynamicOptions
|
6
|
-
class Format < Must
|
6
|
+
class Format < Must # rubocop:disable Metrics/ClassLength
|
7
7
|
DEFAULT_FORMATS = {
|
8
|
-
|
9
|
-
pattern: /^
|
10
|
-
validator: ->(value:) {
|
8
|
+
uuid: {
|
9
|
+
pattern: /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,
|
10
|
+
validator: ->(value:) { value.present? }
|
11
11
|
},
|
12
12
|
email: {
|
13
13
|
pattern: URI::MailTo::EMAIL_REGEXP,
|
14
14
|
validator: ->(value:) { value.present? }
|
15
15
|
},
|
16
|
+
password: {
|
17
|
+
# NOTE: Pattern 4 » https://dev.to/rasaf_ibrahim/write-regex-password-validation-like-a-pro-5175
|
18
|
+
# Password must contain one digit from 1 to 9, one lowercase letter, one
|
19
|
+
# uppercase letter, and one underscore, and it must be 8-16 characters long.
|
20
|
+
# Usage of any other special character and usage of space is optional.
|
21
|
+
pattern: /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{8,16}$/,
|
22
|
+
validator: ->(value:) { value.present? }
|
23
|
+
},
|
16
24
|
date: {
|
17
25
|
pattern: nil,
|
18
26
|
validator: lambda do |value:|
|
@@ -29,14 +37,6 @@ module Servactory
|
|
29
37
|
false
|
30
38
|
end
|
31
39
|
},
|
32
|
-
password: {
|
33
|
-
# NOTE: Pattern 4 » https://dev.to/rasaf_ibrahim/write-regex-password-validation-like-a-pro-5175
|
34
|
-
# Password must contain one digit from 1 to 9, one lowercase letter, one
|
35
|
-
# uppercase letter, and one underscore, and it must be 8-16 characters long.
|
36
|
-
# Usage of any other special character and usage of space is optional.
|
37
|
-
pattern: /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{8,16}$/,
|
38
|
-
validator: ->(value:) { value.present? }
|
39
|
-
},
|
40
40
|
time: {
|
41
41
|
pattern: nil,
|
42
42
|
validator: lambda do |value:|
|
@@ -44,6 +44,10 @@ module Servactory
|
|
44
44
|
rescue ArgumentError
|
45
45
|
false
|
46
46
|
end
|
47
|
+
},
|
48
|
+
boolean: {
|
49
|
+
pattern: /^(true|false|0|1)$/i,
|
50
|
+
validator: ->(value:) { %w[true 1].include?(value&.downcase) }
|
47
51
|
}
|
48
52
|
}.freeze
|
49
53
|
private_constant :DEFAULT_FORMATS
|
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.rc4
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -341,15 +341,15 @@ files:
|
|
341
341
|
- lib/servactory/tool_kit/dynamic_options/must.rb
|
342
342
|
- lib/servactory/utils.rb
|
343
343
|
- lib/servactory/version.rb
|
344
|
-
homepage: https://github.com/
|
344
|
+
homepage: https://github.com/servactory/servactory
|
345
345
|
licenses:
|
346
346
|
- MIT
|
347
347
|
metadata:
|
348
|
-
homepage_uri: https://github.com/
|
348
|
+
homepage_uri: https://github.com/servactory/servactory
|
349
349
|
documentation_uri: https://servactory.com
|
350
|
-
source_code_uri: https://github.com/
|
351
|
-
bug_tracker_uri: https://github.com/
|
352
|
-
changelog_uri: https://github.com/
|
350
|
+
source_code_uri: https://github.com/servactory/servactory
|
351
|
+
bug_tracker_uri: https://github.com/servactory/servactory/issues
|
352
|
+
changelog_uri: https://github.com/servactory/servactory/blob/master/CHANGELOG.md
|
353
353
|
rubygems_mfa_required: 'true'
|
354
354
|
post_install_message:
|
355
355
|
rdoc_options: []
|