bibtex-ruby 4.1.1 → 4.1.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 +4 -4
- data/lib/bibtex/utilities.rb +4 -1
- data/lib/bibtex/version.rb +1 -1
- 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: 493892cd2926b9001858c30bf87b22ae0c70e54a
|
4
|
+
data.tar.gz: 4aa0f1963c7cb1e2b6a18613cf852776cf0578c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d744fee3c8d7070b5e4ed3ccc74e32d0643f0bbff286d82bcf803c6564a95a3fc0915233ec2928e55e7d4df4b22a90501479fd1299c9e080c5795f5df09dfdb5
|
7
|
+
data.tar.gz: 3012ca5cb9bca10bba48e28e03b164243de2f3722010230aa030a3a15da797eefc43a46deee28542cd4dc87a55b51b490328b62491da83f36ddff90d41bdcd57
|
data/lib/bibtex/utilities.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/bibtex/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: latex-decode
|