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 CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OGNlNGUzYjY1OWM2NDAxNDFkMTk0ZjkxMzY0NzQ4ZTRlNWM1YzZmMA==
5
- data.tar.gz: !binary |-
6
- YmI4MjQxZWUwYmYzZDZjZDk0YTIxNzg1YjA5NTU2M2RmM2YzMTIzOA==
7
- !binary "U0hBNTEy":
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
- gem 'minitest-colorize'
13
+ gem 'minitest', '~>4.0'
14
+ gem 'minitest-colorize'
15
15
  gem 'cucumber', ['~>1.0']
16
- gem 'unicode', :platforms => [:mri, :rbx, :mswin, :mingw]
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.1)
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.3)
12
- builder (3.2.0)
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.3)
15
+ cucumber (1.3.2)
16
16
  builder (>= 2.1.2)
17
17
  diff-lcs (>= 1.1.3)
18
- gherkin (~> 2.11.6)
18
+ gherkin (~> 2.12.0)
19
19
  multi_json (~> 1.3)
20
- debugger (1.5.0)
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.0)
23
+ debugger-ruby_core_source (~> 1.2.1)
24
24
  debugger-linecache (1.2.0)
25
- debugger-ruby_core_source (1.2.0)
26
- diff-lcs (1.2.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.11.7)
29
+ gherkin (2.12.0)
29
30
  multi_json (~> 1.3)
30
31
  gnuplot (2.6.2)
31
- guard (1.7.0)
32
+ guard (1.8.0)
32
33
  formatador (>= 0.2.4)
33
- listen (>= 0.6.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.0)
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 (0.7.3)
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.7.0)
53
+ minitest (4.4.0)
50
54
  minitest-colorize (0.0.5)
51
55
  minitest (>= 2.0)
52
- multi_json (1.7.2)
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.2.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.4)
82
+ slop (3.4.5)
75
83
  thor (0.18.1)
76
84
  unicode (0.4.4)
77
- yard (0.8.5.2)
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
@@ -11,8 +11,8 @@ rescue LoadError
11
11
  end
12
12
 
13
13
  require 'bibtex'
14
- require 'minitest/unit'
14
+ require 'minitest/autorun'
15
15
 
16
16
  World do
17
- extend MiniTest::Assertions
17
+ extend Minitest::Assertions
18
18
  end
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 \/:_!$\?\.%&\*-]+,/io,
63
- :optional_key => /\s*[[:alpha:]\d \/:_!$\?\.%&\*-]*,/io
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({
@@ -20,7 +20,7 @@ module BibTeX
20
20
  module Version
21
21
  MAJOR = 2
22
22
  MINOR = 3
23
- PATCH = 1
23
+ PATCH = 2
24
24
  BUILD = nil
25
25
 
26
26
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').freeze
@@ -4,7 +4,7 @@ require 'helper'
4
4
 
5
5
  module BibTeX
6
6
 
7
- class BibliographyTest < MiniTest::Spec
7
+ class BibliographyTest < Minitest::Spec
8
8
 
9
9
  describe 'when newly created' do
10
10
  it 'should not be nil' do
@@ -2,7 +2,7 @@ require 'helper'
2
2
 
3
3
  module BibTeX
4
4
 
5
- class ElementTest < MiniTest::Spec
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 < MiniTest::Spec
29
+ class PreambleTest < Minitest::Spec
30
30
 
31
31
  describe 'a new preamble instance' do
32
32
  before do
@@ -3,7 +3,7 @@
3
3
  require 'helper.rb'
4
4
 
5
5
  module BibTeX
6
- class EntryTest < MiniTest::Spec
6
+ class EntryTest < Minitest::Spec
7
7
 
8
8
  describe 'a new entry' do
9
9
  it "won't be nil" do
@@ -1,7 +1,7 @@
1
1
  require 'helper.rb'
2
2
 
3
3
  module BibTeX
4
- class FiltersTest < MiniTest::Spec
4
+ class FiltersTest < Minitest::Spec
5
5
 
6
6
  it "should Filters should be singleton classes" do
7
7
  assert_equal false, Filter.respond_to?(:new)
@@ -1,7 +1,7 @@
1
1
  require 'helper.rb'
2
2
 
3
3
  module BibTeX
4
- class LexerTest < MiniTest::Spec
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]
@@ -1,7 +1,7 @@
1
1
  require 'helper'
2
2
 
3
3
  module BibTeX
4
- class NameParserTest < MiniTest::Spec
4
+ class NameParserTest < Minitest::Spec
5
5
 
6
6
  describe "parse a number of entries having a 'van' or 'van den' name prefix" do
7
7
  before do
@@ -3,7 +3,7 @@
3
3
  require 'helper'
4
4
 
5
5
  module BibTeX
6
- class NamesTest < MiniTest::Spec
6
+ class NamesTest < Minitest::Spec
7
7
 
8
8
  before do
9
9
  @poe = Name.new(:first => 'Edgar Allen', :last => 'Poe')
@@ -1,7 +1,7 @@
1
1
  require 'helper.rb'
2
2
 
3
3
  module BibTeX
4
- class ParserTest < MiniTest::Spec
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
@@ -1,7 +1,7 @@
1
1
  require 'helper.rb'
2
2
 
3
3
  module BibTeX
4
- class StringTest < MiniTest::Spec
4
+ class StringTest < Minitest::Spec
5
5
 
6
6
  describe 'when parsing a simple string' do
7
7
  before do
@@ -2,7 +2,7 @@ require 'helper.rb'
2
2
 
3
3
  module BibTeX
4
4
 
5
- class TestBibtex < MiniTest::Unit::TestCase
5
+ class TestBibtex < Minitest::Unit::TestCase
6
6
 
7
7
  def test_empty?
8
8
  assert BibTeX.open(Test.fixtures(:empty)).empty?
@@ -1,7 +1,7 @@
1
1
  require 'helper.rb'
2
2
 
3
3
  module BibTeX
4
- class ValueTest < MiniTest::Spec
4
+ class ValueTest < Minitest::Spec
5
5
 
6
6
  describe "::create" do
7
7
  it "should return a duplicate when called with a Value subclass" do
@@ -22,4 +22,3 @@
22
22
  @commentary{staudinger,
23
23
  editor = {Staudinger, Julius von}
24
24
  }
25
-
data/test/test_bibtex.rb CHANGED
@@ -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::Unit::TestCase
5
5
 
6
6
  def setup
7
7
  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::Unit::TestCase
7
7
 
8
8
  # def test_yaml_roundtrip
9
9
  # b1 = BibTeX.open(Test.fixtures(:bibdesk))
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.1
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-04-07 00:00:00.000000000 Z
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: ! 'BibTeX-Ruby is the Rubyist''s swiss-army-knife for all things BibTeX.
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: []