lib/rgversion.rb in rgversion-1.1.6 vs lib/rgversion.rb in rgversion-1.1.7.beta1
- old
+ new
@@ -1,12 +1,18 @@
require "active_support/core_ext/object/blank"
+require "active_support/dependencies/autoload"
require "awesome_print"
require "os"
-require "rgversion/application"
-require "rgversion/exceptions"
-require "rgversion/spider"
-require "rgversion/terminal"
-require "rgversion/version"
module Rgversion
- SELECTOR = "#gemfile_text".freeze
+ extend ActiveSupport::Autoload
+
+ autoload :Application
+ autoload :Clipboard
+ autoload :Instruction
+ autoload :Settings
+ autoload :Spider
+ autoload :Terminal
end
+
+require_relative "rgversion/exceptions"
+require_relative "rgversion/version"