get some magic up in here

This commit is contained in:
Andrew Brown 2019-02-25 01:49:06 -06:00
parent c821f4e2f3
commit 48ce6de609
3 changed files with 35 additions and 0 deletions

View File

@ -49,6 +49,14 @@ gem 'medium-editor-rails'
# Document understanding
gem 'htmlentities'
gem 'birch', github: 'billthompson/birch', branch: 'birch-ruby22'
gem 'treat'
# gem 'treat', :git => 'https://github.com/indentlabs/treat-gem.git'
gem 'engtagger'
# These are unfortunately necessary as a hack to get treat running properly
gem 'rubyzip', '>= 1.0.0' # will load new rubyzip version
gem 'zip-zip' # will load compatibility for old rubyzip API.
# Graphs & Charts
gem 'chartkick'

View File

@ -1,3 +1,10 @@
GIT
remote: git://github.com/billthompson/birch.git
revision: dc6c8e5d667f6c946c989f4d8f159f622d3bf77a
branch: birch-ruby22
specs:
birch (0.0.8)
GIT
remote: https://github.com/indentlabs/serendipitous-gem.git
revision: 393c9b664e0cbfacfc06d44dfd43898413b539a5
@ -167,6 +174,7 @@ GEM
warden (~> 1.2.3)
diff-lcs (1.3)
docile (1.1.5)
engtagger (0.2.1)
erubi (1.8.0)
execjs (2.7.0)
factory_bot (4.11.1)
@ -310,6 +318,7 @@ GEM
ast (~> 2.4.0)
pg (0.21.0)
powerpack (0.1.2)
progressbar (1.10.0)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
@ -456,6 +465,9 @@ GEM
sprockets (> 3.0)
sprockets-rails
tilt
schiphol (0.9.4)
progressbar (>= 0.10.0)
rubyzip (>= 0.9.6.1)
selenium-webdriver (3.141.0)
childprocess (~> 0.5)
rubyzip (~> 1.2, >= 1.2.2)
@ -521,6 +533,10 @@ GEM
timeago_js
tilt (2.0.9)
timeago_js (3.0.2)
treat (2.1.0)
birch
schiphol
yomu
tzinfo (1.2.5)
thread_safe (~> 0.1)
tzinfo-data (1.2018.9)
@ -545,6 +561,9 @@ GEM
websocket-extensions (0.1.3)
xpath (3.2.0)
nokogiri (~> 1.8)
yomu (0.1.5)
zip-zip (0.3)
rubyzip (>= 1.0.0)
PLATFORMS
ruby
@ -558,6 +577,7 @@ DEPENDENCIES
barnes
better_errors
binding_of_caller
birch!
bullet (>= 5.4)
capybara
chartkick
@ -569,6 +589,7 @@ DEPENDENCIES
database_cleaner
dateslices
devise
engtagger
factory_bot_rails
filesize
flamegraph
@ -605,6 +626,7 @@ DEPENDENCIES
rspec-rails
rubocop
ruby-prof (= 0.15.9)
rubyzip (>= 1.0.0)
sass-rails
selenium-webdriver
serendipitous!
@ -617,10 +639,12 @@ DEPENDENCIES
stripe
stripe_event
thredded
treat
tzinfo-data
uglifier (>= 1.3.0)
web-console
webmock
zip-zip
RUBY VERSION
ruby 2.5.1p57

View File

@ -10,5 +10,8 @@ class DocumentAnalysisJob < ApplicationJob
# Start the analysis!
Documents::Analysis::CountingService.analyze(analysis.id)
Documents::Analysis::ReadbilityService.analyze(analysis.id)
analysis.update(completed_at: DateTime.current)
end
end