byebug 10.0.0 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/README.md +3 -1
- data/ext/byebug/byebug.c +1 -1
- data/ext/byebug/byebug.h +2 -2
- data/ext/byebug/context.c +2 -2
- data/ext/byebug/threads.c +1 -1
- data/lib/byebug/helpers/bin.rb +2 -2
- data/lib/byebug/helpers/eval.rb +7 -7
- data/lib/byebug/helpers/frame.rb +2 -2
- data/lib/byebug/history.rb +4 -4
- data/lib/byebug/printers/plain.rb +1 -1
- data/lib/byebug/settings/autoirb.rb +2 -2
- data/lib/byebug/settings/autolist.rb +2 -2
- data/lib/byebug/settings/autopry.rb +2 -2
- data/lib/byebug/settings/linetrace.rb +2 -2
- data/lib/byebug/settings/post_mortem.rb +2 -2
- data/lib/byebug/version.rb +1 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: af479e33dcc1cf0ca62e4afe7da8b4a5fa3f07b5ea759c34f6eecea1922cbbf6
         | 
| 4 | 
            +
              data.tar.gz: 37c22c79cbb8923d51845403076eb5f186e851dc2b3aea7cedaffa0f4dd6c721
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 2783b8ff14d13a14d0dbf20097571a8a8111cb6d9dce98ee1760fb1f7c798f50170a0711ed6ac5df066cc26035380e51021d6bc3d7bb492d20979cbbb1a60cca
         | 
| 7 | 
            +
              data.tar.gz: ed8c931230b56c6d84869ca97bbf11b7cd76b29e438aac921e32c0aacab9bb70f77f7d59b8e327a30fbafb70359865b4aa1f57fab59aaeeab4e96fd58e150ef2
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -2,6 +2,12 @@ | |
| 2 2 |  | 
| 3 3 | 
             
            ## Master (Unreleased)
         | 
