arxiv-references 0.1.7.3 → 0.1.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arxiv/references/P3.rb +6 -2
- data/lib/arxiv/references/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1565bf69f1cd06eb52a452b3e4f518b8c80962e3
|
4
|
+
data.tar.gz: a7ee2b0cc1ce970bc3837f7a637baa64aa381bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3edf4f92b6ce080a4c2b2240765c965e6e2f2344f2864469934ef5663799e42750a2c5d75117f58a6e8a7d025378064bb2a19ed715ff4195e880b6baf4f059
|
7
|
+
data.tar.gz: 98600b69e73d4e6a850b5cdcd1b9ea2804d3a6c4fd9e5df5cfffd12c2cb9f5ec3b07404b72a1f08d4ec67ab4079548ab97fba31cbd334c09cbfa88979e19419e
|
data/lib/arxiv/references/P3.rb
CHANGED
@@ -85,10 +85,14 @@ class P3
|
|
85
85
|
map{|i|
|
86
86
|
i.text.gsub(/\n\n+/,"\n").gsub(/ +/,' ').gsub(/-\n +/,'')
|
87
87
|
}
|
88
|
+
|
88
89
|
ref_page.shift
|
89
|
-
|
90
|
+
|
91
|
+
ref_page = ref_page.
|
90
92
|
join(' ').
|
91
|
-
gsub(REFERENCE_REGEXP,"\n\\1")
|
93
|
+
gsub(REFERENCE_REGEXP,"\n\\1")
|
94
|
+
|
95
|
+
ref_page = ref_page.
|
92
96
|
split(/\n *\n/).
|
93
97
|
map{|i| i.gsub("\n",'')}.
|
94
98
|
select{|i| i.length > 15}
|