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
@@ -321,11 +321,11 @@ x
321
321
  p
322
322
  0
323
323
  x
324
- 5
325
- setup
324
+ 6
325
+ before
326
326
  s
327
- 19
328
- should not be empty
327
+ 26
328
+ should should not be empty
329
329
  M
330
330
  1
331
331
  p
@@ -387,11 +387,11 @@ x
387
387
  p
388
388
  0
389
389
  x
390
- 6
391
- should
390
+ 2
391
+ it
392
392
  s
393
- 20
394
- have a symbol as key
393
+ 27
394
+ should have a symbol as key
395
395
  M
396
396
  1
397
397
  p
@@ -464,8 +464,8 @@ x
464
464
  p
465
465
  0
466
466
  s
467
- 19
468
- have a value string
467
+ 26
468
+ should have a value string
469
469
  M
470
470
  1
471
471
  p
@@ -545,8 +545,8 @@ x
545
545
  p
546
546
  0
547
547
  s
548
- 20
549
- have been registered
548
+ 27
549
+ should have been registered
550
550
  M
551
551
  1
552
552
  p
@@ -653,8 +653,8 @@ x
653
653
  p
654
654
  0
655
655
  x
656
- 7
657
- context
656
+ 8
657
+ describe
658
658
  p
659
659
  3
660
660
  I
@@ -1,5 +1,5 @@
1
1
  !RBIX
2
- 9595534255132031488
2
+ 16846133056282117387
3
3
  x
4
4
  M
5
5
  1
@@ -1,5 +1,5 @@
1
1
  !RBIX
2
- 9595534255132031488
2
+ 16846133056282117387
3
3
  x
4
4
  M
5
5
  1
@@ -271,8 +271,8 @@ I
271
271
  p
272
272
  7
273
273
  s
274
- 27
275
- be equal to an empty string
274
+ 34
275
+ should be equal to an empty string
276
276
  M
277
277
  1
278
278
  p
@@ -416,11 +416,11 @@ x
416
416
  p
417
417
  0
418
418
  x
419
- 6
420
- should
419
+ 2
420
+ it
421
421
  s
422
- 8
423
- be empty
422
+ 15
423
+ should be empty
424
424
  M
425
425
  1
426
426
  p
@@ -560,8 +560,8 @@ x
560
560
  p
561
561
  0
562
562
  s
563
- 22
564
- match an empty pattern
563
+ 29
564
+ should match an empty pattern
565
565
  M
566
566
  1
567
567
  p
@@ -763,8 +763,8 @@ x
763
763
  p
764
764
  0
765
765
  x
766
- 7
767
- context
766
+ 8
767
+ describe
768
768
  s
769
769
  5
770
770
  #join
@@ -861,8 +861,8 @@ I
861
861
  p
862
862
  13
863
863
  s
864
- 30
865
- return empty string when empty
864
+ 37
865
+ should return empty string when empty
866
866
  M
867
867
  1
868
868
  p
@@ -1017,11 +1017,11 @@ x
1017
1017
  p
1018
1018
  0
1019
1019
  x
1020
- 6
1021
- should
1020
+ 2
1021
+ it
1022
1022
  s
1023
- 27
1024
- return the string if atomic
1023
+ 34
1024
+ should return the string if atomic
1025
1025
  M
1026
1026
  1
1027
1027
  p
@@ -1132,8 +1132,8 @@ x
1132
1132
  p
1133
1133
  0
1134
1134
  s
1135
- 73
1136
- return a string concatenation of all strings when containing only strings
1135
+ 80
1136
+ should return a string concatenation of all strings when containing only strings
1137
1137
  M
1138
1138
  1
1139
1139
  p
@@ -1316,8 +1316,8 @@ x
1316
1316
  p
1317
1317
  0
1318
1318
  s
1319
- 56
1320
- should be atomic after join when containing only strings
1319
+ 63
1320
+ should should be atomic after join when containing only strings
1321
1321
  M
1322
1322
  1
1323
1323
  p
@@ -1487,8 +1487,8 @@ x
1487
1487
  p
1488
1488
  0
1489
1489
  s
1490
- 39
1491
- do nothing when containing only symbols
1490
+ 46
1491
+ should do nothing when containing only symbols
1492
1492
  M
1493
1493
  1
1494
1494
  p
@@ -1662,8 +1662,8 @@ x
1662
1662
  5
1663
1663
  value
1664
1664
  s
1665
- 59
1666
- do nothing when containing only symbols and a single string
1665
+ 66
1666
+ should do nothing when containing only symbols and a single string
1667
1667
  M
1668
1668
  1
1669
1669
  p
@@ -1968,8 +1968,8 @@ I
1968
1968
  p
1969
1969
  11
1970
1970
  s
1971
- 27
1972
- return the string if atomic
1971
+ 34
1972
+ should return the string if atomic
1973
1973
  M
1974
1974
  1
1975
1975
  p
@@ -2074,11 +2074,11 @@ x
2074
2074
  p
2075
2075
  0
2076
2076
  x
2077
- 6
2078
- should
2077
+ 2
2078
+ it
2079
2079
  s
2080
- 64
2081
- return the symbol as string when containing only a single symbol
2080
+ 71
2081
+ should return the symbol as string when containing only a single symbol
2082
2082
  M
2083
2083
  1
2084
2084
  p
@@ -2184,8 +2184,8 @@ x
2184
2184
  p
2185
2185
  0
2186
2186
  s
2187
- 42
2188
- return all string tokens concatenated by #
2187
+ 49
2188
+ should return all string tokens concatenated by #
2189
2189
  M
2190
2190
  1
2191
2191
  p
@@ -2302,8 +2302,8 @@ x
2302
2302
  p
2303
2303
  0
2304
2304
  s
2305
- 42
2306
- return all symbol tokens concatenated by #
2305
+ 49
2306
+ should return all symbol tokens concatenated by #
2307
2307
  M
2308
2308
  1
2309
2309
  p
@@ -2416,8 +2416,8 @@ x
2416
2416
  p
2417
2417
  0
2418
2418
  s
2419
- 53
2420
- return all symbol and string tokens concatenated by #
2419
+ 60
2420
+ should return all symbol and string tokens concatenated by #
2421
2421
  M
2422
2422
  1
2423
2423
  p
@@ -3007,8 +3007,8 @@ x
3007
3007
  p
3008
3008
  0
3009
3009
  x
3010
- 5
3011
- setup
3010
+ 6
3011
+ before
3012
3012
  s
3013
3013
  8
3014
3014
  #convert
@@ -3105,8 +3105,8 @@ I
3105
3105
  p
3106
3106
  13
3107
3107
  s
3108
- 46
3109
- convert the value when given a filter instance
3108
+ 53
3109
+ should convert the value when given a filter instance
3110
3110
  M
3111
3111
  1
3112
3112
  p
@@ -3256,11 +3256,11 @@ x
3256
3256
  p
3257
3257
  0
3258
3258
  x
3259
- 6
3260
- should
3259
+ 2
3260
+ it
3261
3261
  s
3262
- 43
3263
- convert the value when given a filter class
3262
+ 50
3263
+ should convert the value when given a filter class
3264
3264
  M
3265
3265
  1
3266
3266
  p
@@ -3404,8 +3404,8 @@ x
3404
3404
  p
3405
3405
  0
3406
3406
  s
3407
- 49
3408
- convert the value when given the name of a filter
3407
+ 56
3408
+ should convert the value when given the name of a filter
3409
3409
  M
3410
3410
  1
3411
3411
  p
@@ -3638,8 +3638,8 @@ x
3638
3638
  p
3639
3639
  0
3640
3640
  s
3641
- 43
3642
- convert the value when using a ghost method
3641
+ 50
3642
+ should convert the value when using a ghost method
3643
3643
  M
3644
3644
  1
3645
3645
  p
@@ -3776,8 +3776,8 @@ x
3776
3776
  p
3777
3777
  0
3778
3778
  s
3779
- 44
3780
- not alter the value when using a filter name
3779
+ 51
3780
+ should not alter the value when using a filter name
3781
3781
  M
3782
3782
  1
3783
3783
  p
@@ -3948,8 +3948,8 @@ x
3948
3948
  p
3949
3949
  0
3950
3950
  s
3951
- 45
3952
- not alter the value when using a ghost method
3951
+ 52
3952
+ should not alter the value when using a ghost method
3953
3953
  M
3954
3954
  1
3955
3955
  p
@@ -4148,8 +4148,8 @@ x
4148
4148
  p
4149
4149
  0
4150
4150
  x
4151
- 7
4152
- context
4151
+ 8
4152
+ describe
4153
4153
  s
4154
4154
  9
4155
4155
  #convert!
@@ -4213,8 +4213,8 @@ I
4213
4213
  p
4214
4214
  7
4215
4215
  s
4216
- 49
4217
- convert the value when given the name of a filter
4216
+ 56
4217
+ should convert the value when given the name of a filter
4218
4218
  M
4219
4219
  1
4220
4220
  p
@@ -4356,11 +4356,11 @@ x
4356
4356
  p
4357
4357
  0
4358
4358
  x
4359
- 6
4360
- should
4359
+ 2
4360
+ it
4361
4361
  s
4362
- 47
4363
- alter the value when given the name of a filter
4362
+ 54
4363
+ should alter the value when given the name of a filter
4364
4364
  M
4365
4365
  1
4366
4366
  p
@@ -4531,8 +4531,8 @@ x
4531
4531
  p
4532
4532
  0
4533
4533
  s
4534
- 41
4535
- alter the value when using a ghost method
4534
+ 48
4535
+ should alter the value when using a ghost method
4536
4536
  M
4537
4537
  1
4538
4538
  p
@@ -4759,8 +4759,8 @@ I
4759
4759
  p
4760
4760
  3
4761
4761
  s
4762
- 85
4763
- accept a :filter option and convert the values accordingly without changing the value
4762
+ 92
4763
+ should accept a :filter option and convert the values accordingly without changing the value
4764
4764
  M
4765
4765
  1
4766
4766
  p
@@ -4890,8 +4890,8 @@ x
4890
4890
  p
4891
4891
  0
4892
4892
  x
4893
- 6
4894
- should
4893
+ 2
4894
+ it
4895
4895
  p
4896
4896
  3
4897
4897
  I
@@ -1,5 +1,5 @@
1
1
  !RBIX
2
- 9595534255132031488
2
+ 16846133056282117387
3
3
  x
4
4
  M
5
5
  1
@@ -9,7 +9,7 @@ x
9
9
  10
10
10
  __script__
11
11
  i
12
- 73
12
+ 64
13
13
  5
14
14
  7
15
15
  0
@@ -46,39 +46,30 @@ i
46
46
  1
47
47
  1
48
48
  15
49
- 5
50
- 7
51
- 5
52
- 64
53
- 47
54
- 49
55
- 1
56
- 1
57
- 15
58
49
  99
59
50
  7
60
- 6
51
+ 5
61
52
  65
62
53
  49
63
- 7
54
+ 6
64
55
  2
65
56
  13
66
57
  99
67
58
  12
68
59
  7
69
- 8
60
+ 7
70
61
  12
71
62
  7
72
- 9
63
+ 8
73
64
  12
74
65
  65
75
66
  12
76
67
  49
77
- 10
68
+ 9
78
69
  4
79
70
  15
80
71
  49
81
- 8
72
+ 7
82
73
  0
83
74
  15
84
75
  2
@@ -93,17 +84,14 @@ I
93
84
  0
94
85
  n
95
86
  p
96
- 11
87
+ 10
97
88
  s
98
- 12
99
- mini_shoulda
89
+ 16
90
+ minitest/autorun
100
91
  x
101
92
  7
102
93
  require
103
94
  s
104
- 16
105
- minitest/autorun
106
- s
107
95
  8
108
96
  redgreen
109
97
  s
@@ -342,11 +330,11 @@ p
342
330
  I
343
331
  -1
344
332
  I
345
- d
333
+ c
346
334
  I
347
335
  0
348
336
  I
349
- e
337
+ d
350
338
  I
351
339
  16
352
340
  x
@@ -368,7 +356,7 @@ p
368
356
  I
369
357
  2
370
358
  I
371
- d
359
+ c
372
360
  I
373
361
  10
374
362
  x
@@ -384,7 +372,7 @@ p
384
372
  I
385
373
  2
386
374
  I
387
- c
375
+ b
388
376
  I
389
377
  1e
390
378
  x
@@ -400,7 +388,7 @@ p
400
388
  I
401
389
  2
402
390
  I
403
- a
391
+ 9
404
392
  I
405
393
  1c
406
394
  x
@@ -412,7 +400,7 @@ x
412
400
  13
413
401
  attach_method
414
402
  p
415
- 13
403
+ 11
416
404
  I
417
405
  0
418
406
  I
@@ -428,17 +416,13 @@ I
428
416
  I
429
417
  1b
430
418
  I
431
- 5
419
+ 6
432
420
  I
433
421
  24
434
422
  I
435
- 7
436
- I
437
- 2d
438
- I
439
- 9
423
+ 8
440
424
  I
441
- 49
425
+ 40
442
426
  x
443
427
  48
444
428
  /Users/sylvester/Work/bibtex-ruby/test/helper.rb