arxiv 0.1.0 → 0.1.1

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: 5c8d396083af391c784b03924b84ad9b1ee76f93
4
- data.tar.gz: 816e389a2819e182a87c1209068743bceb5f914e
3
+ metadata.gz: 0e07cf7bce3b92eb95c6510ea1c3c1b931010765
4
+ data.tar.gz: 3af979e095e7f959c4821e7ed0b4a495cb3d5aa3
5
5
  SHA512:
6
- metadata.gz: 5a72dc80bff95dffb1f815d2b3556346c84af70f46e1418dbede48ab743fec96d170168d2334a0775f672f86e0e30bd772676dcee6e19f19a6bb69aba9f5d88c
7
- data.tar.gz: 8da7618e4c119fddce970cde76ca7d3c2e156bc454f65864f8805b2d22a7c9ca0ea3f5d8febfc3bb8964a146a5268e4ada570fc3250c97d85fdc43dec7e00f9a
6
+ metadata.gz: df65f48d872d436b51fa5c655a31b0dcd6e4a5c0da57427639ab3f594f5fccebba3318d6a5d206bd1486e704d6060293a4e6e87986f3f10404e683920be226cd
7
+ data.tar.gz: d67560c7b45abc2fdb04446ca3f4ae12565180865d113e1f65dccc11b984c33209cea35317d3cc91d0202d97bd1c9698251f4bb393e7d37fffd11304d79e7c33
@@ -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 = "Makes interacting with arXiv data really easy."
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
 
@@ -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}/
@@ -1,3 +1,3 @@
1
1
  module Arxiv
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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.0
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: Makes interacting with arXiv data really easy.
81
+ description: Easily access arXiv article info – including authors, categories, links,
82
+ etc.
82
83
  email:
83
84
  - coryschires@gmail.com
84
85
  executables: []