ref 1.0.2 → 1.0.3

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.
@@ -1,5 +1,5 @@
1
1
  !RBIX
2
- 0
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
- 82
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
- 1
39
16
  1
40
- 15
41
- 5
42
- 45
43
- 2
44
17
  7
45
- 7
46
- 8
18
+ 2
47
19
  64
48
20
  65
49
21
  49
50
- 5
22
+ 3
51
23
  0
52
24
  49
53
- 6
25
+ 4
54
26
  2
55
27
  47
56
28
  49
57
- 1
29
+ 5
58
30
  1
59
31
  15
60
32
  99
61
33
  7
62
- 9
34
+ 6
63
35
  45
64
- 10
65
- 11
36
+ 7
37
+ 8
66
38
  43
67
- 12
39
+ 9
68
40
  43
69
- 13
41
+ 10
70
42
  65
71
43
  49
72
- 14
44
+ 11
73
45
  3
74
46
  13
75
47
  99
76
48
  12
77
49
  7
78
- 15
50
+ 12
79
51
  12
80
52
  7
81
- 16
53
+ 13
82
54
  12
83
55
  65
84
56
  12
85
57
  49
86
- 17
58
+ 14
87
59
  4
88
60
  15
89
61
  49
90
- 15
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
- 18
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
- 13
118
- ../../lib/ref
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
- n
126
- s
127
- 29
128
- ../reference_key_map_behavior
91
+ x
92
+ 7
93
+ require
129
94
  x
130
95
  14
131
96
  TestWeakKeyMap
@@ -252,11 +217,11 @@ p
252
217
  I
253
218
  -1
254
219
  I
255
- 8
220
+ 6
256
221
  I
257
222
  0
258
223
  I
259
- 9
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
- c
279
+ a
315
280
  I
316
281
  0
317
282
  I
318
- d
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
- 6
296
+ 4
332
297
  I
333
298
  b
334
299
  I
335
- 8
300
+ 6
336
301
  I
337
302
  19
338
303
  I
339
- c
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
- 9
316
+ 5
352
317
  I
353
318
  0
354
319
  I
355
320
  1
356
321
  I
357
- 9
358
- I
359
- 2
360
- I
361
- 1c
322
+ 13
362
323
  I
363
324
  3
364
325
  I
365
- 2f
366
- I
367
- 5
368
- I
369
- 52
326
+ 36
370
327
  x
371
328
  57
372
329
  /Users/bdurand/dev/projects/ref/test/weak_key_map_test.rb
@@ -43,4 +43,14 @@ class TestWeakReference < Test::Unit::TestCase
43
43
  GC.start
44
44
  assert ref.inspect
45
45
  end
46
+
47
+ class TestBasicObject < Object
48
+ undef_method(:instance_variable_defined?)
49
+ undef_method(:instance_variable_get)
50
+ end
51
+
52
+ def test_basic_object_does_not_throw_exception
53
+ obj = TestBasicObject.new
54
+ Ref::WeakReference.new(obj)
55
+ end
46
56
  end
@@ -1,5 +1,5 @@
1
1
  !RBIX
2
- 0
2
+ 12529030924842180271
3
3
  x
4
4
  M
5
5
  1
@@ -9,66 +9,57 @@ x
9
9
  10
10
10
  __script__
11
11
  i
12
- 63
12
+ 54
13
13
  5
14
- 7
14
+ 45
15
15
  0
16
- 64
17
- 47
18
- 49
19
- 1
20
16
  1
21
- 15
22
- 5
23
- 45
24
- 2
25
- 3
26
17
  7
27
- 4
18
+ 2
28
19
  64
29
20
  65
30
21
  49
31
- 5
22
+ 3
32
23
  0
33
24
  49
34
- 6
25
+ 4
35
26
  2
36
27
  47
37
28
  49
38
- 1
29
+ 5
39
30
  1
40
31
  15
41
32
  99
42
33
  7
43
- 7
34
+ 6
44
35
  45
36
+ 7
45
37
  8
38
+ 43
46
39
  9
