arxiv-references 0.1.7.1 → 0.1.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41b13e1de94b5b60ded925f2621f87e881262b5b
4
- data.tar.gz: 70882f9a8f74f0c8c549f23bd9c284fc0b24458e
3
+ metadata.gz: bb581758f88e406a624f1dae98870494eaea6714
4
+ data.tar.gz: 74f0964fb8e44e7d05a1cf5ffdb3628cba85c115
5
5
  SHA512:
6
- metadata.gz: 8439088f8eb532a5b9c0f092db5e0c918e2c49929669c6cbe8b8592b32ac88e7b63e515acac7c7cef099f7b51c09e6b7f959dd6247d39b54308805a38f572265
7
- data.tar.gz: 9434188bcd8afa713bdc2384bb6c77af5f00ef6c9a06aeabf6f6915e48c35272f5e4f89a8a6159772f052a6487f94642eeb833913817eaec761ee29b3d9119ac
6
+ metadata.gz: 74492073e8e5ef76774e365b8bfe429e0c373f4a236b9200bddddaa7b63a0489ecc3fa4fd3bc88cc8956b4df6a70e81cef39776a30a3fba047b5bea9d6c8a7d5
7
+ data.tar.gz: 91c8231fb8dbadcd69f008ae6800b0306bfb6edfbf968a24b9d4a1d21e0eee28fee89dfd73b6c06665eb23f7f1f058a543fc151b2a52f911961e45c7874094af
@@ -7,7 +7,7 @@ require 'pdf-reader'
7
7
 
8
8
  class P3
9
9
  BASE_URL = "https://arxiv.org"
10
- REFERENCE_START_REGEXP = Regexp.new('[rR][eE][fF][eE][rR][eE][nN][cC][eE][sS]*')
10
+ REFERENCE_START_REGEXP = Regexp.new('\n*[rR][eE][fF][eE][rR][eE][nN][cC][eE][sS]?( +|\n+)?$')
11
11
  REFERENCE_REGEXP = Regexp.new('(\[[0-9]?[0-9]\]|\[.+?\])')
12
12
  def self.makeId
13
13
  return Digest::SHA256.hexdigest Time.now.strftime("%F %H:%M:%S")
@@ -84,7 +84,9 @@ class P3
84
84
  }.
85
85
  map{|i|
86
86
  i.text.gsub(/\n\n+/,"\n").gsub(/ +/,' ').gsub(/-\n +/,'')
87
- }.
87
+ }
88
+ ref_page.shift
89
+ ref_page.
88
90
  join(' ').
89
91
  split("\n").
90
92
  join(' ').
@@ -1,5 +1,5 @@
1
1
  module Arxiv
2
2
  module References
3
- VERSION = "0.1.7.1"
3
+ VERSION = "0.1.7.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arxiv-references
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7.1
4
+ version: 0.1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Nishimura