require_all 2.0.0 → 3.0.0
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/{CHANGES → CHANGES.md} +18 -11
- data/README.md +1 -1
- data/lib/require_all.rb +7 -1
- data/require_all.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc16bfd8a27b9adf2d5951b7ed9c04f5faa6a952
|
|
4
|
+
data.tar.gz: 973300ba1c5d670492d4be1ac9fe07d85a71fd80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3aadfe960348d258a0cfc72ed22f876d909619dbbe67d6d65f6ba197c7c6e3d8a328809620e43f3896343eaca891b40ff12a29837cdf78df38267f4e6c1fef6a
|
|
7
|
+
data.tar.gz: 2cda5e17d90928b9fb45bc65249b2d4168fe2f55bdb131d64f93ffc64c43cd14c293eda0b95136eaff8c5e82ce4188af2fa0eb4499fd605ef1bfb6183554ca0b
|
data/{CHANGES → CHANGES.md}
RENAMED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
### 3.0.0:
|
|
2
|
+
|
|
3
|
+
* Merged PR #29 (https://github.com/jarmo/require_all/pull/29)
|
|
4
|
+
Respect inflections defined by ActiveSupport when autoloading.
|
|
5
|
+
|
|
6
|
+
Thanks to James Le Cuirot (@chewi)
|
|
7
|
+
|
|
8
|
+
### 2.0.0:
|
|
2
9
|
|
|
3
10
|
* Merged PR #24 (https://github.com/jarmo/require_all/pull/24)
|
|
4
11
|
Prior to version 2, RequireAll attempted to automatically resolve dependencies between files, thus
|
|
@@ -8,48 +15,48 @@
|
|
|
8
15
|
|
|
9
16
|
Thanks to Joe Horsnell (@joehorsnell)
|
|
10
17
|
|
|
11
|
-
1.5.0:
|
|
18
|
+
### 1.5.0:
|
|
12
19
|
|
|
13
20
|
* Merged PR #13 (https://github.com/jarmo/require_all/pull/13).
|
|
14
21
|
* Merged PR #18 (https://github.com/jarmo/require_all/pull/18).
|
|
15
22
|
|
|
16
|
-
1.4.0:
|
|
23
|
+
### 1.4.0:
|
|
17
24
|
|
|
18
25
|
* License is now correctly as MIT. Thanks to Eric Kessler for pull request #16.
|
|
19
26
|
|
|
20
|
-
1.3.3:
|
|
27
|
+
### 1.3.3:
|
|
21
28
|
|
|
22
29
|
* Support empty directories without crashing. Issue #11. Thanks to Eric Kessler.
|
|
23
30
|
|
|
24
|
-
1.3.2:
|
|
31
|
+
### 1.3.2:
|
|
25
32
|
|
|
26
33
|
* Add license to gemspec.
|
|
27
34
|
|
|
28
|
-
1.3.1:
|
|
35
|
+
### 1.3.1:
|
|
29
36
|
|
|
30
37
|
* README improvements.
|
|
31
38
|
|
|
32
|
-
1.3.0:
|
|
39
|
+
### 1.3.0:
|
|
33
40
|
|
|
34
41
|
* Make everything work with Ruby 1.9 and 2.0. Awesome! Thanks to Aaron Klaassen.
|
|
35
42
|
|
|
36
|
-
1.2.0:
|
|
43
|
+
### 1.2.0:
|
|
37
44
|
|
|
38
45
|
* Add load_all, and load_rel which behave similarly to require_all/require_rel except that Kernel#load is used
|
|
39
46
|
* Add autoload_all and autoload_rel (see README and/or specs for examples of usage)
|
|
40
47
|
* Minor bug fixes
|
|
41
48
|
* Improved specs
|
|
42
49
|
|
|
43
|
-
1.1.0:
|
|
50
|
+
### 1.1.0:
|
|
44
51
|
|
|
45
52
|
* Add require_rel (require_all relative to the current file)
|
|
46
53
|
* Fix bug in auto-appending .rb ala require
|
|
47
54
|
|
|
48
|
-
1.0.1:
|
|
55
|
+
### 1.0.1:
|
|
49
56
|
|
|
50
57
|
* Allow require_all to take a directory name as an argument
|
|
51
58
|
|
|
52
|
-
1.0.0:
|
|
59
|
+
### 1.0.0:
|
|
53
60
|
|
|
54
61
|
* Initial release (was originally load_glob, converted to require_all which is
|
|
55
62
|
a lot cooler, seriously trust me)
|
data/README.md
CHANGED
|
@@ -112,7 +112,7 @@ are mapped to their respective modules and classes.
|
|
|
112
112
|
As of version 2, RequireAll will raise a `RequireAll::LoadError` if it encounters a `NameError`
|
|
113
113
|
caused by a reference to an uninitialised constant during the requiring process. As such, it is not
|
|
114
114
|
backwards compatible with version 1.x, but simple to upgrade by adding any requires to load
|
|
115
|
-
dependencies in files that need them. See [CHANGES](CHANGES) for more details.
|
|
115
|
+
dependencies in files that need them. See [CHANGES](CHANGES.md) for more details.
|
|
116
116
|
|
|
117
117
|
## Questions? Comments? Concerns?
|
|
118
118
|
|
data/lib/require_all.rb
CHANGED
|
@@ -226,7 +226,13 @@ module RequireAll
|
|
|
226
226
|
mod = Object.class_eval(last_module)
|
|
227
227
|
|
|
228
228
|
without_ext = entry.basename(entry.extname).to_s
|
|
229
|
-
|
|
229
|
+
|
|
230
|
+
const =
|
|
231
|
+
if defined? ActiveSupport::Inflector
|
|
232
|
+
ActiveSupport::Inflector.camelize(without_ext)
|
|
233
|
+
else
|
|
234
|
+
without_ext.split("_").map {|word| word.capitalize}.join
|
|
235
|
+
end
|
|
230
236
|
|
|
231
237
|
if entry.file? || (entry.directory? && entry.sub_ext('.rb').file?)
|
|
232
238
|
mod.class_eval do
|
data/require_all.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "require_all"
|
|
3
|
-
s.version = "
|
|
3
|
+
s.version = "3.0.0"
|
|
4
4
|
s.authors = ["Jarmo Pertman", "Tony Arcieri"]
|
|
5
5
|
s.email = "jarmo.p@gmail.com"
|
|
6
6
|
s.summary = "A wonderfully simple way to load your code"
|
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
|
14
14
|
|
|
15
15
|
s.has_rdoc = true
|
|
16
16
|
s.rdoc_options = %w(--title require_all --main README.md --line-numbers)
|
|
17
|
-
s.extra_rdoc_files = ["LICENSE", "README.md", "CHANGES"]
|
|
17
|
+
s.extra_rdoc_files = ["LICENSE", "README.md", "CHANGES.md"]
|
|
18
18
|
|
|
19
19
|
s.add_development_dependency "rake", "~> 10.4"
|
|
20
20
|
s.add_development_dependency "rspec", "~> 3.2"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: require_all
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jarmo Pertman
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2019-10-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|
|
@@ -60,11 +60,11 @@ extensions: []
|
|
|
60
60
|
extra_rdoc_files:
|
|
61
61
|
- LICENSE
|
|
62
62
|
- README.md
|
|
63
|
-
- CHANGES
|
|
63
|
+
- CHANGES.md
|
|
64
64
|
files:
|
|
65
65
|
- ".gitignore"
|
|
66
66
|
- ".travis.yml"
|
|
67
|
-
- CHANGES
|
|
67
|
+
- CHANGES.md
|
|
68
68
|
- Gemfile
|
|
69
69
|
- LICENSE
|
|
70
70
|
- README.md
|