ref 1.0.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +41 -0
- data/lib/ref.rb +28 -29
- data/lib/ref/abstract_reference_key_map.rb +72 -28
- data/lib/ref/abstract_reference_value_map.rb +61 -18
- data/lib/ref/reference_queue.rb +8 -8
- data/lib/ref/soft_reference.rb +7 -7
- data/lib/ref/version.rb +3 -0
- data/lib/ref/weak_reference/pure_ruby.rb +9 -9
- data/lib/ref_ext.jar +0 -0
- metadata +23 -49
- data/README.rdoc +0 -40
- data/VERSION +0 -1
- data/lib/org/jruby/ext/ref/references.jar +0 -0
- data/lib/ref/mock.rb +0 -150
- data/lib/ref/safe_monitor.rb +0 -50
- data/lib/ref/weak_reference/iron_ruby.rb +0 -14
- data/test/mock_test.rb +0 -33
- data/test/mock_test.rbc +0 -856
- data/test/reference_key_map_behavior.rb +0 -155
- data/test/reference_key_map_behavior.rbc +0 -4241
- data/test/reference_queue_test.rb +0 -60
- data/test/reference_queue_test.rbc +0 -1938
- data/test/reference_value_map_behavior.rb +0 -135
- data/test/reference_value_map_behavior.rbc +0 -3560
- data/test/soft_key_map_test.rb +0 -13
- data/test/soft_key_map_test.rbc +0 -331
- data/test/soft_reference_test.rb +0 -49
- data/test/soft_reference_test.rbc +0 -1481
- data/test/soft_value_map_test.rb +0 -13
- data/test/soft_value_map_test.rbc +0 -331
- data/test/strong_reference_test.rb +0 -15
- data/test/strong_reference_test.rbc +0 -546
- data/test/test_helper.rb +0 -4
- data/test/test_helper.rbc +0 -143
- data/test/weak_key_map_test.rb +0 -13
- data/test/weak_key_map_test.rbc +0 -331
- data/test/weak_reference_test.rb +0 -54
- data/test/weak_reference_test.rbc +0 -1510
- data/test/weak_value_map_test.rb +0 -13
- data/test/weak_value_map_test.rbc +0 -331
data/test/test_helper.rb
DELETED
data/test/test_helper.rbc
DELETED
@@ -1,143 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
12529030924842180271
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
68
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
22
|
-
5
|
23
|
-
45
|
24
|
-
2
|
25
|
-
3
|
26
|
-
7
|
27
|
-
4
|
28
|
-
64
|
29
|
-
65
|
30
|
-
49
|
31
|
-
5
|
32
|
-
0
|
33
|
-
49
|
34
|
-
6
|
35
|
-
2
|
36
|
-
47
|
37
|
-
49
|
38
|
-
1
|
39
|
-
1
|
40
|
-
15
|
41
|
-
5
|
42
|
-
45
|
43
|
-
2
|
44
|
-
7
|
45
|
-
7
|
46
|
-
8
|
47
|
-
64
|
48
|
-
65
|
49
|
-
49
|
50
|
-
5
|
51
|
-
0
|
52
|
-
49
|
53
|
-
6
|
54
|
-
2
|
55
|
-
47
|
56
|
-
49
|
57
|
-
1
|
58
|
-
1
|
59
|
-
15
|
60
|
-
5
|
61
|
-
45
|
62
|
-
2
|
63
|
-
9
|
64
|
-
7
|
65
|
-
10
|
66
|
-
64
|
67
|
-
65
|
68
|
-
49
|
69
|
-
5
|
70
|
-
0
|
71
|
-
49
|
72
|
-
6
|
73
|
-
2
|
74
|
-
47
|
75
|
-
49
|
76
|
-
1
|
77
|
-
1
|
78
|
-
15
|
79
|
-
2
|
80
|
-
11
|
81
|
-
I
|
82
|
-
4
|
83
|
-
I
|
84
|
-
0
|
85
|
-
I
|
86
|
-
0
|
87
|
-
I
|
88
|
-
0
|
89
|
-
n
|
90
|
-
p
|
91
|
-
11
|
92
|
-
s
|
93
|
-
9
|
94
|
-
test/unit
|
95
|
-
x
|
96
|
-
7
|
97
|
-
require
|
98
|
-
x
|
99
|
-
4
|
100
|
-
File
|
101
|
-
n
|
102
|
-
s
|
103
|
-
13
|
104
|
-
../../lib/ref
|
105
|
-
x
|
106
|
-
11
|
107
|
-
active_path
|
108
|
-
x
|
109
|
-
11
|
110
|
-
expand_path
|
111
|
-
n
|
112
|
-
s
|
113
|
-
29
|
114
|
-
../reference_key_map_behavior
|
115
|
-
n
|
116
|
-
s
|
117
|
-
31
|
118
|
-
../reference_value_map_behavior
|
119
|
-
p
|
120
|
-
9
|
121
|
-
I
|
122
|
-
0
|
123
|
-
I
|
124
|
-
1
|
125
|
-
I
|
126
|
-
9
|
127
|
-
I
|
128
|
-
2
|
129
|
-
I
|
130
|
-
1c
|
131
|
-
I
|
132
|
-
3
|
133
|
-
I
|
134
|
-
2f
|
135
|
-
I
|
136
|
-
4
|
137
|
-
I
|
138
|
-
44
|
139
|
-
x
|
140
|
-
51
|
141
|
-
/Users/bdurand/dev/projects/ref/test/test_helper.rb
|
142
|
-
p
|
143
|
-
0
|
data/test/weak_key_map_test.rb
DELETED
data/test/weak_key_map_test.rbc
DELETED
@@ -1,331 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
12529030924842180271
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
54
|
13
|
-
5
|
14
|
-
45
|
15
|
-
0
|
16
|
-
1
|
17
|
-
7
|
18
|
-
2
|
19
|
-
64
|
20
|
-
65
|
21
|
-
49
|
22
|
-
3
|
23
|
-
0
|
24
|
-
49
|
25
|
-
4
|
26
|
-
2
|
27
|
-
47
|
28
|
-
49
|
29
|
-
5
|
30
|
-
1
|
31
|
-
15
|
32
|
-
99
|
33
|
-
7
|
34
|
-
6
|
35
|
-
45
|
36
|
-
7
|
37
|
-
8
|
38
|
-
43
|
39
|
-
9
|
40
|
-
43
|
41
|
-
10
|
42
|
-
65
|
43
|
-
49
|
44
|
-
11
|
45
|
-
3
|
46
|
-
13
|
47
|
-
99
|
48
|
-
12
|
49
|
-
7
|
50
|
-
12
|
51
|
-
12
|
52
|
-
7
|
53
|
-
13
|
54
|
-
12
|
55
|
-
65
|
56
|
-
12
|
57
|
-
49
|
58
|
-
14
|
59
|
-
4
|
60
|
-
15
|
61
|
-
49
|
62
|
-
12
|
63
|
-
0
|
64
|
-
15
|
65
|
-
2
|
66
|
-
11
|
67
|
-
I
|
68
|
-
6
|
69
|
-
I
|
70
|
-
0
|
71
|
-
I
|
72
|
-
0
|
73
|
-
I
|
74
|
-
0
|
75
|
-
n
|
76
|
-
p
|
77
|
-
15
|
78
|
-
x
|
79
|
-
4
|
80
|
-
File
|
81
|
-
n
|
82
|
-
s
|
83
|
-
14
|
84
|
-
../test_helper
|
85
|
-
x
|
86
|
-
11
|
87
|
-
active_path
|
88
|
-
x
|
89
|
-
11
|
90
|
-
expand_path
|
91
|
-
x
|
92
|
-
7
|
93
|
-
require
|
94
|
-
x
|
95
|
-
14
|
96
|
-
TestWeakKeyMap
|
97
|
-
x
|
98
|
-
4
|
99
|
-
Test
|
100
|
-
n
|
101
|
-
x
|
102
|
-
4
|
103
|
-
Unit
|
104
|
-
x
|
105
|
-
8
|
106
|
-
TestCase
|
107
|
-
x
|
108
|
-
10
|
109
|
-
open_class
|
110
|
-
x
|
111
|
-
14
|
112
|
-
__class_init__
|
113
|
-
M
|
114
|
-
1
|
115
|
-
n
|
116
|
-
n
|
117
|
-
x
|
118
|
-
14
|
119
|
-
TestWeakKeyMap
|
120
|
-
i
|
121
|
-
39
|
122
|
-
5
|
123
|
-
66
|
124
|
-
5
|
125
|
-
45
|
126
|
-
0
|
127
|
-
1
|
128
|
-
47
|
129
|
-
49
|
130
|
-
2
|
131
|
-
1
|
132
|
-
15
|
133
|
-
99
|
134
|
-
7
|
135
|
-
3
|
136
|
-
7
|
137
|
-
4
|
138
|
-
65
|
139
|
-
67
|
140
|
-
49
|
141
|
-
5
|
142
|
-
0
|
143
|
-
49
|
144
|
-
6
|
145
|
-
4
|
146
|
-
15
|
147
|
-
99
|
148
|
-
7
|
149
|
-
7
|
150
|
-
7
|
151
|
-
8
|
152
|
-
65
|
153
|
-
67
|
154
|
-
49
|
155
|
-
5
|
156
|
-
0
|
157
|
-
49
|
158
|
-
6
|
159
|
-
4
|
160
|
-
11
|
161
|
-
I
|
162
|
-
5
|
163
|
-
I
|
164
|
-
0
|
165
|
-
I
|
166
|
-
0
|
167
|
-
I
|
168
|
-
0
|
169
|
-
n
|
170
|
-
p
|
171
|
-
9
|
172
|
-
x
|
173
|
-
23
|
174
|
-
ReferenceKeyMapBehavior
|
175
|
-
n
|
176
|
-
x
|
177
|
-
7
|
178
|
-
include
|
179
|
-
x
|
180
|
-
9
|
181
|
-
map_class
|
182
|
-
M
|
183
|
-
1
|
184
|
-
n
|
185
|
-
n
|
186
|
-
x
|
187
|
-
9
|
188
|
-
map_class
|
189
|
-
i
|
190
|
-
6
|
191
|
-
45
|
192
|
-
0
|
193
|
-
1
|
194
|
-
43
|
195
|
-
2
|
196
|
-
11
|
197
|
-
I
|
198
|
-
1
|
199
|
-
I
|
200
|
-
0
|
201
|
-
I
|
202
|
-
0
|
203
|
-
I
|
204
|
-
0
|
205
|
-
n
|
206
|
-
p
|
207
|
-
3
|
208
|
-
x
|
209
|
-
3
|
210
|
-
Ref
|
211
|
-
n
|
212
|
-
x
|
213
|
-
10
|
214
|
-
WeakKeyMap
|
215
|
-
p
|
216
|
-
5
|
217
|
-
I
|
218
|
-
-1
|
219
|
-
I
|
220
|
-
6
|
221
|
-
I
|
222
|
-
0
|
223
|
-
I
|
224
|
-
7
|
225
|
-
I
|
226
|
-
6
|
227
|
-
x
|
228
|
-
57
|
229
|
-
/Users/bdurand/dev/projects/ref/test/weak_key_map_test.rb
|
230
|
-
p
|
231
|
-
0
|
232
|
-
x
|
233
|
-
17
|
234
|
-
method_visibility
|
235
|
-
x
|
236
|
-
15
|
237
|
-
add_defn_method
|
238
|
-
x
|
239
|
-
15
|
240
|
-
reference_class
|
241
|
-
M
|
242
|
-
1
|
243
|
-
n
|
244
|
-
n
|
245
|
-
x
|
246
|
-
15
|
247
|
-
reference_class
|
248
|
-
i
|
249
|
-
6
|
250
|
-
45
|
251
|
-
0
|
252
|
-
1
|
253
|
-
43
|
254
|
-
2
|
255
|
-
11
|
256
|
-
I
|
257
|
-
1
|
258
|
-
I
|
259
|
-
0
|
260
|
-
I
|
261
|
-
0
|
262
|
-
I
|
263
|
-
0
|
264
|
-
n
|
265
|
-
p
|
266
|
-
3
|
267
|
-
x
|
268
|
-
3
|
269
|
-
Ref
|
270
|
-
n
|
271
|
-
x
|
272
|
-
13
|
273
|
-
WeakReference
|
274
|
-
p
|
275
|
-
5
|
276
|
-
I
|
277
|
-
-1
|
278
|
-
I
|
279
|
-
a
|
280
|
-
I
|
281
|
-
0
|
282
|
-
I
|
283
|
-
b
|
284
|
-
I
|
285
|
-
6
|
286
|
-
x
|
287
|
-
57
|
288
|
-
/Users/bdurand/dev/projects/ref/test/weak_key_map_test.rb
|
289
|
-
p
|
290
|
-
0
|
291
|
-
p
|
292
|
-
7
|
293
|
-
I
|
294
|
-
2
|
295
|
-
I
|
296
|
-
4
|
297
|
-
I
|
298
|
-
b
|
299
|
-
I
|
300
|
-
6
|
301
|
-
I
|
302
|
-
19
|
303
|
-
I
|
304
|
-
a
|
305
|
-
I
|
306
|
-
27
|
307
|
-
x
|
308
|
-
57
|
309
|
-
/Users/bdurand/dev/projects/ref/test/weak_key_map_test.rb
|
310
|
-
p
|
311
|
-
0
|
312
|
-
x
|
313
|
-
13
|
314
|
-
attach_method
|
315
|
-
p
|
316
|
-
5
|
317
|
-
I
|
318
|
-
0
|
319
|
-
I
|
320
|
-
1
|
321
|
-
I
|
322
|
-
13
|
323
|
-
I
|
324
|
-
3
|
325
|
-
I
|
326
|
-
36
|
327
|
-
x
|
328
|
-
57
|
329
|
-
/Users/bdurand/dev/projects/ref/test/weak_key_map_test.rb
|
330
|
-
p
|
331
|
-
0
|