im 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 -172
- metadata +24 -60
- data/CHANGELOG.md +0 -28
- data/Gemfile +0 -10
- data/Gemfile.lock +0 -182
- 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
data/Gemfile.lock
DELETED
@@ -1,182 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
im (0.1.4)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
actioncable (7.0.4)
|
10
|
-
actionpack (= 7.0.4)
|
11
|
-
activesupport (= 7.0.4)
|
12
|
-
nio4r (~> 2.0)
|
13
|
-
websocket-driver (>= 0.6.1)
|
14
|
-
actionmailbox (7.0.4)
|
15
|
-
actionpack (= 7.0.4)
|
16
|
-
activejob (= 7.0.4)
|
17
|
-
activerecord (= 7.0.4)
|
18
|
-
activestorage (= 7.0.4)
|
19
|
-
activesupport (= 7.0.4)
|
20
|
-
mail (>= 2.7.1)
|
21
|
-
net-imap
|
22
|
-
net-pop
|
23
|
-
net-smtp
|
24
|
-
actionmailer (7.0.4)
|
25
|
-
actionpack (= 7.0.4)
|
26
|
-
actionview (= 7.0.4)
|
27
|
-
activejob (= 7.0.4)
|
28
|
-
activesupport (= 7.0.4)
|
29
|
-
mail (~> 2.5, >= 2.5.4)
|
30
|
-
net-imap
|
31
|
-
net-pop
|
32
|
-
net-smtp
|
33
|
-
rails-dom-testing (~> 2.0)
|
34
|
-
actionpack (7.0.4)
|
35
|
-
actionview (= 7.0.4)
|
36
|
-
activesupport (= 7.0.4)
|
37
|
-
rack (~> 2.0, >= 2.2.0)
|
38
|
-
rack-test (>= 0.6.3)
|
39
|
-
rails-dom-testing (~> 2.0)
|
40
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
41
|
-
actiontext (7.0.4)
|
42
|
-
actionpack (= 7.0.4)
|
43
|
-
activerecord (= 7.0.4)
|
44
|
-
activestorage (= 7.0.4)
|
45
|
-
activesupport (= 7.0.4)
|
46
|
-
globalid (>= 0.6.0)
|
47
|
-
nokogiri (>= 1.8.5)
|
48
|
-
actionview (7.0.4)
|
49
|
-
activesupport (= 7.0.4)
|
50
|
-
builder (~> 3.1)
|
51
|
-
erubi (~> 1.4)
|
52
|
-
rails-dom-testing (~> 2.0)
|
53
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
54
|
-
activejob (7.0.4)
|
55
|
-
activesupport (= 7.0.4)
|
56
|
-
globalid (>= 0.3.6)
|
57
|
-
activemodel (7.0.4)
|
58
|
-
activesupport (= 7.0.4)
|
59
|
-
activerecord (7.0.4)
|
60
|
-
activemodel (= 7.0.4)
|
61
|
-
activesupport (= 7.0.4)
|
62
|
-
activestorage (7.0.4)
|
63
|
-
actionpack (= 7.0.4)
|
64
|
-
activejob (= 7.0.4)
|
65
|
-
activerecord (= 7.0.4)
|
66
|
-
activesupport (= 7.0.4)
|
67
|
-
marcel (~> 1.0)
|
68
|
-
mini_mime (>= 1.1.0)
|
69
|
-
activesupport (7.0.4)
|
70
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
71
|
-
i18n (>= 1.6, < 2)
|
72
|
-
minitest (>= 5.1)
|
73
|
-
tzinfo (~> 2.0)
|
74
|
-
builder (3.2.4)
|
75
|
-
concurrent-ruby (1.1.10)
|
76
|
-
crass (1.0.6)
|
77
|
-
diff-lcs (1.5.0)
|
78
|
-
digest (3.1.0)
|
79
|
-
erubi (1.11.0)
|
80
|
-
globalid (1.0.0)
|
81
|
-
activesupport (>= 5.0)
|
82
|
-
i18n (1.12.0)
|
83
|
-
concurrent-ruby (~> 1.0)
|
84
|
-
loofah (2.19.0)
|
85
|
-
crass (~> 1.0.2)
|
86
|
-
nokogiri (>= 1.5.9)
|
87
|
-
mail (2.7.1)
|
88
|
-
mini_mime (>= 0.1.1)
|
89
|
-
marcel (1.0.2)
|
90
|
-
method_source (1.0.0)
|
91
|
-
mini_mime (1.1.2)
|
92
|
-
mini_portile2 (2.8.0)
|
93
|
-
minitest (5.16.3)
|
94
|
-
net-imap (0.2.3)
|
95
|
-
digest
|
96
|
-
net-protocol
|
97
|
-
strscan
|
98
|
-
net-pop (0.1.1)
|
99
|
-
digest
|
100
|
-
net-protocol
|
101
|
-
timeout
|
102
|
-
net-protocol (0.1.3)
|
103
|
-
timeout
|
104
|
-
net-smtp (0.3.1)
|
105
|
-
digest
|
106
|
-
net-protocol
|
107
|
-
timeout
|
108
|
-
nio4r (2.5.8)
|
109
|
-
nokogiri (1.13.8)
|
110
|
-
mini_portile2 (~> 2.8.0)
|
111
|
-
racc (~> 1.4)
|
112
|
-
racc (1.6.0)
|
113
|
-
rack (2.2.4)
|
114
|
-
rack-test (2.0.2)
|
115
|
-
rack (>= 1.3)
|
116
|
-
rails (7.0.4)
|
117
|
-
actioncable (= 7.0.4)
|
118
|
-
actionmailbox (= 7.0.4)
|
119
|
-
actionmailer (= 7.0.4)
|
120
|
-
actionpack (= 7.0.4)
|
121
|
-
actiontext (= 7.0.4)
|
122
|
-
actionview (= 7.0.4)
|
123
|
-
activejob (= 7.0.4)
|
124
|
-
activemodel (= 7.0.4)
|
125
|
-
activerecord (= 7.0.4)
|
126
|
-
activestorage (= 7.0.4)
|
127
|
-
activesupport (= 7.0.4)
|
128
|
-
bundler (>= 1.15.0)
|
129
|
-
railties (= 7.0.4)
|
130
|
-
rails-dom-testing (2.0.3)
|
131
|
-
activesupport (>= 4.2.0)
|
132
|
-
nokogiri (>= 1.6)
|
133
|
-
rails-html-sanitizer (1.4.3)
|
134
|
-
loofah (~> 2.3)
|
135
|
-
railties (7.0.4)
|
136
|
-
actionpack (= 7.0.4)
|
137
|
-
activesupport (= 7.0.4)
|
138
|
-
method_source
|
139
|
-
rake (>= 12.2)
|
140
|
-
thor (~> 1.0)
|
141
|
-
zeitwerk (~> 2.5)
|
142
|
-
rake (13.0.6)
|
143
|
-
rake-compiler (1.2.0)
|
144
|
-
rake
|
145
|
-
rspec (3.11.0)
|
146
|
-
rspec-core (~> 3.11.0)
|
147
|
-
rspec-expectations (~> 3.11.0)
|
148
|
-
rspec-mocks (~> 3.11.0)
|
149
|
-
rspec-core (3.11.0)
|
150
|
-
rspec-support (~> 3.11.0)
|
151
|
-
rspec-expectations (3.11.0)
|
152
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
153
|
-
rspec-support (~> 3.11.0)
|
154
|
-
rspec-mocks (3.11.1)
|
155
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
156
|
-
rspec-support (~> 3.11.0)
|
157
|
-
rspec-support (3.11.0)
|
158
|
-
sqlite3 (1.5.0)
|
159
|
-
mini_portile2 (~> 2.8.0)
|
160
|
-
strscan (3.0.4)
|
161
|
-
thor (1.2.1)
|
162
|
-
timeout (0.3.0)
|
163
|
-
tzinfo (2.0.5)
|
164
|
-
concurrent-ruby (~> 1.0)
|
165
|
-
websocket-driver (0.7.5)
|
166
|
-
websocket-extensions (>= 0.1.0)
|
167
|
-
websocket-extensions (0.1.5)
|
168
|
-
zeitwerk (2.6.0)
|
169
|
-
|
170
|
-
PLATFORMS
|
171
|
-
x86_64-linux
|
172
|
-
|
173
|
-
DEPENDENCIES
|
174
|
-
im!
|
175
|
-
rails
|
176
|
-
rake (~> 13.0)
|
177
|
-
rake-compiler
|
178
|
-
rspec (~> 3.0)
|
179
|
-
sqlite3
|
180
|
-
|
181
|
-
BUNDLED WITH
|
182
|
-
2.4.0.dev
|
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2022 Chris Salzberg
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/Rakefile
DELETED
data/lib/im/module.rb
DELETED
@@ -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
|