47
40
  43
48
41
  10
49
- 43
50
- 11
51
42
  65
52
43
  49
53
- 12
44
+ 11
54
45
  3
55
46
  13
56
47
  99
57
48
  12
58
49
  7
59
- 13
50
+ 12
60
51
  12
61
52
  7
62
- 14
53
+ 13
63
54
  12
64
55
  65
65
56
  12
66
57
  49
67
- 15
58
+ 14
68
59
  4
69
60
  15
70
61
  49
71
- 13
62
+ 12
72
63
  0
73
64
  15
74
65
  2
@@ -83,20 +74,14 @@ I
83
74
  0
84
75
  n
85
76
  p
86
- 16
87
- s
88
- 9
89
- test/unit
90
- x
91
- 7
92
- require
77
+ 15
93
78
  x
94
79
  4
95
80
  File
96
81
  n
97
82
  s
98
- 13
99
- ../../lib/ref
83
+ 14
84
+ ../test_helper
100
85
  x
101
86
  11
102
87
  active_path
@@ -104,6 +89,9 @@ x
104
89
  11
105
90
  expand_path
106
91
  x
92
+ 7
93
+ require
94
+ x
107
95
  17
108
96
  TestWeakReference
109
97
  x
@@ -130,7 +118,7 @@ x
130
118
  17
131
119
  TestWeakReference
132
120
  i
133
- 44
121
+ 87
134
122
  5
135
123
  66
136
124
  99
@@ -174,9 +162,52 @@ i
174
162
  49
175
163
  3
176
164
  4
165
+ 15
166
+ 99
167
+ 7
168
+ 8
169
+ 45
170
+ 9
171
+ 10
172
+ 65
173
+ 49
174
+ 11
175
+ 3
176
+ 13
177
+ 99
178
+ 12
179
+ 7
180
+ 12
181
+ 12
182
+ 7
183
+ 13
184
+ 12
185
+ 65
186
+ 12
187
+ 49
188
+ 14
189
+ 4
190
+ 15
191
+ 49
192
+ 12
193
+ 0
194
+ 15
195
+ 99
196
+ 7
197
+ 15
198
+ 7
199
+ 16
200
+ 65
201
+ 67
202
+ 49
203
+ 2
204
+ 0
205
+ 49
206
+ 3
207
+ 4
177
208
  11
178
209
  I
179
- 5
210
+ 6
180
211
  I
181
212
  0
182
213
  I
@@ -185,7 +216,7 @@ I
185
216
  0
186
217
  n
187
218
  p
188
- 8
219
+ 17
189
220
  x
190
221
  42
191
222
  test_can_get_non_garbage_collected_objects
@@ -398,35 +429,35 @@ p
398
429
  I
399
430
  -1
400
431
  I
401
- 5
432
+ 4
402
433
  I
403
434
  0
404
435
  I
405
- 6
436
+ 5
406
437
  I
407
438
  1b
408
439
  I
409
- 7
440
+ 6
410
441
  I
411
442
  3c
412
443
  I
413
- 8
444
+ 7
414
445
  I
415
446
  5d
416
447
  I
417
- 9
448
+ 8
418
449
  I
419
450
  6a
420
451
  I
421
- a
452
+ 9
422
453
  I
423
454
  7a
424
455
  I
425
- b
456
+ a
426
457
  I
427
458
  87
428
459
  I
429
- c
460
+ b
430
461
  I
431
462
  97
432
463
  x
@@ -896,67 +927,79 @@ x
896
927
  5
897
928
  sleep
898
929
  p
899
- 31
930
+ 37
900
931
  I
901
932
  0
902
933
  I
903
- 16
934
+ 15
904
935
  I
905
936
  4
906
937
  I
907
- 17
938
+ 16
908
939
  I
909
940
  1f
910
941
  I
911
- 18
942
+ 17
912
943
  I
913
944
  2c
914
945
  I
915
- 19
946
+ 18
916
947
  I
917
948
  3a
918
949
  I
919
- 1a
950
+ 19
920
951
  I
921
952
  41
922
953
  I
923
- 1b
954
+ 1a
924
955
  I
925
956
  4a
926
957
  I
927
- 1c
958
+ 1b
928
959
  I
929
960
  4e
930
961
  I
931
- 1a
962
+ 19
963
+ I
964
+ 4f
965
+ I
966
+ 0
932
967
  I
933
968
  51
934
969
  I
935
- 18
970
+ 17
971
+ I
972
+ 52
973
+ I
974
+ 0
936
975
  I
937
976
  53
938
977
  I
939
- 1f
978
+ 1e
940
979
  I
941
980
  8f
942
981
  I
943
- 20
982
+ 1f
944
983
  I
945
984
  bd
946
985
  I
947
- 21
986
+ 20
948
987
  I
949
988
  c9
950
989
  I
951
- 22
990
+ 21
952
991
  I
953
992
  d0
954
993
  I
955
- 23
994
+ 22
956
995
  I
957
996
  d9
958
997
  I
959
- 21
998
+ 20
999
+ I
1000
+ da
1001
+ I
1002
+ 0
960
1003
  I
961
1004
  db
962
1005
  x
@@ -977,19 +1020,23 @@ x
977
1020
  5
978
1021
  times
979
1022
  p
980
- 7
1023
+ 9
981
1024
  I
982
1025
  -1
983
1026
  I
984
- f
1027
+ e
985
1028
  I
986
1029
  0
987
1030
  I
988
- 15
1031
+ 14
989
1032
  I
990
1033
  a
991
1034
  I
992
- 16
1035
+ 15
1036
+ I
1037
+ 20
1038
+ I
1039
+ 15
993
1040
  I
994
1041
  26
995
1042
  x
@@ -1176,27 +1223,27 @@ p
1176
1223
  I
1177
1224
  -1
1178
1225
  I
1179
- 28
1226
+ 27
1180
1227
  I
1181
1228
  0
1182
1229
  I
1183
- 29
1230
+ 28
1184
1231
  I
1185
1232
  4d
1186
1233
  I
1187
- 2a
1234
+ 29
1188
1235
  I
1189
1236
  58
1190
1237
  I
1191
- 2b
1238
+ 2a
1192
1239
  I
1193
1240
  5f
1194
1241
  I
1195
- 2c
1242
+ 2b
1196
1243
  I
1197
1244
  66
1198
1245
  I
1199
- 2d
1246
+ 2c
1200
1247
  I
1201
1248
  71
1202
1249
  x
@@ -1207,22 +1254,78 @@ p
1207
1254
  x
1208
1255
  3
1209
1256
  ref
1210
- p
1257
+ x
1258
+ 15
1259
+ TestBasicObject
1260
+ x
1261
+ 6
1262
+ Object
1263
+ n
1264
+ x
1265
+ 10
1266
+ open_class
1267
+ x
1268
+ 14
1269
+ __class_init__
1270
+ M
1271
+ 1
1272
+ n
1273
+ n
1274
+ x
1275
+ 15
1276
+ TestBasicObject
1277
+ i
1278
+ 18
1279
+ 5
1280
+ 66
1281
+ 5
1211
1282
  7
1283
+ 0
1284
+ 47
1285
+ 49
1286
+ 1
1287
+ 1
1288
+ 15
1289
+ 5
1290
+ 7
1291
+ 2
1292
+ 47
1293
+ 49
1294
+ 1
1295
+ 1
1296
+ 11
1212
1297
  I
1213
1298
  2
1214
1299
  I
1300
+ 0
1301
+ I
1302
+ 0
1303
+ I
1304
+ 0
1305
+ n
1306
+ p
1307
+ 3
1308
+ x
1309
+ 26
1310
+ instance_variable_defined?
1311
+ x
1312
+ 12
1313
+ undef_method
1314
+ x
1315
+ 21
1316
+ instance_variable_get
1317
+ p
1215
1318
  5
1216
1319
  I
1217
- 10
1320
+ 2
1218
1321
  I
1219
- f
1322
+ 30
1220
1323
  I
1221
- 1e
1324
+ a
1222
1325
  I
1223
- 28
1326
+ 31
1224
1327
  I
1225
- 2c
1328
+ 12
1226
1329
  x
1227
1330
  59
1228
1331
  /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
@@ -1231,22 +1334,175 @@ p
1231
1334
  x
1232
1335
  13
1233
1336
  attach_method
1337
+ x
1338
+ 42
1339
+ test_basic_object_does_not_throw_exception
1340
+ M
1341
+ 1
1342
+ n
1343
+ n
1344
+ x
1345
+ 42
1346
+ test_basic_object_does_not_throw_exception
1347
+ i
1348
+ 58
1349
+ 45
1350
+ 0
1351
+ 1
1352
+ 13
1353
+ 71
1354
+ 2
1355
+ 47
1356
+ 9
1357
+ 21
1358
+ 47
1359
+ 49
1360
+ 3
1361
+ 0
1362
+ 13
1363
+ 47
1364
+ 49
1365
+ 4
1366
+ 0
1367
+ 15
1368
+ 8
1369
+ 24
1370
+ 49
1371
+ 2
1372
+ 0
1373
+ 19
1374
+ 0
1375
+ 15
1376
+ 45
1377
+ 5
1378
+ 6
1379
+ 43
1380
+ 7
1381
+ 13
1382
+ 71
1383
+ 2
1384
+ 47
1385
+ 9
1386
+ 52
1387
+ 47
1388
+ 49
1389
+ 3
1390
+ 0
1391
+ 13
1392
+ 20
1393
+ 0
1394
+ 47
1395
+ 49
1396
+ 4
1397
+ 1
1398
+ 15
1399
+ 8
1400
+ 57
1401
+ 20
1402
+ 0
1403
+ 49
1404
+ 2
1405
+ 1
1406
+ 11
1407
+ I
1408
+ 4
1409
+ I
1410
+ 1
1411
+ I
1412
+ 0
1413
+ I
1414
+ 0
1415
+ n
1416
+ p
1417
+ 8
1418
+ x
1419
+ 15
1420
+ TestBasicObject
1421
+ n
1422
+ x
1423
+ 3
1424
+ new
1425
+ x
1426
+ 8
1427
+ allocate
1428
+ x
1429
+ 10
1430
+ initialize
1431
+ x
1432
+ 3
1433
+ Ref
1434
+ n
1435
+ x
1436
+ 13
1437
+ WeakReference
1234
1438
  p
1235
1439
  7
1236
1440
  I
1441
+ -1
1442
+ I
1443
+ 34
1444
+ I
1237
1445
  0
1238
1446
  I
1239
- 1
1447
+ 35
1240
1448
  I
1241
- 9
1449
+ 1b
1242
1450
  I
1243
- 2
1451
+ 36
1244
1452
  I
1245
- 1c
1453
+ 3a
1454
+ x
1455
+ 59
1456
+ /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
1457
+ p
1458
+ 1
1459
+ x
1460
+ 3
1461
+ obj
1462
+ p
1463
+ 11
1464
+ I
1465
+ 2
1246
1466
  I
1247
1467
  4
1248
1468
  I
1249
- 3f
1469
+ 10
1470
+ I
1471
+ e
1472
+ I
1473
+ 1e
1474
+ I
1475
+ 27
1476
+ I
1477
+ 2c
1478
+ I
1479
+ 2f
1480
+ I
1481
+ 49
1482
+ I
1483
+ 34
1484
+ I
1485
+ 57
1486
+ x
1487
+ 59
1488
+ /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
1489
+ p
1490
+ 0
1491
+ x
1492
+ 13
1493
+ attach_method
1494
+ p
1495
+ 5
1496
+ I
1497
+ 0
1498
+ I
1499
+ 1
1500
+ I
1501
+ 13
1502
+ I
1503
+ 3
1504
+ I
1505
+ 36
1250
1506
  x
1251
1507
  59
1252
1508
  /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb