loader 1.0.2 → 1.0.3

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmY4Y2U5OTMyNGY0NzI5YTA4NWVmYzcyODZmOTUzYTU1NWU1YWYwMg==
4
+ MDMzYmExYjRjMjM2MGI5MjYzMjVhMWE2N2U5OTYyMWVmZjA3ZmIzYQ==
5
5
  data.tar.gz: !binary |-
6
- MTcwYzNiNzQxZmViMTdiOWYzYTVmZDMzOWQ3OTgyODY4ZDY4NzJkZQ==
6
+ YzEwMDc3ZTQ5MjliZjQ1N2ExOWVmYzM1NmFjNmI5NjVkZGFiMmJhYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGY3MWQ5YTVlNWM2ODY2N2RmYTI1NjkzMDY4NjIzNWU0YTdiOTUyYTkxZDUx
10
- YjRmYjExYzA1NThiMzM2YWIzM2QzNGJlNzQ1ZDRlODNkMzY2NTYxNzIyMTBk
11
- ZjJmOWVhMjcxMzBlNGY4OWU4M2M1MzAwNWJiMTQ3OTA5ODcxYmE=
9
+ MmMyMGU1MWQwYTk3Zjk0OTM0MjEwNjFkMGQxNWU1MzM0YjY0NjZlOGJjMzkw
10
+ NGI0Y2UwNzJmODNmNjQ5MTBmMDg1ZjVjOWQ1NzM4NDAzOTNmYmI4MzliZGZl
11
+ ODNmZjhjNWI5NDYzNzU0MTBiMjY0MGRkNmE2NWMwN2M5MWUyNTc=
12
12
  data.tar.gz: !binary |-
13
- Njc2MGE2ZDQ0MGVmYmJlMTFmY2Y1ZTg1M2M4MzA2MTY5MTRkNTUwMWYyYzYw
14
- NTI3NmZkMjc4ZTZkNWZhMzFhMmVmYTFmYjJhNTM3YzM0OWVkZWNhOWE5ZjNh
15
- ODViYzJjMGFhNGQyNzdlZTdlMjg4MWU2YTAzYzBjMWE0YWVjNDQ=
13
+ YjhlZjExMzhiYjFhOTNkZTRjOGU5OWMyMzVjZDA5Y2RjYzNmNTc1ZjI5MDE2
14
+ MzE3YmY1MmQyNWQzYzAzNTVjZWNjODAxODBjZDg5ZTkwOWY3MDNiMjVlMjY2
15
+ Mjg3MGQwMDc4MjRlZTExODc0MWViNDhiYTQzNmRkMzViN2NmZWM=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -1,6 +1,6 @@
1
1
  require_relative "../lib/loader"
2
2
 
3
- require_relative_directory "lib"
3
+ require_relative_directory "/home/reaper/workspace/GEMS/loader/examples/lib"
4
4
  # one of the file has a "puts \"hello world!\"" that will run on load
5
5
  #> hello world!
6
6
 
@@ -18,7 +18,11 @@ module Kernel
18
18
  # return the directory and the sub directories file names (rb/ru)
19
19
  def require_relative_directory(folder)
20
20
 
21
- Dir.glob(File.join(Loader.caller_folder,folder,"**","*.{rb,ru}")).each do |one_path|
21
+ unless folder.to_s[0] == File::Separator
22
+ folder= Loader.caller_folder,folder
23
+ end
24
+
25
+ Dir.glob(File.join(folder,"**","*.{rb,ru}")).each do |one_path|
22
26
  require one_path
23
27
  end
24
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-03 00:00:00.000000000 Z
11
+ date: 2014-02-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ! ' dsl for gem helper calls such like relative folder calls that independ
14
14
  on the Dir.pwd or File.expand tricks and config loader stuffs, Check out the GIT! '