bibtex-ruby 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bibtex-ruby might be problematic. Click here for more details.
- checksums.yaml +6 -14
- data/Gemfile +3 -3
- data/Gemfile.lock +29 -21
- data/features/support/env.rb +2 -2
- data/lib/bibtex/lexer.rb +2 -2
- data/lib/bibtex/version.rb +1 -1
- data/test/bibtex/test_bibliography.rb +1 -1
- data/test/bibtex/test_elements.rb +2 -2
- data/test/bibtex/test_entry.rb +1 -1
- data/test/bibtex/test_filters.rb +1 -1
- data/test/bibtex/test_lexer.rb +1 -1
- data/test/bibtex/test_name_parser.rb +1 -1
- data/test/bibtex/test_names.rb +1 -1
- data/test/bibtex/test_parser.rb +8 -1
- data/test/bibtex/test_string.rb +1 -1
- data/test/bibtex/test_utilities.rb +1 -1
- data/test/bibtex/test_value.rb +1 -1
- data/test/fixtures/entry.bib +0 -1
- data/test/test_bibtex.rb +1 -1
- data/test/test_export.rb +1 -1
- metadata +8 -17
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NTc3NGEwZDM0Y2YzYjMwMjM5NDFkMjBkMzdjNzZiN2Y4ZTA5YWUyM2Q0M2Ex
|
10
|
-
NGRiYjY2YzViZjAwZjg1YWUwYmNlYWY1OTY4ZWNjNWUwNGFhY2ZlOWY3MmFh
|
11
|
-
ZjJjZjczMDBiNWEzYjYxOTA3ZGVjYTUyNjE3MjBmYTdkYWM5MGE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YjVhNjc3YWRjNzgxNWZiNzg4YjdhMTZjY2UxNzZiZjQ0YTJiOTEyMjZkMjk5
|
14
|
-
MTY4NjA1NGJiNzA4NDM4ZWQzZDhjMGYyMjRmOWYzNTU2YTI5ZTgwZTk1ODMy
|
15
|
-
MzQ0M2JiNjVlOTY5NmNkY2Y2MmI5MTdlMWU5ZGMyNjk4M2EyNDg=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 13f5a6e49da0980f96a20784a742f01ae4fafe4b
|
4
|
+
data.tar.gz: baa4de1ff88bb81052315b43c5aa33a9648a913e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d5b4d2995d894866934d33d8f50a54d76b07af12b8bdf31d3dabca259bc31d161c898632c97f1a9e14dd0324f7434ff5f5abe368084fd6b7343ce6d09387f40c
|
7
|
+
data.tar.gz: e6dbfa8a60924376cef6311590fd4b0db448cbd7fa31612ce6ad20ab2848d4746df0e26e979c8f6f49653e87d70bb54403c1d0ef8b90809ae3be6ab1c30f0d8e
|
data/Gemfile
CHANGED
@@ -10,10 +10,10 @@ group :debug do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
group :test do
|
13
|
-
gem 'minitest'
|
14
|
-
|
13
|
+
gem 'minitest', '~>4.0'
|
14
|
+
gem 'minitest-colorize'
|
15
15
|
gem 'cucumber', ['~>1.0']
|
16
|
-
gem 'unicode', :platforms => [:
|
16
|
+
gem 'unicode', :platforms => [:rbx, :mswin, :mingw, :mri_19, :mri_20]
|
17
17
|
end
|
18
18
|
|
19
19
|
group :extra do
|
data/Gemfile.lock
CHANGED
@@ -1,36 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bibtex-ruby (2.3.
|
4
|
+
bibtex-ruby (2.3.2)
|
5
5
|
latex-decode (>= 0.0.6)
|
6
6
|
multi_json (~> 1.3)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.3.
|
12
|
-
builder (3.2.
|
11
|
+
addressable (2.3.4)
|
12
|
+
builder (3.2.2)
|
13
13
|
coderay (1.0.9)
|
14
14
|
columnize (0.3.6)
|
15
|
-
cucumber (1.2
|
15
|
+
cucumber (1.3.2)
|
16
16
|
builder (>= 2.1.2)
|
17
17
|
diff-lcs (>= 1.1.3)
|
18
|
-
gherkin (~> 2.
|
18
|
+
gherkin (~> 2.12.0)
|
19
19
|
multi_json (~> 1.3)
|
20
|
-
debugger (1.
|
20
|
+
debugger (1.6.0)
|
21
21
|
columnize (>= 0.3.1)
|
22
22
|
debugger-linecache (~> 1.2.0)
|
23
|
-
debugger-ruby_core_source (~> 1.2.
|
23
|
+
debugger-ruby_core_source (~> 1.2.1)
|
24
24
|
debugger-linecache (1.2.0)
|
25
|
-
debugger-ruby_core_source (1.2.
|
26
|
-
diff-lcs (1.2.
|
25
|
+
debugger-ruby_core_source (1.2.2)
|
26
|
+
diff-lcs (1.2.4)
|
27
|
+
ffi (1.8.1)
|
27
28
|
formatador (0.2.4)
|
28
|
-
gherkin (2.
|
29
|
+
gherkin (2.12.0)
|
29
30
|
multi_json (~> 1.3)
|
30
31
|
gnuplot (2.6.2)
|
31
|
-
guard (1.
|
32
|
+
guard (1.8.0)
|
32
33
|
formatador (>= 0.2.4)
|
33
|
-
listen (>= 0.
|
34
|
+
listen (>= 1.0.0)
|
34
35
|
lumberjack (>= 1.0.2)
|
35
36
|
pry (>= 0.9.10)
|
36
37
|
thor (>= 0.14.6)
|
@@ -39,28 +40,35 @@ GEM
|
|
39
40
|
guard (>= 1.1.0)
|
40
41
|
guard-minitest (0.5.0)
|
41
42
|
guard (>= 0.4)
|
42
|
-
latex-decode (0.1.
|
43
|
+
latex-decode (0.1.1)
|
43
44
|
unicode (~> 0.4)
|
44
45
|
linecache (0.46)
|
45
46
|
rbx-require-relative (> 0.0.4)
|
46
|
-
listen (
|
47
|
+
listen (1.1.6)
|
48
|
+
rb-fsevent (>= 0.9.3)
|
49
|
+
rb-inotify (>= 0.9)
|
50
|
+
rb-kqueue (>= 0.2)
|
47
51
|
lumberjack (1.0.3)
|
48
52
|
method_source (0.8.1)
|
49
|
-
minitest (4.
|
53
|
+
minitest (4.4.0)
|
50
54
|
minitest-colorize (0.0.5)
|
51
55
|
minitest (>= 2.0)
|
52
|
-
multi_json (1.7.
|
53
|
-
pry (0.9.12)
|
56
|
+
multi_json (1.7.6)
|
57
|
+
pry (0.9.12.2)
|
54
58
|
coderay (~> 1.0.5)
|
55
59
|
method_source (~> 0.8)
|
56
60
|
slop (~> 3.4)
|
57
61
|
racc (1.4.9)
|
58
62
|
rake (10.0.4)
|
59
63
|
rb-fsevent (0.9.3)
|
64
|
+
rb-inotify (0.9.0)
|
65
|
+
ffi (>= 0.5.0)
|
66
|
+
rb-kqueue (0.2.0)
|
67
|
+
ffi (>= 0.5.0)
|
60
68
|
rbx-require-relative (0.0.9)
|
61
69
|
rdf (0.3.11.1)
|
62
70
|
addressable (>= 2.2.6)
|
63
|
-
redcarpet (2.
|
71
|
+
redcarpet (2.3.0)
|
64
72
|
ruby-debug (0.10.4)
|
65
73
|
columnize (>= 0.1)
|
66
74
|
ruby-debug-base (~> 0.10.4.0)
|
@@ -71,10 +79,10 @@ GEM
|
|
71
79
|
multi_json (~> 1.0)
|
72
80
|
simplecov-html (~> 0.7.1)
|
73
81
|
simplecov-html (0.7.1)
|
74
|
-
slop (3.4.
|
82
|
+
slop (3.4.5)
|
75
83
|
thor (0.18.1)
|
76
84
|
unicode (0.4.4)
|
77
|
-
yard (0.8.
|
85
|
+
yard (0.8.6.1)
|
78
86
|
|
79
87
|
PLATFORMS
|
80
88
|
ruby
|
@@ -86,7 +94,7 @@ DEPENDENCIES
|
|
86
94
|
gnuplot (~> 2.4)
|
87
95
|
guard-cucumber
|
88
96
|
guard-minitest
|
89
|
-
minitest
|
97
|
+
minitest (~> 4.0)
|
90
98
|
minitest-colorize
|
91
99
|
racc
|
92
100
|
rake
|
data/features/support/env.rb
CHANGED
data/lib/bibtex/lexer.rb
CHANGED
@@ -59,8 +59,8 @@ module BibTeX
|
|
59
59
|
:string => /string/io,
|
60
60
|
:comment => /comment\b/io,
|
61
61
|
:preamble => /preamble\b/io,
|
62
|
-
:key => /\s*[[:alpha:]\d \/:_
|
63
|
-
:optional_key => /\s*[[:alpha:]\d \/:_
|
62
|
+
:key => /\s*[[:alpha:]\d \/:_!$\?\.%+&\*-]+,/io,
|
63
|
+
:optional_key => /\s*[[:alpha:]\d \/:_!$\?\.%+&\*-]*,/io
|
64
64
|
}.freeze
|
65
65
|
|
66
66
|
MODE = Hash.new(:meta).merge({
|
data/lib/bibtex/version.rb
CHANGED
@@ -2,7 +2,7 @@ require 'helper'
|
|
2
2
|
|
3
3
|
module BibTeX
|
4
4
|
|
5
|
-
class ElementTest <
|
5
|
+
class ElementTest < Minitest::Spec
|
6
6
|
|
7
7
|
describe '.parse' do
|
8
8
|
|
@@ -26,7 +26,7 @@ module BibTeX
|
|
26
26
|
|
27
27
|
end
|
28
28
|
|
29
|
-
class PreambleTest <
|
29
|
+
class PreambleTest < Minitest::Spec
|
30
30
|
|
31
31
|
describe 'a new preamble instance' do
|
32
32
|
before do
|
data/test/bibtex/test_entry.rb
CHANGED
data/test/bibtex/test_filters.rb
CHANGED
data/test/bibtex/test_lexer.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'helper.rb'
|
2
2
|
|
3
3
|
module BibTeX
|
4
|
-
class LexerTest <
|
4
|
+
class LexerTest < Minitest::Spec
|
5
5
|
|
6
6
|
it 'correctly scans a string literal' do
|
7
7
|
assert_equal Lexer.new.analyse(%q(@string{ x = "foo" })).symbols, [:AT,:STRING,:LBRACE,:NAME,:EQ,:STRING_LITERAL,:RBRACE,false]
|
data/test/bibtex/test_names.rb
CHANGED
data/test/bibtex/test_parser.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'helper.rb'
|
2
2
|
|
3
3
|
module BibTeX
|
4
|
-
class ParserTest <
|
4
|
+
class ParserTest < Minitest::Spec
|
5
5
|
|
6
6
|
describe 'given a set of valid @entries' do
|
7
7
|
before do
|
@@ -48,6 +48,13 @@ module BibTeX
|
|
48
48
|
assert bib[:"George Martin06"]
|
49
49
|
end
|
50
50
|
|
51
|
+
it 'handles plus symbols in keys' do
|
52
|
+
input = "@Misc{foo+bar,title = {Foobar}}"
|
53
|
+
bib = Parser.new(:debug => false, :strict => false).parse(input)
|
54
|
+
assert_equal "foo+bar", bib.first.key
|
55
|
+
assert bib[:"foo+bar"]
|
56
|
+
end
|
57
|
+
|
51
58
|
it 'fails when there is no cite-key' do
|
52
59
|
input = "@misc{title = {Crime and Punishment}}"
|
53
60
|
assert_raises ParseError do
|
data/test/bibtex/test_string.rb
CHANGED
data/test/bibtex/test_value.rb
CHANGED
data/test/fixtures/entry.bib
CHANGED
data/test/test_bibtex.rb
CHANGED
data/test/test_export.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibtex-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: latex-decode
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.0.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.0.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -38,24 +38,15 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.3'
|
41
|
-
description:
|
42
|
-
It
|
43
|
-
|
41
|
+
description: |
|
42
|
+
BibTeX-Ruby is the Rubyist's swiss-army-knife for all things BibTeX. It
|
44
43
|
includes a parser for all common BibTeX objects (@string, @preamble,
|
45
|
-
|
46
44
|
@comment and regular entries) and a sophisticated name parser that
|
47
|
-
|
48
45
|
tokenizes correctly formatted names; BibTeX-Ruby recognizes BibTeX string
|
49
|
-
|
50
46
|
replacements, joins values containing multiple strings or variables,
|
51
|
-
|
52
47
|
supports cross-references, and decodes common LaTeX formatting
|
53
|
-
|
54
48
|
instructions to unicode; if you are in a hurry, it also allows for easy
|
55
|
-
|
56
49
|
export/conversion to formats such as YAML, JSON, CSL, and XML (BibTeXML).
|
57
|
-
|
58
|
-
'
|
59
50
|
email:
|
60
51
|
- sylvester@keil.or.at
|
61
52
|
executables: []
|
@@ -152,12 +143,12 @@ require_paths:
|
|
152
143
|
- lib
|
153
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
154
145
|
requirements:
|
155
|
-
- -
|
146
|
+
- - '>='
|
156
147
|
- !ruby/object:Gem::Version
|
157
148
|
version: '0'
|
158
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
150
|
requirements:
|
160
|
-
- -
|
151
|
+
- - '>='
|
161
152
|
- !ruby/object:Gem::Version
|
162
153
|
version: '0'
|
163
154
|
requirements: []
|