uploadconvert 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 (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: