togls 3.0.0.pre.rc.4 → 3.0.0.pre.rc.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/togls/rule_manager.rb +6 -2
- data/lib/togls/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d5cfdb23f6d9ccbe350c2873ced5a0a92cd8113
|
4
|
+
data.tar.gz: 8d6b8a61e178ebbfb7bf2bfa0c6b2adb411a8c36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a2799fbead2f62efaa7755d56133566e548e968d0fd77d9d728e506f6f15fd615c9f31802ce8ea1ce3f42d6077a4e1c2df2156970126a423d0c4b8294c3e79
|
7
|
+
data.tar.gz: 1f2f5a523c90a468790f427eb0c6f95b079e86cd9ed39f7936192495b6565740a23d4831648dd5f5ac6bc8693b7515cfe915aa8aa9d3f318793da287dcfc71f6
|
data/lib/togls/rule_manager.rb
CHANGED
@@ -28,11 +28,15 @@ module Togls
|
|
28
28
|
@rule_type_repository
|
29
29
|
end
|
30
30
|
|
31
|
+
def register_default_rules
|
32
|
+
@rule_type_registry.register(:boolean, Togls::Rules::Boolean)
|
33
|
+
@rule_type_registry.register(:group, Togls::Rules::Group)
|
34
|
+
end
|
35
|
+
|
31
36
|
def rule_type_registry
|
32
37
|
if @rule_type_registry.nil?
|
33
38
|
@rule_type_registry = RuleTypeRegistry.new(rule_type_repository)
|
34
|
-
|
35
|
-
@rule_type_registry.register(:group, Togls::Rules::Group)
|
39
|
+
register_default_rules
|
36
40
|
end
|
37
41
|
@rule_type_registry
|
38
42
|
end
|
data/lib/togls/version.rb
CHANGED