servactory 2.5.0.rc6 → 2.5.0.rc7

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: bf2fb8cd65c29e7a289a894ab2e76967b0bbea248d401242f4585319499e9ac1
4
+ data.tar.gz: 6abc26c7f3794bb4d2c25c32ac0e72551e18db64579f5b12973e9631cf799742
5
5
  SHA512:
6
- metadata.gz: '0847386548d522669a7faf2ad1fc86a41a10cec8d19b1f7c1263b8b842210b236f0c84f1fc9e1bedbd196594031b0e79e20cbaece5e5b5b2bde6efcd458ae14c'
7
- data.tar.gz: d8bf8ebff755faebe4d7ccdefe9ab412a79e33b6b9ab888537d1a0cae7b19e78fa57b36d4e387cccdc451c37f1a2443ef5d09b6eb79118526145a8b1491581f8
6
+ metadata.gz: 4f56bf7de98905ca33b42d08ad34aeaa4572b36292b169c404761f195ca69679fa19789f85c19b9d314bbdbe40ff988062072b4e7dc7740671af1208ae56fc0f
7
+ data.tar.gz: 4c2497680b3dba26064869548dff8aae78de2abd59a97b80c717a8df40c0a184ddad22ae2e9293d23200d9bf7395f5b661fbbd29b847c68f0832656f972528c7
@@ -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 = "rc7"
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.rc7
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-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport