lib/tryouts.rb in tryouts-0.7.4 vs lib/tryouts.rb in tryouts-0.8.0

- old
+ new

@@ -2,10 +2,11 @@ require 'time' require 'sysinfo' require 'digest/sha1' require 'ostruct' require 'yaml' +require 'rye' begin; require 'json'; rescue LoadError; end # json may not be installed GYMNASIUM_HOME = File.join(Dir.pwd, '{tryouts,try}') ## also check try (for rye) GYMNASIUM_GLOB = File.join(GYMNASIUM_HOME, '**', '*_tryouts.rb') @@ -39,11 +40,11 @@ vdt = Tryouts::Drill.valid_dtypes "Tryout '#{@tname}' has no drill type. Should be: #{vdt.join(', ')}" end end - VERSION = "0.7.4" + VERSION = "0.8.0" require 'tryouts/mixins' require 'tryouts/tryout' require 'tryouts/drill' require 'tryouts/stats' @@ -117,10 +118,10 @@ def run; @tryouts.each_pair { |n,to| to.run }; end # Add a shell command to Rye::Cmd and save the command name # in @@commands so it can be used as the default for drills def command(name=nil, path=nil) - raise "command testing is temporarily disabled" + #raise "command testing is temporarily disabled" return @command if name.nil? @command = name.to_sym @dtype = :cli Rye::Cmd.module_eval do define_method(name) do |*args|