weakling 0.0.1 → 0.0.2

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.
@@ -0,0 +1,8 @@
1
+ == 0.0.2 ==
2
+
3
+ * Minor compatibility tweak for the WeakRef replacement impl, to match JRuby
4
+
5
+ == 0.0.1 ==
6
+
7
+ * Initial release
8
+ * RefQueue and IdHash support
data/README.txt CHANGED
@@ -11,6 +11,8 @@ This library provides:
11
11
  In the future it may provide additional features like a generic WeakHash or other
12
12
  reference types like soft and phantom references.
13
13
 
14
+ The weakling repository is at http://github.com/headius/weakling.
15
+
14
16
  == Usage ==
15
17
 
16
18
  Just require 'weakling'. It will require 'weakref' along with the refqueue JRuby
@@ -129,6 +129,11 @@ public class RefQueueLibrary implements Library {
129
129
  return obj;
130
130
  }
131
131
 
132
+ @JRubyMethod(name = "__setobj__")
133
+ public IRubyObject setobj(IRubyObject obj) {
134
+ return getRuntime().getNil();
135
+ }
136
+
132
137
  // This is only here to replace the "new" in JRuby's weakref, which
133
138
  // doesn't really need to be there.
134
139
  @JRubyMethod(name = "new", required = 1, optional = 1, meta = true)
Binary file
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{weakling}
5
- s.version = "0.0.1"
5
+ s.version = "0.0.2"
6
6
  s.authors = ["Charles Oliver Nutter"]
7
7
  s.date = Time.now.strftime('YYYY-MM-DD')
8
8
  s.description = "A modified WeakRef impl for JRuby plus some weakref-related tools"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Charles Oliver Nutter
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-11 18:25:16.468000 -06:00
17
+ date: 2010-03-18 23:20:24.678000 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -35,6 +35,7 @@ files:
35
35
  - ext/org/jruby/ext/RefQueueLibrary.java
36
36
  - examples/id_hash.rb
37
37
  - examples/refqueue_use.rb
38
+ - HISTORY.txt
38
39
  - README.txt
39
40
  - weakling.gemspec
40
41
  - Rakefile