arxiv-references 0.1.3 → 0.1.4

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: cc144079bbcd717efb9092b4026e4eab97f419da
4
- data.tar.gz: 90bb0a7f3963c88f9926714980c910fed3d6515d
3
+ metadata.gz: 572c835aeb2f46e94a5ef6a14344d1ba5d69cc7b
4
+ data.tar.gz: ac5a480450dd8aaf65b700cacf9d1974498ff99c
5
5
  SHA512:
6
- metadata.gz: beb3a02e93aeb0d74ac71b8489f41a7cc42df7e0377821b6013e8a488e2f20f4b1c51bde565d2573070ac23acd3515353d2a35c7553be5bc40a8a9aba6ea5066
7
- data.tar.gz: 565a37c44a68f19eff150c20df74761a0f413012fcc210edfb5d932148ce84680fa7b0ef61aede2543ff0bb49da4964f1312e64e0f924a868e54fc46b96d54ce
6
+ metadata.gz: 6ca33ba794a7af28fe4504e201dd2d328bb82c524ae892d41057fdb17697981638067518beaef9a0251910bfb3435bf3c8caaa3b51c0b369b551e01b2db3ee37
7
+ data.tar.gz: c3dd5c93e659ccc2e5abee5ab9abab605d7673fb5c914afcebf10be4f8b5186aaacf0cbb427a867d5305597ca4e689ca768e34e29d363910bc9d06397345b6ec
@@ -12,17 +12,17 @@ module ArxivReferences
12
12
  include ArxivUtil
13
13
  desc 'url', 'Extract references from arxiv URL'
14
14
  def url(urlName)
15
- return ArxivUtil.fetchFromUrl(urlName)
15
+ puts ArxivUtil.fetchFromUrl(urlName)
16
16
  end
17
17
 
18
18
  desc 'id', 'Extract references from Arxiv id'
19
19
  def arxivid(idName)
20
- return ArxivUtil.fetchFromArxivId(idName)
20
+ puts ArxivUtil.fetchFromArxivId(idName)
21
21
  end
22
22
 
23
23
  desc 'pdfurl', 'Extract references from pdf URL'
24
24
  def pdfurl(pdfUrlName)
25
- return ArxivUtil.fetchFromPdfUrl(pdfUrlName)
25
+ puts ArxivUtil.fetchFromPdfUrl(pdfUrlName)
26
26
  end
27
27
  end
28
28
  end
@@ -47,7 +47,7 @@ module ArxivUtil
47
47
  result[:abstruct] = page.xpath('//*[@id="abs"]/div[2]/blockquote').text
48
48
  result[:pdfurl] = "#{BASE_URL}#{page.xpath('//*[@id="abs"]/div[1]/div[1]/ul/li[1]/a').attr('href').value}"
49
49
  result[:references] = fetchFromPdfUrl(result[:pdfurl])
50
- puts result.to_json
50
+ return result.to_json
51
51
  end
52
52
 
53
53
  def self.fetchFromArxivId(id)
@@ -1,5 +1,5 @@
1
1
  module Arxiv
2
2
  module References
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Nishimura