bibtex-ruby 2.0.3 → 2.0.4

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 (52) hide show
  1. data/Gemfile.lock +2 -2
  2. data/History.txt +7 -0
  3. data/Manifest +3 -37
  4. data/Rakefile +1 -1
  5. data/features/issues/multiline_strings.feature +14 -0
  6. data/lib/bibtex/bibtex.y +9 -6
  7. data/lib/bibtex/filters.rb +5 -3
  8. data/lib/bibtex/filters/latex.rb +1 -1
  9. data/lib/bibtex/filters/linebreaks.rb +11 -0
  10. data/lib/bibtex/lexer.rb +254 -236
  11. data/lib/bibtex/parser.rb +9 -6
  12. data/lib/bibtex/version.rb +1 -1
  13. data/test/benchmark.rb +4 -1
  14. data/test/bibtex/test_lexer.rb +12 -2
  15. data/test/bibtex/test_parser.rb +21 -0
  16. metadata +14 -48
  17. data/Rakefile.compiled.rbc +0 -1994
  18. data/features/step_definitions/bibtex_steps.rbc +0 -2996
  19. data/features/step_definitions/name_steps.rbc +0 -544
  20. data/features/support/env.rbc +0 -144
  21. data/lib/bibtex.rbc +0 -725
  22. data/lib/bibtex/bibliography.rbc +0 -6729
  23. data/lib/bibtex/compatibility.rbc +0 -290
  24. data/lib/bibtex/elements.rbc +0 -5966
  25. data/lib/bibtex/entry.rbc +0 -11305
  26. data/lib/bibtex/error.rbc +0 -1000
  27. data/lib/bibtex/extensions.rbc +0 -127
  28. data/lib/bibtex/filters.rbc +0 -1178
  29. data/lib/bibtex/filters/latex.rbc +0 -361
  30. data/lib/bibtex/lexer.rbc +0 -5559
  31. data/lib/bibtex/name_parser.rbc +0 -2510
  32. data/lib/bibtex/names.rbc +0 -4710
  33. data/lib/bibtex/parser.rbc +0 -3336
  34. data/lib/bibtex/replaceable.rbc +0 -593
  35. data/lib/bibtex/utilities.rbc +0 -743
  36. data/lib/bibtex/value.rbc +0 -4291
  37. data/lib/bibtex/version.rbc +0 -209
  38. data/test/bibtex/test_bibliography.rbc +0 -4268
  39. data/test/bibtex/test_elements.rbc +0 -1554
  40. data/test/bibtex/test_entry.rbc +0 -11767
  41. data/test/bibtex/test_filters.rbc +0 -1017
  42. data/test/bibtex/test_lexer.rbc +0 -373
  43. data/test/bibtex/test_name_parser.rbc +0 -608
  44. data/test/bibtex/test_names.rbc +0 -797
  45. data/test/bibtex/test_parser.rbc +0 -2819
  46. data/test/bibtex/test_string.rbc +0 -706
  47. data/test/bibtex/test_utilities.rbc +0 -851
  48. data/test/bibtex/test_value.rbc +0 -4993
  49. data/test/helper.rbc +0 -430
  50. data/test/profile.dot +0 -191
  51. data/test/test_bibtex.rbc +0 -1785
  52. data/test/test_export.rbc +0 -908
@@ -1,373 +0,0 @@
1
- !RBIX
2
- 16846133056282117387
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
- 9
131
- LexerTest
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
- 9
151
- LexerTest
152
- i
153
- 13
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
- 11
167
- I
168
- 3
169
- I
170
- 0
171
- I
172
- 0
173
- I
174
- 0
175
- n
176
- p
177
- 3
178
- s
179
- 38
180
- should correctly scan a string literal
181
- M
182
- 1
183
- p
184
- 2
185
- x
186
- 9
187
- for_block
188
- t
189
- n
190
- x
191
- 9
192
- LexerTest
193
- i
194
- 56
195
- 5
196
- 45
197
- 0
198
- 1
199
- 13
200
- 71
201
- 2
202
- 47
203
- 9
204
- 22
205
- 47
206
- 49
207
- 3
208
- 0
209
- 13
210
- 47
211
- 49
212
- 4
213
- 0
214
- 15
215
- 8
216
- 25
217
- 49
218
- 2
219
- 0
220
- 7
221
- 5
222
- 64
223
- 49
224
- 6
225
- 1
226
- 49
227
- 7
228
- 0
229
- 7
230
- 8
231
- 7
232
- 9
233
- 7
234
- 10
235
- 7
236
- 11
237
- 7
238
- 12
239
- 7
240
- 13
241
- 7
242
- 14
243
- 3
244
- 35
245
- 8
246
- 47
247
- 49
248
- 15
249
- 2
250
- 11
251
- I
252
- b
253
- I
254
- 0
255
- I
256
- 0
257
- I
258
- 0
259
- I
260
- -2
261
- p
262
- 16
263
- x
264
- 5
265
- Lexer
266
- n
267
- x
268
- 3
269
- new
270
- x
271
- 8
272
- allocate
273
- x
274
- 10
275
- initialize
276
- s
277
- 20
278
- @string{ x = "foo" }
279
- x
280
- 7
281
- analyse
282
- x
283
- 7
284
- symbols
285
- x
286
- 2
287
- AT
288
- x
289
- 6
290
- STRING
291
- x
292
- 6
293
- LBRACE
294
- x
295
- 4
296
- NAME
297
- x
298
- 2
299
- EQ
300
- x
301
- 14
302
- STRING_LITERAL
303
- x
304
- 6
305
- RBRACE
306
- x
307
- 12
308
- assert_equal
309
- p
310
- 3
311
- I
312
- 0
313
- I
314
- 7
315
- I
316
- 38
317
- x
318
- 59
319
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_lexer.rb
320
- p
321
- 0
322
- x
323
- 2
324
- it
325
- p
326
- 3
327
- I
328
- 2
329
- I
330
- 6
331
- I
332
- d
333
- x
334
- 59
335
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_lexer.rb
336
- p
337
- 0
338
- x
339
- 13
340
- attach_method
341
- p
342
- 3
343
- I
344
- 2
345
- I
346
- 4
347
- I
348
- 21
349
- x
350
- 59
351
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_lexer.rb
352
- p
353
- 0
354
- x
355
- 13
356
- attach_method
357
- p
358
- 5
359
- I
360
- 0
361
- I
362
- 1
363
- I
364
- 9
365
- I
366
- 3
367
- I
368
- 25
369
- x
370
- 59
371
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_lexer.rb
372
- p
373
- 0
@@ -1,608 +0,0 @@
1
- !RBIX
2
- 16846133056282117387
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
- 6
63
- helper
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
- 14
131
- NameParserTest
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
- 14
151
- NameParserTest
152
- i
153
- 13
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
- 11
167
- I
168
- 3
169
- I
170
- 0
171
- I
172
- 0
173
- I
174
- 0
175
- n
176
- p
177
- 3
178
- s
179
- 65
180
- parse a number of entries having a 'van' or 'van den' name prefix
181
- M
182
- 1
183
- p
184
- 2
185
- x
186
- 9
187
- for_block
188
- t
189
- n
190
- x
191
- 14
192
- NameParserTest
193
- i
194
- 30
195
- 5
196
- 56
197
- 0
198
- 47
199
- 50
200
- 1
201
- 0
202
- 15
203
- 5
204
- 7
205
- 2
206
- 64
207
- 56
208
- 3
209
- 47
210
- 50
211
- 4
212
- 1
213
- 15
214
- 5
215
- 7
216
- 5
217
- 64
218
- 56
219
- 6
220
- 47
221
- 50
222
- 4
223
- 1
224
- 11
225
- I
226
- 4
227
- I
228
- 0
229
- I
230
- 0
231
- I
232
- 0
233
- I
234
- -2
235
- p
236
- 7
237
- M
238
- 1
239
- p
240
- 2
241
- x
242
- 9
243
- for_block
244
- t
245
- n
246
- x
247
- 14
248
- NameParserTest
249
- i
250
- 24
251
- 45
252
- 0
253
- 1
254
- 7
255
- 2
256
- 64
257
- 49
258
- 3
259
- 1
260
- 38
261
- 4
262
- 15
263
- 45
264
- 0
265
- 5
266
- 7
267
- 6
268
- 64
269
- 49
270
- 3
271
- 1
272
- 38
273
- 7
274
- 11
275
- I
276
- 3
277
- I
278
- 0
279
- I
280
- 0
281
- I
282
- 0
283
- I
284
- -2
285
- p
286
- 8
287
- x
288
- 5
289
- Names
290
- n
291
- s
292
- 19
293
- van den Bout, D. E.
294
- x
295
- 5
296
- parse
297
- x
298
- 2
299
- @a
300
- n
301
- s
302
- 19
303
- Van den Bout, D. E.
304
- x
305
- 2
306
- @b
307
- p
308
- 5
309
- I
310
- 0
311
- I
312
- 8
313
- I
314
- c
315
- I
316
- 9
317
- I
318
- 18
319
- x
320
- 65
321
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_name_parser.rb
322
- p
323
- 0
324
- x
325
- 6
326
- before
327
- s
328
- 58
329
- should parse 'van den' part starting with lowercase letter
330
- M
331
- 1
332
- p
333
- 2
334
- x
335
- 9
336
- for_block
337
- t
338
- n
339
- x
340
- 14
341
- NameParserTest
342
- i
343
- 36
344
- 5
345
- 39
346
- 0
347
- 78
348
- 49
349
- 1
350
- 1
351
- 49
352
- 2
353
- 0
354
- 7
355
- 3
356
- 64
357
- 47
358
- 49
359
- 4
360
- 2
361
- 15
362
- 5
363
- 39
364
- 0
365
- 78
366
- 49
367
- 1
368
- 1
369
- 49
370
- 5
371
- 0
372
- 7
373
- 6
374
- 64
375
- 47
376
- 49
377
- 4
378
- 2
379
- 11
380
- I
381
- 4
382
- I
383
- 0
384
- I
385
- 0
386
- I
387
- 0
388
- I
389
- -2
390
- p
391
- 7
392
- x
393
- 2
394
- @a
395
- x
396
- 2
397
- []
398
- x
399
- 6
400
- to_str
401
- s
402
- 19
403
- van den Bout, D. E.
404
- x
405
- 12
406
- assert_equal
407
- x
408
- 6
409
- prefix
410
- s
411
- 7
412
- van den
413
- p
414
- 5
415
- I
416
- 0
417
- I
418
- d
419
- I
420
- 12
421
- I
422
- e
423
- I
424
- 24
425
- x
426
- 65
427
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_name_parser.rb
428
- p
429
- 0
430
- x
431
- 2
432
- it
433
- s
434
- 58
435
- should parse 'Van den' part starting with uppercase letter
436
- M
437
- 1
438
- p
439
- 2
440
- x
441
- 9
442
- for_block
443
- t
444
- n
445
- x
446
- 14
447
- NameParserTest
448
- i
449
- 36
450
- 5
451
- 39
452
- 0
453
- 78
454
- 49
455
- 1
456
- 1
457
- 49
458
- 2
459
- 0
460
- 7
461
- 3
462
- 64
463
- 47
464
- 49
465
- 4
466
- 2
467
- 15
468
- 5
469
- 39
470
- 0
471
- 78
472
- 49
473
- 1
474
- 1
475
- 49
476
- 5
477
- 0
478
- 7
479
- 6
480
- 64
481
- 47
482
- 49
483
- 4
484
- 2
485
- 11
486
- I
487
- 4
488
- I
489
- 0
490
- I
491
- 0
492
- I
493
- 0
494
- I
495
- -2
496
- p
497
- 7
498
- x
499
- 2
500
- @b
501
- x
502
- 2
503
- []
504
- x
505
- 6
506
- to_str
507
- s
508
- 19
509
- Van den Bout, D. E.
510
- x
511
- 12
512
- assert_equal
513
- x
514
- 6
515
- prefix
516
- s
517
- 7
518
- Van den
519
- p
520
- 5
521
- I
522
- 0
523
- I
524
- 12
525
- I
526
- 12
527
- I
528
- 13
529
- I
530
- 24
531
- x
532
- 65
533
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_name_parser.rb
534
- p
535
- 0
536
- p
537
- 7
538
- I
539
- 0
540
- I
541
- 7
542
- I
543
- 8
544
- I
545
- c
546
- I
547
- 13
548
- I
549
- 11
550
- I
551
- 1e
552
- x
553
- 65
554
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_name_parser.rb
555
- p
556
- 0
557
- x
558
- 8
559
- describe
560
- p
561
- 3
562
- I
563
- 2
564
- I
565
- 6
566
- I
567
- d
568
- x
569
- 65
570
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_name_parser.rb
571
- p
572
- 0
573
- x
574
- 13
575
- attach_method
576
- p
577
- 3
578
- I
579
- 2
580
- I
581
- 4
582
- I
583
- 21
584
- x
585
- 65
586
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_name_parser.rb
587
- p
588
- 0
589
- x
590
- 13
591
- attach_method
592
- p
593
- 5
594
- I
595
- 0
596
- I
597
- 1
598
- I
599
- 9
600
- I
601
- 3
602
- I
603
- 25
604
- x
605
- 65
606
- /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_name_parser.rb
607
- p
608
- 0