loader 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -15
  3. data/VERSION +1 -1
  4. data/lib/loader/meta.rb +1 -0
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c690ab401603515f1f3ce279f3330d755340754a
4
- data.tar.gz: e3e99e6f152929d188640b45b1976bfe00ecff99
3
+ metadata.gz: a3f3ccc0c0b6ff1f04611ab1bd695f8b0c27d31d
4
+ data.tar.gz: a6a8e143e0d9b056225dd33d1de250602f63edcf
5
5
  SHA512:
6
- metadata.gz: f1e774a82076d8e1cbe066d3e97b8c23f39240332d53bff0614a51df6c09345fb99ae0e6cb5003f7472a9ff615f8fc1707f126b777b4db9f597cad720997b30b
7
- data.tar.gz: 72c2daa276655fa64ea9e6a9e9f91da27066376720442ccdcb250d7fdb2f1f37ff75d41dfadbc96dd9c51c3746c15fa0459dc2047a5c4bcb1f43e0ebd18b4305
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 require loader gem with caller tricks
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, let's say this gem only for lazy ones...
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 making a new gem,
16
- because it do not depend on the Dir.pwd or
17
- the File Expand tricks
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
- require_directory "lib", :r
39
- #> require_directory is an alias for require_relative_directory
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.3
1
+ 1.2.4
@@ -174,6 +174,7 @@ module Loader
174
174
  return target_config_hash
175
175
 
176
176
  end
177
+ alias :metaframework :metaloader_framework
177
178
 
178
179
  # load meta folders rb files
179
180
  # by default it will be the caller objects root folder (app root)
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.3
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-04-24 00:00:00.000000000 Z
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! "