sane 0.20.1 → 0.20.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sane/sane_random.rb +2 -4
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.20.
|
1
|
+
0.20.2
|
data/lib/sane/sane_random.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
require 'require_all' # a necessary gem
|
2
|
-
|
3
1
|
Thread.abort_on_exception = true # typically you *want* to know when a thread dies unexpectedly.
|
4
2
|
|
5
3
|
require 'socket'
|
6
|
-
BasicSocket.do_not_reverse_lookup = true
|
4
|
+
BasicSocket.do_not_reverse_lookup = true # avoid some bugs...
|
7
5
|
|
8
6
|
# abstracted from require 'facets/file' ===>
|
9
7
|
class File
|
@@ -48,7 +46,7 @@ class Object
|
|
48
46
|
|
49
47
|
# helper to bring up a debugger with less writing [just _dbg]
|
50
48
|
def _dbg
|
51
|
-
require 'rubygems' if RUBY_VERSION < '1.9' # for ruby-debug gem
|
49
|
+
require 'rubygems' if RUBY_VERSION < '1.9' # for ruby-debug gem, in case this is being called via a local install
|
52
50
|
require 'pp' # who would want debug without pp? not I
|
53
51
|
begin
|
54
52
|
require 'ruby-debug'
|