bibtex-ruby 4.0.11 → 4.0.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76f5ebf60a508b2bc3ab7e389c3e0bb4652d71ac
4
- data.tar.gz: 913081ea38244441ebba453b7aa9dfb8dcdf6cc8
3
+ metadata.gz: 193e1afdfe2905c10d18877578fdbfe4ace343f2
4
+ data.tar.gz: 52d755738c0cb14eb5436c44697dc254d20aa8a3
5
5
  SHA512:
6
- metadata.gz: 0ee938d5a946519323900e97c735332dbdc84f556d54fe049f01397c69493d1b83eb11e6ec1e4b26509c0c8b01e69c3ce0f75837e621cf638ecfaca5ff2b06c2
7
- data.tar.gz: 634d2c070ee0aa37d298f1dab46b19e38ec981d18531c0afe9542a30c43a007611980b632dad0bcddb7007114351e34ab0a973c170ae3ee1e631923f50c5b839
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-2014 [Sylvester Keil](http://sylvester.keil.or.at/).
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.
@@ -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
@@ -20,7 +20,7 @@ module BibTeX
20
20
  module Version
21
21
  MAJOR = 4
22
22
  MINOR = 0
23
- PATCH = 11
23
+ PATCH = 12
24
24
  BUILD = nil
25
25
 
26
26
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').freeze
@@ -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.11
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-02 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: latex-decode