k_util 0.0.10 → 0.0.12

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
  SHA256:
3
- metadata.gz: a1396ed8f2f544608b8847ea993a8273c133d0e27dc14f236f01f5363f101cc9
4
- data.tar.gz: a4f2a01bf25867ffa3e66dc30c2b5fe73165c57a7af80f400c4a7b6865541d9a
3
+ metadata.gz: 3860a3f695361bef8207528e54cfd32dcd870f1947e5ad8548619ff4fb4225ba
4
+ data.tar.gz: 37abdfd64ba5001844737429e4786d02c606816803571c44082f133bf44982ca
5
5
  SHA512:
6
- metadata.gz: d1fb0d9537b8bffea7b55787e1f575bb03c1c0954f263c54a8eb1259a26e9f2efa04be13d2ebf2ea4fd5c9ffd7e1ab46f8e095dc836e3d35b18e3a4f8151d7f3
7
- data.tar.gz: 74681084346b45a0e67b88fca8a68779108e7cff25ef5d2bfa18eb680b59a686ad9b876dd1f2fb023e0766fa9a04af7865da9c958a0754d7cfa34f6526340fef
6
+ metadata.gz: 8e293e90a1a83f31ceabdc7ae1c1324859cfa8e20bd186c05a6c78a3b603f2b48b99d74d67408f06d930d751f3eadb6e8cfbb8e7cf1c133faa458523ffb73484
7
+ data.tar.gz: 2d7f7251ed0c427b47addbd9ef062477abb8a4072eddb3829157e24eb56ad65fe86705046cb28481927a7ae5fcdb387807d474bddbcc3dfabb2b7f95f2972360
data/lib/k_util.rb CHANGED
@@ -21,4 +21,9 @@ module KUtil
21
21
  KUtil.file = KUtil::FileHelper.new
22
22
  end
23
23
 
24
- puts "KUtil::Version: #{KUtil::VERSION}" if ENV['KLUE_DEBUG']&.to_s&.downcase == 'true'
24
+ if ENV['KLUE_DEBUG']&.to_s&.downcase == 'true'
25
+ namespace = 'KUtil::Version'
26
+ file_path = $LOADED_FEATURES.find { |f| f.include?('k_util/version') }
27
+ version = KUtil::VERSION.ljust(9)
28
+ puts "#{namespace.ljust(40)} : #{version.ljust(9)} : #{file_path}"
29
+ end
@@ -14,6 +14,10 @@ module KUtil
14
14
  end
15
15
  end
16
16
 
17
+ def has_home?(path)
18
+ path.start_with?('~/')
19
+ end
20
+
17
21
  def pathname_absolute?(pathname)
18
22
  Pathname.new(pathname).absolute?
19
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KUtil
4
- VERSION = '0.0.10'
4
+ VERSION = '0.0.12'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k_util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-01 00:00:00.000000000 Z
11
+ date: 2021-04-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: " KUtil provides simple utility methods, such as file helpers, data
14
14
  object helpers and more.\n"