lib/rgot.rb in rgot-1.1.0 vs lib/rgot.rb in rgot-1.2.0
- old
+ new
@@ -1,13 +1,15 @@
+# frozen_string_literal: true
+
module Rgot
- require 'rgot/version'
- require 'rgot/common'
- require 'rgot/m'
- require 'rgot/t'
- require 'rgot/b'
- require 'rgot/pb'
- require 'rgot/benchmark_result'
- require 'rgot/example_parser'
+ autoload :VERSION, 'rgot/version'
+ autoload :Common, 'rgot/common'
+ autoload :M, 'rgot/m'
+ autoload :T, 'rgot/t'
+ autoload :B, 'rgot/b'
+ autoload :PB, 'rgot/pb'
+ autoload :BenchmarkResult, 'rgot/benchmark_result'
+ autoload :ExampleParser, 'rgot/example_parser'
OptionError = Class.new(StandardError)
InternalTest = Struct.new(:module, :name)
InternalBenchmark = Struct.new(:module, :name)
InternalExample = Struct.new(:module, :name)