ref 1.0.5 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -0
  3. data/lib/ref.rb +28 -29
  4. data/lib/ref/abstract_reference_key_map.rb +72 -28
  5. data/lib/ref/abstract_reference_value_map.rb +61 -18
  6. data/lib/ref/reference_queue.rb +8 -8
  7. data/lib/ref/soft_reference.rb +7 -7
  8. data/lib/ref/version.rb +3 -0
  9. data/lib/ref/weak_reference/pure_ruby.rb +9 -9
  10. data/lib/ref_ext.jar +0 -0
  11. metadata +23 -49
  12. data/README.rdoc +0 -40
  13. data/VERSION +0 -1
  14. data/lib/org/jruby/ext/ref/references.jar +0 -0
  15. data/lib/ref/mock.rb +0 -150
  16. data/lib/ref/safe_monitor.rb +0 -50
  17. data/lib/ref/weak_reference/iron_ruby.rb +0 -14
  18. data/test/mock_test.rb +0 -33
  19. data/test/mock_test.rbc +0 -856
  20. data/test/reference_key_map_behavior.rb +0 -155
  21. data/test/reference_key_map_behavior.rbc +0 -4241
  22. data/test/reference_queue_test.rb +0 -60
  23. data/test/reference_queue_test.rbc +0 -1938
  24. data/test/reference_value_map_behavior.rb +0 -135
  25. data/test/reference_value_map_behavior.rbc +0 -3560
  26. data/test/soft_key_map_test.rb +0 -13
  27. data/test/soft_key_map_test.rbc +0 -331
  28. data/test/soft_reference_test.rb +0 -49
  29. data/test/soft_reference_test.rbc +0 -1481
  30. data/test/soft_value_map_test.rb +0 -13
  31. data/test/soft_value_map_test.rbc +0 -331
  32. data/test/strong_reference_test.rb +0 -15
  33. data/test/strong_reference_test.rbc +0 -546
  34. data/test/test_helper.rb +0 -4
  35. data/test/test_helper.rbc +0 -143
  36. data/test/weak_key_map_test.rb +0 -13
  37. data/test/weak_key_map_test.rbc +0 -331
  38. data/test/weak_reference_test.rb +0 -54
  39. data/test/weak_reference_test.rbc +0 -1510
  40. data/test/weak_value_map_test.rb +0 -13
  41. data/test/weak_value_map_test.rbc +0 -331
@@ -1,13 +0,0 @@
1
- require File.expand_path("../test_helper", __FILE__)
2
-
3
- class TestWeakValueMap < Test::Unit::TestCase
4
- include ReferenceValueMapBehavior
5
-
6
- def map_class
7
- Ref::WeakValueMap
8
- end
9
-
10
- def reference_class
11
- Ref::WeakReference
12
- end
13
- end
@@ -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
- 16
96
- TestWeakValueMap
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
- 16
119
- TestWeakValueMap
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
- 25
174
- ReferenceValueMapBehavior
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
- 12
214
- WeakValueMap
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
- 59
229
- /Users/bdurand/dev/projects/ref/test/weak_value_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
- 59
288
- /Users/bdurand/dev/projects/ref/test/weak_value_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
- 59
309
- /Users/bdurand/dev/projects/ref/test/weak_value_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
- 59
329
- /Users/bdurand/dev/projects/ref/test/weak_value_map_test.rb
330
- p
331
- 0