loader 2.2.2 → 2.2.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 +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/loader.rb +5 -6
- data/lib/loader/autoload/loader_patch.rb +3 -1
- data/test/test_autoload.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fb6d587cdce79bd118d9613737d6748df3bfcc4
|
4
|
+
data.tar.gz: 5e53ed93aab29a1e2eaf8ddebad0f4fd1fd88037
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d43285977aba52256e2e448d56e014b7649d4c8bf624cd54d4826971836d3f385ab876cb342b6300bd58ff8a692dcab31ba6205a78323c2e88fffa1e425fcdd
|
7
|
+
data.tar.gz: e7b0ca491da195e2733971f86111c453c0831135d16a5ac2108cd82f5350099d570d9171547ff6d2117f1df67c287c23206f25b7bfcb9118119baf9a70e14383
|
data/README.md
CHANGED
@@ -59,4 +59,4 @@ optionally you can tell the project root folder if you work with in a gem.
|
|
59
59
|
If you like the basic idea that the app should not do any kind of Eager Load and become slow,
|
60
60
|
you can use the constant based autoload function
|
61
61
|
|
62
|
-
##### [Sketch about how it works](https://github.com/adamluzsi/loader.rb/blob/master/doc/sketch)
|
62
|
+
##### [Sketch about how it works](https://github.com/adamluzsi/loader.rb/blob/master/doc/sketch.md)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.3
|
data/lib/loader.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
#encoding: UTF-8
|
2
2
|
module Loader
|
3
|
-
|
4
|
-
|
5
|
-
require 'loader/
|
6
|
-
require 'loader/
|
7
|
-
|
8
|
-
require 'loader/autoload'
|
3
|
+
require 'loader/meta'
|
4
|
+
require 'loader/helpers'
|
5
|
+
require 'loader/require'
|
6
|
+
require 'loader/autoload'
|
7
|
+
end
|
@@ -4,9 +4,11 @@ module Loader::AutoLoad::LoaderPatch
|
|
4
4
|
@project_folders ||= []
|
5
5
|
end
|
6
6
|
|
7
|
-
def autoload(project_folder=Loader::Helpers.pwd)
|
7
|
+
def autoload!(project_folder=Loader::Helpers.pwd)
|
8
8
|
project_folders.push(project_folder)
|
9
9
|
::Module.__send__(:prepend, Loader::AutoLoad::ModulePatch)
|
10
10
|
end
|
11
11
|
|
12
|
+
alias autoload autoload!
|
13
|
+
|
12
14
|
end
|
data/test/test_autoload.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: 2.2.
|
4
|
+
version: 2.2.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:
|
11
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- README.md
|
54
54
|
- Rakefile
|
55
55
|
- VERSION
|
56
|
+
- doc/sketch.md
|
56
57
|
- examples/lib/asdf/level2.rb
|
57
58
|
- examples/lib/asdf/meta/else.yml
|
58
59
|
- examples/lib/asdf/meta/level3.rb
|
@@ -102,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
103
|
version: '0'
|
103
104
|
requirements: []
|
104
105
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.4.8
|
106
107
|
signing_key:
|
107
108
|
specification_version: 4
|
108
109
|
summary: easy to use File loader that allow directories/project both Lazy Load and
|