blackstack_commons 1.1.25 → 1.1.26
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.
- checksums.yaml +4 -4
- data/lib/functions.rb +1 -4
- 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: 1cc95c11625700337bb0e751d017c74576e88928
|
|
4
|
+
data.tar.gz: 2d59f66329d8a08b2a8ed24df9daa5d86e0f0b5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b497184aa100f95b4e5339f67d7a3f82ef15554467c785f98eb41342b2c0644bf30d7ad12b37c8432601e7d4b9e3e6ece79b83193601a93f0a804447c5dd36b1
|
|
7
|
+
data.tar.gz: 53b0926d2ccc8697d9702bec33ad63fc7ab89b4f691f24d5937f4cb1f422bf839548b361ef2e940f95b367c872f29b40633a56c47aaaa4764771c46e9166326c
|
data/lib/functions.rb
CHANGED
|
@@ -11,10 +11,7 @@ module BlackStack
|
|
|
11
11
|
# This function resolves that problem, by forcing the require to look
|
|
12
12
|
# into the folder where the .exe command is hosted.
|
|
13
13
|
#
|
|
14
|
-
def self.require_local(filename='config.rb')
|
|
15
|
-
current_dir = ($0) || __FILE__
|
|
16
|
-
current_dir = File.expand_path('..', current_dir)
|
|
17
|
-
source_dir = ENV["OCRA_EXECUTABLE"] || __FILE__
|
|
14
|
+
def self.require_local(source_dir, filename='config.rb')
|
|
18
15
|
source_dir = File.expand_path('..', source_dir)
|
|
19
16
|
require File.expand_path('config', source_dir)
|
|
20
17
|
end
|