dblpbib 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/dblpbib +5 -1
  3. data/lib/dblpbib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b3810efcf6713bb0758cd8ac3c4c690bbb2c9da
4
- data.tar.gz: c25c316ddb0acd1be78fe5ad897a43ea475c5b8a
3
+ metadata.gz: 1c64fe42d8ab66c81dd9ebf5e80872f795952a78
4
+ data.tar.gz: 9bf6a593a2e3bda4fc653f28988f366cab5b37a8
5
5
  SHA512:
6
- metadata.gz: 6774a385b121321264f009dc9585fee7624bab25b0e21634aa9ca58bac6bbe8788fa0a5d6cded650eba6ee72b8adfd6d111ffd5b5bf4edb7caff0346fc665e3a
7
- data.tar.gz: db38a89cf9a1b90880ef4137a1c01bf033d393b0ab84d58e40296bb1abfa404861d7d6cbab5c0714f608a37191ea284a8e6e6e5c6727e0d72454ef88ddedf088
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\{DBLP:([^}]+)\}/).map(&:pop)
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)
@@ -1,4 +1,4 @@
1
1
  module Dblpbib
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  DESCRIPTION = %q{Automatically create bibliographies for BibTeX DBLP references.}
4
4
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2016-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler