toolrack 0.18.3 → 0.18.6

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: 33606fd552ba35fa9af2f032d704440626f0f1b3ca6ba361b53d1952e3c266b2
4
- data.tar.gz: adf32d9df2d717b66f7779e5238c58cfd9c3550a7bd6fc7789159d9f19cbc841
3
+ metadata.gz: 26baf021b7447639ac05e891cdf8a56709fe339dfa89bcd1933b983429336b18
4
+ data.tar.gz: f7300923df263cbc06d622336a92d67714f02ace547d4285cf902cf55f2e41b0
5
5
  SHA512:
6
- metadata.gz: 9361b04efc6f158189d98fbd9dc6842d19a4c3a80f55364b24eca161fd3d5645798c7a9bf6b714ed0c89d3caba205abe041c04e710f1d76c531954ee5fdb0862
7
- data.tar.gz: 8fa2db2fef4e493bc8366b26231673b35d531c8a1b10c7cec95fc07ed154a34323e5ae83e2c44d549832abeda7dc3e3622e192324fb2a51170151c7c097139a3
6
+ metadata.gz: d4fed7a6f6df530c99c8d8f855d9da921d734acc67e828f735c2faddd7887d943a6cd9cddcf7392ffb2f7aa9d433719de8ff9a5ffcdc5c0e568bcae3e70e7ebc
7
+ data.tar.gz: 8e2ac1173ab41290b0fd4b0371ccaa9f13ddd5458baf9684630479e1fd72e113d17f678cfdcf8eb5811cd0e6eadbdecef4e83faa9deb396fcd53350f0fa9f854
data/.release_history.yml CHANGED
@@ -12,3 +12,9 @@ toolrack:
12
12
  :timestamp: 1637901450.2854214
13
13
  - :version: 0.18.2
14
14
  :timestamp: 1637905200.1032739
15
+ - :version: 0.18.3
16
+ :timestamp: 1637906184.4767737
17
+ - :version: 0.18.4
18
+ :timestamp: 1654177213.1756828
19
+ - :version: 0.18.5
20
+ :timestamp: 1654177658.6401663
@@ -12,7 +12,11 @@ module Antrapol
12
12
  elsif obj.respond_to?(:empty?)
13
13
  begin
14
14
  if obj.respond_to?(:strip)
15
- obj.strip.empty?
15
+ if obj.ascii_only?
16
+ obj.strip.empty?
17
+ else
18
+ obj.empty?
19
+ end
16
20
  else
17
21
  obj.empty?
18
22
  end
@@ -21,7 +25,7 @@ module Antrapol
21
25
  # This will happen if the data is binary but the reading of the data
22
26
  # is in ascii format.
23
27
  if ex.message =~ /invalid byte sequence/
24
- cuLogger.twarn :is_empty?, "Invalid byte sequence exception might indicates the data is expected in binary but was given a ASCII buffer to test. Please load the data in binary and test again"
28
+ cuLogger.twarn :is_empty?, "Invalid byte sequence exception indicates the data is in binary but was given a ASCII buffer to test."
25
29
  false
26
30
  else
27
31
  raise
@@ -46,6 +50,11 @@ module Antrapol
46
50
  end
47
51
  alias_method :is_bool?, :is_boolean?
48
52
 
53
+ def not_boolean?(val)
54
+ not is_boolean?(val)
55
+ end
56
+ alias_method :not_bool?, :not_boolean?
57
+
49
58
  def is_string_boolean?(str)
50
59
  if not_empty?(str)
51
60
  s = str.to_s.strip.downcase
@@ -28,6 +28,10 @@ module Antrapol
28
28
  (RUBY_PLATFORM =~ /java/) != nil
29
29
  end
30
30
 
31
+ class <<self
32
+ alias_method :on_java?, :on_jruby?
33
+ end
34
+
31
35
  end # RuntimeUtils
32
36
  end # ToolRack
33
37
  end #Antrapol
@@ -1,6 +1,6 @@
1
1
  module Antrapol
2
2
  module ToolRack
3
- VERSION = "0.18.3"
3
+ VERSION = "0.18.6"
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.18.3
4
+ version: 0.18.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-26 00:00:00.000000000 Z
11
+ date: 2022-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tlogger