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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/functions.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f40e37ec27d7dc403f5842ca9dbb4926ce8b4613
4
- data.tar.gz: ffb9847a6e6b484f606998733e409796d22cf6d8
3
+ metadata.gz: c422b39239eaf255aedc0c99080824e8adcd37b6
4
+ data.tar.gz: 78274d2f142589e44fca0de63325539063ee24b4
5
5
  SHA512:
6
- metadata.gz: de4121c63908c99b11db2a0fb144640ea1659e7c143c0c181a5172f265e892ea9e4ae6cc378d40e257a319bd8241134cfac2a0450339dd1e1f2fbf320f543ac4
7
- data.tar.gz: 70e39f48e7325d8b6222bb13c896bb15f70abcbb5c14f27e5093b4f4ad988173ebfb51a9316e809b229de32083c9cffcce850c75dea266cae8016ef77464b31a
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
- #path = File.expand_path File.dirname(__FILE__)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackstack_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.29
4
+ version: 1.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi