diff options
author | Eric Wong <e@80x24.org> | 2014-10-03 01:50:21 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2014-10-03 02:02:19 +0000 |
commit | cbbd977c444b6f1db2f771afd37175e259cd0e6a (patch) | |
tree | b615699dbb5dd83b28b8015d959b1de78c3f2bab | |
parent | 2cca99841650f6d6a8c83ec9b6536128c328bdf5 (diff) | |
download | ruby-tdb-cbbd977c444b6f1db2f771afd37175e259cd0e6a.tar.gz |
This will probably be the last release we make under Ruby 1.8
-rw-r--r-- | lib/tdb/mt.rb | 1 | ||||
-rw-r--r-- | test/test_tdb_mt.rb | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/tdb/mt.rb b/lib/tdb/mt.rb index 4cea5f5..1bdbf3d 100644 --- a/lib/tdb/mt.rb +++ b/lib/tdb/mt.rb @@ -1,6 +1,7 @@ # -*- encoding: binary -*- # WARNING: this is not recommended, it is still possible to break this +require 'thread' module TDB::MT def initialize super diff --git a/test/test_tdb_mt.rb b/test/test_tdb_mt.rb index 5e38901..781e2bd 100644 --- a/test/test_tdb_mt.rb +++ b/test/test_tdb_mt.rb @@ -73,6 +73,10 @@ class Test_TDB_MT < Test::Unit::TestCase def test_check_methods m = TDB.instance_methods.sort + if String === m[0] + warn "skipping test under Ruby 1.8" + return + end m -= Object.instance_methods m -= Enumerable.instance_methods m.map! { |x| x.to_sym } |