dblpbib 0.1.3 → 0.1.4

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 +3 -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: de9782ad64b122e010b730572dfa1b1bd968b5bf
4
- data.tar.gz: 38f0decbd0c83c71ded1597070688cccd797d82d
3
+ metadata.gz: b9574a9b285b189b2325b1ea85bf16c1bbd485b9
4
+ data.tar.gz: 749a0bb9261662d2db0e1ed210b17332514a235e
5
5
  SHA512:
6
- metadata.gz: d4344dbc372db6854ae2a17dfaccce6f64a82f57a4a92f089e21649bc0b801247b9e5a14bdb56049f8e831d40beba45ff128aebccc5a69fe8f889cdecf8825db
7
- data.tar.gz: 7a7058e8fe6538ba1be4c95989500e16d57058c51e9b9cf3aeef9baf4f1bcd53815a1b16a019ef847f4c591d1fe10997b935a4ed880ed68daa71f644d0424063
6
+ metadata.gz: 7c2ab77224f09418047f289826752546e03cbb80b5204de908fffb9bbe6e3478e624991ad5fb383b7403ed6430320942d6be8d7720e50b87f8b1b33bb6af062e
7
+ data.tar.gz: 97e5a28ffac6ad76ccfe9c788f9d2726121f6f6f8efdf5e595fdf95a4bb75cb30e529e04fa05e0f970d9d3ca15394519b43d09ab932b8ccca1ed537b3e21f862
data/exe/dblpbib CHANGED
@@ -22,7 +22,9 @@ class DBLPCLI
22
22
  end
23
23
 
24
24
  def get_keys(file)
25
- IO.read(file).scan(/\\cite(\[.+\])?\{([^}]+)\}/)
25
+ IO.read(file)
26
+ .gsub(/%.*$/, '')
27
+ .scan(/\\cite(\[.+\])?\{([^}]+)\}/)
26
28
  .map(&:pop)
27
29
  .flat_map { |keyset| keyset.split(',') }
28
30
  .map(&:strip)
@@ -1,4 +1,4 @@
1
1
  module Dblpbib
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
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-02 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler