arxiv-references 0.1.6.3 → 0.1.6.4

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: 6e9314573122e17ede0530dbbfb6c12599526085
4
- data.tar.gz: dc3129175065834f39682acc58a32d63c092cda2
3
+ metadata.gz: 8f39df63d168c8f92be4034e0e2d7e67a20e701d
4
+ data.tar.gz: 7c457c050423bf19f0abd6b9669e723a47ae5ed7
5
5
  SHA512:
6
- metadata.gz: 73c92ba3cc2b22cf0dab570d3775c99be80953ab91e1d8a08b04ac2d39c55bd001da2168a67601eb11d4ef296903c78e51c6c67afa62dd68fc1d869f3f1da719
7
- data.tar.gz: 097321f66ddf807169960b10ade15e3bbe75b22ae1a7e3c6606c1aef1637728d6f5941a3977a00e5fb156f34ca454f6074bb2dfafc43639873b5fd56a9b8d4fd
6
+ metadata.gz: a7dc8619ad7f4830c2b41c8e34c5b6e21005afcf0fe1fa074269850d982d8b01b951ee8e097a433c6a9507e4dcfa6b0f4b0f2af32901de971fd98a8c642d43f8
7
+ data.tar.gz: 87254f5cf20ed7e64b2a67479ac37ce4b50c091b778b11dc933fd6bba884b7852a4f51506320f9ca8afb095b7c0c7447b50005c70518331dfb6c44d3c5c9bf7b
data/README.md CHANGED
@@ -6,11 +6,20 @@
6
6
 
7
7
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/arxiv/references`. To experiment with that code, run `bin/console` for an interactive prompt.
8
8
 
9
- TODO: Delete this and the text above, and describe your gem
9
+ ## Dependencies
10
+
11
+ - k2pdfopt (http://www.willus.com/k2pdfopt/)
10
12
 
11
13
  ## Installation
12
14
 
13
- Add this line to your application's Gemfile:
15
+ ### Install k2pdfopt
16
+
17
+ 1. Access [this url](http://www.willus.com/k2pdfopt/download/)
18
+ 2. Select version by OS and 32/64 bit and put CAPTHA
19
+ 3. Move to `/usr/local/bin`
20
+ 4. Confirm to use `k2pdfopt` command
21
+
22
+ ### Install arxiv-references
14
23
 
15
24
  ```ruby
16
25
  gem 'arxiv-references'
@@ -26,7 +35,19 @@ Or install it yourself as:
26
35
 
27
36
  ## Usage
28
37
 
29
- TODO: Write usage instructions here
38
+ ### fetch paper information from arxiv url
39
+ `arxiv-ref url <arxivurl>`
40
+
41
+ ### fetch paper information from arxiv ID
42
+ `arxiv-ref id <arxivid>`
43
+
44
+ ### fetch paper citation list from PDF URL
45
+ `arxiv-ref pdfurl <pdfurl>`
46
+
47
+ ### Options
48
+ --work_dir : [default: /tmp] working directory to convert multi column pdf to one column
49
+ --use_dir : [default: true] create working directory or not
50
+
30
51
 
31
52
  ## Development
32
53
 
@@ -39,7 +39,7 @@ module ArxivUtil
39
39
  end
40
40
  end
41
41
 
42
- def removeFile(id, work_dir)
42
+ def self.removeFile(id, work_dir)
43
43
  File.delete("#{work_dir}/#{id}-output.pdf")
44
44
  File.delete("#{work_dir}/#{id}-output_k2opt.pdf")
45
45
  end
@@ -133,9 +133,9 @@ module ArxivUtil
133
133
  executed_pdf = convertSingleColPdf(job_id, work_dir, file_name, use_dir)
134
134
  references = fetchReference(executed_pdf)
135
135
  if use_dir
136
- removeDir(job_id, work_dir)
136
+ removeDir(job_id, work_dir)
137
137
  else
138
- removeFile(job_id, work_dir)
138
+ removeFile(job_id, work_dir)
139
139
  end
140
140
  return references
141
141
  end
@@ -1,5 +1,5 @@
1
1
  module Arxiv
2
2
  module References
3
- VERSION = "0.1.6.3"
3
+ VERSION = "0.1.6.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.6.3
4
+ version: 0.1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Nishimura