ref 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT_LICENSE +1 -1
- data/README.rdoc +5 -0
- data/VERSION +1 -1
- data/lib/ref.rb +23 -17
- data/lib/ref/weak_reference/pure_ruby.rb +9 -2
- data/test/mock_test.rbc +856 -0
- data/test/reference_key_map_behavior.rbc +147 -202
- data/test/reference_queue_test.rbc +75 -91
- data/test/reference_value_map_behavior.rbc +128 -183
- data/test/soft_key_map_test.rbc +32 -75
- data/test/soft_reference_test.rbc +81 -81
- data/test/soft_value_map_test.rbc +32 -75
- data/test/strong_reference_test.rbc +35 -51
- data/test/test_helper.rbc +143 -0
- data/test/weak_key_map_test.rbc +32 -75
- data/test/weak_reference_test.rb +10 -0
- data/test/weak_reference_test.rbc +337 -81
- data/test/weak_value_map_test.rbc +32 -75
- metadata +6 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
2
|
+
12529030924842180271
|
3
3
|
x
|
4
4
|
M
|
5
5
|
1
|
@@ -9,85 +9,57 @@ x
|
|
9
9
|
10
|
10
10
|
__script__
|
11
11
|
i
|
12
|
-
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
12
|
+
54
|
22
13
|
5
|
23
14
|
45
|
24
|
-
2
|
25
|
-
3
|
26
|
-
7
|
27
|
-
4
|
28
|
-
64
|
29
|
-
65
|
30
|
-
49
|
31
|
-
5
|
32
15
|
0
|
33
|
-
49
|
34
|
-
6
|
35
|
-
2
|
36
|
-
47
|
37
|
-
49
|
38
16
|
1
|
39
|
-
1
|
40
|
-
15
|
41
|
-
5
|
42
|
-
45
|
43
|
-
2
|
44
|
-
7
|
45
17
|
7
|
46
|
-
|
18
|
+
2
|
47
19
|
64
|
48
20
|
65
|
49
21
|
49
|
50
|
-
|
22
|
+
3
|
51
23
|
0
|
52
24
|
49
|
53
|
-
|
25
|
+
4
|
54
26
|
2
|
55
27
|
47
|
56
28
|
49
|
57
|
-
|
29
|
+
5
|
58
30
|
1
|
59
31
|
15
|
60
32
|
99
|
61
33
|
7
|
62
|
-
|
34
|
+
6
|
63
35
|
45
|
64
|
-
|
65
|
-
|
36
|
+
7
|
37
|
+
8
|
66
38
|
43
|
67
|
-
|
39
|
+
9
|
68
40
|
43
|
69
|
-
|
41
|
+
10
|
70
42
|
65
|
71
43
|
49
|
72
|
-
|
44
|
+
11
|
73
45
|
3
|
74
46
|
13
|
75
47
|
99
|
76
48
|
12
|
77
49
|
7
|
78
|
-
|
50
|
+
12
|
79
51
|
12
|
80
52
|
7
|
81
|
-
|
53
|
+
13
|
82
54
|
12
|
83
55
|
65
|
84
56
|
12
|
85
57
|
49
|
86
|
-
|
58
|
+
14
|
87
59
|
4
|
88
60
|
15
|
89
61
|
49
|
90
|
-
|
62
|
+
12
|
91
63
|
0
|
92
64
|
15
|
93
65
|
2
|
@@ -102,30 +74,23 @@ I
|
|
102
74
|
0
|
103
75
|
n
|
104
76
|
p
|
105
|
-
|
106
|
-
s
|
107
|
-
9
|
108
|
-
test/unit
|
109
|
-
x
|
110
|
-
7
|
111
|
-
require
|
77
|
+
15
|
112
78
|
x
|
113
79
|
4
|
114
80
|
File
|
115
81
|
n
|
116
82
|
s
|
117
|
-
|
118
|
-
|
83
|
+
14
|
84
|
+
../test_helper
|
119
85
|
x
|
120
86
|
11
|
121
87
|
active_path
|
122
88
|
x
|
123
89
|
11
|
124
90
|
expand_path
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
../reference_value_map_behavior
|
91
|
+
x
|
92
|
+
7
|
93
|
+
require
|
129
94
|
x
|
130
95
|
16
|
131
96
|
TestWeakValueMap
|
@@ -252,11 +217,11 @@ p
|
|
252
217
|
I
|
253
218
|
-1
|
254
219
|
I
|
255
|
-
|
220
|
+
6
|
256
221
|
I
|
257
222
|
0
|
258
223
|
I
|
259
|
-
|
224
|
+
7
|
260
225
|
I
|
261
226
|
6
|
262
227
|
x
|
@@ -311,11 +276,11 @@ p
|
|
311
276
|
I
|
312
277
|
-1
|
313
278
|
I
|
314
|
-
|
279
|
+
a
|
315
280
|
I
|
316
281
|
0
|
317
282
|
I
|
318
|
-
|
283
|
+
b
|
319
284
|
I
|
320
285
|
6
|
321
286
|
x
|
@@ -328,15 +293,15 @@ p
|
|
328
293
|
I
|
329
294
|
2
|
330
295
|
I
|
331
|
-
|
296
|
+
4
|
332
297
|
I
|
333
298
|
b
|
334
299
|
I
|
335
|
-
|
300
|
+
6
|
336
301
|
I
|
337
302
|
19
|
338
303
|
I
|
339
|
-
|
304
|
+
a
|
340
305
|
I
|
341
306
|
27
|
342
307
|
x
|
@@ -348,25 +313,17 @@ x
|
|
348
313
|
13
|
349
314
|
attach_method
|
350
315
|
p
|
351
|
-
|
316
|
+
5
|
352
317
|
I
|
353
318
|
0
|
354
319
|
I
|
355
320
|
1
|
356
321
|
I
|
357
|
-
|
358
|
-
I
|
359
|
-
2
|
360
|
-
I
|
361
|
-
1c
|
322
|
+
13
|
362
323
|
I
|
363
324
|
3
|
364
325
|
I
|
365
|
-
|
366
|
-
I
|
367
|
-
5
|
368
|
-
I
|
369
|
-
52
|
326
|
+
36
|
370
327
|
x
|
371
328
|
59
|
372
329
|
/Users/bdurand/dev/projects/ref/test/weak_value_map_test.rb
|
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.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,13 +9,13 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-18 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
|
16
16
|
includes implementation of maps/hashes that use references and a reference queue.
|
17
17
|
email:
|
18
|
-
-
|
18
|
+
- bbdurand@gmail.com
|
19
19
|
executables: []
|
20
20
|
extensions: []
|
21
21
|
extra_rdoc_files:
|
@@ -43,6 +43,7 @@ files:
|
|
43
43
|
- lib/ref/weak_value_map.rb
|
44
44
|
- lib/ref.rb
|
45
45
|
- test/mock_test.rb
|
46
|
+
- test/mock_test.rbc
|
46
47
|
- test/reference_key_map_behavior.rb
|
47
48
|
- test/reference_key_map_behavior.rbc
|
48
49
|
- test/reference_queue_test.rb
|
@@ -58,6 +59,7 @@ files:
|
|
58
59
|
- test/strong_reference_test.rb
|
59
60
|
- test/strong_reference_test.rbc
|
60
61
|
- test/test_helper.rb
|
62
|
+
- test/test_helper.rbc
|
61
63
|
- test/weak_key_map_test.rb
|
62
64
|
- test/weak_key_map_test.rbc
|
63
65
|
- test/weak_reference_test.rb
|
@@ -90,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
92
|
version: '0'
|
91
93
|
requirements: []
|
92
94
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.8.
|
95
|
+
rubygems_version: 1.8.25
|
94
96
|
signing_key:
|
95
97
|
specification_version: 3
|
96
98
|
summary: Library that implements weak, soft, and strong references in Ruby.
|