T
Tony Arcieri
[Note: parts of this message were removed to make it a legal post.]
I've been considering rewriting my require_all gem:
http://github.com/tarcieri/require_all/
...to parse the Ruby source code, extracting a list of constants a
particular file defines and a list of constants that are expected to be
defined before a file is loaded.
The gem can iterate through all files requested to be loaded, generate these
lists of constants per file, and from there resolve the proper order that
the files should be loaded in, provided all constants are resolvable.
This would solve a number of problems with require_all's approach.
What's the best gem to do this with? ruby_parser?
I've been considering rewriting my require_all gem:
http://github.com/tarcieri/require_all/
...to parse the Ruby source code, extracting a list of constants a
particular file defines and a list of constants that are expected to be
defined before a file is loaded.
The gem can iterate through all files requested to be loaded, generate these
lists of constants per file, and from there resolve the proper order that
the files should be loaded in, provided all constants are resolvable.
This would solve a number of problems with require_all's approach.
What's the best gem to do this with? ruby_parser?