unroller 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/unroller.rb +6 -6
  2. metadata +1 -1
data/lib/unroller.rb CHANGED
@@ -68,8 +68,6 @@ def confirm(question, options = ['Yes', 'No'])
68
68
  response
69
69
  end
70
70
 
71
- begin # Reset terminal_attributes
72
-
73
71
  class Unroller
74
72
  #-------------------------------------------------------------------------------------------------
75
73
  # Helper classes
@@ -1395,7 +1393,9 @@ if $0 == __FILE__
1395
1393
 
1396
1394
  end # if $0 == __FILE__ (Tests)
1397
1395
 
1398
- ensure # Or should this be in an at_exit?
1399
- # Set terminal_attributes back to how we found them...
1400
- Termios.tcsetattr(STDIN, 0, save_terminal_attributes)
1401
- end
1396
+ # Set terminal_attributes back to how we found them...
1397
+ # (This doesn't work so great when you do tracing from within a test... Why not? Because Test::Unit is itself *started* using
1398
+ # an at_exit callback. Which means (since those callbacks are called in reverse order) that *this* at_exit is called, and *then*
1399
+ # the test's at_exit is called... So in other words, we end up 'reverting' these attributes before we've even had a chance to
1400
+ # use the 'new' attributes!)
1401
+ #at_exit { puts 'Setting terminal_attributes back to how we found them...'; Termios.tcsetattr(STDIN, 0, save_terminal_attributes) }
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: unroller
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.19
6
+ version: 0.0.20
7
7
  date: 2007-06-05 00:00:00 -07:00
8
8
  summary: "Ruby Code Unroller: A tool for generating human-readable \"execution traces\""
9
9
  require_paths: