im 0.1.6 → 0.2.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/MIT-LICENSE +21 -0
- data/README.md +245 -32
- data/lib/im/const_path.rb +48 -0
- data/lib/im/error.rb +24 -0
- data/lib/im/explicit_namespace.rb +96 -0
- data/lib/im/gem_inflector.rb +17 -0
- data/lib/im/gem_loader.rb +65 -0
- data/lib/im/inflector.rb +46 -0
- data/lib/im/internal.rb +12 -0
- data/lib/im/kernel.rb +34 -9
- data/lib/im/loader/callbacks.rb +93 -0
- data/lib/im/loader/config.rb +346 -0
- data/lib/im/loader/eager_load.rb +214 -0
- data/lib/im/loader/helpers.rb +123 -0
- data/lib/im/loader.rb +586 -0
- data/lib/im/module_const_added.rb +63 -0
- data/lib/im/registry.rb +166 -0
- data/lib/im/version.rb +1 -1
- data/lib/im.rb +18 -185
- metadata +25 -61
- data/CHANGELOG.md +0 -31
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -37
- data/LICENSE.txt +0 -21
- data/Rakefile +0 -8
- data/lib/im/module.rb +0 -9
- data/lib/im/ruby_version_check.rb +0 -22
@@ -1,22 +0,0 @@
|
|
1
|
-
RubyVersionCheck = Module.new
|
2
|
-
|
3
|
-
unless RubyVersionCheck.name == "RubyVersionCheck"
|
4
|
-
raise RuntimeError, <<~MSG
|
5
|
-
|
6
|
-
|
7
|
-
\e[33m!!! RUNNING INCOMPATIBLE VERSION OF RUBY !!!\e[0m
|
8
|
-
|
9
|
-
In order to implement module imports, Im depends on features not currently
|
10
|
-
available in Ruby. To use it, you must build a custom version of Ruby,
|
11
|
-
currently available at:
|
12
|
-
|
13
|
-
https://github.com/shioyama/ruby/tree/import_modules
|
14
|
-
|
15
|
-
Install this Ruby following the instructions here:
|
16
|
-
|
17
|
-
https://docs.ruby-lang.org/en/master/contributing/building_ruby_md.html
|
18
|
-
|
19
|
-
Once installed, ensure you are using this patched version and then gem install Im,
|
20
|
-
and this message should no longer appear.
|
21
|
-
MSG
|
22
|
-
end
|