toolrack 0.19.1 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toolrack/condition_utils.rb +15 -3
- data/lib/toolrack/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: 2aa934395904cdd10ca27c5a37c2419a8b808432a79c5172dbf8c8498282d5c5
|
4
|
+
data.tar.gz: 32e988e8e1a77e55efeebf8cc890a7ef013bcdc02bc70092cb552dcd16073580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
#
|
data/lib/toolrack/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base58
|