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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe966e4418033cec85b4d0f335a4cbfaefc5fe65e2c510bfec9a755601a088c7
4
- data.tar.gz: b6bf04ea33fc1e3f5307406ea848fb2fb65117ec697339c99b581796ff4f568e
3
+ metadata.gz: 5e3b9dc1f4b8b79eecd523adef3ce9ae79590bfabe8e019f16f1bc79a239b174
4
+ data.tar.gz: b888b6236babd65a9e3d216f4ea7186ace4bedf2c5a0036d998882ca2366aa52
5
5
  SHA512:
6
- metadata.gz: '0847386548d522669a7faf2ad1fc86a41a10cec8d19b1f7c1263b8b842210b236f0c84f1fc9e1bedbd196594031b0e79e20cbaece5e5b5b2bde6efcd458ae14c'
7
- data.tar.gz: d8bf8ebff755faebe4d7ccdefe9ab412a79e33b6b9ab888537d1a0cae7b19e78fa57b36d4e387cccdc451c37f1a2443ef5d09b6eb79118526145a8b1491581f8
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:|
@@ -5,7 +5,7 @@ module Servactory
5
5
  MAJOR = 2
6
6
  MINOR = 5
7
7
  PATCH = 0
8
- PRE = "rc6"
8
+ PRE = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
11
11
  end
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.rc6
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-24 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport