mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 09:23:58 +08:00
Update git version
This commit is contained in:
parent
42dac51241
commit
6c057a86c9
3 changed files with 13 additions and 3 deletions
2
Gemfile
2
Gemfile
|
@ -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'
|
||||
|
|
12
Gemfile.lock
12
Gemfile.lock
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue