bibtex-ruby 4.1.2 → 4.2.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 493892cd2926b9001858c30bf87b22ae0c70e54a
4
- data.tar.gz: 4aa0f1963c7cb1e2b6a18613cf852776cf0578c7
3
+ metadata.gz: 33d559b0ddd777368b60195ead0815128063bdbc
4
+ data.tar.gz: 9838ee28c0c7abc8dfd34e40b2b23b16a98f5672
5
5
  SHA512:
6
- metadata.gz: d744fee3c8d7070b5e4ed3ccc74e32d0643f0bbff286d82bcf803c6564a95a3fc0915233ec2928e55e7d4df4b22a90501479fd1299c9e080c5795f5df09dfdb5
7
- data.tar.gz: 3012ca5cb9bca10bba48e28e03b164243de2f3722010230aa030a3a15da797eefc43a46deee28542cd4dc87a55b51b490328b62491da83f36ddff90d41bdcd57
6
+ metadata.gz: c6cd94a82ad9668c2d7272727a67161c8f6d29d94cf1f579eeb30fbb2811d5735d884d8f64015fcf201ad7ec678332d98df66d6d327a8f52e619f3b331fbf996
7
+ data.tar.gz: 17c9a94681c74cdfdc260e6592685244372a9947645ff0e2c88a6d2127d6d526aa88c44d354002fd11d700acec8c1c5438ed4830a64861e34baf96afc7b5f6d6
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 4.2.0 / 2015-02-02
2
+ ==================
3
+ * Fixed queries being whitespace sensitive
4
+
1
5
  4.0.9 / 2015-01-20
2
6
  ==================
3
7
  * Improve BibTeX::Value comparison
@@ -196,6 +196,9 @@ module BibTeX
196
196
  if property.nil?
197
197
  true
198
198
  else
199
+ property.strip!
200
+ value.strip! unless value.nil?
201
+
199
202
  if operator.nil? && value.nil?
200
203
  respond_to?(:provides?) && provides?(property)
201
204
  else
@@ -19,8 +19,8 @@
19
19
  module BibTeX
20
20
  module Version
21
21
  MAJOR = 4
22
- MINOR = 1
23
- PATCH = 2
22
+ MINOR = 2
23
+ PATCH = 0
24
24
  BUILD = nil
25
25
 
26
26
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').freeze
@@ -200,6 +200,9 @@ module BibTeX
200
200
 
201
201
  it 'supports queries by type string and conditions' do
202
202
  assert_equal 1, @bib['@book[keywords=ruby]'].length
203
+ assert_equal 1, @bib['@book[keywords = ruby]'].length
204
+ assert_equal 1, @bib['@book[ keywords = ruby]'].length
205
+ assert_equal 1, @bib['@book[keywords=ruby ]'].length
203
206
  assert_equal 1, @bib['@*[type=interview]'].length
204
207
  end
205
208
 
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.1.2
4
+ version: 4.2.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: 2016-01-08 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: latex-decode