bibtex-ruby 2.0.0pre1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bibtex-ruby might be problematic. Click here for more details.
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/History.txt +14 -1
- data/Rakefile.compiled.rbc +351 -260
- data/features/step_definitions/bibtex_steps.rbc +31 -16
- data/features/step_definitions/name_steps.rbc +1 -1
- data/features/support/env.rbc +1 -1
- data/lib/bibtex.rbc +58 -42
- data/lib/bibtex/bibliography.rb +3 -1
- data/lib/bibtex/bibliography.rbc +1623 -693
- data/lib/bibtex/compatibility.rbc +1 -1
- data/lib/bibtex/elements.rb +1 -1
- data/lib/bibtex/elements.rbc +855 -413
- data/lib/bibtex/entry.rbc +6115 -3111
- data/lib/bibtex/error.rb +2 -1
- data/lib/bibtex/error.rbc +258 -43
- data/lib/bibtex/extensions.rbc +1 -1
- data/lib/bibtex/filters.rbc +1 -1
- data/lib/bibtex/filters/latex.rbc +1 -1
- data/lib/bibtex/lexer.rbc +396 -449
- data/lib/bibtex/name_parser.rbc +152 -509
- data/lib/bibtex/names.rbc +979 -425
- data/lib/bibtex/parser.rbc +3 -3
- data/lib/bibtex/replaceable.rbc +1 -1
- data/lib/bibtex/utilities.rbc +1 -1
- data/lib/bibtex/value.rb +1 -1
- data/lib/bibtex/value.rbc +267 -299
- data/lib/bibtex/version.rb +1 -1
- data/lib/bibtex/version.rbc +2 -2
- data/test/bibtex/test_bibliography.rbc +1055 -184
- data/test/bibtex/test_elements.rbc +696 -66
- data/test/bibtex/test_entry.rbc +9118 -3743
- data/test/bibtex/test_filters.rbc +17 -17
- data/test/bibtex/test_lexer.rbc +5 -5
- data/test/bibtex/test_name_parser.rbc +11 -11
- data/test/bibtex/test_names.rbc +13 -13
- data/test/bibtex/test_parser.rbc +72 -87
- data/test/bibtex/test_string.rbc +15 -15
- data/test/bibtex/test_utilities.rbc +1 -1
- data/test/bibtex/test_value.rbc +67 -67
- data/test/helper.rbc +20 -36
- data/test/test_bibtex.rbc +96 -186
- data/test/test_export.rbc +44 -57
- metadata +14 -14
@@ -1,5 +1,5 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
2
|
+
16846133056282117387
|
3
3
|
x
|
4
4
|
M
|
5
5
|
1
|
@@ -187,8 +187,8 @@ n
|
|
187
187
|
p
|
188
188
|
6
|
189
189
|
s
|
190
|
-
|
191
|
-
Filters should be singleton classes
|
190
|
+
42
|
191
|
+
should Filters should be singleton classes
|
192
192
|
M
|
193
193
|
1
|
194
194
|
p
|
@@ -293,8 +293,8 @@ x
|
|
293
293
|
p
|
294
294
|
0
|
295
295
|
x
|
296
|
-
|
297
|
-
|
296
|
+
2
|
297
|
+
it
|
298
298
|
s
|
299
299
|
15
|
300
300
|
Filters.resolve
|
@@ -369,8 +369,8 @@ I
|
|
369
369
|
p
|
370
370
|
9
|
371
371
|
s
|
372
|
-
|
373
|
-
return the filter if a filter is given
|
372
|
+
45
|
373
|
+
should return the filter if a filter is given
|
374
374
|
M
|
375
375
|
1
|
376
376
|
p
|
@@ -462,11 +462,11 @@ x
|
|
462
462
|
p
|
463
463
|
0
|
464
464
|
x
|
465
|
-
|
466
|
-
|
465
|
+
2
|
466
|
+
it
|
467
467
|
s
|
468
|
-
|
469
|
-
return the parameter if it quacks like a filter
|
468
|
+
54
|
469
|
+
should return the parameter if it quacks like a filter
|
470
470
|
M
|
471
471
|
1
|
472
472
|
p
|
@@ -646,8 +646,8 @@ x
|
|
646
646
|
1
|
647
647
|
f
|
648
648
|
s
|
649
|
-
|
650
|
-
return the filter if there is a filter by that name
|
649
|
+
58
|
650
|
+
should return the filter if there is a filter by that name
|
651
651
|
M
|
652
652
|
1
|
653
653
|
p
|
@@ -822,8 +822,8 @@ x
|
|
822
822
|
p
|
823
823
|
0
|
824
824
|
s
|
825
|
-
|
826
|
-
return nil if there is no filter by that name
|
825
|
+
52
|
826
|
+
should return nil if there is no filter by that name
|
827
827
|
M
|
828
828
|
1
|
829
829
|
p
|
@@ -960,8 +960,8 @@ x
|
|
960
960
|
p
|
961
961
|
0
|
962
962
|
x
|
963
|
-
|
964
|
-
|
963
|
+
8
|
964
|
+
describe
|
965
965
|
p
|
966
966
|
5
|
967
967
|
I
|
data/test/bibtex/test_lexer.rbc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
2
|
+
16846133056282117387
|
3
3
|
x
|
4
4
|
M
|
5
5
|
1
|
@@ -176,8 +176,8 @@ n
|
|
176
176
|
p
|
177
177
|
3
|
178
178
|
s
|
179
|
-
|
180
|
-
correctly scan a string literal
|
179
|
+
38
|
180
|
+
should correctly scan a string literal
|
181
181
|
M
|
182
182
|
1
|
183
183
|
p
|
@@ -320,8 +320,8 @@ x
|
|
320
320
|
p
|
321
321
|
0
|
322
322
|
x
|
323
|
-
|
324
|
-
|
323
|
+
2
|
324
|
+
it
|
325
325
|
p
|
326
326
|
3
|
327
327
|
I
|
@@ -1,5 +1,5 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
2
|
+
16846133056282117387
|
3
3
|
x
|
4
4
|
M
|
5
5
|
1
|
@@ -322,11 +322,11 @@ x
|
|
322
322
|
p
|
323
323
|
0
|
324
324
|
x
|
325
|
-
|
326
|
-
|
325
|
+
6
|
326
|
+
before
|
327
327
|
s
|
328
|
-
|
329
|
-
parse 'van den' part starting with lowercase letter
|
328
|
+
58
|
329
|
+
should parse 'van den' part starting with lowercase letter
|
330
330
|
M
|
331
331
|
1
|
332
332
|
p
|
@@ -428,11 +428,11 @@ x
|
|
428
428
|
p
|
429
429
|
0
|
430
430
|
x
|
431
|
-
|
432
|
-
|
431
|
+
2
|
432
|
+
it
|
433
433
|
s
|
434
|
-
|
435
|
-
parse 'Van den' part starting with uppercase letter
|
434
|
+
58
|
435
|
+
should parse 'Van den' part starting with uppercase letter
|
436
436
|
M
|
437
437
|
1
|
438
438
|
p
|
@@ -555,8 +555,8 @@ x
|
|
555
555
|
p
|
556
556
|
0
|
557
557
|
x
|
558
|
-
|
559
|
-
|
558
|
+
8
|
559
|
+
describe
|
560
560
|
p
|
561
561
|
3
|
562
562
|
I
|
data/test/bibtex/test_names.rbc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
2
|
+
16846133056282117387
|
3
3
|
x
|
4
4
|
M
|
5
5
|
1
|
@@ -457,11 +457,11 @@ x
|
|
457
457
|
p
|
458
458
|
0
|
459
459
|
x
|
460
|
-
|
461
|
-
|
460
|
+
6
|
461
|
+
before
|
462
462
|
s
|
463
|
-
|
464
|
-
implement upcase!
|
463
|
+
24
|
464
|
+
should implement upcase!
|
465
465
|
M
|
466
466
|
1
|
467
467
|
p
|
@@ -534,11 +534,11 @@ x
|
|
534
534
|
p
|
535
535
|
0
|
536
536
|
x
|
537
|
-
|
538
|
-
|
537
|
+
2
|
538
|
+
it
|
539
539
|
s
|
540
|
-
|
541
|
-
implement downcase!
|
540
|
+
26
|
541
|
+
should implement downcase!
|
542
542
|
M
|
543
543
|
1
|
544
544
|
p
|
@@ -611,8 +611,8 @@ x
|
|
611
611
|
p
|
612
612
|
0
|
613
613
|
s
|
614
|
-
|
615
|
-
implement gsub!
|
614
|
+
22
|
615
|
+
should implement gsub!
|
616
616
|
M
|
617
617
|
1
|
618
618
|
p
|
@@ -744,8 +744,8 @@ x
|
|
744
744
|
p
|
745
745
|
0
|
746
746
|
x
|
747
|
-
|
748
|
-
|
747
|
+
8
|
748
|
+
describe
|
749
749
|
p
|
750
750
|
3
|
751
751
|
I
|
data/test/bibtex/test_parser.rbc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
2
|
+
16846133056282117387
|
3
3
|
x
|
4
4
|
M
|
5
5
|
1
|
@@ -473,11 +473,11 @@ x
|
|
473
473
|
p
|
474
474
|
0
|
475
475
|
x
|
476
|
-
|
477
|
-
|
476
|
+
6
|
477
|
+
before
|
478
478
|
s
|
479
|
-
|
480
|
-
return a Bibliography
|
479
|
+
28
|
480
|
+
should return a Bibliography
|
481
481
|
M
|
482
482
|
1
|
483
483
|
p
|
@@ -553,11 +553,11 @@ x
|
|
553
553
|
p
|
554
554
|
0
|
555
555
|
x
|
556
|
-
|
557
|
-
|
556
|
+
2
|
557
|
+
it
|
558
558
|
s
|
559
|
-
|
560
|
-
parse all entries
|
559
|
+
24
|
560
|
+
should parse all entries
|
561
561
|
M
|
562
562
|
1
|
563
563
|
p
|
@@ -620,8 +620,8 @@ x
|
|
620
620
|
p
|
621
621
|
0
|
622
622
|
s
|
623
|
-
|
624
|
-
parse the key values
|
623
|
+
27
|
624
|
+
should parse the key values
|
625
625
|
M
|
626
626
|
1
|
627
627
|
p
|
@@ -635,7 +635,7 @@ x
|
|
635
635
|
10
|
636
636
|
ParserTest
|
637
637
|
i
|
638
|
-
|
638
|
+
35
|
639
639
|
5
|
640
640
|
7
|
641
641
|
0
|
@@ -648,43 +648,27 @@ i
|
|
648
648
|
64
|
649
649
|
35
|
650
650
|
3
|
651
|
-
7
|
652
|
-
3
|
653
|
-
13
|
654
|
-
70
|
655
|
-
10
|
656
|
-
25
|
657
|
-
44
|
658
|
-
43
|
659
|
-
4
|
660
|
-
12
|
661
|
-
49
|
662
|
-
5
|
663
|
-
1
|
664
|
-
50
|
665
|
-
6
|
666
|
-
0
|
667
651
|
39
|
652
|
+
3
|
668
653
|
7
|
669
|
-
|
670
|
-
8
|
654
|
+
4
|
671
655
|
13
|
672
656
|
70
|
673
657
|
10
|
674
|
-
|
658
|
+
27
|
675
659
|
44
|
676
660
|
43
|
677
|
-
|
661
|
+
5
|
678
662
|
12
|
679
663
|
49
|
680
|
-
|
664
|
+
6
|
681
665
|
1
|
682
666
|
50
|
683
|
-
|
667
|
+
7
|
684
668
|
0
|
685
669
|
47
|
686
670
|
49
|
687
|
-
|
671
|
+
8
|
688
672
|
2
|
689
673
|
11
|
690
674
|
I
|
@@ -698,7 +682,7 @@ I
|
|
698
682
|
I
|
699
683
|
-2
|
700
684
|
p
|
701
|
-
|
685
|
+
9
|
702
686
|
s
|
703
687
|
5
|
704
688
|
key:0
|
@@ -709,8 +693,11 @@ s
|
|
709
693
|
3
|
710
694
|
foo
|
711
695
|
x
|
712
|
-
|
713
|
-
|
696
|
+
4
|
697
|
+
@bib
|
698
|
+
x
|
699
|
+
3
|
700
|
+
key
|
714
701
|
x
|
715
702
|
4
|
716
703
|
Proc
|
@@ -721,12 +708,6 @@ x
|
|
721
708
|
3
|
722
709
|
map
|
723
710
|
x
|
724
|
-
4
|
725
|
-
@bib
|
726
|
-
x
|
727
|
-
3
|
728
|
-
key
|
729
|
-
x
|
730
711
|
12
|
731
712
|
assert_equal
|
732
713
|
p
|
@@ -736,15 +717,15 @@ I
|
|
736
717
|
I
|
737
718
|
15
|
738
719
|
I
|
739
|
-
|
720
|
+
23
|
740
721
|
x
|
741
722
|
60
|
742
723
|
/Users/sylvester/Work/bibtex-ruby/test/bibtex/test_parser.rb
|
743
724
|
p
|
744
725
|
0
|
745
726
|
s
|
746
|
-
|
747
|
-
handle strange keys
|
727
|
+
26
|
728
|
+
should handle strange keys
|
748
729
|
M
|
749
730
|
1
|
750
731
|
p
|
@@ -758,7 +739,7 @@ x
|
|
758
739
|
10
|
759
740
|
ParserTest
|
760
741
|
i
|
761
|
-
|
742
|
+
114
|
762
743
|
7
|
763
744
|
0
|
764
745
|
64
|
@@ -846,6 +827,7 @@ i
|
|
846
827
|
5
|
847
828
|
7
|
848
829
|
12
|
830
|
+
64
|
849
831
|
20
|
850
832
|
1
|
851
833
|
49
|
@@ -863,13 +845,13 @@ i
|
|
863
845
|
20
|
864
846
|
1
|
865
847
|
7
|
866
|
-
12
|
867
|
-
49
|
868
848
|
16
|
849
|
+
49
|
850
|
+
17
|
869
851
|
1
|
870
852
|
47
|
871
853
|
49
|
872
|
-
|
854
|
+
18
|
873
855
|
1
|
874
856
|
11
|
875
857
|
I
|
@@ -883,7 +865,7 @@ I
|
|
883
865
|
I
|
884
866
|
-2
|
885
867
|
p
|
886
|
-
|
868
|
+
19
|
887
869
|
s
|
888
870
|
48
|
889
871
|
@Misc{George Martin06,title = {FEAST FOR CROWS}}
|
@@ -918,7 +900,7 @@ initialize
|
|
918
900
|
x
|
919
901
|
5
|
920
902
|
parse
|
921
|
-
|
903
|
+
s
|
922
904
|
15
|
923
905
|
George Martin06
|
924
906
|
x
|
@@ -931,6 +913,9 @@ x
|
|
931
913
|
12
|
932
914
|
assert_equal
|
933
915
|
x
|
916
|
+
15
|
917
|
+
George Martin06
|
918
|
+
x
|
934
919
|
2
|
935
920
|
[]
|
936
921
|
x
|
@@ -951,11 +936,11 @@ I
|
|
951
936
|
I
|
952
937
|
1b
|
953
938
|
I
|
954
|
-
|
939
|
+
65
|
955
940
|
I
|
956
941
|
1c
|
957
942
|
I
|
958
|
-
|
943
|
+
72
|
959
944
|
x
|
960
945
|
60
|
961
946
|
/Users/sylvester/Work/bibtex-ruby/test/bibtex/test_parser.rb
|
@@ -968,8 +953,8 @@ x
|
|
968
953
|
3
|
969
954
|
bib
|
970
955
|
s
|
971
|
-
|
972
|
-
parse the entry types
|
956
|
+
28
|
957
|
+
should parse the entry types
|
973
958
|
M
|
974
959
|
1
|
975
960
|
p
|
@@ -1066,8 +1051,8 @@ x
|
|
1066
1051
|
p
|
1067
1052
|
0
|
1068
1053
|
s
|
1069
|
-
|
1070
|
-
parse all values correctly
|
1054
|
+
33
|
1055
|
+
should parse all values correctly
|
1071
1056
|
M
|
1072
1057
|
1
|
1073
1058
|
p
|
@@ -1382,8 +1367,8 @@ x
|
|
1382
1367
|
p
|
1383
1368
|
0
|
1384
1369
|
x
|
1385
|
-
|
1386
|
-
|
1370
|
+
8
|
1371
|
+
describe
|
1387
1372
|
s
|
1388
1373
|
45
|
1389
1374
|
given a set of explicit and implicit comments
|
@@ -1644,11 +1629,11 @@ x
|
|
1644
1629
|
p
|
1645
1630
|
0
|
1646
1631
|
x
|
1647
|
-
|
1648
|
-
|
1632
|
+
6
|
1633
|
+
before
|
1649
1634
|
s
|
1650
|
-
|
1651
|
-
parses all @comments
|
1635
|
+
27
|
1636
|
+
should parses all @comments
|
1652
1637
|
M
|
1653
1638
|
1
|
1654
1639
|
p
|
@@ -1716,11 +1701,11 @@ x
|
|
1716
1701
|
p
|
1717
1702
|
0
|
1718
1703
|
x
|
1719
|
-
|
1720
|
-
|
1704
|
+
2
|
1705
|
+
it
|
1721
1706
|
s
|
1722
|
-
|
1723
|
-
parses all meta content
|
1707
|
+
30
|
1708
|
+
should parses all meta content
|
1724
1709
|
M
|
1725
1710
|
1
|
1726
1711
|
p
|
@@ -1789,8 +1774,8 @@ x
|
|
1789
1774
|
p
|
1790
1775
|
0
|
1791
1776
|
s
|
1792
|
-
|
1793
|
-
parse @comment content as string
|
1777
|
+
39
|
1778
|
+
should parse @comment content as string
|
1794
1779
|
M
|
1795
1780
|
1
|
1796
1781
|
p
|
@@ -2147,11 +2132,11 @@ x
|
|
2147
2132
|
p
|
2148
2133
|
0
|
2149
2134
|
x
|
2150
|
-
|
2151
|
-
|
2135
|
+
6
|
2136
|
+
before
|
2152
2137
|
s
|
2153
|
-
|
2154
|
-
parse all @preambles
|
2138
|
+
27
|
2139
|
+
should parse all @preambles
|
2155
2140
|
M
|
2156
2141
|
1
|
2157
2142
|
p
|
@@ -2220,11 +2205,11 @@ x
|
|
2220
2205
|
p
|
2221
2206
|
0
|
2222
2207
|
x
|
2223
|
-
|
2224
|
-
|
2208
|
+
2
|
2209
|
+
it
|
2225
2210
|
s
|
2226
|
-
|
2227
|
-
parse all contents
|
2211
|
+
25
|
2212
|
+
should parse all contents
|
2228
2213
|
M
|
2229
2214
|
1
|
2230
2215
|
p
|
@@ -2525,11 +2510,11 @@ x
|
|
2525
2510
|
p
|
2526
2511
|
0
|
2527
2512
|
x
|
2528
|
-
|
2529
|
-
|
2513
|
+
6
|
2514
|
+
before
|
2530
2515
|
s
|
2531
|
-
|
2532
|
-
parse string literals
|
2516
|
+
28
|
2517
|
+
should parse string literals
|
2533
2518
|
M
|
2534
2519
|
1
|
2535
2520
|
p
|
@@ -2638,11 +2623,11 @@ x
|
|
2638
2623
|
p
|
2639
2624
|
0
|
2640
2625
|
x
|
2641
|
-
|
2642
|
-
|
2626
|
+
2
|
2627
|
+
it
|
2643
2628
|
s
|
2644
|
-
|
2645
|
-
parse braced literals
|
2629
|
+
28
|
2630
|
+
should parse braced literals
|
2646
2631
|
M
|
2647
2632
|
1
|
2648
2633
|
p
|