urlarchiver 0.0.8 → 0.0.9

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/urlarchiver.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ec4c5a92b081c704d3b786a2dcdc2c337d661de
4
- data.tar.gz: 311f7399609187fa07e097c408c0518417a462b3
3
+ metadata.gz: 24a3252325b7573076697357c3caf191eaade598
4
+ data.tar.gz: b360bddd861c70983839a6b450f158545447ecf0
5
5
  SHA512:
6
- metadata.gz: 1fab1ba0ea63788b21f1169a9e489f1387370bf6fc761b9615ad02385729c8b4fb6cd80377897d46569dbe6f6c3c4000ce3dd61cf9dd6033cb52822bd05adad3
7
- data.tar.gz: faaaa6dff8f073f2fd3ed2c34039c3281207a2489cd34b29f1175eb18c686e02126dc4f801c58980f4d13077208d373d9cfa4d271a5aa0545198857f4ac1d072
6
+ metadata.gz: 5b389333364a8426715709c2c6286bd71c5e7a81405cf02473f612cb99a346abe9945fbe5cdccb4e5908a761f56820878c04fbc6e271733fe8999875830a2941
7
+ data.tar.gz: 2407f19a0e304e2153a0f71fe736b1a7585397c859cae60fe01a2bb978c9d847a0c145cbf8dd39060637b0bfa05810aa19ace49e5aff6602000ed9a77468f5c0
data/lib/urlarchiver.rb CHANGED
@@ -50,6 +50,7 @@ class URLArchiver
50
50
  pjson = JSON.parse(json)
51
51
  htmlfield = field+"_htmlpath"
52
52
  pdffield = field+"_pdfpath"
53
+ textfield = field+"_textpath"
53
54
  @output = Array.new
54
55
 
55
56
  pjson.each do |p|
@@ -60,6 +61,9 @@ class URLArchiver
60
61
  if !(paths == nil)
61
62
  pitem[htmlfield] = paths[:pdf_path]
62
63
  pitem[pdffield] = paths[:html_path]
64
+ if @type == "multifull"
65
+ pitem[textfield] = paths[:text]
66
+ end
63
67
  end
64
68
 
65
69
  # Save other fields
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urlarchiver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. C. McGrath