byebug 2.1.0 → 2.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16eb83030dd348fff8d681d7fc1cb7afdbbcfe93
4
- data.tar.gz: c22e24de059a48c698e5fa8a68adef55902cfbb2
3
+ metadata.gz: 8ce377f1e91c98824d4b2f13186abca18ae9916f
4
+ data.tar.gz: e8225ad23bd321ce9fa0373a2d30fb7b6fa9fad8
5
5
  SHA512:
6
- metadata.gz: 06281b839a4a394cbf7eb4c1ea708fce8c2ba5754b0248b716e424a01843391da5e11545c255b9e6fa221f3c9c2d095fa3272150663b1044340767d6d1eb7bd3
7
- data.tar.gz: f728e9648771220b3312224d8d31def9cfc9d1e6ad756ba6beff701a15ae434635378fc68b2c7f613cd939459afff9bc9fbc2ba44d10e32b68c514f3eeda24cb
6
+ metadata.gz: e24e6c9e24efbd1e88f298c5a091af7348ad679f2ef2945b4b5e46ad3db2ea7da123dc0bc41d3e4696bd68a8b371694266480a16bda074f7b6de17188e926013
7
+ data.tar.gz: a6e0cda3871f5555ea1ab7b025a1c47af188573172d83e87eb5966bf091419cb2a7e16bcc0de65abce2677b11475d585ed922044838c7b4a4969bf6e5e4e3b45
@@ -1,3 +1,8 @@
1
+ # 2.1.1
2
+
3
+ * Fix bug when debugging code inside '-e' flag
4
+
5
+
1
6
  # 2.1.0
2
7
 
3
8
  * Fix bug in remote debugging display
@@ -46,7 +46,7 @@ module Byebug
46
46
  # are working remotely and want to change the basename. Or we are eliding
47
47
  # filenames.
48
48
  def self.canonic_file(filename)
49
- return '(nil)' if not filename
49
+ return filename if ['(irb)', '-e'].include?(filename)
50
50
 
51
51
  # For now we want resolved filenames
52
52
  if Command.settings[:basename]
@@ -145,7 +145,7 @@ module Byebug
145
145
  state = State.new(event_cmds, context, @display, file, @interface, line)
146
146
 
147
147
  # Change default when in irb or code included in command line
148
- Command.settings[:autolist] = 0 if file == '(irb)' or file == '-e'
148
+ Command.settings[:autolist] = 0 if ['(irb)', '-e'].include?(file)
149
149
 
150
150
  # Bind commands to the current state.
151
151
  commands = event_cmds.map{|cmd| cmd.new(state)}
@@ -262,6 +262,7 @@ module Byebug
262
262
  loc = "#{CommandProcessor.canonic_file(@file)} @ #{@line}\n"
263
263
  loc += "#{Byebug.line_at(@file, @line)}\n" unless
264
264
  ['(irb)', '-e'].include? @file
265
+ loc
265
266
  end
266
267
  end
267
268
 
@@ -1,3 +1,3 @@
1
1
  module Byebug
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
@@ -185,9 +185,6 @@ version number.
185
185
  .B \-\-nx
186
186
  Don't execute commands found in any initialization files, e.g. .byebugrc.
187
187
  .TP
188
- .B \-\-keep-frame-binding
189
- Keep frame bindings.
190
- .TP
191
188
  .B \-\-script=FILE
192
189
  Name of the script file to run
193
190
  .TP
@@ -919,7 +919,6 @@ Usage: byebug [options] <script.rb> -- <script.rb parameters>
919
919
  Options:
920
920
  -d, --debug Set $DEBUG=true
921
921
  -I, --include PATH Add PATH to $LOAD_PATH
922
- --keep-frame-binding Keep frame bindings
923
922
  -m, --post-mortem Activate post-mortem mode
924
923
  --no-quit Do not quit when script finishes
925
924
  --no-stop Do not stop when script is loaded
@@ -976,33 +975,6 @@ Set @code{$DEBUG} to @code{true}. This option is compatible with Ruby's.
976
975
  @cindex @option{--include} @var{PATH}
977
976
  Add @var{PATH} to @code{$LOAD_PATH}
978
977
 
979
- @item --keep-frame-binding
980
- @cindex @option{--keep-frame-binding}
981
- Bindings are used to set the proper environment in evaluating expressions inside
982
- byebug. Under normal circumstances, I don't believe most people will ever need
983
- this option.
984
-
985
- By default, byebug doesn't create a binding object for each frame when the frame
986
- is created, i.e. when a call is performed. Creating a binding is an expensive
987
- operation and has been a major source of performance problems.
988
-
989
- Instead, byebug creates a binding when there is a need to evaluate expressions.
990
- The artificial binding that is created might be different from the real one. In
991
- particular, in performing constant and module name resolution.
992
-
993
- However it's still possible to restore the old, slower behavior by using this
994
- option or by setting @code{Byebug.keep_frame_binding = true}. There are two
995
- possibilities for which you might want to use this option.
996
-
997
- First, if you think there's a bug in the evaluation of variables, you might want
998
- to set this to see if this corrects things.
999
-
1000
- Second, since the internal structures that are used here @code{FRAME} and
1001
- @code{SCOPE} are not part of the Ruby specification, it is possible they can
1002
- change with newer releases; so here this option this may offer a remedy. (But
1003
- you'll probably also have to hack the C code since it's likely under this
1004
- scenario that byebug will no longer compile.)
1005
-
1006
978
  @item -m | --post-mortem
1007
979
  @cindex @option{-m}
1008
980
  @cindex @option{--post-mortem}
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: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rodriguez
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-09-08 00:00:00.000000000 Z
13
+ date: 2013-09-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: columnize
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  version: '0'
246
246
  requirements: []
247
247
  rubyforge_project:
248
- rubygems_version: 2.0.3
248
+ rubygems_version: 2.0.8
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: Ruby 2.0 fast debugger - base + cli