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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db065ecec670e422d74a8051f9e1289d8f11fb90
4
- data.tar.gz: 2732cb60b3f03824ff7f2a5b2846e34669cfa1c5
3
+ metadata.gz: 1d5cfdb23f6d9ccbe350c2873ced5a0a92cd8113
4
+ data.tar.gz: 8d6b8a61e178ebbfb7bf2bfa0c6b2adb411a8c36
5
5
  SHA512:
6
- metadata.gz: bf595b1c5877258a96f911c3248e9d24cb9872c855617a3496f41fb13fac15e339067adb95908152e0e487a3fe770f62d024b29bebbe3539e69a27603a4c44a4
7
- data.tar.gz: ec98059e27e24965062ecdc53edee37ecb39d5ff7b0a41b9aeb903393f489ca472fdbce60afcf452bd103794a1bb8c3bdea19e14bbce3e66fbb9cf42e5144b6a
6
+ metadata.gz: 83a2799fbead2f62efaa7755d56133566e548e968d0fd77d9d728e506f6f15fd615c9f31802ce8ea1ce3f42d6077a4e1c2df2156970126a423d0c4b8294c3e79
7
+ data.tar.gz: 1f2f5a523c90a468790f427eb0c6f95b079e86cd9ed39f7936192495b6565740a23d4831648dd5f5ac6bc8693b7515cfe915aa8aa9d3f318793da287dcfc71f6
@@ -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
- @rule_type_registry.register(:boolean, Togls::Rules::Boolean)
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
@@ -1,3 +1,3 @@
1
1
  module Togls
2
- VERSION = '3.0.0-rc.4'.freeze
2
+ VERSION = '3.0.0-rc.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: togls
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.rc.4
4
+ version: 3.0.0.pre.rc.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Miller