toolrack 0.19.1 → 0.20.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11d3e5d1a546d53c9770663e5c22bcfb216b4fa356064264365554c8b2136fdb
4
- data.tar.gz: c8ba4119e9d6766d5238f1e4f619dc731becea27738497409d646b67b88bff36
3
+ metadata.gz: 2aa934395904cdd10ca27c5a37c2419a8b808432a79c5172dbf8c8498282d5c5
4
+ data.tar.gz: 32e988e8e1a77e55efeebf8cc890a7ef013bcdc02bc70092cb552dcd16073580
5
5
  SHA512:
6
- metadata.gz: ea4a803cf70938307dedd361b04384de94ac090f6f8725f01c6ad1594a92689dbd0652076404a852a6f765405590574b038e6cf179db5738debb8eeb6c8f2cb8
7
- data.tar.gz: 44a7caa225125b9f7159adcf97196cfbf64a1c6da2508c402405e97518cfc3200a15b1bd87973dc399e623c3c9bb02e3062e9f3f7b82fe468e672b8c9984625a
6
+ metadata.gz: 1fffbbda31699cee6355857370feaae6bb2cea97402c74528a512237d8f40b2064ca4758f4b167e85bdaeca97622414b0ce4f6f7212b30e04830152bdba1fd58
7
+ data.tar.gz: d8db972d90460e3d34dc9750adc21d4b2f76a015e578a5c852ff464a9fa5f5b51ed9815cb08e20afd2bf5854c8180c750eeb7bbb84f4e6fc34934cb4f011c520
@@ -4,6 +4,7 @@ module Antrapol
4
4
  module ToolRack
5
5
  module ConditionUtils
6
6
 
7
+ private
7
8
  def is_empty?(obj)
8
9
  if not defined?(obj)
9
10
  true
@@ -48,12 +49,18 @@ module Antrapol
48
49
  def is_boolean?(val)
49
50
  !!val == val
50
51
  end
51
- alias_method :is_bool?, :is_boolean?
52
+ def is_bool?(val)
53
+ is_boolean?(val)
54
+ end
55
+ #alias_method :is_bool?, :is_boolean?
52
56
 
53
57
  def not_boolean?(val)
54
58
  not is_boolean?(val)
55
59
  end
56
- alias_method :not_bool?, :not_boolean?
60
+ def not_bool?(val)
61
+ not_boolean?(val)
62
+ end
63
+ #alias_method :not_bool?, :not_boolean?
57
64
 
58
65
  def is_string_boolean?(str)
59
66
  if not_empty?(str)
@@ -68,7 +75,10 @@ module Antrapol
68
75
  false
69
76
  end
70
77
  end
71
- alias_method :is_str_bool?, :is_string_boolean?
78
+ #alias_method :is_str_bool?, :is_string_boolean?
79
+ def is_str_bool?(str)
80
+ is_string_boolean?(str)
81
+ end
72
82
 
73
83
  def cuLogger
74
84
  if @cuLogger.nil?
@@ -77,6 +87,8 @@ module Antrapol
77
87
  @cuLogger
78
88
  end
79
89
 
90
+
91
+ # Superceded by module_function directive?
80
92
  #
81
93
  # Make it available at class level too
82
94
  #
@@ -1,6 +1,6 @@
1
1
  module Antrapol
2
2
  module ToolRack
3
- VERSION = "0.19.1"
3
+ VERSION = "0.20.0"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolrack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-31 00:00:00.000000000 Z
11
+ date: 2022-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base58