lab42_basic_constraints 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/lab42/basic_constraints.rb +6 -1
- data/lib/lab42/basic_constraints/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: 3b45fe31c02e9d5b8af02c460fe8781874dd2b3f0c19f419b690dc60e97c18f2
|
4
|
+
data.tar.gz: 7529df0b29f3e45bc2c834f87121781f249c349f23cb98cbeac16a9fa205bc9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 136febaf26828a638987b15cf3c609ef92857dfd0f39a3e9ad9a9e167b846e4ff1352a3e701785a323640c33e081f4d1f9efbb157f37b6700a53d64a8e9e442d
|
7
|
+
data.tar.gz: f772a3451790ca64d83de8e2c4375ac21b3f43e7700e1b37333257d6b9a8c812b7a32978159f47ba662e8257fa6c8cb99324d9b62ee2a923a9c5c47f0aba1de2
|
data/README.md
CHANGED
@@ -25,11 +25,12 @@ Then All Basic Constraints can be listed by means of `BC.all_constraints`
|
|
25
25
|
bool
|
26
26
|
date date_time day
|
27
27
|
hour
|
28
|
+
int
|
28
29
|
lowercase_string
|
29
30
|
minute month
|
30
|
-
non_empty_string non_negative_float non_negative_int non_negative_number
|
31
|
+
non_empty_string non_negative_float non_negative_int non_negative_number number
|
31
32
|
positive_float positive_int positive_number
|
32
|
-
second
|
33
|
+
second string
|
33
34
|
time
|
34
35
|
uppercase_string
|
35
36
|
year
|
@@ -13,6 +13,8 @@ module Lab42
|
|
13
13
|
|
14
14
|
hour: :not_yet_implemented,
|
15
15
|
|
16
|
+
int: Integer,
|
17
|
+
|
16
18
|
lowercase_string: :not_yet_implemented,
|
17
19
|
|
18
20
|
minute: :not_yet_implemented,
|
@@ -21,14 +23,15 @@ module Lab42
|
|
21
23
|
non_empty_string: :not_yet_implemented,
|
22
24
|
non_negative_float: :not_yet_implemented,
|
23
25
|
non_negative_int: :non_negative_int,
|
24
|
-
|
25
26
|
non_negative_number: :not_yet_implemented,
|
27
|
+
number: :not_yet_implemented,
|
26
28
|
|
27
29
|
positive_float: :not_yet_implemented,
|
28
30
|
positive_int: :not_yet_implemented,
|
29
31
|
positive_number: :positive_number,
|
30
32
|
|
31
33
|
second: :not_yet_implemented,
|
34
|
+
string: String,
|
32
35
|
|
33
36
|
time: :not_yet_implemented,
|
34
37
|
|
@@ -49,6 +52,8 @@ module Lab42
|
|
49
52
|
Constraint.new(name, &cons)
|
50
53
|
when Symbol
|
51
54
|
Implementation.send(cons, *args, **kwds)
|
55
|
+
when Class
|
56
|
+
Constraint.new(name){ cons === _1 }
|
52
57
|
end
|
53
58
|
end
|
54
59
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lab42_basic_constraints
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Dober
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
rubygems_version: 3.1.
|
115
|
+
rubygems_version: 3.1.2
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Basic, useful and recurring constraints
|