| 4 4 |  | 
| 5 | 
            +
            ## 10.0.1 - 2018-03-21
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            ### Fixed
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            * Error when using byebug with `debase` gem (#443, @tzmfreedom)
         | 
| 10 | 
            +
             | 
| 5 11 | 
             
            ## 10.0.0 - 2018-01-26
         | 
| 6 12 |  | 
| 7 13 | 
             
            ### Changed
         | 
| @@ -17,7 +23,7 @@ | |
| 17 23 | 
             
            * Some love & tests to remote debugging (#82).
         | 
| 18 24 | 
             
            * `remote_byebug` shortcut to start the most common case for remote debugging (#141).
         | 
| 19 25 |  | 
| 20 | 
            -
             | 
| 26 | 
            +
            ### Fixed
         | 
| 21 27 |  | 
| 22 28 | 
             
            * Properly ignore ruby fullpath executable when passed to byebug script (#419).
         | 
| 23 29 | 
             
            * Remote server crash when interrupting client (#141, #274).
         | 
    
        data/README.md
    CHANGED
    
    | @@ -106,8 +106,8 @@ Command     | Aliases      | Subcommands | |
| 106 106 | 
             
            `catch`     |              |
         | 
| 107 107 | 
             
            `condition` |              |
         | 
| 108 108 | 
             
            `continue`  |              |
         | 
| 109 | 
            -
            `delete`    |              |
         | 
| 110 109 | 
             
            `debug`     |              |
         | 
| 110 | 
            +
            `delete`    |              |
         | 
| 111 111 | 
             
            `disable`   |              | `breakpoints` `display`
         | 
| 112 112 | 
             
            `display`   |              |
         | 
| 113 113 | 
             
            `down`      |              |
         | 
| @@ -118,6 +118,7 @@ Command     | Aliases      | Subcommands | |
| 118 118 | 
             
            `help`      |              |
         | 
| 119 119 | 
             
            `history`   |              |
         | 
| 120 120 | 
             
            `info`      |              | `args` `breakpoints` `catch` `display` `file` `line` `program`
         | 
| 121 | 
            +
            `interrupt` |              |
         | 
| 121 122 | 
             
            `irb`       |              |
         | 
| 122 123 | 
             
            `kill`      |              |
         | 
| 123 124 | 
             
            `list`      |              |
         | 
| @@ -134,6 +135,7 @@ Command     | Aliases      | Subcommands | |
| 134 135 | 
             
            `thread`    |              | `current` `list` `resume` `stop` `switch`
         | 
| 135 136 | 
             
            `tracevar`  |              |
         | 
| 136 137 | 
             
            `undisplay` |              |
         | 
| 138 | 
            +
            `untracevar`|              |
         | 
| 137 139 | 
             
            `up`        |              |
         | 
| 138 140 | 
             
            `var`       |              | `all` `constant` `global` `instance` `local`
         | 
| 139 141 |  | 
    
        data/ext/byebug/byebug.c
    CHANGED
    
    
    
        data/ext/byebug/byebug.h
    CHANGED
    
    | @@ -124,8 +124,8 @@ extern VALUE threads; | |
| 124 124 | 
             
            extern VALUE next_thread;
         | 
| 125 125 |  | 
| 126 126 | 
             
            /* functions from context.c */
         | 
| 127 | 
            -
            extern void  | 
| 128 | 
            -
            extern VALUE  | 
| 127 | 
            +
            extern void Init_byebug_context(VALUE mByebug);
         | 
| 128 | 
            +
            extern VALUE byebug_context_create(VALUE thread);
         | 
| 129 129 | 
             
            extern VALUE context_dup(debug_context_t *context);
         | 
| 130 130 | 
             
            extern void reset_stepping_stop_points(debug_context_t *context);
         | 
| 131 131 | 
             
            extern VALUE call_with_debug_inspector(struct call_with_inspection_data *data);
         | 
    
        data/ext/byebug/context.c
    CHANGED
    
    | @@ -56,7 +56,7 @@ dc_stack_size(debug_context_t *context) | |
| 56 56 | 
             
            }
         | 
| 57 57 |  | 
| 58 58 | 
             
            extern VALUE
         | 
| 59 | 
            -
             | 
| 59 | 
            +
            byebug_context_create(VALUE thread)
         | 
| 60 60 | 
             
            {
         | 
| 61 61 | 
             
              debug_context_t *context = ALLOC(debug_context_t);
         | 
| 62 62 |  | 
| @@ -642,7 +642,7 @@ dt_inherited(VALUE klass) | |
| 642 642 | 
             
             *   Byebug keeps a single instance of this class per thread.
         | 
| 643 643 | 
             
             */
         | 
| 644 644 | 
             
            void
         | 
| 645 | 
            -
             | 
| 645 | 
            +
            Init_byebug_context(VALUE mByebug)
         | 
| 646 646 | 
             
            {
         | 
| 647 647 | 
             
              cContext = rb_define_class_under(mByebug, "Context", rb_cObject);
         | 
| 648 648 |  | 
    
        data/ext/byebug/threads.c
    CHANGED
    
    | @@ -118,7 +118,7 @@ thread_context_lookup(VALUE thread, VALUE *context) | |
| 118 118 |  | 
| 119 119 | 
             
              if (!st_lookup(t_tbl->tbl, thread, context) || !*context)
         | 
| 120 120 | 
             
              {
         | 
| 121 | 
            -
                *context =  | 
| 121 | 
            +
                *context = byebug_context_create(thread);
         | 
| 122 122 | 
             
                st_insert(t_tbl->tbl, thread, *context);
         | 
| 123 123 | 
             
              }
         | 
| 124 124 | 
             
            }
         | 
    
        data/lib/byebug/helpers/bin.rb
    CHANGED
    
    
    
        data/lib/byebug/helpers/eval.rb
    CHANGED
    
    | @@ -63,22 +63,22 @@ module Byebug | |
| 63 63 | 
             
                    yield(e)
         | 
| 64 64 | 
             
                  end
         | 
| 65 65 |  | 
| 66 | 
            -
                  def msg( | 
| 67 | 
            -
                    msg = Setting[:stack_on_error] ? error_msg( | 
| 66 | 
            +
                  def msg(exception)
         | 
| 67 | 
            +
                    msg = Setting[:stack_on_error] ? error_msg(exception) : warning_msg(exception)
         | 
| 68 68 |  | 
| 69 69 | 
             
                    pr("eval.exception", text_message: msg)
         | 
| 70 70 | 
             
                  end
         | 
| 71 71 |  | 
| 72 | 
            -
                  def error_msg( | 
| 73 | 
            -
                    at =  | 
| 72 | 
            +
                  def error_msg(exception)
         | 
| 73 | 
            +
                    at = exception.backtrace
         | 
| 74 74 |  | 
| 75 | 
            -
                    locations = ["#{at.shift}: #{warning_msg( | 
| 75 | 
            +
                    locations = ["#{at.shift}: #{warning_msg(exception)}"]
         | 
| 76 76 | 
             
                    locations += at.map { |path| "  from #{path}" }
         | 
| 77 77 | 
             
                    locations.join("\n")
         | 
| 78 78 | 
             
                  end
         | 
| 79 79 |  | 
| 80 | 
            -
                  def warning_msg( | 
| 81 | 
            -
                    "#{ | 
| 80 | 
            +
                  def warning_msg(exception)
         | 
| 81 | 
            +
                    "#{exception.class} Exception: #{exception.message}"
         | 
| 82 82 | 
             
                  end
         | 
| 83 83 |  | 
| 84 84 | 
             
                  #
         | 
    
        data/lib/byebug/helpers/frame.rb
    CHANGED
    
    | @@ -67,8 +67,8 @@ module Byebug | |
| 67 67 | 
             
                  #
         | 
| 68 68 | 
             
                  # @param i [Integer] Integer to be converted in a proper positive index.
         | 
| 69 69 | 
             
                  #
         | 
| 70 | 
            -
                  def index_from_start( | 
| 71 | 
            -
                     | 
| 70 | 
            +
                  def index_from_start(index)
         | 
| 71 | 
            +
                    index >= 0 ? index : context.stack_size + index
         | 
| 72 72 | 
             
                  end
         | 
| 73 73 | 
             
                end
         | 
| 74 74 | 
             
              end
         | 
    
        data/lib/byebug/history.rb
    CHANGED
    
    | @@ -45,7 +45,7 @@ module Byebug | |
| 45 45 | 
             
                def save
         | 
| 46 46 | 
             
                  n_cmds = Setting[:histsize] > size ? size : Setting[:histsize]
         | 
| 47 47 |  | 
| 48 | 
            -
                  open(Setting[:histfile], "w") do |file|
         | 
| 48 | 
            +
                  File.open(Setting[:histfile], "w") do |file|
         | 
| 49 49 | 
             
                    n_cmds.times { file.puts(pop) }
         | 
| 50 50 | 
             
                  end
         | 
| 51 51 |  | 
| @@ -91,10 +91,10 @@ module Byebug | |
| 91 91 | 
             
                end
         | 
| 92 92 |  | 
| 93 93 | 
             
                #
         | 
| 94 | 
            -
                # Array of ids of the last  | 
| 94 | 
            +
                # Array of ids of the last +number+ commands.
         | 
| 95 95 | 
             
                #
         | 
| 96 | 
            -
                def last_ids( | 
| 97 | 
            -
                  (1 + size -  | 
| 96 | 
            +
                def last_ids(number)
         | 
| 97 | 
            +
                  (1 + size - number..size).to_a
         | 
| 98 98 | 
             
                end
         | 
| 99 99 |  | 
| 100 100 | 
             
                #
         | 
| @@ -22,7 +22,7 @@ module Byebug | |
| 22 22 | 
             
                    lines.join
         | 
| 23 23 | 
             
                  end
         | 
| 24 24 |  | 
| 25 | 
            -
                  def print_variables(variables, * | 
| 25 | 
            +
                  def print_variables(variables, *_unused)
         | 
| 26 26 | 
             
                    print_collection("variable.variable", variables) do |(key, value), _|
         | 
| 27 27 | 
             
                      value = value.nil? ? "nil" : value.to_s
         | 
| 28 28 | 
             
                      if "#{key} = #{value}".size > Setting[:width]
         | 
    
        data/lib/byebug/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: byebug
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 10.0. | 
| 4 | 
            +
              version: 10.0.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - David Rodriguez
         | 
| @@ -10,7 +10,7 @@ authors: | |
| 10 10 | 
             
            autorequire: 
         | 
| 11 11 | 
             
            bindir: exe
         | 
| 12 12 | 
             
            cert_chain: []
         | 
| 13 | 
            -
            date: 2018- | 
| 13 | 
            +
            date: 2018-03-21 00:00:00.000000000 Z
         | 
| 14 14 | 
             
            dependencies:
         | 
| 15 15 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 16 16 | 
             
              name: bundler
         | 
| @@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 192 192 | 
             
                  version: '0'
         | 
| 193 193 | 
             
            requirements: []
         | 
| 194 194 | 
             
            rubyforge_project: 
         | 
| 195 | 
            -
            rubygems_version: 2.7. | 
| 195 | 
            +
            rubygems_version: 2.7.6
         | 
| 196 196 | 
             
            signing_key: 
         | 
| 197 197 | 
             
            specification_version: 4
         | 
| 198 198 | 
             
            summary: Ruby fast debugger - base + CLI
         |