uploadconvert 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/uploadconvert.rb +6 -1
  2. metadata +1 -1
data/lib/uploadconvert.rb CHANGED
@@ -60,7 +60,12 @@ class UploadConvert
60
60
  begin
61
61
  Docsplit.extract_text(@input, :ocr => false, :output => "public/uploads")
62
62
  outfile = @input.split(".pdf")
63
- path = "public/uploads/" + outfile[0]
63
+ if outfile[].include? "public/uploads/"
64
+ path = outfile[0]
65
+ else
66
+ path = "public/uploads/" + outfile[0]
67
+ end
68
+
64
69
  text = File.read(path+".txt")
65
70
 
66
71
  # Clean up text and delete file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadconvert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: