loader 2.2.2 → 2.2.3

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: 86dfc036308966d0b042d76012e3617e7efc551d
4
- data.tar.gz: b15f9a16ff7a2175a6f9cd58eb68c934d73f68d6
3
+ metadata.gz: 9fb6d587cdce79bd118d9613737d6748df3bfcc4
4
+ data.tar.gz: 5e53ed93aab29a1e2eaf8ddebad0f4fd1fd88037
5
5
  SHA512:
6
- metadata.gz: 75b91adebe704612c434ed08802ae65bee5835b3e0ba2033c3dc07ff8afd840883844ecef248f9d2cf861860208f8050d22821f95670c467655845848f13cf57
7
- data.tar.gz: d0bd2bd7da1751632bbc2f644832d608ab13bf3e6e9f7d59f278ddaa2252b2cca42bff6fd3ec97f6394e8febd58a8bd2f3c99a47b08f078cdf26bc21b93e7d9b
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.2
1
+ 2.2.3
data/lib/loader.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  #encoding: UTF-8
2
2
  module Loader
3
- end
4
-
5
- require 'loader/meta'
6
- require 'loader/helpers'
7
- require 'loader/require'
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
@@ -15,7 +15,7 @@ describe Loader::AutoLoad do
15
15
  end
16
16
  }.call.is_a?(Exception).must_be :==, true
17
17
 
18
- Loader.autoload
18
+ Loader.autoload!
19
19
 
20
20
  -> {
21
21
  begin
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.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: 2015-10-30 00:00:00.000000000 Z
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.2.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