bibtex-ruby 1.3.10 → 1.3.11

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.
Files changed (57) hide show
  1. data/Gemfile +7 -2
  2. data/Gemfile.lock +18 -14
  3. data/History.txt +6 -0
  4. data/Manifest +38 -1
  5. data/Rakefile +3 -10
  6. data/Rakefile.compiled.rbc +1903 -0
  7. data/bibtex-ruby.gemspec +10 -13
  8. data/features/issues/parse_months.feature +24 -4
  9. data/features/step_definitions/bibtex_steps.rbc +2981 -0
  10. data/features/step_definitions/name_steps.rbc +544 -0
  11. data/features/support/env.rb +0 -5
  12. data/features/support/env.rbc +144 -0
  13. data/lib/bibtex.rb +1 -0
  14. data/lib/bibtex.rbc +709 -0
  15. data/lib/bibtex/bibliography.rb +1 -1
  16. data/lib/bibtex/bibliography.rbc +5799 -0
  17. data/lib/bibtex/compatibility.rb +10 -0
  18. data/lib/bibtex/compatibility.rbc +290 -0
  19. data/lib/bibtex/elements.rbc +5524 -0
  20. data/lib/bibtex/entry.rbc +8317 -0
  21. data/lib/bibtex/error.rbc +785 -0
  22. data/lib/bibtex/extensions.rbc +127 -0
  23. data/lib/bibtex/filters.rbc +1178 -0
  24. data/lib/bibtex/filters/latex.rbc +361 -0
  25. data/lib/bibtex/lexer.rbc +5612 -0
  26. data/lib/bibtex/name_parser.rbc +2867 -0
  27. data/lib/bibtex/names.rb +2 -2
  28. data/lib/bibtex/names.rbc +4156 -0
  29. data/lib/bibtex/parser.rbc +3336 -0
  30. data/lib/bibtex/replaceable.rbc +593 -0
  31. data/lib/bibtex/ruby.rb +1 -0
  32. data/lib/bibtex/utilities.rbc +743 -0
  33. data/lib/bibtex/value.rb +5 -2
  34. data/lib/bibtex/value.rbc +4323 -0
  35. data/lib/bibtex/version.rb +1 -1
  36. data/lib/bibtex/version.rbc +209 -0
  37. data/test/bibtex/test_bibliography.rb +1 -1
  38. data/test/bibtex/test_bibliography.rbc +3397 -0
  39. data/test/bibtex/test_elements.rbc +924 -0
  40. data/test/bibtex/test_entry.rb +17 -14
  41. data/test/bibtex/test_entry.rbc +6392 -0
  42. data/test/bibtex/test_filters.rbc +1017 -0
  43. data/test/bibtex/test_lexer.rbc +373 -0
  44. data/test/bibtex/test_name_parser.rbc +608 -0
  45. data/test/bibtex/test_names.rbc +797 -0
  46. data/test/bibtex/test_parser.rb +2 -2
  47. data/test/bibtex/test_parser.rbc +2834 -0
  48. data/test/bibtex/test_string.rbc +706 -0
  49. data/test/bibtex/test_utilities.rb +1 -1
  50. data/test/bibtex/test_utilities.rbc +851 -0
  51. data/test/bibtex/test_value.rbc +4993 -0
  52. data/test/helper.rb +2 -5
  53. data/test/helper.rbc +446 -0
  54. data/test/test_bibtex.rb +20 -20
  55. data/test/test_bibtex.rbc +1875 -0
  56. data/test/test_export.rbc +921 -0
  57. metadata +72 -58
@@ -13,7 +13,7 @@ module BibTeX
13
13
  bib = BibTeX.parse %q[ @book{ id, author = {Poe, Edgar Allen}, title = "Ligeia" } ]
14
14
  assert_equal 1, bib.length
15
15
  assert_equal 'Ligeia', bib[:id].title
16
- assert_equal 'Poe, Edgar Allen', bib[:id].author
16
+ assert_equal 'Poe, Edgar Allen', bib[:id].author.to_s
17
17
  end
18
18
 
19
19
  def test_validation
@@ -0,0 +1,851 @@
1
+ !RBIX
2
+ 9595534255132031488
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 37
13
+ 5
14
+ 7
15
+ 0
16
+ 64
17
+ 47
18
+ 49
19
+ 1
20
+ 1
21
+ 15
22
+ 99
23
+ 7
24
+ 2
25
+ 65
26
+ 49
27
+ 3
28
+ 2
29
+ 13
30
+ 99
31
+ 12
32
+ 7
33
+ 4
34
+ 12
35
+ 7
36
+ 5
37
+ 12
38
+ 65
39
+ 12
40
+ 49
41
+ 6
42
+ 4
43
+ 15
44
+ 49
45
+ 4
46
+ 0
47
+ 15
48
+ 2
49
+ 11
50
+ I
51
+ 6
52
+ I
53
+ 0
54
+ I
55
+ 0
56
+ I
57
+ 0
58
+ n
59
+ p
60
+ 7
61
+ s
62
+ 9
63
+ helper.rb
64
+ x
65
+ 7
66
+ require
67
+ x
68
+ 6
69
+ BibTeX
70
+ x
71
+ 11
72
+ open_module
73
+ x
74
+ 15
75
+ __module_init__
76
+ M
77
+ 1
78
+ n
79
+ n
80
+ x
81
+ 6
82
+ BibTeX
83
+ i
84
+ 35
85
+ 5
86
+ 66
87
+ 99
88
+ 7
89
+ 0
90
+ 45
91
+ 1
92
+ 2
93
+ 43
94
+ 3
95
+ 43
96
+ 4
97
+ 65
98
+ 49
99
+ 5
100
+ 3
101
+ 13
102
+ 99
103
+ 12
104
+ 7
105
+ 6
106
+ 12
107
+ 7
108
+ 7
109
+ 12
110
+ 65
111
+ 12
112
+ 49
113
+ 8
114
+ 4
115
+ 15
116
+ 49
117
+ 6
118
+ 0
119
+ 11
120
+ I
121
+ 6
122
+ I
123
+ 0
124
+ I
125
+ 0
126
+ I
127
+ 0
128
+ n
129
+ p
130
+ 9
131
+ x
132
+ 10
133
+ TestBibtex
134
+ x
135
+ 8
136
+ MiniTest
137
+ n
138
+ x
139
+ 4
140
+ Unit
141
+ x
142
+ 8
143
+ TestCase
144
+ x
145
+ 10
146
+ open_class
147
+ x
148
+ 14
149
+ __class_init__
150
+ M
151
+ 1
152
+ n
153
+ n
154
+ x
155
+ 10
156
+ TestBibtex
157
+ i
158
+ 44
159
+ 5
160
+ 66
161
+ 99
162
+ 7
163
+ 0
164
+ 7
165
+ 1
166
+ 65
167
+ 67
168
+ 49
169
+ 2
170
+ 0
171
+ 49
172
+ 3
173
+ 4
174
+ 15
175
+ 99
176
+ 7
177
+ 4
178
+ 7
179
+ 5
180
+ 65
181
+ 67
182
+ 49
183
+ 2
184
+ 0
185
+ 49
186
+ 3
187
+ 4
188
+ 15
189
+ 99
190
+ 7
191
+ 6
192
+ 7
193
+ 7
194
+ 65
195
+ 67
196
+ 49
197
+ 2
198
+ 0
199
+ 49
200
+ 3
201
+ 4
202
+ 11
203
+ I
204
+ 5
205
+ I
206
+ 0
207
+ I
208
+ 0
209
+ I
210
+ 0
211
+ n
212
+ p
213
+ 8
214
+ x
215
+ 11
216
+ test_empty?
217
+ M
218
+ 1
219
+ n
220
+ n
221
+ x
222
+ 11
223
+ test_empty?
224
+ i
225
+ 46
226
+ 5
227
+ 45
228
+ 0
229
+ 1
230
+ 45
231
+ 2
232
+ 3
233
+ 7
234
+ 4
235
+ 49
236
+ 5
237
+ 1
238
+ 49
239
+ 6
240
+ 1
241
+ 49
242
+ 7
243
+ 0
244
+ 47
245
+ 49
246
+ 8
247
+ 1
248
+ 15
249
+ 5
250
+ 45
251
+ 0
252
+ 9
253
+ 45
254
+ 2
255
+ 10
256
+ 7
257
+ 11
258
+ 49
259
+ 5
260
+ 1
261
+ 49
262
+ 6
263
+ 1
264
+ 49
265
+ 7
266
+ 0
267
+ 47
268
+ 49
269
+ 12
270
+ 1
271
+ 11
272
+ I
273
+ 4
274
+ I
275
+ 0
276
+ I
277
+ 0
278
+ I
279
+ 0
280
+ n
281
+ p
282
+ 13
283
+ x
284
+ 6
285
+ BibTeX
286
+ n
287
+ x
288
+ 4
289
+ Test
290
+ n
291
+ x
292
+ 5
293
+ empty
294
+ x
295
+ 8
296
+ fixtures
297
+ x
298
+ 4
299
+ open
300
+ x
301
+ 6
302
+ empty?
303
+ x
304
+ 6
305
+ assert
306
+ n
307
+ n
308
+ x
309
+ 7
310
+ bibdesk
311
+ x
312
+ 6
313
+ refute
314
+ p
315
+ 7
316
+ I
317
+ -1
318
+ I
319
+ 7
320
+ I
321
+ 0
322
+ I
323
+ 8
324
+ I
325
+ 17
326
+ I
327
+ 9
328
+ I
329
+ 2e
330
+ x
331
+ 63
332
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_utilities.rb
333
+ p
334
+ 0
335
+ x
336
+ 17
337
+ method_visibility
338
+ x
339
+ 15
340
+ add_defn_method
341
+ x
342
+ 10
343
+ test_parse
344
+ M
345
+ 1
346
+ n
347
+ n
348
+ x
349
+ 10
350
+ test_parse
351
+ i
352
+ 65
353
+ 45
354
+ 0
355
+ 1
356
+ 7
357
+ 2
358
+ 64
359
+ 49
360
+ 3
361
+ 1
362
+ 19
363
+ 0
364
+ 15
365
+ 5
366
+ 79
367
+ 20
368
+ 0
369
+ 49
370
+ 4
371
+ 0
372
+ 47
373
+ 49
374
+ 5
375
+ 2
376
+ 15
377
+ 5
378
+ 7
379
+ 6
380
+ 64
381
+ 20
382
+ 0
383
+ 7
384
+ 7
385
+ 49
386
+ 8
387
+ 1
388
+ 49
389
+ 9
390
+ 0
391
+ 47
392
+ 49
393
+ 5
394
+ 2
395
+ 15
396
+ 5
397
+ 7
398
+ 10
399
+ 64
400
+ 20
401
+ 0
402
+ 7
403
+ 7
404
+ 49
405
+ 8
406
+ 1
407
+ 49
408
+ 11
409
+ 0
410
+ 49
411
+ 12
412
+ 0
413
+ 47
414
+ 49
415
+ 5
416
+ 2
417
+ 11
418
+ I
419
+ 5
420
+ I
421
+ 1
422
+ I
423
+ 0
424
+ I
425
+ 0
426
+ n
427
+ p
428
+ 13
429
+ x
430
+ 6
431
+ BibTeX
432
+ n
433
+ s
434
+ 60
435
+ @book{ id, author = {Poe, Edgar Allen}, title = "Ligeia" }
436
+ x
437
+ 5
438
+ parse
439
+ x
440
+ 6
441
+ length
442
+ x
443
+ 12
444
+ assert_equal
445
+ s
446
+ 6
447
+ Ligeia
448
+ x
449
+ 2
450
+ id
451
+ x
452
+ 2
453
+ []
454
+ x
455
+ 5
456
+ title
457
+ s
458
+ 16
459
+ Poe, Edgar Allen
460
+ x
461
+ 6
462
+ author
463
+ x
464
+ 4
465
+ to_s
466
+ p
467
+ 11
468
+ I
469
+ -1
470
+ I
471
+ c
472
+ I
473
+ 0
474
+ I
475
+ d
476
+ I
477
+ c
478
+ I
479
+ e
480
+ I
481
+ 18
482
+ I
483
+ f
484
+ I
485
+ 2b
486
+ I
487
+ 10
488
+ I
489
+ 41
490
+ x
491
+ 63
492
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_utilities.rb
493
+ p
494
+ 1
495
+ x
496
+ 3
497
+ bib
498
+ x
499
+ 15
500
+ test_validation
501
+ M
502
+ 1
503
+ n
504
+ n
505
+ x
506
+ 15
507
+ test_validation
508
+ i
509
+ 157
510
+ 45
511
+ 0
512
+ 1
513
+ 49
514
+ 2
515
+ 0
516
+ 49
517
+ 3
518
+ 0
519
+ 19
520
+ 0
521
+ 15
522
+ 45
523
+ 0
524
+ 4
525
+ 49
526
+ 2
527
+ 0
528
+ 45
529
+ 5
530
+ 6
531
+ 43
532
+ 7
533
+ 13
534
+ 18
535
+ 2
536
+ 49
537
+ 8
538
+ 1
539
+ 15
540
+ 15
541
+ 5
542
+ 45
543
+ 0
544
+ 9
545
+ 7
546
+ 10
547
+ 64
548
+ 49
549
+ 11
550
+ 1
551
+ 49
552
+ 12
553
+ 0
554
+ 47
555
+ 49
556
+ 13
557
+ 1
558
+ 15
559
+ 5
560
+ 45
561
+ 0
562
+ 14
563
+ 7
564
+ 15
565
+ 64
566
+ 49
567
+ 11
568
+ 1
569
+ 49
570
+ 12
571
+ 0
572
+ 47
573
+ 49
574
+ 16
575
+ 1
576
+ 15
577
+ 5
578
+ 45
579
+ 0
580
+ 17
581
+ 7
582
+ 18
583
+ 64
584
+ 49
585
+ 11
586
+ 1
587
+ 49
588
+ 12
589
+ 0
590
+ 47
591
+ 49
592
+ 16
593
+ 1
594
+ 15
595
+ 5
596
+ 45
597
+ 0
598
+ 19
599
+ 7
600
+ 20
601
+ 64
602
+ 49
603
+ 11
604
+ 1
605
+ 49
606
+ 12
607
+ 0
608
+ 47
609
+ 49
610
+ 13
611
+ 1
612
+ 15
613
+ 5
614
+ 45
615
+ 0
616
+ 21
617
+ 7
618
+ 22
619
+ 64
620
+ 49
621
+ 11
622
+ 1
623
+ 49
624
+ 12
625
+ 0
626
+ 47
627
+ 49
628
+ 13
629
+ 1
630
+ 15
631
+ 5
632
+ 45
633
+ 0
634
+ 23
635
+ 45
636
+ 24
637
+ 25
638
+ 7
639
+ 26
640
+ 49
641
+ 27
642
+ 1
643
+ 49
644
+ 12
645
+ 1
646
+ 47
647
+ 49
648
+ 16
649
+ 1
650
+ 15
651
+ 45
652
+ 0
653
+ 28
654
+ 49
655
+ 2
656
+ 0
657
+ 20
658
+ 0
659
+ 13
660
+ 18
661
+ 2
662
+ 49
663
+ 8
664
+ 1
665
+ 15
666
+ 11
667
+ I
668
+ 5
669
+ I
670
+ 1
671
+ I
672
+ 0
673
+ I
674
+ 0
675
+ n
676
+ p
677
+ 29
678
+ x
679
+ 6
680
+ BibTeX
681
+ n
682
+ x
683
+ 3
684
+ log
685
+ x
686
+ 5
687
+ level
688
+ n
689
+ x
690
+ 6
691
+ Logger
692
+ n
693
+ x
694
+ 5
695
+ ERROR
696
+ x
697
+ 6
698
+ level=
699
+ n
700
+ s
701
+ 60
702
+ @book{ id, author = {Poe, Edgar Allen}, title = "Ligeia" }
703
+ x
704
+ 5
705
+ parse
706
+ x
707
+ 6
708
+ valid?
709
+ x
710
+ 6
711
+ refute
712
+ n
713
+ s
714
+ 96
715
+ @book{ id, author = {Poe, Edgar Allen}, title = "Ligeia", publisher = "Penguin", year = 1996 }
716
+ x
717
+ 6
718
+ assert
719
+ n
720
+ s
721
+ 96
722
+ @book{ id, editor = {Poe, Edgar Allen}, title = "Ligeia", publisher = "Penguin", year = 1996 }
723
+ n
724
+ s
725
+ 96
726
+ @book{ id, xxxxxx = {Poe, Edgar Allen}, title = "Ligeia", publisher = "Penguin", year = 1996 }
727
+ n
728
+ s
729
+ 97
730
+ @book{ id, author = {Poe, Edgar Allen}, title = "Lig"eia", publisher = "Penguin", year = 1996 }
731
+ n
732
+ x
733
+ 4
734
+ Test
735
+ n
736
+ x
737
+ 7
738
+ bibdesk
739
+ x
740
+ 8
741
+ fixtures
742
+ n
743
+ p
744
+ 21
745
+ I
746
+ -1
747
+ I
748
+ 13
749
+ I
750
+ 0
751
+ I
752
+ 14
753
+ I
754
+ c
755
+ I
756
+ 15
757
+ I
758
+ 1f
759
+ I
760
+ 17
761
+ I
762
+ 31
763
+ I
764
+ 18
765
+ I
766
+ 43
767
+ I
768
+ 19
769
+ I
770
+ 55
771
+ I
772
+ 1a
773
+ I
774
+ 67
775
+ I
776
+ 1b
777
+ I
778
+ 79
779
+ I
780
+ 1c
781
+ I
782
+ 8d
783
+ I
784
+ 1e
785
+ I
786
+ 9d
787
+ x
788
+ 63
789
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_utilities.rb
790
+ p
791
+ 1
792
+ x
793
+ 9
794
+ log_level
795
+ p
796
+ 7
797
+ I
798
+ 2
799
+ I
800
+ 7
801
+ I
802
+ 10
803
+ I
804
+ c
805
+ I
806
+ 1e
807
+ I
808
+ 13
809
+ I
810
+ 2c
811
+ x
812
+ 63
813
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_utilities.rb
814
+ p
815
+ 0
816
+ x
817
+ 13
818
+ attach_method
819
+ p
820
+ 3
821
+ I
822
+ 2
823
+ I
824
+ 5
825
+ I
826
+ 23
827
+ x
828
+ 63
829
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_utilities.rb
830
+ p
831
+ 0
832
+ x
833
+ 13
834
+ attach_method
835
+ p
836
+ 5
837
+ I
838
+ 0
839
+ I
840
+ 1
841
+ I
842
+ 9
843
+ I
844
+ 3
845
+ I
846
+ 25
847
+ x
848
+ 63
849
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_utilities.rb
850
+ p
851
+ 0