extcite 0.3.0 → 0.4.0

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
  SHA256:
3
- metadata.gz: 5518e4750d0c13f8bd9987aa4c5d9abed40bd33e4d7b9cbd31522590a19f1ee8
4
- data.tar.gz: c7aeb0521cdbb2a65f09e5b0f417c934b094c1c0664604b8cef3f39d9b302c1d
3
+ metadata.gz: aedb2053e11dfee6e99e237080e45791f22e80690bc6f09dac86f719cf185df9
4
+ data.tar.gz: 45abbf72681da6fa88bfb0d2ece6e1eaa20fce49cf4a1379d260628e2ce8918e
5
5
  SHA512:
6
- metadata.gz: c2fff8af7cede5dea5104601f5038f5600780a70c11e1303bee4a13798ea97cfd58d0672db7c4fc69739cbda4f5c9f521e96084e5a83b65dd9471ff5470edc25
7
- data.tar.gz: a2e0509de8ea6b18e9a6fd37add4801bce35a7a0246823e572410af5eb43eeb82a986489e6654191c161d0b09d4fa8f50e50b71f1985fe0251c4c121792f1ba5
6
+ metadata.gz: 5c17790f3d77c1acafdb9bce7dd8416c565c6fb03004dac7727d09696abd35f7fa16b14f1b0c502255bd56c41d9e682dbcaeba7f9a99fe8572d03d72d7cb124b
7
+ data.tar.gz: ac80c55ac377a84860aa2728e32bb67a495b1dc35639acc740c000150df46513bd55e2c91cd9d4e73509585bb495e70f191832cb6beba91ad2d407a6e7c3f392
data/.gitignore CHANGED
@@ -17,7 +17,6 @@ build/
17
17
  ## Documentation cache and generated files:
18
18
  /.yardoc/
19
19
  /_yardoc/
20
- /doc/
21
20
  /rdoc/
22
21
 
23
22
  ## Environment normalisation:
@@ -1,3 +1,12 @@
1
+ ## 0.4.0 (2020-04-15)
2
+
3
+ * bump serrano version (#55)
4
+ * bump bibtex-ruby version (#58)
5
+ * bump thor version (#59)
6
+ * bump faraday_middleware version (#60)
7
+ * updated `extract_text_one` method to use `Timeout.timeout` while looping through pages of a PDF to extract text - sometimes `pdf-reader` hangs, so only allow 1 second max before skipping to the next page
8
+ * add error catching to `extract_from_metadata` method for xml parsing of PDF metadata; sometimes PDF metadata is full of non-parseable XML
9
+
1
10
  ## 0.3.0 (2020-04-07)
2
11
 
3
12
  * bump faraday and faraday_middleware versions (#29) (#30)
@@ -1,15 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- extcite (0.3.0)
4
+ extcite (0.4.0)
5
5
  bibtex-ruby (~> 5.0, >= 5.0.1)
6
6
  faraday (>= 0.15, < 1.1)
7
- faraday_middleware (>= 0.12.2, < 0.14.0)
7
+ faraday_middleware (>= 0.12.2, < 1.1.0)
8
8
  oga (>= 2.15, < 4.0)
9
9
  parallel (~> 1.19)
10
10
  pdf-reader (~> 2.4)
11
- serrano (~> 0.5.2)
12
- thor (~> 0.20.3)
11
+ serrano (>= 0.5.2, < 0.7.0)
12
+ thor (>= 0.20.3, < 1.1.0)
13
+ timeout (~> 0.1.0)
13
14
 
14
15
  GEM
15
16
  remote: https://rubygems.org/
@@ -18,7 +19,7 @@ GEM
18
19
  afm (0.2.2)
19
20
  ansi (1.5.0)
20
21
  ast (2.4.0)
21
- bibtex-ruby (5.1.3)
22
+ bibtex-ruby (5.1.4)
22
23
  latex-decode (~> 0.0)
23
24
  codecov (0.1.16)
24
25
  json
@@ -27,7 +28,7 @@ GEM
27
28
  docile (1.3.2)
28
29
  faraday (0.17.3)
29
30
  multipart-post (>= 1.2, < 3)
30
- faraday_middleware (0.13.1)
31
+ faraday_middleware (0.14.0)
31
32
  faraday (>= 0.7.4, < 1.0)
32
33
  hashery (2.1.2)
33
34
  json (2.3.0)
@@ -50,18 +51,19 @@ GEM
50
51
  ansi
51
52
  ast
52
53
  ruby-rc4 (0.1.5)
53
- serrano (0.5.4)
54
- faraday (>= 0.15, < 0.18)
55
- faraday_middleware (>= 0.12.2, < 0.14.0)
54
+ serrano (0.6.0)
55
+ faraday (>= 0.15, < 1.0)
56
+ faraday_middleware (~> 0.14.0)
56
57
  multi_json (~> 1.13, >= 1.13.1)
57
- thor (~> 0.20.0)
58
+ thor (>= 0.20, < 1.1)
58
59
  simplecov (0.18.5)
59
60
  docile (~> 1.1)
60
61
  simplecov-html (~> 0.11)
61
62
  simplecov-html (0.12.2)
62
63
  test-unit (3.3.5)
63
64
  power_assert
64
- thor (0.20.3)
65
+ thor (1.0.1)
66
+ timeout (0.1.0)
65
67
  ttfunk (1.6.2.1)
66
68
  url (0.3.2)
67
69
 
data/README.md CHANGED
@@ -5,7 +5,7 @@ extcite
5
5
  [![Build Status](https://travis-ci.org/sckott/extcite.svg?branch=master)](https://travis-ci.org/sckott/extcite)
6
6
  [![codecov.io](http://codecov.io/github/sckott/extcite/coverage.svg?branch=master)](http://codecov.io/github/sckott/extcite?branch=master)
7
7
 
8
- __`extcite` gets DOIS and generates citations for your papers__
8
+ __`extcite` gets DOIS and generates citations for papers__
9
9
 
10
10
  ## Install
11
11
 
@@ -0,0 +1,205 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Array
8
+
9
+ &mdash; Documentation by YARD 0.9.24
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Array";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (A)</a> &raquo;
40
+
41
+
42
+ <span class="title">Array</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Array
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Array</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/extcite/methods_array.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>Array methods</p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+
113
+ </div>
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ <h2>
122
+ Instance Method Summary
123
+ <small><a href="#" class="summary_toggle">collapse</a></small>
124
+ </h2>
125
+
126
+ <ul class="summary">
127
+
128
+ <li class="public ">
129
+ <span class="summary_signature">
130
+
131
+ <a href="#write_bib-instance_method" title="#write_bib (instance method)">#<strong>write_bib</strong>(file) &#x21d2; Object </a>
132
+
133
+
134
+
135
+ </span>
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ <span class="summary_desc"><div class='inline'></div></span>
146
+
147
+ </li>
148
+
149
+
150
+ </ul>
151
+
152
+
153
+
154
+
155
+ <div id="instance_method_details" class="method_details_list">
156
+ <h2>Instance Method Details</h2>
157
+
158
+
159
+ <div class="method_details first">
160
+ <h3 class="signature first" id="write_bib-instance_method">
161
+
162
+ #<strong>write_bib</strong>(file) &#x21d2; <tt>Object</tt>
163
+
164
+
165
+
166
+
167
+
168
+ </h3><table class="source_code">
169
+ <tr>
170
+ <td>
171
+ <pre class="lines">
172
+
173
+
174
+ 3
175
+ 4
176
+ 5
177
+ 6
178
+ 7</pre>
179
+ </td>
180
+ <td>
181
+ <pre class="code"><span class="info file"># File 'lib/extcite/methods_array.rb', line 3</span>
182
+
183
+ <span class='kw'>def</span> <span class='id identifier rubyid_write_bib'>write_bib</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
184
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>a</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span>
185
+ <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='kw'>self</span>
186
+ <span class='kw'>end</span>
187
+ <span class='kw'>end</span></pre>
188
+ </td>
189
+ </tr>
190
+ </table>
191
+ </div>
192
+
193
+ </div>
194
+
195
+ </div>
196
+
197
+ <div id="footer">
198
+ Generated on Wed Apr 15 16:00:31 2020 by
199
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
200
+ 0.9.24 (ruby-2.7.1).
201
+ </div>
202
+
203
+ </div>
204
+ </body>
205
+ </html>
@@ -0,0 +1,296 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: Configuration
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!Configuration.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (C)</a> &raquo;
35
+
36
+
37
+ <span class="title">Configuration</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: Configuration
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+ <dt class="r1">Included in:</dt>
81
+ <dd class="r1"><span class='object_link'><a href="Textminer.html" title="Textminer (module)">Textminer</a></span></dd>
82
+
83
+
84
+
85
+ <dt class="r2 last">Defined in:</dt>
86
+ <dd class="r2 last">lib/textminer/helpers/configuration.rb</dd>
87
+
88
+ </dl>
89
+ <div class="clear"></div>
90
+
91
+ <h2>Overview</h2><div class="docstring">
92
+ <div class="discussion">
93
+
94
+ <p>taken from: <a
95
+ href="https://viget.com/extend/easy-gem-configuration-variables-with-defaults">viget.com/extend/easy-gem-configuration-variables-with-defaults</a></p>
96
+
97
+
98
+ </div>
99
+ </div>
100
+ <div class="tags">
101
+
102
+
103
+ </div>
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+ <h2>
112
+ Instance Method Summary
113
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
114
+ </h2>
115
+
116
+ <ul class="summary">
117
+
118
+ <li class="public ">
119
+ <span class="summary_signature">
120
+
121
+ <a href="#configuration-instance_method" title="#configuration (instance method)">- (Object) <strong>configuration</strong> {|_self| ... }</a>
122
+
123
+
124
+
125
+ </span>
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <span class="summary_desc"><div class='inline'></div></span>
136
+
137
+ </li>
138
+
139
+
140
+ <li class="public ">
141
+ <span class="summary_signature">
142
+
143
+ <a href="#define_setting-instance_method" title="#define_setting (instance method)">- (Object) <strong>define_setting</strong>(name, default = nil) </a>
144
+
145
+
146
+
147
+ </span>
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+ <span class="summary_desc"><div class='inline'></div></span>
158
+
159
+ </li>
160
+
161
+
162
+ </ul>
163
+
164
+
165
+
166
+
167
+ <div id="instance_method_details" class="method_details_list">
168
+ <h2>Instance Method Details</h2>
169
+
170
+
171
+ <div class="method_details first">
172
+ <h3 class="signature first" id="configuration-instance_method">
173
+
174
+ - (<tt>Object</tt>) <strong>configuration</strong> {|_self| ... }
175
+
176
+
177
+
178
+
179
+
180
+ </h3><div class="docstring">
181
+ <div class="discussion">
182
+
183
+
184
+ </div>
185
+ </div>
186
+ <div class="tags">
187
+
188
+ <p class="tag_title">Yields:</p>
189
+ <ul class="yield">
190
+
191
+ <li>
192
+
193
+
194
+ <span class='type'>(<tt>_self</tt>)</span>
195
+
196
+
197
+
198
+ </li>
199
+
200
+ </ul>
201
+ <p class="tag_title">Yield Parameters:</p>
202
+ <ul class="yieldparam">
203
+
204
+ <li>
205
+
206
+ <span class='name'>_self</span>
207
+
208
+
209
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Configuration (module)">Configuration</a></span></tt>)</span>
210
+
211
+
212
+
213
+ &mdash;
214
+ <div class='inline'>
215
+ <p>the object that the method was called on</p>
216
+ </div>
217
+
218
+ </li>
219
+
220
+ </ul>
221
+
222
+ </div><table class="source_code">
223
+ <tr>
224
+ <td>
225
+ <pre class="lines">
226
+
227
+
228
+ 4
229
+ 5
230
+ 6</pre>
231
+ </td>
232
+ <td>
233
+ <pre class="code"><span class="info file"># File 'lib/textminer/helpers/configuration.rb', line 4</span>
234
+
235
+ <span class='kw'>def</span> <span class='id identifier rubyid_configuration'>configuration</span>
236
+ <span class='kw'>yield</span> <span class='kw'>self</span>
237
+ <span class='kw'>end</span></pre>
238
+ </td>
239
+ </tr>
240
+ </table>
241
+ </div>
242
+
243
+ <div class="method_details ">
244
+ <h3 class="signature " id="define_setting-instance_method">
245
+
246
+ - (<tt>Object</tt>) <strong>define_setting</strong>(name, default = nil)
247
+
248
+
249
+
250
+
251
+
252
+ </h3><table class="source_code">
253
+ <tr>
254
+ <td>
255
+ <pre class="lines">
256
+
257
+
258
+ 8
259
+ 9
260
+ 10
261
+ 11
262
+ 12
263
+ 13
264
+ 14
265
+ 15
266
+ 16</pre>
267
+ </td>
268
+ <td>
269
+ <pre class="code"><span class="info file"># File 'lib/textminer/helpers/configuration.rb', line 8</span>
270
+
271
+ <span class='kw'>def</span> <span class='id identifier rubyid_define_setting'>define_setting</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
272
+ <span class='id identifier rubyid_class_variable_set'>class_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>@@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_default'>default</span><span class='rparen'>)</span>
273
+ <span class='id identifier rubyid_define_class_method'>define_class_method</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
274
+ <span class='id identifier rubyid_class_variable_set'>class_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>@@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
275
+ <span class='kw'>end</span>
276
+ <span class='id identifier rubyid_define_class_method'>define_class_method</span> <span class='id identifier rubyid_name'>name</span> <span class='kw'>do</span>
277
+ <span class='id identifier rubyid_class_variable_get'>class_variable_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>@@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
278
+ <span class='kw'>end</span>
279
+ <span class='kw'>end</span></pre>
280
+ </td>
281
+ </tr>
282
+ </table>
283
+ </div>
284
+
285
+ </div>
286
+
287
+ </div>
288
+
289
+ <div id="footer">
290
+ Generated on Fri Dec 4 20:45:51 2015 by
291
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
292
+ 0.8.7.6 (ruby-2.2.3).
293
+ </div>
294
+
295
+ </body>
296
+ </html>