parsefile 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/parsefile.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf06a478153c7107295b160bc8b2d76e403e7d8f
4
- data.tar.gz: 4122ff2b451ba656d75893119209a1adefd2d5dc
3
+ metadata.gz: 4207991a73469c11a0cc08cc64d8e528ea6dacd3
4
+ data.tar.gz: 3c72e177ff10592694bfde02c8efdeabbf3b1530
5
5
  SHA512:
6
- metadata.gz: 0d92b7753ae69345a3a456be7f61982969bde31dfad4dde386fd4906a8ba631610a6a2dadf6ae7b3c841c01f12e6b7627d96528745aaeed11abf9166a7b321b8
7
- data.tar.gz: 57620b37897bb7b99d523c9deb76948a723f305338a958a646c6e69b35a38ecaa4f3cb848803bbe8652c45f1b83579cdb5c981d9a132fbd88454eda60eaea066
6
+ metadata.gz: 987cb5344fe36abe1a56bb99f44dea893893f4073c4345ca90bc16c59f8bd1a5fe7de1a01e982dc9a162cdc7b2e9f071b4042a461585f72f1fb3038f8b5734c6
7
+ data.tar.gz: 82ed12945b157805c65fc371f58766b3ee041f82a385c445037bf7979301623e3a861580f33668f1a31b9537a6aeb2526d5b4e37ec5d98f071b7f6cd35e09f3e
@@ -6,7 +6,7 @@ require 'extractmetadata'
6
6
 
7
7
  class ParseFile
8
8
  def initialize(file, input_dir, output_dir, tika)
9
- @path = file
9
+ @path = file.unpack('C*').pack('U*')
10
10
  @input_dir = input_dir
11
11
  @output_dir = output_dir
12
12
  # Pass URL of a Tika server
@@ -30,8 +30,10 @@ class ParseFile
30
30
 
31
31
  gen_output
32
32
  rescue
33
- #TODO: use a global debug / log
34
- binding.pry
33
+ # TODO: use a global debug / log
34
+ # binding.pry
35
+ error_file = @path + "\n"
36
+ IO.write(@output_dir+"/error_log.txt", error_file, mode: 'a')
35
37
  end
36
38
  end
37
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsefile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. C. McGrath