loader 1.2.3 → 1.2.4
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/README.md +9 -15
- data/VERSION +1 -1
- data/lib/loader/meta.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3f3ccc0c0b6ff1f04611ab1bd695f8b0c27d31d
|
4
|
+
data.tar.gz: a6a8e143e0d9b056225dd33d1de250602f63edcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f3d9734b041970ac86aa65aa7eed8ea754ecc9482d5965fc5fdbb0b28d2655dfc3b53c155cc02ef4aa22037bbb546cb2324dc720a2073914d5c25d2c02d8665
|
7
|
+
data.tar.gz: 36394eb1b19358c9534c27602ebd83a9d295645702663943839999acae9724f5199e6149022b40b8bd4a0f4f52ef9d847bb59288538d15a0cfe590c7a0d122a8
|
data/README.md
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
loader
|
2
2
|
======
|
3
3
|
|
4
|
-
Ruby
|
5
|
-
Meta config file loaders and much more
|
4
|
+
Ruby module for file lifting :)
|
6
5
|
|
7
6
|
### Introduction
|
8
7
|
|
9
|
-
Okey, before you even think about use this gem,
|
8
|
+
Okey, before you even think about use this gem,
|
9
|
+
let's say this gem only for lazy ones...
|
10
10
|
the basic idea is to have an easy to use relative require system
|
11
11
|
The plus is a yaml config file loading mechanism for picking up yamls
|
12
12
|
into a constant,
|
13
13
|
maybe into some other config specific gem that make config objects from hash.
|
14
14
|
|
15
|
-
The fun part is , that this stuffs can be used in
|
16
|
-
because it do not depend on the Dir.pwd or
|
17
|
-
the File
|
15
|
+
The fun part is , that this stuffs can be used in gems (modules),
|
16
|
+
because it do not depend on the Dir.pwd or any kind of absolute path or
|
17
|
+
the File expand_path tricks that based on the application position.
|
18
18
|
|
19
19
|
The end goal is to make an easy ruby file loader for gems. So Dir.pwd do not affect
|
20
20
|
|
@@ -26,20 +26,14 @@ load relative directory (not based on Dir.pwd)
|
|
26
26
|
|
27
27
|
require 'loader'
|
28
28
|
|
29
|
-
# return and load the meta files from
|
30
|
-
# the lib/**/meta and return the hash obj build from the yamls
|
31
|
-
Loader.meta
|
32
|
-
|
33
29
|
# load all ruby file that was not loaded already
|
34
30
|
# from that relative folder
|
35
31
|
require_relative_directory "folder_name"
|
36
32
|
|
37
33
|
# for recursive use try the following
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
# you can use recursive by default call too
|
42
|
-
require_directory_r "lib" #> || require_relative_directory_r
|
34
|
+
require_relative_directory "lib", :r
|
35
|
+
## or
|
36
|
+
require_relative_directory_r "lib"
|
43
37
|
|
44
38
|
```
|
45
39
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.4
|
data/lib/loader/meta.rb
CHANGED
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.2.
|
4
|
+
version: 1.2.4
|
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-
|
11
|
+
date: 2014-05-07 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! "
|