bibtex-ruby 4.0.11 → 4.0.12
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 +4 -4
- data/README.md +1 -1
- data/lib/bibtex/bibliography.rb +1 -1
- data/lib/bibtex/version.rb +1 -1
- data/test/bibtex/test_bibliography.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 193e1afdfe2905c10d18877578fdbfe4ace343f2
|
4
|
+
data.tar.gz: 52d755738c0cb14eb5436c44697dc254d20aa8a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f6d3f79a8ae3cdb1c7524cb85e8607435c3e4c4828d3e8db3d0afba73a6af86c34c91817fa7b7c106390f12f61361d30a624cb1c44a5eabf9d3ea88c04515cf
|
7
|
+
data.tar.gz: 090891732f9682fa2f53f81b35f237625fa0d588136f4ea5f9b45e67d9d5d44c3ecd6ad5081a0afccc0b85395384d1adc90fa9442d5a67530ea19de9fa64cd70
|
data/README.md
CHANGED
@@ -592,7 +592,7 @@ To execute the test suite continuously while you're working run:
|
|
592
592
|
Credits
|
593
593
|
-------
|
594
594
|
|
595
|
-
Copyright 2011-
|
595
|
+
Copyright 2011-2015 [Sylvester Keil](http://sylvester.keil.or.at/).
|
596
596
|
|
597
597
|
Kudos to all [contributors](https://github.com/inukshuk/bibtex-ruby/contributors)
|
598
598
|
who have made BibTeX-Ruby possible.
|
data/lib/bibtex/bibliography.rb
CHANGED
@@ -118,7 +118,7 @@ module BibTeX
|
|
118
118
|
# Adds a new element, or a list of new elements to the bibliography.
|
119
119
|
# Returns the Bibliography for chainability.
|
120
120
|
def add(*arguments)
|
121
|
-
Element.parse(arguments.flatten).each do |element|
|
121
|
+
Element.parse(arguments.flatten, @options).each do |element|
|
122
122
|
data << element.added_to_bibliography(self)
|
123
123
|
end
|
124
124
|
self
|
data/lib/bibtex/version.rb
CHANGED
@@ -417,6 +417,15 @@ module BibTeX
|
|
417
417
|
end
|
418
418
|
end
|
419
419
|
|
420
|
+
describe '#add' do
|
421
|
+
before do
|
422
|
+
@bib = Bibliography.new(allow_missing_keys: true)
|
423
|
+
end
|
420
424
|
|
425
|
+
it 'should respect options provided to initializer' do
|
426
|
+
assert_equal(@bib.add('@article{, title = test}'), @bib)
|
427
|
+
assert(! @bib.entries.keys.any?(&:empty?))
|
428
|
+
end
|
429
|
+
end
|
421
430
|
end
|
422
431
|
end
|
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.0.
|
4
|
+
version: 4.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: latex-decode
|