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
@@ -740,7 +740,7 @@ x
740
740
  12
741
741
  test_decoret
742
742
  i
743
- 242
743
+ 243
744
744
  45
745
745
  0
746
746
  1
@@ -843,6 +843,7 @@ i
843
843
  5
844
844
  7
845
845
  28
846
+ 64
846
847
  20
847
848
  0
848
849
  49
@@ -866,12 +867,12 @@ i
866
867
  20
867
868
  0
868
869
  7
869
- 28
870
+ 32
870
871
  49
871
872
  29
872
873
  1
873
874
  49
874
- 32
875
+ 33
875
876
  0
876
877
  47
877
878
  49
@@ -880,22 +881,22 @@ i
880
881
  15
881
882
  5
882
883
  7
883
- 33
884
+ 34
884
885
  64
885
886
  20
886
887
  0
887
888
  7
888
- 28
889
+ 32
889
890
  49
890
891
  29
891
892
  1
892
893
  7
893
- 34
894
+ 35
894
895
  49
895
896
  29
896
897
  1
897
898
  49
898
- 35
899
+ 36
899
900
  0
900
901
  47
901
902
  49
@@ -904,17 +905,17 @@ i
904
905
  15
905
906
  5
906
907
  7
907
- 36
908
+ 37
908
909
  64
909
910
  20
910
911
  0
911
912
  7
912
- 28
913
+ 32
913
914
  49
914
915
  29
915
916
  1
916
917
  7
917
- 37
918
+ 38
918
919
  49
919
920
  29
920
921
  1
@@ -925,17 +926,17 @@ i
925
926
  15
926
927
  5
927
928
  7
928
- 38
929
+ 39
929
930
  64
930
931
  20
931
932
  0
932
933
  7
933
- 28
934
+ 32
934
935
  49
935
936
  29
936
937
  1
937
938
  7
938
- 39
939
+ 40
939
940
  49
940
941
  29
941
942
  1
@@ -950,12 +951,12 @@ i
950
951
  20
951
952
  0
952
953
  7
953
- 40
954
+ 41
954
955
  49
955
956
  29
956
957
  1
957
958
  49
958
- 32
959
+ 33
959
960
  0
960
961
  47
961
962
  49
@@ -964,17 +965,17 @@ i
964
965
  15
965
966
  5
966
967
  7
967
- 41
968
+ 42
968
969
  64
969
970
  20
970
971
  0
971
972
  7
972
- 40
973
+ 41
973
974
  49
974
975
  29
975
976
  1
976
977
  7
977
- 37
978
+ 38
978
979
  49
979
980
  29
980
981
  1
@@ -993,7 +994,7 @@ I
993
994
  0
994
995
  n
995
996
  p
996
- 42
997
+ 43
997
998
  x
998
999
  6
999
1000
  BibTeX
@@ -1066,7 +1067,7 @@ map
1066
1067
  x
1067
1068
  4
1068
1069
  uniq
1069
- x
1070
+ s
1070
1071
  4
1071
1072
  py03
1072
1073
  x
@@ -1080,6 +1081,9 @@ x
1080
1081
  article
1081
1082
  x
1082
1083
  4
1084
+ py03
1085
+ x
1086
+ 4
1083
1087
  type
1084
1088
  s
1085
1089
  17
@@ -1131,31 +1135,31 @@ I
1131
1135
  I
1132
1136
  1e
1133
1137
  I
1134
- 77
1138
+ 78
1135
1139
  I
1136
1140
  1f
1137
1141
  I
1138
- 89
1142
+ 8a
1139
1143
  I
1140
1144
  20
1141
1145
  I
1142
- a1
1146
+ a2
1143
1147
  I
1144
1148
  21
1145
1149
  I
1146
- b6
1150
+ b7
1147
1151
  I
1148
1152
  22
1149
1153
  I
1150
- cb
1154
+ cc
1151
1155
  I
1152
1156
  23
1153
1157
  I
1154
- dd
1158
+ de
1155
1159
  I
1156
1160
  24
1157
1161
  I
1158
- f2
1162
+ f3
1159
1163
  x
1160
1164
  53
1161
1165
  /Users/sylvester/Work/bibtex-ruby/test/test_bibtex.rb
@@ -1175,7 +1179,7 @@ x
1175
1179
  12
1176
1180
  test_bibdesk
1177
1181
  i
1178
- 86
1182
+ 87
1179
1183
  45
1180
1184
  0
1181
1185
  1
@@ -1226,6 +1230,7 @@ i
1226
1230
  5
1227
1231
  7
1228
1232
  14
1233
+ 64
1229
1234
  20
1230
1235
  0
1231
1236
  78
@@ -1311,7 +1316,7 @@ length
1311
1316
  x
1312
1317
  12
1313
1318
  assert_equal
1314
- x
1319
+ s
1315
1320
  5
1316
1321
  rails
1317
1322
  x
@@ -1348,11 +1353,11 @@ I
1348
1353
  I
1349
1354
  30
1350
1355
  I
1351
- 40
1356
+ 41
1352
1357
  I
1353
1358
  31
1354
1359
  I
1355
- 56
1360
+ 57
1356
1361
  x
1357
1362
  53
1358
1363
  /Users/sylvester/Work/bibtex-ruby/test/test_bibtex.rb
@@ -1456,212 +1461,132 @@ x
1456
1461
  10
1457
1462
  test_parse
1458
1463
  i
1459
- 177
1464
+ 114
1460
1465
  45
1461
1466
  0
1462
1467
  1
1463
- 45
1464
- 2
1465
- 3
1466
- 7
1467
- 4
1468
- 49
1469
- 5
1470
- 1
1471
- 49
1472
- 6
1473
- 1
1474
- 19
1475
- 0
1476
- 15
1477
- 45
1478
- 7
1479
- 8
1480
1468
  43
1481
- 9
1469
+ 2
1482
1470
  13
1483
1471
  71
1484
- 10
1472
+ 3
1485
1473
  47
1486
1474
  9
1487
- 40
1475
+ 23
1488
1476
  47
1489
1477
  49
1490
- 11
1478
+ 4
1491
1479
  0
1492
1480
  13
1493
1481
  47
1494
1482
  49
1495
- 12
1483
+ 5
1496
1484
  0
1497
1485
  15
1498
1486
  8
1499
- 43
1487
+ 26
1500
1488
  49
1501
- 10
1489
+ 3
1502
1490
  0
1503
1491
  19
1504
- 1
1492
+ 0
1505
1493
  15
1506
1494
  20
1507
- 1
1495
+ 0
1508
1496
  45
1509
- 7
1510
- 13
1497
+ 0
1498
+ 6
1511
1499
  43
1512
- 14
1513
1500
  7
1514
- 15
1501
+ 7
1502
+ 8
1515
1503
  64
1516
1504
  49
1517
- 16
1505
+ 9
1518
1506
  1
1519
1507
  49
1520
- 17
1508
+ 10
1521
1509
  1
1522
1510
  15
1523
1511
  20
1524
- 1
1512
+ 0
1525
1513
  45
1526
- 7
1527
- 18
1514
+ 0
1515
+ 11
1528
1516
  43
1529
- 14
1530
1517
  7
1531
- 19
1518
+ 7
1519
+ 12
1532
1520
  64
1533
1521
  49
1534
- 16
1522
+ 9
1535
1523
  1
1536
1524
  49
1537
- 17
1525
+ 10
1538
1526
  1
1539
1527
  15
1540
1528
  5
1541
1529
  80
1542
1530
  20
1543
- 1
1531
+ 0
1544
1532
  49
1545
- 20
1533
+ 13
1546
1534
  0
1547
1535
  47
1548
1536
  49
1549
- 21
1537
+ 14
1550
1538
  2
1551
1539
  15
1552
1540
  5
1553
1541
  20
1554
- 1
1542
+ 0
1555
1543
  7
1556
- 22
1544
+ 15
1557
1545
  49
1558
- 23
1546
+ 16
1559
1547
  1
1560
1548
  47
1561
1549
  49
1562
- 24
1550
+ 17
1563
1551
  1
1564
1552
  15
1565
1553
  20
1566
- 1
1554
+ 0
1567
1555
  49
1568
- 25
1556
+ 18
1569
1557
  0
1570
1558
  15
1571
1559
  5
1572
- 20
1573
- 0
1574
- 7
1575
- 26
1576
- 13
1577
- 70
1578
- 9
1579
- 132
1580
- 15
1581
- 44
1582
- 43
1583
- 27
1584
1560
  7
1585
- 28
1586
- 78
1587
- 49
1588
- 10
1589
- 2
1590
- 6
1591
- 26
1592
- 7
1593
- 29
1561
+ 19
1594
1562
  64
1595
- 49
1596
- 30
1597
- 2
1598
1563
  20
1599
- 1
1564
+ 0
1600
1565
  7
1601
- 22
1566
+ 20
1567
+ 64
1602
1568
  49
1603
- 23
1569
+ 16
1604
1570
  1
1605
1571
  49
1606
- 31
1572
+ 21
1607
1573
  0
1608
- 7
1609
- 32
1610
- 13
1611
- 70
1612
- 9
1613
- 166
1614
- 15
1615
- 44
1616
- 43
1617
- 27
1618
- 7
1619
- 28
1620
- 78
1621
- 49
1622
- 10
1623
- 2
1624
- 6
1625
- 32
1626
- 7
1627
- 29
1628
- 64
1629
- 49
1630
- 30
1631
- 2
1632
1574
  47
1633
1575
  49
1634
- 21
1576
+ 14
1635
1577
  2
1636
1578
  11
1637
1579
  I
1638
- 8
1580
+ 5
1639
1581
  I
1640
- 2
1582
+ 1
1641
1583
  I
1642
1584
  0
1643
1585
  I
1644
1586
  0
1645
1587
  n
1646
1588
  p
1647
- 33
1648
- x
1649
- 4
1650
- File
1651
- n
1652
- x
1653
- 4
1654
- Test
1655
- n
1656
- x
1657
- 9
1658
- roundtrip
1659
- x
1660
- 8
1661
- fixtures
1662
- x
1663
- 4
1664
- read
1589
+ 22
1665
1590
  x
1666
1591
  6
1667
1592
  BibTeX
@@ -1684,7 +1609,7 @@ x
1684
1609
  Element
1685
1610
  s
1686
1611
  49
1687
- @string{ pragprog = "The Pragmatic Booksehlf" }
1612
+ @string{ pragprog = "The Pragmatic Bookshelf" }
1688
1613
  x
1689
1614
  5
1690
1615
  parse
@@ -1693,14 +1618,14 @@ x
1693
1618
  add
1694
1619
  n
1695
1620
  s
1696
- 430
1621
+ 413
1697
1622
  @book{rails,
1698
1623
  address = {Raleigh, North Carolina},
1699
1624
  author = {Ruby, Sam and Thomas, Dave and Hansson Heinemeier, David},
1700
1625
  booktitle = {Agile Web Development with Rails},
1701
1626
  edition = {third},
1702
1627
  keywords = {ruby, rails},
1703
- publisher = {The Pragmatic Bookshelf},
1628
+ publisher = pragprog,
1704
1629
  series = {The Facets of Ruby},
1705
1630
  title = {Agile Web Development with Rails},
1706
1631
  year = {2009}
@@ -1724,25 +1649,17 @@ refute_nil
1724
1649
  x
1725
1650
  15
1726
1651
  replace_strings
1727
- n
1728
- x
1729
- 6
1730
- Regexp
1731
1652
  s
1732
- 5
1733
- [\s]+
1653
+ 23
1654
+ The Pragmatic Bookshelf
1734
1655
  s
1735
- 0
1736
-
1737
- x
1738
- 4
1739
- gsub
1656
+ 5
1657
+ rails
1740
1658
  x
1741
- 4
1742
- to_s
1743
- n
1659
+ 9
1660
+ publisher
1744
1661
  p
1745
- 19
1662
+ 17
1746
1663
  I
1747
1664
  -1
1748
1665
  I
@@ -1752,7 +1669,7 @@ I
1752
1669
  I
1753
1670
  4e
1754
1671
  I
1755
- 11
1672
+ 1d
1756
1673
  I
1757
1674
  4f
1758
1675
  I
@@ -1762,33 +1679,26 @@ I
1762
1679
  I
1763
1680
  3f
1764
1681
  I
1765
- 51
1682
+ 5e
1766
1683
  I
1767
- 50
1684
+ 4b
1768
1685
  I
1769
1686
  5f
1770
1687
  I
1771
- 5c
1688
+ 58
1772
1689
  I
1773
1690
  60
1774
1691
  I
1775
- 69
1692
+ 5e
1776
1693
  I
1777
1694
  61
1778
1695
  I
1779
- 6f
1780
- I
1781
- 62
1782
- I
1783
- b1
1696
+ 72
1784
1697
  x
1785
1698
  53
1786
1699
  /Users/sylvester/Work/bibtex-ruby/test/test_bibtex.rb
1787
1700
  p
1788
- 2
1789
- x
1790
- 4
1791
- file
1701
+ 1
1792
1702
  x
1793
1703
  3
1794
1704
  bib