easyload 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8bf76e648c9bfcbbc29a0fd9a714f11ff69fa667
4
+ data.tar.gz: f092ac3943e9b6d26ccb3f890bef5444a73a7046
5
+ SHA512:
6
+ metadata.gz: 2aa1fa9c1e1d9d97126b78c1d6f61c3d92914cac4ae4d0813593882de11d561384baa6be01b39be0d5f2675a404264a4fd43b9d7ebc02682ce7d46b2c56793ad
7
+ data.tar.gz: 263bae26b069241021c8a15d1d4ee7240a8f4aa91ae7f8f947ab7c49d52f1fe06314b8132f57317c5cd723c856576cd4abae0b381810a93500e3671353053f1a
data/README.md CHANGED
@@ -21,6 +21,7 @@ root. From that root, and the search path that it defines, all child constants
21
21
  according to your directory structure.
22
22
 
23
23
  For example, with a directory structure of:
24
+
24
25
  lib/
25
26
  my_easyloaded_module.rb
26
27
  my_easyloaded_module/
@@ -30,26 +31,31 @@ For example, with a directory structure of:
30
31
  node.rb
31
32
 
32
33
  `lib/my_easyloaded_module.rb`:
34
+
33
35
  module MyEasyloadedModule
34
36
  import Easyload
35
37
  end
36
38
 
37
39
  `lib/my_easyloaded_module/child_module.rb`:
40
+
38
41
  module ChildModule
39
42
  ...
40
43
  end
41
44
 
42
45
  `lib/my_easyloaded_module/child_module/leafy.rb`:
46
+
43
47
  class Leafy
44
48
  ...
45
49
  end
46
50
 
47
51
  `lib/my_easyloaded_module/node.rb`:
52
+
48
53
  class Node
49
54
  ...
50
55
  end
51
56
 
52
57
  Would result in the following module/class hierarchy being easyloadable:
58
+
53
59
  MyEasyloadedModule
54
60
  MyEasyloadedModule::ChildModule
55
61
  MyEasyloadedModule::ChildModule::Leafy
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
6
6
  s.name = 'easyload'
7
7
  s.version = Easyload::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ['Ian MacLeod']
10
- s.email = ['ian@nevir.net']
9
+ s.authors = ['Ian MacLeod', 'Donavan White']
10
+ s.email = ['ian@nevir.net', 'digi.cazter@gmail.com']
11
11
  s.homepage = ''
12
12
  s.summary = 'A recursive and opinionated alternative to autoload.'
13
13
  s.description = 'An alternative to autoload that relies on your project\'s directory structure to determine its module hierarchy, recursively.'
@@ -54,7 +54,7 @@ module Easyload
54
54
  # Perform the easyload.
55
55
  LOAD_LOCK.synchronize do
56
56
  $parent = self
57
- self.module_eval(file_source)
57
+ self.module_eval(file_source, path_to_easyload)
58
58
  end
59
59
 
60
60
  #puts "===="
@@ -1,4 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Easyload
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
metadata CHANGED
@@ -1,77 +1,67 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: easyload
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 0
9
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Ian MacLeod
8
+ - Donavan White
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-02-24 00:00:00 -08:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-11-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
26
18
  - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 5
31
- - 0
19
+ - !ruby/object:Gem::Version
32
20
  version: 2.5.0
33
21
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: yard
37
22
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: 2.5.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: yard
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
41
32
  - - ~>
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 6
46
- - 4
33
+ - !ruby/object:Gem::Version
47
34
  version: 0.6.4
48
35
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: bluecloth
52
36
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ version: 0.6.4
42
+ - !ruby/object:Gem::Dependency
43
+ name: bluecloth
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
56
46
  - - ~>
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 2
60
- - 0
61
- - 11
47
+ - !ruby/object:Gem::Version
62
48
  version: 2.0.11
63
49
  type: :development
64
- version_requirements: *id003
65
- description: An alternative to autoload that relies on your project's directory structure to determine its module hierarchy, recursively.
66
- email:
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 2.0.11
56
+ description: An alternative to autoload that relies on your project's directory structure
57
+ to determine its module hierarchy, recursively.
58
+ email:
67
59
  - ian@nevir.net
60
+ - digi.cazter@gmail.com
68
61
  executables: []
69
-
70
62
  extensions: []
71
-
72
63
  extra_rdoc_files: []
73
-
74
- files:
64
+ files:
75
65
  - .gitignore
76
66
  - .yardopts
77
67
  - Gemfile
@@ -93,47 +83,27 @@ files:
93
83
  - spec/relative_constants/bar.rb
94
84
  - spec/relative_constants/foo.rb
95
85
  - spec/relative_constants_spec.rb
96
- has_rdoc: true
97
- homepage: ""
86
+ homepage: ''
98
87
  licenses: []
99
-
88
+ metadata: {}
100
89
  post_install_message:
101
90
  rdoc_options: []
102
-
103
- require_paths:
91
+ require_paths:
104
92
  - lib
105
- required_ruby_version: !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- segments:
111
- - 0
112
- version: "0"
113
- required_rubygems_version: !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- segments:
119
- - 0
120
- version: "0"
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
121
103
  requirements: []
122
-
123
104
  rubyforge_project: easyload
124
- rubygems_version: 1.3.7
105
+ rubygems_version: 2.1.9
125
106
  signing_key:
126
- specification_version: 3
107
+ specification_version: 4
127
108
  summary: A recursive and opinionated alternative to autoload.
128
- test_files:
129
- - spec/basic_spec.rb
130
- - spec/deep/example.rb
131
- - spec/deep/example/thing.rb
132
- - spec/examples/load_counter.rb
133
- - spec/examples/nested.rb
134
- - spec/examples/nested/leaf.rb
135
- - spec/examples/node.rb
136
- - spec/naming_spec.rb
137
- - spec/relative_constants/bar.rb
138
- - spec/relative_constants/foo.rb
139
- - spec/relative_constants_spec.rb
109
+ test_files: []