ref 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ref/weak_reference/pure_ruby.rb +2 -0
- data/test/weak_reference_test.rb +6 -8
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/test/weak_reference_test.rb
CHANGED
@@ -44,13 +44,11 @@ class TestWeakReference < Test::Unit::TestCase
|
|
44
44
|
assert ref.inspect
|
45
45
|
end
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
obj = TestBasicObject.new
|
54
|
-
Ref::WeakReference.new(obj)
|
47
|
+
if defined?(BasicObject)
|
48
|
+
def test_basic_object_does_not_throw_exception
|
49
|
+
obj = BasicObject.new
|
50
|
+
ref = Ref::WeakReference.new(obj)
|
51
|
+
assert_nil ref.object
|
52
|
+
end
|
55
53
|
end
|
56
54
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ref
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-20 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Library that implements weak, soft, and strong references in Ruby that
|
15
15
|
work across multiple runtimes (MRI, REE, YARV, Jruby, Rubinius, and IronRuby). Also
|