blackstack_commons 1.1.29 → 1.1.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/functions.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c422b39239eaf255aedc0c99080824e8adcd37b6
|
4
|
+
data.tar.gz: 78274d2f142589e44fca0de63325539063ee24b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3d6f5a2b41b4c3cc442d5debb6d48a68b4ac59d63d1afe3cccd435eaf5fd176a8cc33637fd94a0458c5b7744f3989a51aa1ef09840e5869798f4c7ae7748451
|
7
|
+
data.tar.gz: 0877f4c7dd9465320ef64c9d8289aec213866cc6e7dcecbf15fcb93e1c120733ca309dc72ef9fbb0b9429d5498763a80d6c7b4df734d3fc0e0be83cc60456f43
|
data/lib/functions.rb
CHANGED
@@ -13,10 +13,10 @@ module BlackStack
|
|
13
13
|
#
|
14
14
|
# More information: https://stackoverflow.com/questions/1937743/how-to-get-the-current-working-directorys-absolute-path-from-irb
|
15
15
|
#
|
16
|
-
def self.require_in_working_path(filename, show_path_info=false)
|
16
|
+
def self.require_in_working_path(filename, path=__FILE__,show_path_info=false)
|
17
17
|
puts '' if show_path_info
|
18
|
-
|
19
|
-
path = Dir.pwd
|
18
|
+
path = File.expand_path File.dirname(path)
|
19
|
+
#path = Dir.pwd
|
20
20
|
puts "require_in_working_path.path:#{path}:." if show_path_info
|
21
21
|
file = "#{path}/#{filename}"
|
22
22
|
puts "require_in_working_path.file:#{file}:." if show_path_info
|