rbbt-util 5.37.9 → 5.37.11

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: 2f5b8f1cf0bc5999c1b467eb794cf337e0a315ed24ca3de3809a7d9eff73e175
4
- data.tar.gz: 3d2f6a70bba07a441cc6ae7325e0ecd149440173975e8b6ba7e3328d858795a5
3
+ metadata.gz: 797cec21ce0cb27977436e799e5e58b291a0003bc31a73637948ba93e9523dc6
4
+ data.tar.gz: 0aad818af111e8b3cb45a35a4aa7ceae7d10951c37ff727a5e9ed6a2ba8014f6
5
5
  SHA512:
6
- metadata.gz: a02576707e38808f545af7d7a17556b9e38ac84ccb203d320ce3ed7d7dd6b5f1c0834c2b26e726e68b8b731d517de4ce2694956c86c565c19329380ffee1a037
7
- data.tar.gz: 71813abce39b34076f97e16b8d2c26ff8e2f3287a75cf43e15cd3ed97205c4e4d8239e19b4fa670d0129e6de81c42bb1f6b1c4ec908f3554e6ac54c56106bb66
6
+ metadata.gz: 37a3c6a8bff10b43dca94edd29909dab0c5ea2fa7fdf84dfaf31c4e95165553e933d0d77ddf8488da42376e45d41d0a176b83263d36dde3881cf2fd450c5b6f7
7
+ data.tar.gz: '09ffbdd83ce3ce1f2d4eb7a12a7f22d988bfe2f95bbea7d3c25ecd3364fce359344654ce27cbc5f1c125d7b796015c0aec9a2275d3808a7eafd838152fcde2ed'
@@ -1,6 +1,6 @@
1
1
  module Path
2
2
 
3
- def self.caller_lib_dir(file = nil, relative_to = ['lib', 'bin', 'workflow.rb'])
3
+ def self.caller_lib_dir(file = nil, relative_to = ['lib', 'bin'])
4
4
  #file = caller.reject{|l|
5
5
  # l =~ /rbbt\/(?:resource\.rb|workflow\.rb)/ or
6
6
  # l =~ /rbbt\/resource\/path\.rb/ or
@@ -28,13 +28,14 @@ else
28
28
  done
29
29
  REALPATH="$PWD/$(basename "$1")"
30
30
  cd "$OURPWD"
31
+ echo "$REALPATH" >&2
31
32
  echo "$REALPATH"
32
33
  }
33
34
 
34
35
  function relative_path(){
35
36
  local basedir="$(realpath $1)"
36
37
  local path="$(realpath "$2")"
37
- echo ${path/$basedir\/}
38
+ echo ${path/$(dirname $basedir)\/..}
38
39
  }
39
40
  fi
40
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.37.9
4
+ version: 5.37.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez