bibtex-ruby 6.0.0 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/bibtex-ruby.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.authors = ['Sylvester Keil']
12
12
  s.email = ['sylvester@keil.or.at']
13
13
  s.homepage = 'http://inukshuk.github.com/bibtex-ruby'
14
- s.license = 'GPL-3.0'
14
+ s.license = 'GPL-3.0-or-later'
15
15
 
16
16
  s.summary = 'A BibTeX parser, converter and API for Ruby.'
17
17
  s.description = <<-END_DESCRIPTION.gsub(/^\s+/, '')
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
25
25
  export/conversion to formats such as YAML, JSON, CSL, and XML (BibTeXML).
26
26
  END_DESCRIPTION
27
27
 
28
+ s.add_runtime_dependency('racc', ['~>1.7'])
28
29
  s.add_runtime_dependency('latex-decode', ['~>0.0'])
29
30
 
30
31
  s.files = File.open('Manifest').readlines.map(&:chomp)
@@ -6,7 +6,7 @@ rescue LoadError
6
6
  end
7
7
 
8
8
  begin
9
- require 'debugger'
9
+ require 'debug' unless RUBY_PLATFORM == 'java'
10
10
  rescue LoadError
11
11
  # ignore
12
12
  end
@@ -14,4 +14,4 @@ end
14
14
  require 'minitest'
15
15
  require 'bibtex'
16
16
 
17
- World(MiniTest::Assertions)
17
+ World(Minitest::Assertions)
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.15
4
- # from Racc grammer file "".
3
+ # This file is automatically generated by Racc 1.7.3
4
+ # from Racc grammar file "names.y".
5
5
  #
6
6
 
7
7
  require 'racc/parser.rb'
@@ -168,34 +168,34 @@ module_eval(<<'...end names.y/module_eval...', 'names.y', 116)
168
168
  ##### State transition tables begin ###
169
169
 
170
170
  racc_action_table = [
171
- -22, 6, -25, -24, 42, -37, -22, -22, 56, -24,
172
- -24, -37, -37, -37, 42, -25, -38, 34, -39, -37,
173
- -37, -24, -38, -38, -39, -39, 54, -24, -24, -22,
174
- 26, -25, -20, -20, -20, -22, -22, -26, 24, 51,
175
- 25, -26, 24, 40, 25, 24, 43, 25, 49, 48,
176
- 50, 49, 48, 50, 24, 37, 25, 49, 48, 50,
177
- 16, 14, 17, 24, 23, 25, 49, 48, 50, 16,
178
- 29, 17, 24, 32, 25, 24, 37, 25, 24, 32,
179
- 25, 49, 48, 50, 4, 5, 4, 5, 54 ]
171
+ -37, 6, -25, -38, 26, -39, -37, -37, 34, -38,
172
+ -38, -39, -39, -22, 42, -25, -37, 4, 5, -22,
173
+ -22, -24, -37, -37, -22, 42, -25, -24, -24, -24,
174
+ -22, -22, 16, 14, 17, -24, -24, -26, 24, 40,
175
+ 25, -26, 24, 51, 25, 24, 23, 25, 16, 29,
176
+ 17, 24, 32, 25, 24, 37, 25, 24, 32, 25,
177
+ -20, -20, -20, 24, 43, 25, 49, 48, 50, 24,
178
+ 37, 25, 49, 48, 50, 49, 48, 50, 49, 48,
179
+ 50, 49, 48, 50, 4, 5, 54, 56, 54 ]
180
180
 
181
181
  racc_action_check = [
182
- 23, 1, 23, 51, 36, 29, 23, 23, 45, 51,
183
- 51, 29, 29, 14, 31, 14, 16, 13, 17, 14,
184
- 14, 40, 16, 16, 17, 17, 53, 40, 40, 37,
185
- 6, 37, 32, 32, 32, 37, 37, 38, 38, 38,
186
- 38, 21, 21, 21, 21, 33, 33, 33, 34, 34,
187
- 34, 42, 42, 42, 20, 20, 20, 56, 56, 56,
188
- 4, 4, 4, 5, 5, 5, 54, 54, 54, 10,
189
- 10, 10, 11, 11, 11, 39, 39, 39, 28, 28,
190
- 28, 47, 47, 47, 0, 0, 2, 2, 41 ]
182
+ 14, 1, 14, 16, 6, 17, 14, 14, 13, 16,
183
+ 16, 17, 17, 23, 31, 23, 29, 0, 0, 23,
184
+ 23, 40, 29, 29, 37, 36, 37, 40, 40, 51,
185
+ 37, 37, 4, 4, 4, 51, 51, 21, 21, 21,
186
+ 21, 38, 38, 38, 38, 5, 5, 5, 10, 10,
187
+ 10, 11, 11, 11, 20, 20, 20, 28, 28, 28,
188
+ 32, 32, 32, 33, 33, 33, 34, 34, 34, 39,
189
+ 39, 39, 42, 42, 42, 47, 47, 47, 54, 54,
190
+ 54, 56, 56, 56, 2, 2, 41, 45, 53 ]
191
191
 
192
192
  racc_action_pointer = [
193
- 78, 1, 80, nil, 57, 60, 30, nil, nil, nil,
194
- 66, 69, nil, 15, 13, nil, 16, 18, nil, nil,
195
- 51, 39, nil, 0, nil, nil, nil, nil, 75, 5,
196
- nil, 12, 29, 42, 45, nil, 2, 29, 35, 72,
197
- 21, 86, 48, nil, nil, 6, nil, 78, nil, nil,
198
- nil, 3, nil, 24, 63, nil, 54, nil, nil, nil ]
193
+ 11, 1, 78, nil, 29, 42, 4, nil, nil, nil,
194
+ 45, 48, nil, 6, 0, nil, 3, 5, nil, nil,
195
+ 51, 35, nil, 13, nil, nil, nil, nil, 54, 16,
196
+ nil, 12, 57, 60, 63, nil, 23, 24, 39, 66,
197
+ 21, 84, 69, nil, nil, 85, nil, 72, nil, nil,
198
+ nil, 29, nil, 86, 75, nil, 78, nil, nil, nil ]
199
199
 
200
200
  racc_action_default = [
201
201
  -1, -40, -2, -3, -40, -40, -40, -4, -5, -7,
@@ -206,22 +206,22 @@ racc_action_default = [
206
206
  -39, -21, -14, -40, -35, -17, -35, -34, -18, -28 ]
207
207
 
208
208
  racc_goto_table = [
209
- 9, 10, 21, 19, 30, 31, 27, 3, 44, 7,
210
- 12, 22, 1, 18, 36, 30, 55, 38, 35, 8,
211
- 59, 2, 41, 11, 20, nil, nil, 30, 58, 28,
212
- nil, nil, 30, 53, nil, nil, 38, 52, nil, nil,
213
- 39, nil, nil, 57 ]
209
+ 9, 10, 21, 19, 31, 30, 27, 44, 11, 20,
210
+ 3, 1, 7, 36, 28, 55, 30, 38, 35, 12,
211
+ 22, 41, 2, 8, 18, 39, 59, 58, 30, nil,
212
+ nil, nil, 53, 30, nil, nil, 38, 52, nil, nil,
213
+ nil, nil, nil, 57 ]
214
214
 
215
215
  racc_goto_check = [
216
- 6, 7, 7, 11, 14, 9, 6, 3, 12, 3,
217
- 10, 10, 1, 5, 9, 14, 12, 7, 11, 4,
218
- 13, 2, 9, 8, 8, nil, nil, 14, 12, 8,
219
- nil, nil, 14, 9, nil, nil, 7, 11, nil, nil,
220
- 8, nil, nil, 6 ]
216
+ 6, 7, 7, 11, 9, 14, 6, 12, 8, 8,
217
+ 3, 1, 3, 9, 8, 12, 14, 7, 11, 10,
218
+ 10, 9, 2, 4, 5, 8, 13, 12, 14, nil,
219
+ nil, nil, 9, 14, nil, nil, 7, 11, nil, nil,
220
+ nil, nil, nil, 6 ]
221
221
 
222
222
  racc_goto_pointer = [
223
- nil, 12, 21, 7, 15, 8, -4, -3, 19, -6,
224
- 6, -2, -26, -36, -6, nil ]
223
+ nil, 11, 22, 10, 19, 19, -4, -3, 4, -7,
224
+ 15, -2, -27, -30, -5, nil ]
225
225
 
226
226
  racc_goto_default = [
227
227
  nil, nil, nil, nil, nil, nil, 46, 33, nil, 13,
@@ -303,6 +303,7 @@ Racc_arg = [
303
303
  racc_shift_n,
304
304
  racc_reduce_n,
305
305
  racc_use_result_var ]
306
+ Ractor.make_shareable(Racc_arg) if defined?(Ractor)
306
307
 
307
308
  Racc_token_to_s_table = [
308
309
  "$end",
@@ -330,6 +331,7 @@ Racc_token_to_s_table = [
330
331
  "opt_words",
331
332
  "u_word",
332
333
  "words" ]
334
+ Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
333
335
 
334
336
  Racc_debug_parser = false
335
337
 
@@ -339,7 +341,7 @@ Racc_debug_parser = false
339
341
 
340
342
  module_eval(<<'.,.,', 'names.y', 31)
341
343
  def _reduce_1(val, _values, result)
342
- result = []
344
+ result = []
343
345
  result
344
346
  end
345
347
  .,.,
@@ -348,28 +350,28 @@ module_eval(<<'.,.,', 'names.y', 31)
348
350
 
349
351
  module_eval(<<'.,.,', 'names.y', 33)
350
352
  def _reduce_3(val, _values, result)
351
- result = [val[0]]
353
+ result = [val[0]]
352
354
  result
353
355
  end
354
356
  .,.,
355
357
 
356
358
  module_eval(<<'.,.,', 'names.y', 34)
357
359
  def _reduce_4(val, _values, result)
358
- result << val[1]
360
+ result << val[1]
359
361
  result
360
362
  end
361
363
  .,.,
362
364
 
363
365
  module_eval(<<'.,.,', 'names.y', 36)
364
366
  def _reduce_5(val, _values, result)
365
- result = Name.new(val[1])
367
+ result = Name.new(val[1])
366
368
  result
367
369
  end
368
370
  .,.,
369
371
 
370
372
  module_eval(<<'.,.,', 'names.y', 37)
371
373
  def _reduce_6(val, _values, result)
372
- result = Name.new(val[1])
374
+ result = Name.new(val[1])
373
375
  result
374
376
  end
375
377
  .,.,
@@ -377,7 +379,7 @@ module_eval(<<'.,.,', 'names.y', 37)
377
379
  module_eval(<<'.,.,', 'names.y', 41)
378
380
  def _reduce_7(val, _values, result)
379
381
  result = { :last => val[0] }
380
-
382
+
381
383
  result
382
384
  end
383
385
  .,.,
@@ -385,7 +387,7 @@ module_eval(<<'.,.,', 'names.y', 41)
385
387
  module_eval(<<'.,.,', 'names.y', 45)
386
388
  def _reduce_8(val, _values, result)
387
389
  result = { :first => val[0].join(' '), :last => val[1] }
388
-
390
+
389
391
  result
390
392
  end
391
393
  .,.,
@@ -393,7 +395,7 @@ module_eval(<<'.,.,', 'names.y', 45)
393
395
  module_eval(<<'.,.,', 'names.y', 49)
394
396
  def _reduce_9(val, _values, result)
395
397
  result = { :first => val[0].join(' '), :von => val[1], :last => val[2] }
396
-
398
+
397
399
  result
398
400
  end
399
401
  .,.,
@@ -401,7 +403,7 @@ module_eval(<<'.,.,', 'names.y', 49)
401
403
  module_eval(<<'.,.,', 'names.y', 53)
402
404
  def _reduce_10(val, _values, result)
403
405
  result = { :von => val[0], :last => val[1] }
404
-
406
+
405
407
  result
406
408
  end
407
409
  .,.,
@@ -411,7 +413,7 @@ module_eval(<<'.,.,', 'names.y', 53)
411
413
  module_eval(<<'.,.,', 'names.y', 59)
412
414
  def _reduce_12(val, _values, result)
413
415
  result = { :last => val[0][0], :first => val[0][1] }
414
-
416
+
415
417
  result
416
418
  end
417
419
  .,.,
@@ -419,7 +421,7 @@ module_eval(<<'.,.,', 'names.y', 59)
419
421
  module_eval(<<'.,.,', 'names.y', 63)
420
422
  def _reduce_13(val, _values, result)
421
423
  result = { :von => val[0], :last => val[1][0], :first => val[1][1] }
422
-
424
+
423
425
  result
424
426
  end
425
427
  .,.,
@@ -427,7 +429,7 @@ module_eval(<<'.,.,', 'names.y', 63)
427
429
  module_eval(<<'.,.,', 'names.y', 67)
428
430
  def _reduce_14(val, _values, result)
429
431
  result = { :von => val[0..1].join(' '), :last => val[2][0], :first => val[2][1] }
430
-
432
+
431
433
  result
432
434
  end
433
435
  .,.,
@@ -437,7 +439,7 @@ module_eval(<<'.,.,', 'names.y', 67)
437
439
  module_eval(<<'.,.,', 'names.y', 73)
438
440
  def _reduce_16(val, _values, result)
439
441
  result = { :last => val[0], :jr => val[2][0], :first => val[2][1] }
440
-
442
+
441
443
  result
442
444
  end
443
445
  .,.,
@@ -445,7 +447,7 @@ module_eval(<<'.,.,', 'names.y', 73)
445
447
  module_eval(<<'.,.,', 'names.y', 77)
446
448
  def _reduce_17(val, _values, result)
447
449
  result = { :von => val[0], :last => val[1], :jr => val[3][0], :first => val[3][1] }
448
-
450
+
449
451
  result
450
452
  end
451
453
  .,.,
@@ -453,7 +455,7 @@ module_eval(<<'.,.,', 'names.y', 77)
453
455
  module_eval(<<'.,.,', 'names.y', 81)
454
456
  def _reduce_18(val, _values, result)
455
457
  result = { :von => val[0..1].join(' '), :last => val[2], :jr => val[4][0], :first => val[4][1] }
456
-
458
+
457
459
  result
458
460
  end
459
461
  .,.,
@@ -462,35 +464,35 @@ module_eval(<<'.,.,', 'names.y', 81)
462
464
 
463
465
  module_eval(<<'.,.,', 'names.y', 85)
464
466
  def _reduce_20(val, _values, result)
465
- result = val.join(' ')
467
+ result = val.join(' ')
466
468
  result
467
469
  end
468
470
  .,.,
469
471
 
470
472
  module_eval(<<'.,.,', 'names.y', 86)
471
473
  def _reduce_21(val, _values, result)
472
- result = val.join(' ')
474
+ result = val.join(' ')
473
475
  result
474
476
  end
475
477
  .,.,
476
478
 
477
479
  module_eval(<<'.,.,', 'names.y', 88)
478
480
  def _reduce_22(val, _values, result)
479
- result = [val[0], nil]
481
+ result = [val[0], nil]
480
482
  result
481
483
  end
482
484
  .,.,
483
485
 
484
486
  module_eval(<<'.,.,', 'names.y', 89)
485
487
  def _reduce_23(val, _values, result)
486
- result = [val[0][0], val[0][1] ? val[0][1..-1].join(' ') : nil]
488
+ result = [val[0][0], val[0][1] ? val[0][1..-1].join(' ') : nil]
487
489
  result
488
490
  end
489
491
  .,.,
490
492
 
491
493
  module_eval(<<'.,.,', 'names.y', 90)
492
494
  def _reduce_24(val, _values, result)
493
- result = [val[0][0], (val[0][1..-1] << val[1]).join(' ')]
495
+ result = [val[0][0], (val[0][1..-1] << val[1]).join(' ')]
494
496
  result
495
497
  end
496
498
  .,.,
@@ -499,35 +501,35 @@ module_eval(<<'.,.,', 'names.y', 90)
499
501
 
500
502
  module_eval(<<'.,.,', 'names.y', 92)
501
503
  def _reduce_26(val, _values, result)
502
- result = val[0].join(' ')
504
+ result = val[0].join(' ')
503
505
  result
504
506
  end
505
507
  .,.,
506
508
 
507
509
  module_eval(<<'.,.,', 'names.y', 94)
508
510
  def _reduce_27(val, _values, result)
509
- result = [nil,val[0]]
511
+ result = [nil,val[0]]
510
512
  result
511
513
  end
512
514
  .,.,
513
515
 
514
516
  module_eval(<<'.,.,', 'names.y', 95)
515
517
  def _reduce_28(val, _values, result)
516
- result = [val[0],val[2]]
518
+ result = [val[0],val[2]]
517
519
  result
518
520
  end
519
521
  .,.,
520
522
 
521
523
  module_eval(<<'.,.,', 'names.y', 97)
522
524
  def _reduce_29(val, _values, result)
523
- result = [val[0]]
525
+ result = [val[0]]
524
526
  result
525
527
  end
526
528
  .,.,
527
529
 
528
530
  module_eval(<<'.,.,', 'names.y', 98)
529
531
  def _reduce_30(val, _values, result)
530
- result << val[1]
532
+ result << val[1]
531
533
  result
532
534
  end
533
535
  .,.,
@@ -540,7 +542,7 @@ module_eval(<<'.,.,', 'names.y', 98)
540
542
 
541
543
  module_eval(<<'.,.,', 'names.y', 103)
542
544
  def _reduce_34(val, _values, result)
543
- result = val.join(' ')
545
+ result = val.join(' ')
544
546
  result
545
547
  end
546
548
  .,.,
data/lib/bibtex/names.rb CHANGED
@@ -125,7 +125,7 @@ module BibTeX
125
125
  }.freeze
126
126
 
127
127
  def_delegators :to_s, :=~, :===,
128
- *String.instance_methods(false).reject { |m| m =~ /^\W|to_s|replace|each|first|last|!$/ }
128
+ *String.instance_methods(false).reject { |m| m =~ /^\W|to_s|dup|replace|each|first|last|!$/ }
129
129
 
130
130
  class << self
131
131
  def parse(string)
data/lib/bibtex/parser.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.11
4
- # from Racc grammer file "".
3
+ # This file is automatically generated by Racc 1.7.3
4
+ # from Racc grammar file "bibtex.y".
5
5
  #
6
6
 
7
7
  require 'racc/parser.rb'
@@ -69,25 +69,25 @@ module_eval(<<'...end bibtex.y/module_eval...', 'bibtex.y', 89)
69
69
  ##### State transition tables begin ###
70
70
 
71
71
  racc_action_table = [
72
- 14, 33, 38, 26, 32, 33, 24, 18, 32, 15,
73
- 34, 39, 16, 37, 34, 33, 33, 36, 32, 32,
74
- 52, 27, 4, 4, 34, 34, 6, 6, 26, 5,
75
- 5, 48, 43, 44, 29, 41, 42, 22, 29, 46,
76
- 47, 21, 20, 19, 54, 7, 44, 44 ]
72
+ 14, 33, 38, 26, 32, 26, 24, 18, 48, 15,
73
+ 34, 33, 16, 37, 32, 52, 33, 7, 33, 32,
74
+ 34, 32, 4, 19, 4, 34, 6, 34, 6, 5,
75
+ 20, 5, 43, 44, 21, 22, 27, 29, 36, 39,
76
+ 41, 42, 29, 46, 47, 54, 44, 44 ]
77
77
 
78
78
  racc_action_check = [
79
- 4, 21, 23, 17, 21, 47, 17, 4, 47, 4,
80
- 21, 26, 4, 23, 47, 44, 39, 22, 44, 39,
81
- 39, 18, 0, 2, 44, 39, 0, 2, 38, 0,
82
- 2, 38, 30, 30, 20, 27, 28, 16, 33, 35,
83
- 36, 15, 14, 7, 45, 1, 50, 55 ]
79
+ 4, 21, 23, 17, 21, 38, 17, 4, 38, 4,
80
+ 21, 39, 4, 23, 39, 39, 44, 1, 47, 44,
81
+ 39, 47, 0, 7, 2, 44, 0, 47, 2, 0,
82
+ 14, 2, 30, 30, 15, 16, 18, 20, 22, 26,
83
+ 27, 28, 33, 35, 36, 45, 50, 55 ]
84
84
 
85
85
  racc_action_pointer = [
86
- 20, 45, 21, nil, -4, nil, nil, 43, nil, nil,
87
- nil, nil, nil, nil, 34, 33, 29, -8, 13, nil,
88
- 29, -7, 6, -1, nil, nil, 4, 25, 22, nil,
89
- 18, nil, nil, 33, nil, 25, 33, nil, 17, 8,
90
- nil, nil, nil, nil, 7, 30, nil, -3, nil, nil,
86
+ 20, 17, 22, nil, -4, nil, nil, 23, nil, nil,
87
+ nil, nil, nil, nil, 22, 26, 27, -8, 28, nil,
88
+ 32, -7, 27, -1, nil, nil, 32, 30, 27, nil,
89
+ 18, nil, nil, 37, nil, 29, 37, nil, -6, 3,
90
+ nil, nil, nil, nil, 8, 31, nil, 10, nil, nil,
91
91
  31, nil, nil, nil, nil, 32 ]
92
92
 
93
93
  racc_action_default = [
@@ -99,18 +99,18 @@ racc_action_default = [
99
99
  -32, -31, -33, -19, -21, -17 ]
100
100
 
101
101
  racc_goto_table = [
102
- 30, 25, 28, 3, 1, 8, 11, 12, 13, 10,
103
- 9, 35, 53, 17, 23, 45, 40, 2, 50, 51,
102
+ 30, 25, 28, 3, 1, 8, 2, 9, 10, 11,
103
+ 12, 13, 35, 53, 17, 45, 23, 40, 50, 51,
104
104
  nil, nil, 49, nil, nil, nil, 55 ]
105
105
 
106
106
  racc_goto_check = [
107
- 10, 16, 9, 3, 1, 3, 6, 7, 8, 5,
108
- 4, 11, 12, 13, 14, 9, 15, 2, 10, 17,
107
+ 10, 16, 9, 3, 1, 3, 2, 4, 5, 6,
108
+ 7, 8, 11, 12, 13, 9, 14, 15, 10, 17,
109
109
  nil, nil, 16, nil, nil, nil, 10 ]
110
110
 
111
111
  racc_goto_pointer = [
112
- nil, 4, 17, 3, 6, 5, 2, 3, 4, -18,
113
- -21, -11, -32, 9, -3, -11, -16, -20 ]
112
+ nil, 4, 6, 3, 3, 4, 5, 6, 7, -18,
113
+ -21, -10, -31, 10, -1, -10, -16, -20 ]
114
114
 
115
115
  racc_goto_default = [
116
116
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
@@ -195,6 +195,7 @@ Racc_arg = [
195
195
  racc_shift_n,
196
196
  racc_reduce_n,
197
197
  racc_use_result_var ]
198
+ Ractor.make_shareable(Racc_arg) if defined?(Ractor)
198
199
 
199
200
  Racc_token_to_s_table = [
200
201
  "$end",
@@ -233,6 +234,7 @@ Racc_token_to_s_table = [
233
234
  "opt_key",
234
235
  "assignment",
235
236
  "value" ]
237
+ Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
236
238
 
237
239
  Racc_debug_parser = false
238
240
 
@@ -19,7 +19,7 @@
19
19
  module BibTeX
20
20
  module Version
21
21
  MAJOR = 6
22
- MINOR = 0
22
+ MINOR = 1
23
23
  PATCH = 0
24
24
  BUILD = nil
25
25
 
@@ -1,7 +1,7 @@
1
1
  require 'helper.rb'
2
2
 
3
3
  module BibTeX
4
- class TestBibtex < Minitest::Unit::TestCase
4
+ class TestBibtex < Minitest::Test
5
5
  def test_empty?
6
6
  assert BibTeX.open(Test.fixtures(:empty)).empty?
7
7
  refute BibTeX.open(Test.fixtures(:bibdesk)).empty?
data/test/helper.rb CHANGED
@@ -5,12 +5,7 @@ rescue LoadError
5
5
  end
6
6
 
7
7
  begin
8
- if RUBY_PLATFORM < 'java'
9
- require 'debug'
10
- Debugger.start
11
- else
12
- require 'byebug'
13
- end
8
+ require 'debug' unless RUBY_PLATFORM == 'java'
14
9
  rescue LoadError
15
10
  # ignore
16
11
  end
data/test/test_bibtex.rb CHANGED
@@ -2,7 +2,7 @@ require 'helper.rb'
2
2
  require 'timeout'
3
3
 
4
4
  module BibTeX
5
- class TestBibtex < Minitest::Unit::TestCase
5
+ class TestBibtex < Minitest::Test
6
6
  def setup; end
7
7
 
8
8
  def teardown; end
data/test/test_export.rb CHANGED
@@ -3,7 +3,7 @@ require 'helper.rb'
3
3
  require 'yaml'
4
4
 
5
5
  module BibTeX
6
- class TestString < Minitest::Unit::TestCase
6
+ class TestString < Minitest::Test
7
7
  def test_yaml
8
8
  bib = BibTeX::Bibliography.open(Test.fixtures(:bibdesk), debug: false)
9
9
  yaml = YAML.load(bib.to_yaml) # rubocop:disable Security/YAMLLoad
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibtex-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-07 00:00:00.000000000 Z
11
+ date: 2024-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: racc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: latex-decode
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +140,7 @@ files:
126
140
  - test/test_export.rb
127
141
  homepage: http://inukshuk.github.com/bibtex-ruby
128
142
  licenses:
129
- - GPL-3.0
143
+ - GPL-3.0-or-later
130
144
  metadata: {}
131
145
  post_install_message:
132
146
  rdoc_options: []
@@ -143,13 +157,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
157
  - !ruby/object:Gem::Version
144
158
  version: '0'
145
159
  requirements: []
146
- rubygems_version: 3.1.2
160
+ rubygems_version: 3.5.3
147
161
  signing_key:
148
162
  specification_version: 4
149
163
  summary: A BibTeX parser, converter and API for Ruby.
150
164
  test_files:
151
165
  - test/bibtex/entry/test_rdf_converter.rb
166
+ - test/bibtex/test_bibliography.rb
152
167
  - test/bibtex/test_elements.rb
168
+ - test/bibtex/test_entry.rb
169
+ - test/bibtex/test_filters.rb
153
170
  - test/bibtex/test_lexer.rb
154
171
  - test/bibtex/test_name_parser.rb
155
172
  - test/bibtex/test_names.rb
@@ -157,8 +174,5 @@ test_files:
157
174
  - test/bibtex/test_string.rb
158
175
  - test/bibtex/test_utilities.rb
159
176
  - test/bibtex/test_value.rb
160
- - test/bibtex/test_filters.rb
161
- - test/bibtex/test_bibliography.rb
162
- - test/bibtex/test_entry.rb
163
177
  - test/test_bibtex.rb
164
178
  - test/test_export.rb