Update git version

This commit is contained in:
aignatov-bio 2019-12-03 13:31:13 +01:00
parent 42dac51241
commit 6c057a86c9
3 changed files with 13 additions and 3 deletions

View file

@ -18,7 +18,7 @@ gem 'sanitize', '~> 5.0'
gem 'sassc-rails'
gem 'simple_token_authentication', '~> 1.16.0' # Token authentication for Devise
gem 'webpacker', '~> 4.0.0'
gem 'yomu'
gem 'yomu', git: 'https://github.com/biosistemika/yomu', branch: 'master'
# Gems for OAuth2 subsystem
gem 'doorkeeper', '>= 4.6'

View file

@ -1,3 +1,12 @@
GIT
remote: https://github.com/aignatov-bio/yomu
revision: 5075b7a72d26526dbc8e22baaf8c1d2144874783
branch: ai-sci-update-json-gem-dependency
specs:
yomu (0.2.4)
json (>= 1.8)
mime-types (>= 1.23)
GIT
remote: https://github.com/biosistemika/canaid
revision: 2ac3004d728adbf1be7f4271689b83464f612b23
@ -581,7 +590,6 @@ GEM
wkhtmltopdf-heroku (2.12.5.0)
xpath (3.2.0)
nokogiri (~> 1.8)
yomu (0.1.5)
zeitwerk (2.1.10)
PLATFORMS
@ -695,7 +703,7 @@ DEPENDENCIES
whacamole
wicked_pdf (~> 1.4.0)
wkhtmltopdf-heroku (= 2.12.5)
yomu
yomu!
RUBY VERSION
ruby 2.6.4p104

View file

@ -250,6 +250,8 @@ class Asset < ApplicationRecord
mjs_doc.remove_namespaces!
text_data = mjs_doc.search("//Field[@name='text']").collect(&:text).join(' ')
else
# Start Tika as a server
Yomu.server(:text) if !ENV['NO_TIKA_SERVER'] && Yomu.class_variable_get(:@@server_pid).nil?
blob.open do |tmp_file|
text_data = Yomu.new(tmp_file.path).text
end