bibtex-ruby 2.0.0pre1 → 2.0.0

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.

Potentially problematic release.


This version of bibtex-ruby might be problematic. Click here for more details.

Files changed (44) hide show
  1. data/Gemfile +1 -1
  2. data/Gemfile.lock +1 -1
  3. data/History.txt +14 -1
  4. data/Rakefile.compiled.rbc +351 -260
  5. data/features/step_definitions/bibtex_steps.rbc +31 -16
  6. data/features/step_definitions/name_steps.rbc +1 -1
  7. data/features/support/env.rbc +1 -1
  8. data/lib/bibtex.rbc +58 -42
  9. data/lib/bibtex/bibliography.rb +3 -1
  10. data/lib/bibtex/bibliography.rbc +1623 -693
  11. data/lib/bibtex/compatibility.rbc +1 -1
  12. data/lib/bibtex/elements.rb +1 -1
  13. data/lib/bibtex/elements.rbc +855 -413
  14. data/lib/bibtex/entry.rbc +6115 -3111
  15. data/lib/bibtex/error.rb +2 -1
  16. data/lib/bibtex/error.rbc +258 -43
  17. data/lib/bibtex/extensions.rbc +1 -1
  18. data/lib/bibtex/filters.rbc +1 -1
  19. data/lib/bibtex/filters/latex.rbc +1 -1
  20. data/lib/bibtex/lexer.rbc +396 -449
  21. data/lib/bibtex/name_parser.rbc +152 -509
  22. data/lib/bibtex/names.rbc +979 -425
  23. data/lib/bibtex/parser.rbc +3 -3
  24. data/lib/bibtex/replaceable.rbc +1 -1
  25. data/lib/bibtex/utilities.rbc +1 -1
  26. data/lib/bibtex/value.rb +1 -1
  27. data/lib/bibtex/value.rbc +267 -299
  28. data/lib/bibtex/version.rb +1 -1
  29. data/lib/bibtex/version.rbc +2 -2
  30. data/test/bibtex/test_bibliography.rbc +1055 -184
  31. data/test/bibtex/test_elements.rbc +696 -66
  32. data/test/bibtex/test_entry.rbc +9118 -3743
  33. data/test/bibtex/test_filters.rbc +17 -17
  34. data/test/bibtex/test_lexer.rbc +5 -5
  35. data/test/bibtex/test_name_parser.rbc +11 -11
  36. data/test/bibtex/test_names.rbc +13 -13
  37. data/test/bibtex/test_parser.rbc +72 -87
  38. data/test/bibtex/test_string.rbc +15 -15
  39. data/test/bibtex/test_utilities.rbc +1 -1
  40. data/test/bibtex/test_value.rbc +67 -67
  41. data/test/helper.rbc +20 -36
  42. data/test/test_bibtex.rbc +96 -186
  43. data/test/test_export.rbc +44 -57
  44. metadata +14 -14
@@ -1,5 +1,5 @@
1
1
  !RBIX
2
- 9595534255132031488
2
+ 16846133056282117387
3
3
  x
4
4
  M
5
5
  1
@@ -81,67 +81,696 @@ x
81
81
  6
82
82
  BibTeX
83
83
  i
84
+ 64
85
+ 5
86
+ 66
87
+ 99
88
+ 7
89
+ 0
90
+ 45
91
+ 1
92
+ 2
93
+ 43
94
+ 3
95
+ 65
96
+ 49
97
+ 4
98
+ 3
99
+ 13
100
+ 99
101
+ 12
102
+ 7
103
+ 5
104
+ 12
105
+ 7
106
+ 6
107
+ 12
108
+ 65
109
+ 12
110
+ 49
111
+ 7
112
+ 4
113
+ 15
114
+ 49
115
+ 5
116
+ 0
117
+ 15
118
+ 99
119
+ 7
120
+ 8
121
+ 45
122
+ 1
123
+ 9
124
+ 43
125
+ 3
126
+ 65
127
+ 49
128
+ 4
129
+ 3
130
+ 13
131
+ 99
132
+ 12
133
+ 7
134
+ 5
135
+ 12
136
+ 7
137
+ 10
138
+ 12
139
+ 65
140
+ 12
141
+ 49
142
+ 7
143
+ 4
144
+ 15
145
+ 49
146
+ 5
147
+ 0
148
+ 11
149
+ I
150
+ 6
151
+ I
152
+ 0
153
+ I
154
+ 0
155
+ I
156
+ 0
157
+ n
158
+ p
159
+ 11
160
+ x
161
+ 11
162
+ ElementTest
163
+ x
164
+ 8
165
+ MiniTest
166
+ n
167
+ x
168
+ 4
169
+ Spec
170
+ x
171
+ 10
172
+ open_class
173
+ x
174
+ 14
175
+ __class_init__
176
+ M
177
+ 1
178
+ n
179
+ n
180
+ x
181
+ 11
182
+ ElementTest
183
+ i
184
+ 13
185
+ 5
186
+ 66
187
+ 5
188
+ 7
189
+ 0
190
+ 64
191
+ 56
192
+ 1
193
+ 47
194
+ 50
195
+ 2
196
+ 1
197
+ 11
198
+ I
199
+ 3
200
+ I
201
+ 0
202
+ I
203
+ 0
204
+ I
205
+ 0
206
+ n
207
+ p
208
+ 3
209
+ s
210
+ 6
211
+ .parse
212
+ M
213
+ 1
214
+ p
215
+ 2
216
+ x
217
+ 9
218
+ for_block
219
+ t
220
+ n
221
+ x
222
+ 11
223
+ ElementTest
224
+ i
225
+ 44
226
+ 5
227
+ 7
228
+ 0
229
+ 64
230
+ 56
231
+ 1
232
+ 47
233
+ 50
234
+ 2
235
+ 1
236
+ 15
237
+ 5
238
+ 7
239
+ 3
240
+ 64
241
+ 56
242
+ 4
243
+ 47
244
+ 50
245
+ 2
246
+ 1
247
+ 15
248
+ 5
249
+ 7
250
+ 5
251
+ 64
252
+ 56
253
+ 6
254
+ 47
255
+ 50
256
+ 2
257
+ 1
258
+ 15
259
+ 5
260
+ 7
261
+ 7
262
+ 64
263
+ 56
264
+ 8
265
+ 47
266
+ 50
267
+ 2
268
+ 1
269
+ 11
270
+ I
271
+ 4
272
+ I
273
+ 0
274
+ I
275
+ 0
276
+ I
277
+ 0
278
+ I
279
+ -2
280
+ p
281
+ 9
282
+ s
283
+ 23
284
+ accepts a BibTeX string
285
+ M
286
+ 1
287
+ p
288
+ 2
289
+ x
290
+ 9
291
+ for_block
292
+ t
293
+ n
294
+ x
295
+ 11
296
+ ElementTest
297
+ i
298
+ 19
299
+ 45
300
+ 0
301
+ 1
302
+ 7
303
+ 2
304
+ 64
305
+ 49
306
+ 3
307
+ 1
308
+ 49
309
+ 4
310
+ 0
311
+ 7
312
+ 5
313
+ 80
314
+ 49
315
+ 6
316
+ 2
317
+ 11
318
+ I
319
+ 4
320
+ I
321
+ 0
322
+ I
323
+ 0
324
+ I
325
+ 0
326
+ I
327
+ -2
328
+ p
329
+ 7
330
+ x
331
+ 7
332
+ Element
333
+ n
334
+ s
335
+ 19
336
+ @misc{x,},@misc{y,}
337
+ x
338
+ 5
339
+ parse
340
+ x
341
+ 6
342
+ length
343
+ x
344
+ 2
345
+ ==
346
+ x
347
+ 7
348
+ must_be
349
+ p
350
+ 3
351
+ I
352
+ 0
353
+ I
354
+ a
355
+ I
356
+ 13
357
+ x
358
+ 62
359
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb
360
+ p
361
+ 0
362
+ x
363
+ 2
364
+ it
365
+ s
366
+ 18
367
+ accepts an Element
368
+ M
369
+ 1
370
+ p
371
+ 2
372
+ x
373
+ 9
374
+ for_block
375
+ t
376
+ n
377
+ x
378
+ 11
379
+ ElementTest
380
+ i
381
+ 46
382
+ 45
383
+ 0
384
+ 1
385
+ 45
386
+ 2
387
+ 3
388
+ 13
389
+ 71
390
+ 4
391
+ 47
392
+ 9
393
+ 27
394
+ 47
395
+ 49
396
+ 5
397
+ 0
398
+ 13
399
+ 7
400
+ 6
401
+ 64
402
+ 47
403
+ 49
404
+ 7
405
+ 1
406
+ 15
407
+ 8
84
408
  33
409
+ 7
410
+ 6
411
+ 64
412
+ 49
413
+ 4
414
+ 1
415
+ 49
416
+ 8
417
+ 1
418
+ 49
419
+ 9
420
+ 0
421
+ 7
422
+ 10
423
+ 79
424
+ 49
425
+ 11
426
+ 2
427
+ 11
428
+ I
429
+ 5
430
+ I
431
+ 0
432
+ I
433
+ 0
434
+ I
435
+ 0
436
+ I
437
+ -2
438
+ p
439
+ 12
440
+ x
441
+ 7
442
+ Element
443
+ n
444
+ x
445
+ 7
446
+ Comment
447
+ n
448
+ x
449
+ 3
450
+ new
451
+ x
452
+ 8
453
+ allocate
454
+ s
455
+ 4
456
+ blah
457
+ x
458
+ 10
459
+ initialize
460
+ x
461
+ 5
462
+ parse
463
+ x
464
+ 6
465
+ length
466
+ x
467
+ 2
468
+ ==
469
+ x
470
+ 7
471
+ must_be
472
+ p
473
+ 3
474
+ I
475
+ 0
476
+ I
477
+ e
478
+ I
479
+ 2e
480
+ x
481
+ 62
482
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb
483
+ p
484
+ 0
485
+ s
486
+ 35
487
+ accepts a Hash and returns an Entry
488
+ M
489
+ 1
490
+ p
491
+ 2
492
+ x
493
+ 9
494
+ for_block
495
+ t
496
+ n
497
+ x
498
+ 11
499
+ ElementTest
500
+ i
501
+ 37
502
+ 45
503
+ 0
504
+ 1
505
+ 44
506
+ 43
507
+ 2
508
+ 79
509
+ 49
510
+ 3
511
+ 1
512
+ 13
513
+ 7
514
+ 4
515
+ 7
516
+ 5
517
+ 49
518
+ 6
519
+ 2
520
+ 15
521
+ 49
522
+ 7
523
+ 1
524
+ 78
525
+ 49
526
+ 8
527
+ 1
528
+ 49
529
+ 4
530
+ 0
531
+ 7
532
+ 9
533
+ 7
85
534
  5
86
- 66
87
- 99
535
+ 49
536
+ 10
537
+ 2
538
+ 11
539
+ I
540
+ 6
541
+ I
542
+ 0
543
+ I
544
+ 0
545
+ I
546
+ 0
547
+ I
548
+ -2
549
+ p
550
+ 11
551
+ x
552
+ 7
553
+ Element
554
+ n
555
+ x
556
+ 4
557
+ Hash
558
+ x
559
+ 16
560
+ new_from_literal
561
+ x
562
+ 4
563
+ type
564
+ x
565
+ 4
566
+ book
567
+ x
568
+ 3
569
+ []=
570
+ x
571
+ 5
572
+ parse
573
+ x
574
+ 2
575
+ []
576
+ x
577
+ 2
578
+ ==
579
+ x
88
580
  7
581
+ must_be
582
+ p
583
+ 3
584
+ I
89
585
  0
90
- 45
586
+ I
587
+ 12
588
+ I
589
+ 25
590
+ x
591
+ 62
592
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb
593
+ p
594
+ 0
595
+ s
596
+ 26
597
+ accepts an array of hashes
598
+ M
91
599
  1
600
+ p
92
601
  2
602
+ x
603
+ 9
604
+ for_block
605
+ t
606
+ n
607
+ x
608
+ 11
609
+ ElementTest
610
+ i
611
+ 55
612
+ 45
613
+ 0
614
+ 1
615
+ 44
93
616
  43
94
- 3
95
- 65
617
+ 2
618
+ 79
96
619
  49
97
- 4
98
620
  3
621
+ 1
99
622
  13
100
- 99
101
- 12
102
623
  7
103
- 5
104
- 12
624
+ 4
105
625
  7
626
+ 5
627
+ 49
106
628
  6
107
- 12
108
- 65
109
- 12
629
+ 2
630
+ 15
631
+ 44
632
+ 43
633
+ 2
634
+ 79
110
635
  49
636
+ 3
637
+ 1
638
+ 13
111
639
  7
112
640
  4
641
+ 7
642
+ 7
643
+ 49
644
+ 6
645
+ 2
113
646
  15
647
+ 35
648
+ 2
114
649
  49
115
- 5
650
+ 8
651
+ 1
652
+ 79
653
+ 49
654
+ 9
655
+ 1
656
+ 49
657
+ 4
116
658
  0
659
+ 7
660
+ 10
661
+ 7
662
+ 7
663
+ 49
664
+ 11
665
+ 2
117
666
  11
118
667
  I
119
- 6
668
+ 7
120
669
  I
121
670
  0
122
671
  I
123
672
  0
124
673
  I
125
674
  0
126
- n
675
+ I
676
+ -2
127
677
  p
128
- 8
129
- x
130
678
  12
131
- PreambleTest
132
679
  x
133
- 8
134
- MiniTest
680
+ 7
681
+ Element
135
682
  n
136
683
  x
137
684
  4
138
- Spec
685
+ Hash
139
686
  x
140
- 10
141
- open_class
687
+ 16
688
+ new_from_literal
142
689
  x
143
- 14
144
- __class_init__
690
+ 4
691
+ type
692
+ x
693
+ 4
694
+ book
695
+ x
696
+ 3
697
+ []=
698
+ x
699
+ 4
700
+ misc
701
+ x
702
+ 5
703
+ parse
704
+ x
705
+ 2
706
+ []
707
+ x
708
+ 2
709
+ ==
710
+ x
711
+ 7
712
+ must_be
713
+ p
714
+ 3
715
+ I
716
+ 0
717
+ I
718
+ 16
719
+ I
720
+ 37
721
+ x
722
+ 62
723
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb
724
+ p
725
+ 0
726
+ p
727
+ 9
728
+ I
729
+ 0
730
+ I
731
+ 9
732
+ I
733
+ b
734
+ I
735
+ d
736
+ I
737
+ 16
738
+ I
739
+ 11
740
+ I
741
+ 21
742
+ I
743
+ 15
744
+ I
745
+ 2c
746
+ x
747
+ 62
748
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb
749
+ p
750
+ 0
751
+ x
752
+ 8
753
+ describe
754
+ p
755
+ 3
756
+ I
757
+ 2
758
+ I
759
+ 7
760
+ I
761
+ d
762
+ x
763
+ 62
764
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb
765
+ p
766
+ 0
767
+ x
768
+ 13
769
+ attach_method
770
+ x
771
+ 12
772
+ PreambleTest
773
+ n
145
774
  M
146
775
  1
147
776
  n
@@ -308,7 +937,7 @@ p
308
937
  I
309
938
  0
310
939
  I
311
- 9
940
+ 21
312
941
  I
313
942
  1b
314
943
  x
@@ -317,11 +946,11 @@ x
317
946
  p
318
947
  0
319
948
  x
320
- 5
321
- setup
949
+ 6
950
+ before
322
951
  s
323
- 10
324
- not be nil
952
+ 17
953
+ should not be nil
325
954
  M
326
955
  1
327
956
  p
@@ -367,7 +996,7 @@ p
367
996
  I
368
997
  0
369
998
  I
370
- d
999
+ 25
371
1000
  I
372
1001
  8
373
1002
  x
@@ -376,18 +1005,18 @@ x
376
1005
  p
377
1006
  0
378
1007
  x
379
- 6
380
- should
1008
+ 2
1009
+ it
381
1010
  p
382
1011
  5
383
1012
  I
384
1013
  0
385
1014
  I
386
- 8
1015
+ 20
387
1016
  I
388
1017
  8
389
1018
  I
390
- c
1019
+ 24
391
1020
  I
392
1021
  13
393
1022
  x
@@ -396,8 +1025,8 @@ x
396
1025
  p
397
1026
  0
398
1027
  x
399
- 7
400
- context
1028
+ 8
1029
+ describe
401
1030
  s
402
1031
  25
403
1032
  given a set of @preambles
@@ -539,11 +1168,11 @@ p
539
1168
  I
540
1169
  0
541
1170
  I
542
- 13
1171
+ 2b
543
1172
  I
544
1173
  11
545
1174
  I
546
- 14
1175
+ 2c
547
1176
  I
548
1177
  19
549
1178
  x
@@ -552,11 +1181,11 @@ x
552
1181
  p
553
1182
  0
554
1183
  x
555
- 5
556
- setup
1184
+ 6
1185
+ before
557
1186
  s
558
- 43
559
- support round-trips of all parsed preambles
1187
+ 50
1188
+ should support round-trips of all parsed preambles
560
1189
  M
561
1190
  1
562
1191
  p
@@ -663,15 +1292,15 @@ p
663
1292
  I
664
1293
  0
665
1294
  I
666
- 18
1295
+ 30
667
1296
  I
668
1297
  12
669
1298
  I
670
- 19
1299
+ 31
671
1300
  I
672
1301
  24
673
1302
  I
674
- 1a
1303
+ 32
675
1304
  I
676
1305
  36
677
1306
  x
@@ -680,11 +1309,11 @@ x
680
1309
  p
681
1310
  0
682
1311
  x
683
- 6
684
- should
1312
+ 2
1313
+ it
685
1314
  s
686
- 47
687
- support string replacement of preamble contents
1315
+ 54
1316
+ should support string replacement of preamble contents
688
1317
  M
689
1318
  1
690
1319
  p
@@ -824,23 +1453,23 @@ p
824
1453
  I
825
1454
  0
826
1455
  I
827
- 1e
1456
+ 36
828
1457
  I
829
1458
  15
830
1459
  I
831
- 1f
1460
+ 37
832
1461
  I
833
1462
  1b
834
1463
  I
835
- 20
1464
+ 38
836
1465
  I
837
1466
  30
838
1467
  I
839
- 21
1468
+ 39
840
1469
  I
841
1470
  36
842
1471
  I
843
- 22
1472
+ 3a
844
1473
  I
845
1474
  4b
846
1475
  x
@@ -853,15 +1482,15 @@ p
853
1482
  I
854
1483
  0
855
1484
  I
856
- 12
1485
+ 2a
857
1486
  I
858
1487
  8
859
1488
  I
860
- 17
1489
+ 2f
861
1490
  I
862
1491
  13
863
1492
  I
864
- 1d
1493
+ 35
865
1494
  I
866
1495
  1e
867
1496
  x
@@ -874,11 +1503,11 @@ p
874
1503
  I
875
1504
  2
876
1505
  I
877
- 7
1506
+ 1f
878
1507
  I
879
1508
  d
880
1509
  I
881
- 11
1510
+ 29
882
1511
  I
883
1512
  18
884
1513
  x
@@ -886,17 +1515,18 @@ x
886
1515
  /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb
887
1516
  p
888
1517
  0
889
- x
890
- 13
891
- attach_method
892
1518
  p
893
- 3
1519
+ 5
894
1520
  I
895
1521
  2
896
1522
  I
897
1523
  5
898
1524
  I
899
1525
  21
1526
+ I
1527
+ 1d
1528
+ I
1529
+ 40
900
1530
  x
901
1531
  62
902
1532
  /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb