muflax 0.3.22 → 0.3.23
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
- checksums.yaml.gz.sig +0 -0
- data/Gemfile.lock +1 -1
- data/lib/muflax/library.rb +6 -9
- data/muflax.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 916ad6bf6effb8d5977754a060119137a88bf4904ef941611e733536f4ade477
|
|
4
|
+
data.tar.gz: d5b2411787692fa16f35224f4d9e7251b9130dfb010dd7b5c830ce24024c04e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 498e0b16b968b56c0af04023551a807abe0269981b29ae74b9c685f052a2e20ef16ac15f540487c2453698eb3215026e36611640749f47831898e0a0f688df28
|
|
7
|
+
data.tar.gz: cea69108e32a0c22821e491fd7e5c934d49a91db7cb71edede579aae4cc7cbb8bfc3786c727bddfb6b38e7deaa9fd66d1518e9e66878beecfcd1174fbdfd4494
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/Gemfile.lock
CHANGED
data/lib/muflax/library.rb
CHANGED
|
@@ -3,14 +3,11 @@
|
|
|
3
3
|
# Copyright muflax <mail@muflax.com>, 2013
|
|
4
4
|
# License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
|
|
5
5
|
|
|
6
|
-
def require_local lib_name, location=
|
|
7
|
-
file
|
|
8
|
-
|
|
6
|
+
def require_local lib_name, location=caller_locations.first.path
|
|
7
|
+
file = File.symlink?(location) ? File.readlink(location) : location
|
|
8
|
+
dir = File.dirname(file)
|
|
9
|
+
lib = File.join(dir, "#{lib_name}.rb")
|
|
9
10
|
|
|
10
|
-
if File.exists? lib
|
|
11
|
-
|
|
12
|
-
require lib
|
|
13
|
-
else
|
|
14
|
-
require lib_name
|
|
15
|
-
end
|
|
11
|
+
raise "couldn't find local module: «#{lib_name}» in «#{dir}»" if not File.exists? lib
|
|
12
|
+
require lib
|
|
16
13
|
end
|
data/muflax.gemspec
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: muflax
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.23
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- muflax
|
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
|
28
28
|
jj4QBQUG5hER1ZAFf+RXdy4RSimjXedOgvebDGeTafOJyhtLsxsh6UKCViHVGzkw
|
|
29
29
|
fhGEJ1deAR/i8RPCblyBDtl7Ved3uX8izfU9LItVY+HOAzl69Qp0fe2TYH+y4uCO
|
|
30
30
|
-----END CERTIFICATE-----
|
|
31
|
-
date: 2019-
|
|
31
|
+
date: 2019-05-31 00:00:00.000000000 Z
|
|
32
32
|
dependencies:
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: awesome_print
|
metadata.gz.sig
CHANGED
|
Binary file
|