multi_require 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: c0e9706aa63ec8dfae51120bd1b3f1a16a166ac0
4
- data.tar.gz: 0c98a40f9442fd9d325ea26760243e86eb68b4e5
3
+ metadata.gz: 6d76a9cc885508de0ab3a942142d77fdb5d2fe3c
4
+ data.tar.gz: b7764138015c9a41b215722332140a5327034894
5
5
  SHA512:
6
- metadata.gz: 8504ee7f0a4f5e07079f2d063aed353f9c787670d739beb931879a6c15f4f7a2cb684887bd550af5afcac6637d1471324c88d4ea84218744908d407be09e0a12
7
- data.tar.gz: bccb102cfa2110caf292854bffb7ec6b48b985312bb9785bdc6b487085d50ade598db3c99f1217302df490e8c5f5373352534143a6c61b9ddd7408debf254668
6
+ metadata.gz: 19587955de4dbdfc7d1b2e59ebd50ab3a3fddd9329b91c52981cfbf5198e5e4acf0dfe084177ff83fcb88f0b91d8458c59f850186c66c02a29446c27f3f4c851
7
+ data.tar.gz: 28047912633f79905a0edc4325953e6838220c3e5f02ccf5b86e8fe129f854462872705cc61fa12384dd033c49288649b6cbdfcf79e5562361dda2a4c981e864
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # RequireRelativePath
1
+ # MultiRequire
2
2
 
3
3
  Easy way to require multiple files from a relative path
4
4
 
@@ -16,7 +16,7 @@ And then execute:
16
16
 
17
17
  Or install it yourself as:
18
18
 
19
- $ gem install require_all
19
+ $ gem install multi_require
20
20
 
21
21
  ## Usage
22
22
 
@@ -8,7 +8,7 @@ module MultiRequire
8
8
  end
9
9
 
10
10
  def require_relative_pattern(pattern)
11
- source_path = File.dirname caller_locations[0].absolute_path
11
+ source_path = File.dirname caller.first.split(':').first
12
12
  require_pattern File.join(source_path, pattern)
13
13
  true
14
14
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'multi_require'
7
- spec.version = '1.0.0'
7
+ spec.version = '1.0.1'
8
8
  spec.authors = ['Gabriel Naiman']
9
9
  spec.email = ['gabynaiman@gmail.com']
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_require
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-30 00:00:00.000000000 Z
11
+ date: 2016-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler