arxiv 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/arxiv.gemspec +1 -1
- data/lib/arxiv.rb +1 -1
- data/lib/arxiv/version.rb +1 -1
- data/spec/arxiv/arxiv_spec.rb +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e07cf7bce3b92eb95c6510ea1c3c1b931010765
|
4
|
+
data.tar.gz: 3af979e095e7f959c4821e7ed0b4a495cb3d5aa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df65f48d872d436b51fa5c655a31b0dcd6e4a5c0da57427639ab3f594f5fccebba3318d6a5d206bd1486e704d6060293a4e6e87986f3f10404e683920be226cd
|
7
|
+
data.tar.gz: d67560c7b45abc2fdb04446ca3f4ae12565180865d113e1f65dccc11b984c33209cea35317d3cc91d0202d97bd1c9698251f4bb393e7d37fffd11304d79e7c33
|
data/arxiv.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.email = ["coryschires@gmail.com"]
|
10
10
|
s.homepage = "https://github.com/scholastica/arxiv"
|
11
11
|
s.summary = "Ruby wrapper accessing the arXiv API"
|
12
|
-
s.description = "
|
12
|
+
s.description = "Easily access arXiv article info – including authors, categories, links, etc."
|
13
13
|
s.licenses = ['MIT']
|
14
14
|
s.rubyforge_project = "arxiv"
|
15
15
|
|
data/lib/arxiv.rb
CHANGED
@@ -25,7 +25,7 @@ module Arxiv
|
|
25
25
|
# These constants help us deal with both use cases.
|
26
26
|
#
|
27
27
|
LEGACY_URL_FORMAT = /[^\/]+\/\d+(?:v\d+)?$/
|
28
|
-
CURRENT_URL_FORMAT = /\d{4}\.\d{4}(?:v\d+)?$/
|
28
|
+
CURRENT_URL_FORMAT = /\d{4,}\.\d{4,}(?:v\d+)?$/
|
29
29
|
|
30
30
|
LEGACY_ID_FORMAT = /^#{LEGACY_URL_FORMAT}/
|
31
31
|
ID_FORMAT = /^#{CURRENT_URL_FORMAT}/
|
data/lib/arxiv/version.rb
CHANGED
data/spec/arxiv/arxiv_spec.rb
CHANGED
@@ -20,6 +20,10 @@ module Arxiv
|
|
20
20
|
it "should fetch a manuscript when passed full URL" do
|
21
21
|
expect(Arxiv.get('http://arxiv.org/abs/1202.0819')).to fetch("Laser frequency comb techniques for precise astronomical spectroscopy")
|
22
22
|
end
|
23
|
+
|
24
|
+
it "should fetch a manuscript when passed an id with more than 4 digits" do
|
25
|
+
expect(Arxiv.get('1509.06369')).to fetch("Tidal debris morphology and the orbits of satellite galaxies")
|
26
|
+
end
|
23
27
|
end
|
24
28
|
|
25
29
|
context "when using the legacy arXiv id format" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arxiv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scholastica
|
@@ -78,7 +78,8 @@ dependencies:
|
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
|
-
description:
|
81
|
+
description: Easily access arXiv article info – including authors, categories, links,
|
82
|
+
etc.
|
82
83
|
email:
|
83
84
|
- coryschires@gmail.com
|
84
85
|
executables: []
|