muflax 0.3.22 → 0.3.23

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: 0ddda8db6741114f3db6878b4f7094bf1cb71225161a891955126f86381a70be
4
- data.tar.gz: 7c77e93fe5affd78c1bde91f9cdd74636434918c2e00a12e9c38303a56e4fab7
3
+ metadata.gz: 916ad6bf6effb8d5977754a060119137a88bf4904ef941611e733536f4ade477
4
+ data.tar.gz: d5b2411787692fa16f35224f4d9e7251b9130dfb010dd7b5c830ce24024c04e4
5
5
  SHA512:
6
- metadata.gz: c31b59d9ad98d4d60f8c7175dc26344932d3cc3e2db6280b204c53410738911ed838a54c72e65aa900a2b763bbd7481ebd5ae8fd08cbfb8588efd52709021fa1
7
- data.tar.gz: 5a5b61016495f4e2e2f72310de0799630c5459a210b72a4aa8d3f45649b916fcb883e4f97efd8ebe92ca4436ebcc71262f07a4b04435d46ebedb13c311721b84
6
+ metadata.gz: 498e0b16b968b56c0af04023551a807abe0269981b29ae74b9c685f052a2e20ef16ac15f540487c2453698eb3215026e36611640749f47831898e0a0f688df28
7
+ data.tar.gz: cea69108e32a0c22821e491fd7e5c934d49a91db7cb71edede579aae4cc7cbb8bfc3786c727bddfb6b38e7deaa9fd66d1518e9e66878beecfcd1174fbdfd4494
checksums.yaml.gz.sig CHANGED
Binary file
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- muflax (0.3.22)
4
+ muflax (0.3.23)
5
5
  awesome_print (~> 1)
6
6
  debug_inspector (~> 0.0)
7
7
  highline (< 1.7)
@@ -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=__FILE__
7
- file = File.symlink?(location) ? File.readlink(location) : location
8
- lib = File.join File.dirname(file), "/../lib/#{lib_name}.rb"
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
- # using local version
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "muflax"
3
- s.version = "0.3.22"
3
+ s.version = "0.3.23"
4
4
 
5
5
  s.authors = ["muflax"]
6
6
  s.summary = "muflax standard library"
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.22
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-03-25 00:00:00.000000000 Z
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