rbbt-util 5.33.18 → 5.33.19

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/util/misc/system.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 972b137af2c124d5288389d49e188d3973246a912c0405c391cdb6b8a5987cae
4
- data.tar.gz: 4744dc8f03a8230ad8d5f61f1d15f14c4e5635d5e3798be584083217269b88a5
3
+ metadata.gz: 54df9c32ce443c2f2742391738139cc97d38cdfe343058149056ad942e35b4a0
4
+ data.tar.gz: a603395d628ed6b4ca776c45b377b75bafb4e9d76d009d45636008017efd83b3
5
5
  SHA512:
6
- metadata.gz: 34f7cbdd329d23341cc6591bfe19f584a4c50862c8fae6c2ccd8d72bcd76fbb129acbaa3bbb03e08eb633aa475d5d0eacb1a015e667db169ebf1f09e588ab579
7
- data.tar.gz: 8110363114c606214d115ffb6475ce277dc3f605c1e8eafd97911a53cc259386ed6173d45cca4a5692b8e4ca0a89db71a77b6fb5eca69400b565b820a83a8d56
6
+ metadata.gz: 16cfe134071945ab0d8fd16060fc9633c8b7dbbf8189246b3736d24ced7803ff13f33b89071939c16bdff2828d8f588612ecfbb7d5481ea4f46c451be233368b
7
+ data.tar.gz: 9142954e50c256485563b7147117c35c97e87d2c6aebf4fd28500f28369323b597ba0f7f07393d1c186116744af1200884c0bfa527afdf0c5dee8033b904daa8
@@ -94,10 +94,10 @@ module Misc
94
94
  end
95
95
 
96
96
  def self.is_filename?(string, need_to_exists = true)
97
- return false if string.nil? or string.include? "\n"
97
+ return false if string.nil?
98
98
  return true if defined? Path and Path === string
99
99
  return true if string.respond_to? :exists
100
- return true if String === string and string.split("/").select{|p| p.length > 265}.empty? and (! need_to_exists || File.exist?(string))
100
+ return true if String === string and ! string.include?("\n") and string.split("/").select{|p| p.length > 265}.empty? and (! need_to_exists || File.exist?(string))
101
101
  return false
102
102
  end
103
103
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.33.18
4
+ version: 5.33.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-25 00:00:00.000000000 Z
11
+ date: 2022-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake