No commit activity in last 3 years
No release in over 3 years
Checks for conflicts in class/module definitions and corrects them.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.0
 Project Readme

autoload-checker

Checks for conflicts in class/module definitions and corrects them. For instance, you have a file foo/bar/baz.rb with following content:

module Foo
  module Bar
    class Baz
    end
  end
end

And a file foo/bar.rb with following content:

module Foo
  class Bar
  end
end

So, when you start your app, "Bar is not a class" exception will be thrown. autoload_checker detects conflict definitions and fix them by replacing module Bar with class Bar in foo/bar/baz.rb.

Usage

Usage: ./bin/autoload_checker.rb [options]
    -p, --path DIR,...               [Mandatory] directories to check
    -c, --correct                    Enable errors correction
    -h, --help                       Prints this help