bibtex-ruby 4.1.1 → 4.1.2

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: 0c849b77b689aae1645cf4272e18559a1ef9c76a
4
- data.tar.gz: 12de96d63a50e28d2ec906deddefaa673b6206aa
3
+ metadata.gz: 493892cd2926b9001858c30bf87b22ae0c70e54a
4
+ data.tar.gz: 4aa0f1963c7cb1e2b6a18613cf852776cf0578c7
5
5
  SHA512:
6
- metadata.gz: 2e0412fdc08929e177c422f48b2c711c61cb458c9beb57cba535dabb83b6de8ddb68becb4b616eca2b690c83227e6a5ec1294d26b3534e7b5f5c47f61088dcbe
7
- data.tar.gz: 98f7d60e54b71017c8fa1993f70d31487e060df98043bf2adc17cd852c5aed4ca8158234e0ba8bc1f0e69e33021ab78659106b4e05be4c68764871f379117792
6
+ metadata.gz: d744fee3c8d7070b5e4ed3ccc74e32d0643f0bbff286d82bcf803c6564a95a3fc0915233ec2928e55e7d4df4b22a90501479fd1299c9e080c5795f5df09dfdb5
7
+ data.tar.gz: 3012ca5cb9bca10bba48e28e03b164243de2f3722010230aa030a3a15da797eefc43a46deee28542cd4dc87a55b51b490328b62491da83f36ddff90d41bdcd57
@@ -30,8 +30,11 @@ module BibTeX
30
30
  # Parses the given string and returns a corresponding +Bibliography+ object.
31
31
  # Delegates to BibTeX.open if the string is a filename or URI.
32
32
  def parse(string, options = {}, &block)
33
- if File.exists?(string) || string =~ /^[a-z]+:\/\//i
33
+ case
34
+ when string.length < 260 && File.exists?(string)
34
35
  Bibliography.open(string, options, &block)
36
+ when string =~ /^[a-z]+:\/\//i
37
+ Bibliography.open(string, options)
35
38
  else
36
39
  Bibliography.parse(string, options)
37
40
  end
@@ -20,7 +20,7 @@ module BibTeX
20
20
  module Version
21
21
  MAJOR = 4
22
22
  MINOR = 1
23
- PATCH = 1
23
+ PATCH = 2
24
24
  BUILD = nil
25
25
 
26
26
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').freeze
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.1
4
+ version: 4.1.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: 2016-01-07 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: latex-decode