dblpbib 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/dblpbib +5 -1
- data/lib/dblpbib/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: 1c64fe42d8ab66c81dd9ebf5e80872f795952a78
|
4
|
+
data.tar.gz: 9bf6a593a2e3bda4fc653f28988f366cab5b37a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3047826951687c5bbd95f6a1d1b3d1e9643c61c0a4065bafaab430363ecb31bd27ec541b31f83c9dc30308abcf621a6ea3cc21597bdab853c71d10e4fbe2f05c
|
7
|
+
data.tar.gz: 2c226587e17ac44f69af2bdf5bdbaf6d4ef4542924a9c9173a62ad9e54af8196ebc29e0ed29faf644e962a2b96f796febb9fd45ef1062057317d9fba274ce800
|
data/exe/dblpbib
CHANGED
@@ -22,7 +22,10 @@ class DBLPCLI
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def get_keys(file)
|
25
|
-
IO.read(file).scan(/\\cite\{
|
25
|
+
IO.read(file).scan(/\\cite(\[.+\])?\{([^}]+)\}/)
|
26
|
+
.map(&:pop)
|
27
|
+
.flat_map { |keyset| keyset.split(',') }
|
28
|
+
.map(&:strip)
|
26
29
|
end
|
27
30
|
|
28
31
|
def bib_path(cache, key)
|
@@ -44,6 +47,7 @@ class DBLPCLI
|
|
44
47
|
FileUtils.mkdir_p(options.cache)
|
45
48
|
|
46
49
|
keys = get_keys(args[0])
|
50
|
+
puts keys.inspect
|
47
51
|
|
48
52
|
keys.each do |key|
|
49
53
|
path = bib_path(options.cache, key)
|
data/lib/dblpbib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dblpbib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PJK
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|