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
@@ -0,0 +1,1017 @@
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
+ 33
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
+ 11
118
+ I
119
+ 6
120
+ I
121
+ 0
122
+ I
123
+ 0
124
+ I
125
+ 0
126
+ n
127
+ p
128
+ 8
129
+ x
130
+ 11
131
+ FiltersTest
132
+ x
133
+ 8
134
+ MiniTest
135
+ n
136
+ x
137
+ 4
138
+ Spec
139
+ x
140
+ 10
141
+ open_class
142
+ x
143
+ 14
144
+ __class_init__
145
+ M
146
+ 1
147
+ n
148
+ n
149
+ x
150
+ 11
151
+ FiltersTest
152
+ i
153
+ 24
154
+ 5
155
+ 66
156
+ 5
157
+ 7
158
+ 0
159
+ 64
160
+ 56
161
+ 1
162
+ 47
163
+ 50
164
+ 2
165
+ 1
166
+ 15
167
+ 5
168
+ 7
169
+ 3
170
+ 64
171
+ 56
172
+ 4
173
+ 47
174
+ 50
175
+ 5
176
+ 1
177
+ 11
178
+ I
179
+ 3
180
+ I
181
+ 0
182
+ I
183
+ 0
184
+ I
185
+ 0
186
+ n
187
+ p
188
+ 6
189
+ s
190
+ 35
191
+ Filters should be singleton classes
192
+ M
193
+ 1
194
+ p
195
+ 2
196
+ x
197
+ 9
198
+ for_block
199
+ t
200
+ n
201
+ x
202
+ 11
203
+ FiltersTest
204
+ i
205
+ 39
206
+ 5
207
+ 3
208
+ 45
209
+ 0
210
+ 1
211
+ 7
212
+ 2
213
+ 49
214
+ 3
215
+ 1
216
+ 47
217
+ 49
218
+ 4
219
+ 2
220
+ 15
221
+ 5
222
+ 45
223
+ 0
224
+ 5
225
+ 49
226
+ 6
227
+ 0
228
+ 49
229
+ 7
230
+ 0
231
+ 45
232
+ 0
233
+ 8
234
+ 49
235
+ 6
236
+ 0
237
+ 49
238
+ 7
239
+ 0
240
+ 47
241
+ 49
242
+ 4
243
+ 2
244
+ 11
245
+ I
246
+ 5
247
+ I
248
+ 0
249
+ I
250
+ 0
251
+ I
252
+ 0
253
+ I
254
+ -2
255
+ p
256
+ 9
257
+ x
258
+ 6
259
+ Filter
260
+ n
261
+ x
262
+ 3
263
+ new
264
+ x
265
+ 11
266
+ respond_to?
267
+ x
268
+ 12
269
+ assert_equal
270
+ n
271
+ x
272
+ 8
273
+ instance
274
+ x
275
+ 9
276
+ object_id
277
+ n
278
+ p
279
+ 5
280
+ I
281
+ 0
282
+ I
283
+ 7
284
+ I
285
+ f
286
+ I
287
+ 8
288
+ I
289
+ 27
290
+ x
291
+ 61
292
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
293
+ p
294
+ 0
295
+ x
296
+ 6
297
+ should
298
+ s
299
+ 15
300
+ Filters.resolve
301
+ M
302
+ 1
303
+ p
304
+ 2
305
+ x
306
+ 9
307
+ for_block
308
+ t
309
+ n
310
+ x
311
+ 11
312
+ FiltersTest
313
+ i
314
+ 44
315
+ 5
316
+ 7
317
+ 0
318
+ 64
319
+ 56
320
+ 1
321
+ 47
322
+ 50
323
+ 2
324
+ 1
325
+ 15
326
+ 5
327
+ 7
328
+ 3
329
+ 64
330
+ 56
331
+ 4
332
+ 47
333
+ 50
334
+ 2
335
+ 1
336
+ 15
337
+ 5
338
+ 7
339
+ 5
340
+ 64
341
+ 56
342
+ 6
343
+ 47
344
+ 50
345
+ 2
346
+ 1
347
+ 15
348
+ 5
349
+ 7
350
+ 7
351
+ 64
352
+ 56
353
+ 8
354
+ 47
355
+ 50
356
+ 2
357
+ 1
358
+ 11
359
+ I
360
+ 4
361
+ I
362
+ 0
363
+ I
364
+ 0
365
+ I
366
+ 0
367
+ I
368
+ -2
369
+ p
370
+ 9
371
+ s
372
+ 38
373
+ return the filter if a filter is given
374
+ M
375
+ 1
376
+ p
377
+ 2
378
+ x
379
+ 9
380
+ for_block
381
+ t
382
+ n
383
+ x
384
+ 11
385
+ FiltersTest
386
+ i
387
+ 30
388
+ 5
389
+ 45
390
+ 0
391
+ 1
392
+ 49
393
+ 2
394
+ 0
395
+ 49
396
+ 3
397
+ 0
398
+ 45
399
+ 4
400
+ 5
401
+ 45
402
+ 0
403
+ 6
404
+ 49
405
+ 2
406
+ 0
407
+ 49
408
+ 7
409
+ 1
410
+ 49
411
+ 3
412
+ 0
413
+ 47
414
+ 49
415
+ 8
416
+ 2
417
+ 11
418
+ I
419
+ 5
420
+ I
421
+ 0
422
+ I
423
+ 0
424
+ I
425
+ 0
426
+ I
427
+ -2
428
+ p
429
+ 9
430
+ x
431
+ 6
432
+ Filter
433
+ n
434
+ x
435
+ 8
436
+ instance
437
+ x
438
+ 9
439
+ object_id
440
+ x
441
+ 7
442
+ Filters
443
+ n
444
+ n
445
+ x
446
+ 7
447
+ resolve
448
+ x
449
+ 12
450
+ assert_equal
451
+ p
452
+ 3
453
+ I
454
+ 0
455
+ I
456
+ d
457
+ I
458
+ 1e
459
+ x
460
+ 61
461
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
462
+ p
463
+ 0
464
+ x
465
+ 6
466
+ should
467
+ s
468
+ 47
469
+ return the parameter if it quacks like a filter
470
+ M
471
+ 1
472
+ p
473
+ 2
474
+ x
475
+ 9
476
+ for_block
477
+ t
478
+ n
479
+ x
480
+ 11
481
+ FiltersTest
482
+ i
483
+ 61
484
+ 45
485
+ 0
486
+ 1
487
+ 13
488
+ 71
489
+ 2
490
+ 47
491
+ 9
492
+ 21
493
+ 47
494
+ 49
495
+ 3
496
+ 0
497
+ 13
498
+ 47
499
+ 49
500
+ 4
501
+ 0
502
+ 15
503
+ 8
504
+ 24
505
+ 49
506
+ 2
507
+ 0
508
+ 19
509
+ 0
510
+ 15
511
+ 99
512
+ 7
513
+ 5
514
+ 7
515
+ 6
516
+ 65
517
+ 20
518
+ 0
519
+ 49
520
+ 7
521
+ 4
522
+ 15
523
+ 5
524
+ 20
525
+ 0
526
+ 49
527
+ 8
528
+ 0
529
+ 45
530
+ 9
531
+ 10
532
+ 20
533
+ 0
534
+ 49
535
+ 11
536
+ 1
537
+ 49
538
+ 8
539
+ 0
540
+ 47
541
+ 49
542
+ 12
543
+ 2
544
+ 11
545
+ I
546
+ 7
547
+ I
548
+ 1
549
+ I
550
+ 0
551
+ I
552
+ 0
553
+ I
554
+ -2
555
+ p
556
+ 13
557
+ x
558
+ 6
559
+ Object
560
+ n
561
+ x
562
+ 3
563
+ new
564
+ x
565
+ 8
566
+ allocate
567
+ x
568
+ 10
569
+ initialize
570
+ x
571
+ 5
572
+ apply
573
+ M
574
+ 1
575
+ n
576
+ n
577
+ x
578
+ 5
579
+ apply
580
+ i
581
+ 2
582
+ 1
583
+ 11
584
+ I
585
+ 1
586
+ I
587
+ 0
588
+ I
589
+ 0
590
+ I
591
+ 0
592
+ n
593
+ p
594
+ 0
595
+ p
596
+ 3
597
+ I
598
+ -1
599
+ I
600
+ 12
601
+ I
602
+ 2
603
+ x
604
+ 61
605
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
606
+ p
607
+ 0
608
+ x
609
+ 13
610
+ attach_method
611
+ x
612
+ 9
613
+ object_id
614
+ x
615
+ 7
616
+ Filters
617
+ n
618
+ x
619
+ 7
620
+ resolve
621
+ x
622
+ 12
623
+ assert_equal
624
+ p
625
+ 7
626
+ I
627
+ 0
628
+ I
629
+ 11
630
+ I
631
+ 1b
632
+ I
633
+ 12
634
+ I
635
+ 27
636
+ I
637
+ 13
638
+ I
639
+ 3d
640
+ x
641
+ 61
642
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
643
+ p
644
+ 1
645
+ x
646
+ 1
647
+ f
648
+ s
649
+ 51
650
+ return the filter if there is a filter by that name
651
+ M
652
+ 1
653
+ p
654
+ 2
655
+ x
656
+ 9
657
+ for_block
658
+ t
659
+ n
660
+ x
661
+ 11
662
+ FiltersTest
663
+ i
664
+ 79
665
+ 99
666
+ 7
667
+ 0
668
+ 45
669
+ 1
670
+ 2
671
+ 65
672
+ 49
673
+ 3
674
+ 3
675
+ 15
676
+ 1
677
+ 15
678
+ 5
679
+ 45
680
+ 0
681
+ 4
682
+ 49
683
+ 5
684
+ 0
685
+ 49
686
+ 6
687
+ 0
688
+ 45
689
+ 7
690
+ 8
691
+ 7
692
+ 9
693
+ 49
694
+ 10
695
+ 1
696
+ 49
697
+ 6
698
+ 0
699
+ 47
700
+ 49
701
+ 11
702
+ 2
703
+ 15
704
+ 5
705
+ 45
706
+ 0
707
+ 12
708
+ 49
709
+ 5
710
+ 0
711
+ 49
712
+ 6
713
+ 0
714
+ 45
715
+ 7
716
+ 13
717
+ 7
718
+ 14
719
+ 64
720
+ 49
721
+ 10
722
+ 1
723
+ 49
724
+ 6
725
+ 0
726
+ 47
727
+ 49
728
+ 11
729
+ 2
730
+ 15
731
+ 45
732
+ 1
733
+ 15
734
+ 49
735
+ 16
736
+ 0
737
+ 45
738
+ 0
739
+ 17
740
+ 49
741
+ 18
742
+ 1
743
+ 11
744
+ I
745
+ 5
746
+ I
747
+ 0
748
+ I
749
+ 0
750
+ I
751
+ 0
752
+ I
753
+ -2
754
+ p
755
+ 19
756
+ x
757
+ 6
758
+ FooBar
759
+ x
760
+ 6
761
+ Filter
762
+ n
763
+ x
764
+ 10
765
+ open_class
766
+ n
767
+ x
768
+ 8
769
+ instance
770
+ x
771
+ 9
772
+ object_id
773
+ x
774
+ 7
775
+ Filters
776
+ n
777
+ x
778
+ 6
779
+ foobar
780
+ x
781
+ 7
782
+ resolve
783
+ x
784
+ 12
785
+ assert_equal
786
+ n
787
+ n
788
+ s
789
+ 6
790
+ foobar
791
+ n
792
+ x
793
+ 10
794
+ subclasses
795
+ n
796
+ x
797
+ 6
798
+ delete
799
+ p
800
+ 9
801
+ I
802
+ 0
803
+ I
804
+ 17
805
+ I
806
+ d
807
+ I
808
+ 18
809
+ I
810
+ 27
811
+ I
812
+ 19
813
+ I
814
+ 42
815
+ I
816
+ 1a
817
+ I
818
+ 4f
819
+ x
820
+ 61
821
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
822
+ p
823
+ 0
824
+ s
825
+ 45
826
+ return nil if there is no filter by that name
827
+ M
828
+ 1
829
+ p
830
+ 2
831
+ x
832
+ 9
833
+ for_block
834
+ t
835
+ n
836
+ x
837
+ 11
838
+ FiltersTest
839
+ i
840
+ 45
841
+ 5
842
+ 1
843
+ 45
844
+ 0
845
+ 1
846
+ 7
847
+ 2
848
+ 49
849
+ 3
850
+ 1
851
+ 47
852
+ 49
853
+ 4
854
+ 2
855
+ 15
856
+ 5
857
+ 1
858
+ 45
859
+ 0
860
+ 5
861
+ 7
862
+ 6
863
+ 64
864
+ 49
865
+ 3
866
+ 1
867
+ 47
868
+ 49
869
+ 4
870
+ 2
871
+ 15
872
+ 5
873
+ 1
874
+ 45
875
+ 0
876
+ 7
877
+ 1
878
+ 49
879
+ 3
880
+ 1
881
+ 47
882
+ 49
883
+ 4
884
+ 2
885
+ 11
886
+ I
887
+ 5
888
+ I
889
+ 0
890
+ I
891
+ 0
892
+ I
893
+ 0
894
+ I
895
+ -2
896
+ p
897
+ 8
898
+ x
899
+ 7
900
+ Filters
901
+ n
902
+ x
903
+ 6
904
+ foobar
905
+ x
906
+ 7
907
+ resolve
908
+ x
909
+ 12
910
+ assert_equal
911
+ n
912
+ s
913
+ 6
914
+ foobar
915
+ n
916
+ p
917
+ 7
918
+ I
919
+ 0
920
+ I
921
+ 1e
922
+ I
923
+ f
924
+ I
925
+ 1f
926
+ I
927
+ 1f
928
+ I
929
+ 20
930
+ I
931
+ 2d
932
+ x
933
+ 61
934
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
935
+ p
936
+ 0
937
+ p
938
+ 9
939
+ I
940
+ 0
941
+ I
942
+ c
943
+ I
944
+ b
945
+ I
946
+ 10
947
+ I
948
+ 16
949
+ I
950
+ 16
951
+ I
952
+ 21
953
+ I
954
+ 1d
955
+ I
956
+ 2c
957
+ x
958
+ 61
959
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
960
+ p
961
+ 0
962
+ x
963
+ 7
964
+ context
965
+ p
966
+ 5
967
+ I
968
+ 2
969
+ I
970
+ 6
971
+ I
972
+ d
973
+ I
974
+ b
975
+ I
976
+ 18
977
+ x
978
+ 61
979
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
980
+ p
981
+ 0
982
+ x
983
+ 13
984
+ attach_method
985
+ p
986
+ 3
987
+ I
988
+ 2
989
+ I
990
+ 4
991
+ I
992
+ 21
993
+ x
994
+ 61
995
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
996
+ p
997
+ 0
998
+ x
999
+ 13
1000
+ attach_method
1001
+ p
1002
+ 5
1003
+ I
1004
+ 0
1005
+ I
1006
+ 1
1007
+ I
1008
+ 9
1009
+ I
1010
+ 3
1011
+ I
1012
+ 25
1013
+ x
1014
+ 61
1015
+ /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_filters.rb
1016
+ p
1017
+ 0