anystyle-parser 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20d31621ec92136f894c1a46c9058f3b6adb8266
|
4
|
+
data.tar.gz: 4aa2e9347f869c39c315bfe55ca566b9e3b6c958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1e9b5e2f43695d29f6557135ad5411ffe73c99e6efe13016d25007305eefc1c519f19474d51df6f6d6f6ac7c618f85df6c50e61f2fc7876162c9597306cfd6d
|
7
|
+
data.tar.gz: 04dfcae7318130d1e3103ecef15b542d492cbe32acefc69853a1b1bcf2cf81b19a268c21103c3559d8da530be3f28dc12551663b797c98ac786abb5ca1f7d03a
|
@@ -139,6 +139,13 @@ module Anystyle
|
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
142
|
+
describe 'normalize citation numbers' do
|
143
|
+
it 'extracts simple and compund numbers' do
|
144
|
+
expect(n.normalize_citation_number(:citation_number => '[42]')).to eq({ :citation_number => '42' })
|
145
|
+
expect(n.normalize_citation_number(:citation_number => '[1b]')).to eq({ :citation_number => '1b' })
|
146
|
+
expect(n.normalize_citation_number(:citation_number => '[1.1.4.1]')).to eq({ :citation_number => '1.1.4.1' })
|
147
|
+
end
|
148
|
+
end
|
142
149
|
describe 'URL extraction' do
|
143
150
|
it 'recognizes full URLs' do
|
144
151
|
expect(n.normalize_url(:url => 'Available at: https://www.example.org/x.pdf')).to eq({ :url => 'https://www.example.org/x.pdf' })
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anystyle-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bibtex-ruby
|