Hello community, here is the log from the commit of package rubygem-byebug for openSUSE:Factory checked in at 2016-06-02 12:50:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-byebug (Old) and /work/SRC/openSUSE:Factory/.rubygem-byebug.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-byebug" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-byebug/rubygem-byebug.changes 2016-05-23 16:37:18.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-byebug.new/rubygem-byebug.changes 2016-06-02 12:50:03.000000000 +0200 @@ -1,0 +2,18 @@ +Sun May 29 04:28:32 UTC 2016 - [email protected] + +- updated to version 9.0.5 + see installed CHANGELOG.md + +------------------------------------------------------------------- +Sat May 21 04:29:39 UTC 2016 - [email protected] + +- updated to version 9.0.4 + see installed CHANGELOG.md + + ## 9.0.4 - 2015-05-19 + + ### Fixed + + * Errors in rc file not being displayed to the user. + +------------------------------------------------------------------- Old: ---- byebug-9.0.3.gem New: ---- byebug-9.0.5.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-byebug.spec ++++++ --- /var/tmp/diff_new_pack.x2mgyf/_old 2016-06-02 12:50:04.000000000 +0200 +++ /var/tmp/diff_new_pack.x2mgyf/_new 2016-06-02 12:50:04.000000000 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-byebug -Version: 9.0.3 +Version: 9.0.5 Release: 0 %define mod_name byebug %define mod_full_name %{mod_name}-%{version} ++++++ byebug-9.0.3.gem -> byebug-9.0.5.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2016-05-16 09:42:32.000000000 +0200 +++ new/CHANGELOG.md 2016-05-28 18:28:32.000000000 +0200 @@ -2,6 +2,18 @@ ## Master (Unreleased) +## 9.0.5 - 2016-05-28 + +### Fixed + +* Error loading rc file when `ENV['HOME']` is unset. + +## 9.0.4 - 2016-05-19 + +### Fixed + +* Errors in rc file not being displayed to the user. + ## 9.0.3 - 2016-05-16 ### Fixed Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/byebug/core.rb new/lib/byebug/core.rb --- old/lib/byebug/core.rb 2016-05-16 09:42:32.000000000 +0200 +++ new/lib/byebug/core.rb 2016-05-28 18:28:32.000000000 +0200 @@ -47,9 +47,7 @@ # are debugging, in the directory where you invoke byebug. # def run_init_script - run_rc_file(ENV['HOME']) - - run_rc_file(Dir.pwd) unless Dir.pwd == ENV['HOME'] + rc_dirs.each { |dir| run_rc_file(dir) } end def self.load_settings @@ -94,6 +92,15 @@ ensure Context.interface = old_interface end + + # + # List of folders to load rc files from + # + # @note Files will be loaded in the order specified here. + # + def rc_dirs + [ENV['HOME'], Dir.pwd].compact.uniq + end end Byebug.load_settings diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/byebug/interface.rb new/lib/byebug/interface.rb --- old/lib/byebug/interface.rb 2016-05-16 09:42:32.000000000 +0200 +++ new/lib/byebug/interface.rb 2016-05-28 18:28:32.000000000 +0200 @@ -86,6 +86,9 @@ output.puts(message) end + # + # Prints an output message to the output stream without a final "\n". + # def print(message) output.print(message) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/byebug/interfaces/local_interface.rb new/lib/byebug/interfaces/local_interface.rb --- old/lib/byebug/interfaces/local_interface.rb 2016-05-16 09:42:32.000000000 +0200 +++ new/lib/byebug/interfaces/local_interface.rb 2016-05-28 18:28:32.000000000 +0200 @@ -8,9 +8,9 @@ def initialize super() - @input = STDIN - @output = STDOUT - @error = STDERR + @input = $stdin + @output = $stdout + @error = $stderr end # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/byebug/interfaces/script_interface.rb new/lib/byebug/interfaces/script_interface.rb --- old/lib/byebug/interfaces/script_interface.rb 2016-05-16 09:42:32.000000000 +0200 +++ new/lib/byebug/interfaces/script_interface.rb 2016-05-28 18:28:32.000000000 +0200 @@ -5,9 +5,10 @@ class ScriptInterface < Interface def initialize(file, verbose = false) super() + @verbose = verbose @input = File.open(file) - @output = verbose ? STDOUT : StringIO.new - @error = verbose ? STDERR : StringIO.new + @output = verbose ? $stdout : StringIO.new + @error = $stderr end def read_command(prompt) @@ -20,7 +21,7 @@ def readline(*) while (result = input.gets) - output.puts "+ #{result}" + output.puts "+ #{result}" if @verbose next if result =~ /^\s*#/ return result.chomp end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/byebug/processors/command_processor.rb new/lib/byebug/processors/command_processor.rb --- old/lib/byebug/processors/command_processor.rb 2016-05-16 09:42:32.000000000 +0200 +++ new/lib/byebug/processors/command_processor.rb 2016-05-28 18:28:32.000000000 +0200 @@ -109,21 +109,6 @@ '(byebug) ' end - private - - def auto_cmds_for(run_level) - command_list.select { |cmd| cmd.always_run >= run_level } - end - - # - # Run permanent commands. - # - def run_auto_cmds(run_level) - safely do - auto_cmds_for(run_level).each { |cmd| cmd.new(self).execute } - end - end - def before_repl @proceed = false @prev_line = nil @@ -150,6 +135,21 @@ end end + private + + def auto_cmds_for(run_level) + command_list.select { |cmd| cmd.always_run >= run_level } + end + + # + # Run permanent commands. + # + def run_auto_cmds(run_level) + safely do + auto_cmds_for(run_level).each { |cmd| cmd.new(self).execute } + end + end + # # Executes the received input # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/byebug/processors/script_processor.rb new/lib/byebug/processors/script_processor.rb --- old/lib/byebug/processors/script_processor.rb 2016-05-16 09:42:32.000000000 +0200 +++ new/lib/byebug/processors/script_processor.rb 2016-05-28 18:28:32.000000000 +0200 @@ -12,25 +12,19 @@ super.select(&:allow_in_control) end - def process_commands + def repl while (input = interface.read_command(prompt)) - command = command_list.match(input) + safely do + command = command_list.match(input) + raise CommandNotFound.new(input) unless command - if command command.new(self, input).execute - else - errmsg('Unknown command') end end + end + def after_repl interface.close - rescue IOError, SystemCallError - interface.close - rescue - without_exceptions do - puts "INTERNAL ERROR!!! #{$ERROR_INFO}" - puts $ERROR_INFO.backtrace.map { |l| " #{l}" }.join("\n") - end end # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/byebug/runner.rb new/lib/byebug/runner.rb --- old/lib/byebug/runner.rb 2016-05-16 09:42:32.000000000 +0200 +++ new/lib/byebug/runner.rb 2016-05-28 18:28:32.000000000 +0200 @@ -71,11 +71,11 @@ # Usage banner. # def banner - <<-EOB.gsub(/^ {8}/, '') + <<-EOB.gsub(/^ {6}/, '') - byebug #{Byebug::VERSION} + byebug #{Byebug::VERSION} - Usage: byebug [options] <script.rb> -- <script.rb parameters> + Usage: byebug [options] <script.rb> -- <script.rb parameters> EOB end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/byebug/version.rb new/lib/byebug/version.rb --- old/lib/byebug/version.rb 2016-05-16 09:42:32.000000000 +0200 +++ new/lib/byebug/version.rb 2016-05-28 18:28:32.000000000 +0200 @@ -3,5 +3,5 @@ # Reopen main module to define the library version # module Byebug - VERSION = '9.0.3'.freeze + VERSION = '9.0.5'.freeze end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2016-05-16 09:42:32.000000000 +0200 +++ new/metadata 2016-05-28 18:28:32.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: byebug version: !ruby/object:Gem::Version - version: 9.0.3 + version: 9.0.5 platform: ruby authors: - David Rodriguez @@ -10,7 +10,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2016-05-16 00:00:00.000000000 Z +date: 2016-05-28 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler
