bibtex-ruby 5.1.6 → 6.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.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/README.md +2 -4
- data/Rakefile +0 -8
- data/lib/bibtex.rb +6 -1
- data/lib/bibtex/version.rb +3 -3
- data/test/helper.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d20ff3c667743829aca52621d06ed9817e6889f78cc4738d036f058a7f191836
|
4
|
+
data.tar.gz: 8810c0a5aa024a5b7150b02326ac00ddda0657098275a41cd0e9009c19bbd8ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cab60663c560854377d34d87934365002b2cdeabbdb7aa6bdf3df42a962ff94abfc5e647629945b065a48ef83f36c1dc8a275e62c1b98cee824b9f89870cbc5b
|
7
|
+
data.tar.gz: a0f39e0ac274f36a4aeaa911a76087f5480819c737abba310ce17fb105528816ae68a9311bfac202fd1ae71e4fe43cfe63fb37a2be652bf90945174e8756ca17
|
data/Gemfile
CHANGED
@@ -6,6 +6,8 @@ gem 'json', '~>2.0', platforms: %i[mri_18 jruby]
|
|
6
6
|
gem 'rdf', '~>3.0'
|
7
7
|
gem 'rdf-vocab', '~>3.0'
|
8
8
|
|
9
|
+
gem 'rexml', '~>3.0'
|
10
|
+
|
9
11
|
group :debug do
|
10
12
|
gem 'byebug', require: false, platforms: :mri
|
11
13
|
gem 'ruby-debug', require: false, platforms: :jruby
|
@@ -27,7 +29,6 @@ group :profile do
|
|
27
29
|
end
|
28
30
|
|
29
31
|
group :coverage do
|
30
|
-
gem 'coveralls', require: false
|
31
32
|
gem 'simplecov', require: false, platforms: [:ruby]
|
32
33
|
end
|
33
34
|
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
BibTeX-Ruby
|
2
2
|
===========
|
3
|
-
[](http://travis-ci.org/inukshuk/bibtex-ruby)
|
4
|
-
[](https://coveralls.io/r/inukshuk/bibtex-ruby)
|
5
3
|
|
6
4
|
BibTeX-Ruby is the Rubyist's swiss-army-knife for all things BibTeX. It
|
7
5
|
includes a parser for all common BibTeX objects (@string, @preamble, @comment
|
@@ -10,7 +8,7 @@ formatted names; BibTeX-Ruby recognizes BibTeX string replacements, joins
|
|
10
8
|
values containing multiple strings or variables, supports cross-references,
|
11
9
|
and decodes common LaTeX formatting instructions to unicode; if you are in a
|
12
10
|
hurry, it also allows for easy export/conversion to formats such as YAML,
|
13
|
-
JSON, CiteProc/CSL, XML (BibTeXML), and RDF (experimental).
|
11
|
+
JSON, CiteProc/CSL, XML (BibTeXML, requires `rexml`), and RDF (experimental).
|
14
12
|
|
15
13
|
For a list of projects using BibTeX-Ruby, take a look at the
|
16
14
|
[project wiki](https://github.com/inukshuk/bibtex-ruby/wiki/Projects-Using-BibTeX-Ruby).
|
@@ -466,7 +464,7 @@ constitutes a simple BibTeX to YAML converter:
|
|
466
464
|
>> BibTeX.open('example.bib').to_yaml
|
467
465
|
|
468
466
|
Starting with version 2.0, BibTeX-Ruby's `#to_xml` exports your bibliography
|
469
|
-
to the [BibTeXML](http://bibtexml.sf.net/) format
|
467
|
+
to the [BibTeXML](http://bibtexml.sf.net/) format via `rexml`. By passing the option
|
470
468
|
`:extended => true` you can make use of the BibTeXML's extended format which
|
471
469
|
will return individual person elements and name tokens (provided you have
|
472
470
|
successfully parsed the names of your bibliography).
|
data/Rakefile
CHANGED
@@ -35,14 +35,6 @@ rescue LoadError
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
begin
|
39
|
-
require 'coveralls/rake/task'
|
40
|
-
Coveralls::RakeTask.new
|
41
|
-
task test_with_coveralls: [:test, :features, 'coveralls:push']
|
42
|
-
rescue LoadError
|
43
|
-
# ignore
|
44
|
-
end
|
45
|
-
|
46
38
|
task default: %i[test features]
|
47
39
|
|
48
40
|
desc 'Generates the BibTeX parser'
|
data/lib/bibtex.rb
CHANGED
@@ -65,13 +65,18 @@ require 'bibtex/names'
|
|
65
65
|
require 'bibtex/replaceable'
|
66
66
|
require 'bibtex/elements'
|
67
67
|
require 'bibtex/entry'
|
68
|
-
require 'bibtex/entry/bibtexml_converter'
|
69
68
|
require 'bibtex/entry/citeproc_converter'
|
70
69
|
require 'bibtex/error'
|
71
70
|
require 'bibtex/parser'
|
72
71
|
require 'bibtex/bibliography'
|
73
72
|
require 'bibtex/utilities'
|
74
73
|
|
74
|
+
begin
|
75
|
+
require 'bibtex/entry/bibtexml_converter'
|
76
|
+
rescue LoadError
|
77
|
+
# ignored
|
78
|
+
end
|
79
|
+
|
75
80
|
begin
|
76
81
|
require 'rdf'
|
77
82
|
require 'bibtex/entry/rdf_converter'
|
data/lib/bibtex/version.rb
CHANGED
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibtex-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.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:
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: latex-decode
|