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
@@ -10,7 +10,8 @@ module BibTeX
10
10
  end
11
11
 
12
12
  class ParseError < BibTeXError; end
13
-
13
+ class ArgumentError < BibTeXError; end
14
+
14
15
  #
15
16
  # Represents a lexical or syntactical error.
16
17
  #
@@ -1,5 +1,5 @@
1
1
  !RBIX
2
- 9595534255132031488
2
+ 16846133056282117387
3
3
  x
4
4
  M
5
5
  1
@@ -66,7 +66,7 @@ x
66
66
  6
67
67
  BibTeX
68
68
  i
69
- 44
69
+ 86
70
70
  5
71
71
  66
72
72
  99
@@ -79,15 +79,57 @@ i
79
79
  49
80
80
  3
81
81
  3
82
+ 13
83
+ 99
84
+ 12
85
+ 7
86
+ 4
87
+ 12
88
+ 7
89
+ 5
90
+ 12
91
+ 65
92
+ 12
93
+ 49
94
+ 6
95
+ 4
96
+ 15
97
+ 49
98
+ 4
99
+ 0
100
+ 15
101
+ 99
102
+ 7
103
+ 7
104
+ 45
105
+ 0
106
+ 8
107
+ 65
108
+ 49
109
+ 3
110
+ 3
82
111
  15
83
112
  1
84
113
  15
85
114
  99
86
115
  7
87
- 4
116
+ 9
88
117
  45
89
- 5
90
- 6
118
+ 0
119
+ 10
120
+ 65
121
+ 49
122
+ 3
123
+ 3
124
+ 15
125
+ 1
126
+ 15
127
+ 99
128
+ 7
129
+ 11
130
+ 45
131
+ 12
132
+ 13
91
133
  65
92
134
  49
93
135
  3
@@ -96,19 +138,19 @@ i
96
138
  99
97
139
  12
98
140
  7
99
- 7
141
+ 4
100
142
  12
101
143
  7
102
- 8
144
+ 14
103
145
  12
104
146
  65
105
147
  12
106
148
  49
107
- 9
149
+ 6
108
150
  4
109
151
  15
110
152
  49
111
- 7
153
+ 4
112
154
  0
113
155
  11
114
156
  I
@@ -121,10 +163,10 @@ I
121
163
  0
122
164
  n
123
165
  p
124
- 10
166
+ 15
125
167
  x
126
- 10
127
- ParseError
168
+ 11
169
+ BibTeXError
128
170
  x
129
171
  13
130
172
  StandardError
@@ -133,15 +175,183 @@ x
133
175
  10
134
176
  open_class
135
177
  x
178
+ 14
179
+ __class_init__
180
+ M
181
+ 1
182
+ n
183
+ n
184
+ x
185
+ 11
186
+ BibTeXError
187
+ i
188
+ 24
189
+ 5
190
+ 66
191
+ 5
192
+ 7
193
+ 0
194
+ 47
195
+ 49
196
+ 1
197
+ 1
198
+ 15
199
+ 99
200
+ 7
201
+ 2
202
+ 7
203
+ 3
204
+ 65
205
+ 67
206
+ 49
207
+ 4
208
+ 0
209
+ 49
210
+ 5
211
+ 4
212
+ 11
213
+ I
214
+ 5
215
+ I
216
+ 0
217
+ I
218
+ 0
219
+ I
220
+ 0
221
+ n
222
+ p
223
+ 6
224
+ x
225
+ 7
226
+ orginal
227
+ x
228
+ 11
229
+ attr_reader
230
+ x
231
+ 10
232
+ initialize
233
+ M
234
+ 1
235
+ n
236
+ n
237
+ x
238
+ 10
239
+ initialize
240
+ i
241
+ 28
242
+ 23
243
+ 0
244
+ 10
245
+ 8
246
+ 1
247
+ 19
248
+ 0
249
+ 15
250
+ 23
251
+ 1
252
+ 10
253
+ 16
254
+ 24
255
+ 19
256
+ 1
257
+ 15
258
+ 20
259
+ 0
260
+ 54
261
+ 52
262
+ 0
263
+ 1
264
+ 15
265
+ 20
266
+ 1
267
+ 38
268
+ 1
269
+ 11
270
+ I
271
+ 4
272
+ I
273
+ 2
274
+ I
275
+ 0
276
+ I
277
+ 2
278
+ n
279
+ p
280
+ 2
281
+ x
282
+ 10
283
+ initialize
284
+ x
285
+ 9
286
+ @original
287
+ p
288
+ 7
289
+ I
290
+ -1
291
+ I
292
+ 6
293
+ I
294
+ 10
295
+ I
296
+ 7
297
+ I
298
+ 17
299
+ I
300
+ 8
301
+ I
302
+ 1c
303
+ x
304
+ 53
305
+ /Users/sylvester/Work/bibtex-ruby/lib/bibtex/error.rb
306
+ p
307
+ 2
308
+ x
309
+ 7
310
+ message
311
+ x
312
+ 8
313
+ original
314
+ x
315
+ 17
316
+ method_visibility
317
+ x
318
+ 15
319
+ add_defn_method
320
+ p
321
+ 5
322
+ I
323
+ 2
324
+ I
325
+ 4
326
+ I
327
+ a
328
+ I
329
+ 6
330
+ I
331
+ 18
332
+ x
333
+ 53
334
+ /Users/sylvester/Work/bibtex-ruby/lib/bibtex/error.rb
335
+ p
336
+ 0
337
+ x
338
+ 13
339
+ attach_method
340
+ x
341
+ 10
342
+ ParseError
343
+ n
344
+ x
345
+ 13
346
+ ArgumentError
347
+ n
348
+ x
136
349
  5
137
350
  Error
138
351
  x
139
352
  7
140
353
  Element
141
354
  n
142
- x
143
- 14
144
- __class_init__
145
355
  M
146
356
  1
147
357
  n
@@ -293,11 +503,11 @@ p
293
503
  I
294
504
  -1
295
505
  I
296
- c
506
+ 16
297
507
  I
298
508
  9
299
509
  I
300
- d
510
+ 17
301
511
  I
302
512
  e
303
513
  x
@@ -418,11 +628,11 @@ p
418
628
  I
419
629
  -1
420
630
  I
421
- 10
631
+ 1a
422
632
  I
423
633
  0
424
634
  I
425
- 11
635
+ 1b
426
636
  I
427
637
  26
428
638
  I
@@ -430,7 +640,7 @@ I
430
640
  I
431
641
  27
432
642
  I
433
- 12
643
+ 1c
434
644
  I
435
645
  2c
436
646
  x
@@ -522,7 +732,7 @@ p
522
732
  I
523
733
  0
524
734
  I
525
- 16
735
+ 20
526
736
  I
527
737
  b
528
738
  x
@@ -544,11 +754,11 @@ p
544
754
  I
545
755
  -1
546
756
  I
547
- 15
757
+ 1f
548
758
  I
549
759
  0
550
760
  I
551
- 16
761
+ 20
552
762
  I
553
763
  b
554
764
  x
@@ -612,19 +822,19 @@ p
612
822
  I
613
823
  -1
614
824
  I
615
- 1a
825
+ 24
616
826
  I
617
827
  0
618
828
  I
619
- 1b
829
+ 25
620
830
  I
621
831
  7
622
832
  I
623
- 1c
833
+ 26
624
834
  I
625
835
  11
626
836
  I
627
- 1d
837
+ 27
628
838
  I
629
839
  13
630
840
  x
@@ -691,19 +901,19 @@ p
691
901
  I
692
902
  -1
693
903
  I
694
- 21
904
+ 2b
695
905
  I
696
906
  0
697
907
  I
698
- 22
908
+ 2c
699
909
  I
700
910
  7
701
911
  I
702
- 23
912
+ 2d
703
913
  I
704
914
  11
705
915
  I
706
- 24
916
+ 2e
707
917
  I
708
918
  13
709
919
  x
@@ -719,27 +929,27 @@ p
719
929
  I
720
930
  2
721
931
  I
722
- a
932
+ 14
723
933
  I
724
934
  a
725
935
  I
726
- c
936
+ 16
727
937
  I
728
938
  18
729
939
  I
730
- 10
940
+ 1a
731
941
  I
732
942
  26
733
943
  I
734
- 15
944
+ 1f
735
945
  I
736
946
  34
737
947
  I
738
- 1a
948
+ 24
739
949
  I
740
950
  42
741
951
  I
742
- 21
952
+ 2b
743
953
  I
744
954
  50
745
955
  x
@@ -747,21 +957,26 @@ x
747
957
  /Users/sylvester/Work/bibtex-ruby/lib/bibtex/error.rb
748
958
  p
749
959
  0
750
- x
751
- 13
752
- attach_method
753
960
  p
754
- 5
961
+ 9
755
962
  I
756
963
  2
757
964
  I
758
965
  3
759
966
  I
760
- f
967
+ 1f
761
968
  I
762
- 8
969
+ c
763
970
  I
764
971
  2c
972
+ I
973
+ d
974
+ I
975
+ 39
976
+ I
977
+ 12
978
+ I
979
+ 56
765
980
  x
766
981
  53
767
982
  /Users/sylvester/Work/bibtex-ruby/lib/bibtex/error.rb