This is an automated email from the git hooks/post-receive script. pini pushed a commit to tag upstream/1.1.0_beta1 in repository sikuli.
commit 007f551a8cd0fed388c75808a2830ee2cb4c7080 Author: Raimund Hocke <[email protected]> Date: Thu Feb 20 18:17:28 2014 +0100 pimped the log messages with undotted methods --- Basics/src/main/resources/Lib/sikulix.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Basics/src/main/resources/Lib/sikulix.rb b/Basics/src/main/resources/Lib/sikulix.rb index 65a618b..33d4ada 100755 --- a/Basics/src/main/resources/Lib/sikulix.rb +++ b/Basics/src/main/resources/Lib/sikulix.rb @@ -40,11 +40,6 @@ module SikuliX4Ruby java_import org.sikuli.basics.Debug - # Debug print - def log str - puts str if (org.sikuli.basics::Settings.DebugLogs == true) - end - # # This method generates a wrapper for Java Native exception processing # in native java methods. It allows to detect a line number in script @@ -127,18 +122,17 @@ end # Region/Screen or SikuliX classes. def self.method_missing name, *args, &block begin - log "method not exists: #{name} - trying SikuliX\n" + Debug.log 3, "SikuliX4Ruby: looking for undotted method: #{name}" if method = SikuliX4Ruby::UNDOTTED_METHODS[name] then - log "SikuliX has: #{name}\n" ret = method.call *args, &block # Dynamic methods that throw a native Java-exception, # hide a line number in the scriptfile! #Object.send(:define_method, name){ |*args| method.call *args } return ret else - raise "Non SikuliX method: #{name} (#{args})" + raise "undotted method missing" end rescue Exception => e - raise "Problem (#{e})\nwith SikuliX.#{name} (#{args})" + raise "SikuliX4Ruby: Problem (#{e})\nwith undotted method: #{name} (#{args})" end end -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sikuli.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

