Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
435 commits
Select commit Hold shift + click to select a range
c94738d
Added on majority of the components tested in Test Preview and Export…
slmendez Mar 8, 2018
5d25acb
Merge remote-tracking branch 'origin/Header_Addition' into Header_Add…
slmendez Mar 8, 2018
c773065
Completed the Test Preview and Export Data page, and that was the las…
slmendez Mar 10, 2018
177932d
Added on an environment variable to see if I can see the build result…
slmendez Mar 11, 2018
f9a9812
Update to travis for front end repo
slmendez Mar 13, 2018
1df0ab1
Fixed the travis file to mimic the one in the java repo to see if tha…
slmendez Mar 13, 2018
47c70e8
Added on pathname of the geckodriver in one of the test case files
slmendez Mar 13, 2018
fc504be
Added on more commands before the script for the travis file, testing…
slmendez Mar 14, 2018
102e7dd
Changed for all test cases so far to use ChromeDriver as opposed to F…
slmendez Mar 21, 2018
e387ad3
GUI-CLI converter script in progress....need to add support for heade…
Mar 22, 2018
5c4af8e
Added on some beginning test cases for eu-002.pdf, testing for the re…
slmendez Mar 24, 2018
331a5d1
Added on a new method to test for incorrect inputs for pattern after …
slmendez Mar 24, 2018
d638eec
Added on another test case that inputs 2 incorrect inputs to the patt…
slmendez Mar 24, 2018
ef0b8fb
Added on more test scenarios of inputting a common word and a correct…
slmendez Mar 25, 2018
dff8aea
mMade another method to eliminate some redundant code and fixed up so…
slmendez Mar 25, 2018
e6815df
Noticed some issues with the refresh method I had for the test classe…
slmendez Mar 26, 2018
efd4eca
Fixed up and cleaned up some prior test cases that utilize the refres…
slmendez Mar 26, 2018
8337742
Got rid of more redundant code, updated the pom file, and added on 3 …
slmendez Mar 27, 2018
6bb9a90
Added on test case that tests a text-based image and verifies it's data
slmendez Mar 27, 2018
3a0bfba
Added on new test pdf file, to add on some more complicated user scen…
slmendez Mar 27, 2018
430dcdf
In process of figuring out how to update deprecated back-end extracti…
Mar 27, 2018
e9613e5
Workable patch *should* now be in place such that Ben's original Mult…
Mar 27, 2018
4d8bbaf
Attempting to merge in all of Shirley's work...
Mar 27, 2018
2362d11
Added the header and footer options to the GUI-CLI converter script .…
Mar 27, 2018
ff376a7
Merge remote-tracking branch 'remotes/origin/Header_Addition' into He…
slmendez Mar 27, 2018
067eb98
Added on 2 user scenarios of a 2 page spanning table and a 5 page spa…
slmendez Mar 27, 2018
bfbc43f
Added on inclusive/exclusive user scenarios for the the one_stop_voti…
slmendez Mar 27, 2018
7288d96
Updating back-end to reflect change made in header/footer calculation…
Apr 1, 2018
be00b69
Merging in Shirley's workspace.xml changes...
Apr 1, 2018
194b04b
Added on 3 test cases for case-sensitivity of the eu-002.pdf file. Wi…
slmendez Apr 2, 2018
658ab13
Added on a method to deal with inclusive clicks
slmendez Apr 2, 2018
93391ae
Added on a test case for multiple regex searches, have to go back in …
slmendez Apr 2, 2018
ed11789
Merge remote-tracking branch 'origin/Header_Addition' into Header_Add…
slmendez Apr 2, 2018
281be0e
Updated GUI-CLI converter so that white space is put between page and…
Apr 5, 2018
ea0a80d
Merging in Shirley's changes...
Apr 5, 2018
7a3ec4d
Went back to default settings for travis, will go in and fix them
slmendez Apr 5, 2018
d2edba2
Made changes to the travis file
slmendez Apr 5, 2018
5595eab
Added on another line to the script section of the travis file
slmendez Apr 6, 2018
9f6fe41
Made slight change to the script
slmendez Apr 6, 2018
c85c113
updated the pom file
slmendez Apr 6, 2018
668165b
updated the pom file again
slmendez Apr 6, 2018
e1546f4
updated pom file, need to find a way to put a parent tag (?)
slmendez Apr 6, 2018
acec7c4
updated release info on pom file
slmendez Apr 6, 2018
4eeb1d5
took off certain lines that were giving an exit code of 1 in the trav…
slmendez Apr 6, 2018
f601ec4
added on chrome addon from what was recommended on the travis documen…
slmendez Apr 6, 2018
3fecb44
added on more commands to the install and before_install sections
slmendez Apr 6, 2018
4d5f14c
took off the jbundle update line off the travis file
slmendez Apr 6, 2018
5de4d99
deleted some lines in the travis file regarding the set up of the gui…
slmendez Apr 6, 2018
36fa45c
trying to see why travis-ci is not at least seeing the test cases
slmendez Apr 6, 2018
c457b98
going back to original pom file
slmendez Apr 6, 2018
459b030
re-added on chrome settings to the travis file. Seems like the extra …
slmendez Apr 6, 2018
ff2d7ab
Added on the system.setproperty to see if that will fix the issue wit…
slmendez Apr 6, 2018
86baf8e
Fixed setproperty, and going to see if this fixed the problem
slmendez Apr 7, 2018
310043b
Trying the setproperty again
slmendez Apr 7, 2018
f774df6
Trying to fix this setProperty again
slmendez Apr 7, 2018
c18a62c
TestAboutPage is now using headless mode
slmendez Apr 7, 2018
2b32995
TestAboutPage is now using headless mode
slmendez Apr 7, 2018
94f8fab
Added on more to the before part of the travis file
slmendez Apr 7, 2018
7114386
error with the version of the chrome driver
slmendez Apr 7, 2018
96d465e
Updated all test files to use the setProperty and use chrome headless…
slmendez Apr 7, 2018
7d43dac
added on more lines to the travis file to test if it will run the tes…
slmendez Apr 7, 2018
9bcf608
Fixed error on the line that checks out a branch
slmendez Apr 7, 2018
665ae14
Added on jruby info to the travis file
slmendez Apr 7, 2018
a9c78ea
Added on jruby info to the travis file again
slmendez Apr 7, 2018
87dddfc
Noticed that i was setting the path of jruby from a wrong location match
slmendez Apr 7, 2018
3794ede
Noticed that i was setting the path of jruby from a wrong location ma…
slmendez Apr 7, 2018
2c29f2e
Noticed that i was setting the path of jruby from a wrong location ma…
slmendez Apr 7, 2018
8433d82
Noticed that i was setting the path of jruby from a wrong location ma…
slmendez Apr 8, 2018
66607f7
Trying to fix the jruby lines of code
slmendez Apr 8, 2018
356e1c8
changed the jdk info by mistake
slmendez Apr 8, 2018
f727196
Another smal error with the jruby info
slmendez Apr 8, 2018
56a6eb6
Another smal error with the jruby info
slmendez Apr 8, 2018
1284b0d
Merging in Shirley's changes + seeing if jbundle update will prevent …
Apr 8, 2018
c4b78ba
Trying to see why util.function is not being found...
Apr 8, 2018
6549fb3
Ok, now see why jdk7 is needed...
Apr 8, 2018
c079961
Trying to figure out where exactly the error in the build is at...
Apr 8, 2018
69b1eff
Still trying to figure out the source of the error..
Apr 8, 2018
14b5304
Ditto...
Apr 8, 2018
5fb0fec
Trying to figure out what exactly in TestHelpPage.java is causing all…
Apr 8, 2018
ebb1e89
Ditto...
Apr 8, 2018
a9c6067
Changing openjdk7 to openjdk8...seeing if this does anything differen…
Apr 8, 2018
d4049ee
Travis is acting weird with openjdk8...see what happens when its reve…
Apr 8, 2018
228dff0
Here goes nothing...
Apr 8, 2018
91d171c
Trying to read the log files to see where travis is losing it...
Apr 8, 2018
435f5c1
Putting everything back as it was for now....
Apr 8, 2018
703c914
Ok...so it looks like openjdk8 leads to a successful build and openjd…
Apr 8, 2018
a80b294
add gem install jbundler to travis yml file...
Apr 8, 2018
72fc0d0
Updated GemFile to point to more recent version of jar-dependencies
Apr 8, 2018
24aa43c
Attempting to update jar-dependencies in pre-install step...
Apr 8, 2018
a1457e9
Dealing with some syntax mishaps...
Apr 8, 2018
5bc12e8
Trying out some changes...
Apr 8, 2018
dcfebdc
Fixed errors for TestPreviewandExportData test case and TestHelpPage …
slmendez Apr 8, 2018
de14341
Syntax error in last commit...
Apr 8, 2018
bff5603
Seeing if removing the blasted classpath file will make Travis find t…
Apr 8, 2018
d9eca17
Trying something else...
Apr 8, 2018
b8bbf92
Typo in last commit..
Apr 8, 2018
2c7a717
Trying to figure out the issue with jruby -S jbundle install...
Apr 8, 2018
2f44023
Trying to figure out what is going on by running jbundle install in d…
Apr 8, 2018
796b7db
Trying some new stuff (attempting to install jars as part of spin up ...
Apr 8, 2018
fed3d8e
Still trying to figure out what is going on...
Apr 8, 2018
53e9162
Typo in yml file...
Apr 8, 2018
4f90934
Travis isn't running so trying to track down error in yml file...
Apr 8, 2018
2a97bdb
...
Apr 8, 2018
50a84e1
Fixing a path for the build...
Apr 8, 2018
f48bccf
Trying to figure out the correct file path for the build...
Apr 8, 2018
c23694c
...
Apr 8, 2018
cdf53d7
...
Apr 8, 2018
3c8de83
...
Apr 8, 2018
2a5b393
...
Apr 8, 2018
e3f2d9f
Changing debugging port to see if that will allow the GUI to spin up...
Apr 8, 2018
d24a4b1
Current state of affirs with Travis: can get the GUI to spin up but n…
Apr 8, 2018
4709426
Added on the test of multiple regex searches and the test case for ve…
slmendez Apr 10, 2018
5ce24a1
Merge remote-tracking branch 'origin/Header_Addition' into Header_Add…
slmendez Apr 10, 2018
eba6ae9
Deleted some of the pwd lines on the travis file
slmendez Apr 10, 2018
6b0d1a3
moved the back-end jar to before_install and commented out all the GU…
slmendez Apr 10, 2018
5a3b9f7
made some more changes..
slmendez Apr 10, 2018
3566d00
made some more changes..
slmendez Apr 10, 2018
c92f759
made some more changes..
slmendez Apr 10, 2018
706477c
made some more changes..
slmendez Apr 10, 2018
93e0580
made some more changes..
slmendez Apr 10, 2018
3936ca1
made some more changes..
slmendez Apr 10, 2018
106bcaf
made some more changes..
slmendez Apr 10, 2018
acc74b6
made some more changes..
slmendez Apr 10, 2018
3cf0708
made some more changes..
slmendez Apr 10, 2018
53273db
made some more changes..
slmendez Apr 10, 2018
4d8c740
made some more changes..
slmendez Apr 10, 2018
4228ce9
made some more changes..
slmendez Apr 10, 2018
7678637
made some more changes..
slmendez Apr 10, 2018
c87e3dd
made some more changes..
slmendez Apr 10, 2018
c0b64a1
made some more changes..
slmendez Apr 10, 2018
af4e87a
made some more changes..
slmendez Apr 10, 2018
8f4130e
made some more changes..
slmendez Apr 10, 2018
b8ac954
made some more changes..
slmendez Apr 10, 2018
e1dc094
Changes
slmendez Apr 10, 2018
5b773f4
made some more changes..
slmendez Apr 10, 2018
2ee6f78
Added on xvfb for the GUI to the travis file, also the server is runn…
slmendez Apr 10, 2018
be3d5ad
Added on xvfb for the GUI to the travis file, also the server is runn…
slmendez Apr 10, 2018
89f8ea3
Added on xvfb for the GUI to the travis file
slmendez Apr 10, 2018
9adbb1f
Added on xvfb for the GUI to the travis file
slmendez Apr 10, 2018
5a2be63
Added on xvfb for the GUI to the travis file
slmendez Apr 10, 2018
4cc76a0
Added on xvfb for the GUI to the travis file
slmendez Apr 10, 2018
20ad88d
Added on xvfb for the GUI to the travis file
slmendez Apr 10, 2018
9b387e6
Moved a lot of the commands to the run.sh file to see if that will ma…
slmendez Apr 10, 2018
e5ddbc8
Made minor changes to the run.sh file and travis file to see if i can…
slmendez Apr 10, 2018
724430b
Made minor changes to the run.sh file and travis file to see if i can…
slmendez Apr 10, 2018
4e441d4
Increased sleep time
slmendez Apr 10, 2018
73de232
Adding curl command
slmendez Apr 10, 2018
20f8d42
Ading in Shirley's test files...
Apr 10, 2018
c03ae0d
Removing ExtractionLog files..
Apr 10, 2018
f13a7fc
Changes
slmendez Apr 10, 2018
728c649
Merging In Shirley's Page...
Apr 10, 2018
cf2657d
Seeing if waitForServerLoad will send back the curl exit status....
Apr 10, 2018
273e3dd
Having to commit the surefire-reports..
slmendez Apr 10, 2018
706d6ee
Merge branch 'Header_Addition' of https://github.com/redmyers/484_P7_…
slmendez Apr 10, 2018
0949d8b
Adding waitForServerLoad to repo...sorry about that faux pas Shirley
Apr 10, 2018
37b7e1f
Merging in Shirley/s changes...
Apr 10, 2018
df91d4b
Tweaking waitForServerLoad a bit...
Apr 10, 2018
047bdd8
Syntax error in last commit...
Apr 10, 2018
5e5b1b1
Syntax error in last commit...
Apr 10, 2018
61df0cf
Yet another syntax error....grr
Apr 10, 2018
0337ec1
OK, this SHOULD not have any syntax errors...not holding my breath..
Apr 10, 2018
ebec920
Giving the server more time to load...
Apr 10, 2018
00be859
Fixed syntax issue in run.sh no whitespace in statment install jruby...
Apr 10, 2018
fe6d7c2
Giving server a lot more time to load....
Apr 10, 2018
449249a
For some reason the last 2 lines of run.sh were on one line...fixed t…
Apr 10, 2018
ca2337e
Adding curl command
slmendez Apr 11, 2018
2ce5683
Made changes to the test cases by adding an argument to for no-sandbox
slmendez Apr 11, 2018
9210149
Updated output of waitForServerLoad to enhance log file readability....
Apr 11, 2018
3437429
Trying to figure out what exactly the mvn install is needed for...
Apr 11, 2018
0ef1585
Fixed overlap detection issue...this is the second time I've had to d…
Apr 13, 2018
bbc7002
Trying to check where exactly the pdf files are
slmendez Apr 13, 2018
4dc2ee7
Merge remote-tracking branch 'origin/Header_Addition' into Header_Add…
slmendez Apr 13, 2018
8c3261f
Trying to see the location of the pdf files
slmendez Apr 13, 2018
b142faa
Trying to see the location of the pdf files
slmendez Apr 13, 2018
160cfc2
Trying to see why it's getting stuck in waitForSeverLoad
slmendez Apr 13, 2018
783ee4c
Extending the sleep time on the travis file to see if that will make …
slmendez Apr 13, 2018
554fcbd
Extending the sleep time on the travis file to see if that will make …
slmendez Apr 13, 2018
9d388f2
Trying to merge in the most recent stuff..
Apr 13, 2018
d6933ad
Trying to merge in Shirley's most recent changes...
Apr 13, 2018
fb320a2
Trying to figure out why gui repo is bogging down...
Apr 13, 2018
3ae1642
Trying to figure out server spin-up issue...
Apr 14, 2018
4186d5a
Removing jbundler from repo since its contents are machine dependent..
Apr 14, 2018
f82fb46
Changed how to find the pathname of the pdf, and this should be fixin…
slmendez Apr 14, 2018
964b01f
Slight changes to the reference of the pdf files and commenting out t…
slmendez Apr 14, 2018
1917983
Noticed "xvfb-run make test" is giving an error, I took off that line…
slmendez Apr 14, 2018
ffd69a7
Added on a new test cases for multi regex search, going to be working…
slmendez Apr 15, 2018
8ea9f83
Wrapped up test multi-page tables test case, moving on to work on ove…
slmendez Apr 15, 2018
220ee65
Finished up the overlapping test cases, need to work on the multiple …
slmendez Apr 15, 2018
5ec8086
Adding on the rest of the pdf files that will be tested and will work…
slmendez Apr 15, 2018
f77118c
Added on the shall and may pdf files that will be tested and added on…
slmendez Apr 17, 2018
f5df67a
Completed 3 test cases that attempt to upload 3 different types of pd…
slmendez Apr 22, 2018
14a5bab
Fixing an issue with resize events for long documents..
Apr 23, 2018
f15ea02
Merging in Shirley's changes to the previously described fix...
Apr 23, 2018
1316f77
Merge remote-tracking branch 'origin/Header_Addition' into Header_Add…
slmendez Apr 23, 2018
be15f96
Updating Ross' changes and pushing some of the new test cases. Having…
slmendez Apr 23, 2018
4e9230d
(Hopefully) fixing the issue Shirley found earlier...
Apr 24, 2018
6c5c094
Merging in Shirley's changes...
Apr 24, 2018
6e3edd7
Testing through the eu_002 test cases since they majority fail on tra…
slmendez Apr 24, 2018
bb34fc7
Merge branch 'Header_Addition' of https://github.com/redmyers/484_P7_…
slmendez Apr 24, 2018
94baae7
Merge changes
slmendez Apr 24, 2018
728b1a0
Fixed changes of the eu_002 file, 2 test cases are commented out beca…
slmendez Apr 24, 2018
0662216
Updated run.sh file to checkout the new java repo as well as took out…
slmendez Apr 24, 2018
7a2c0ee
Merging in Shirley's changes...
Apr 24, 2018
04324bb
reset_for_new_doc should now be resetting page margins...I believe th…
Apr 24, 2018
d9b87ac
Added 3 new test cases for NCHouse2017StatPack file and deleted redun…
slmendez Apr 24, 2018
a663730
Merge branch 'Header_Addition' of https://github.com/redmyers/484_P7_…
slmendez Apr 24, 2018
72a8fdb
Adding on the overlap test case for NCHouse2017StatPack file
slmendez Apr 24, 2018
4dad5fe
Getting a long lag again..trying to see if I can get the test case to…
slmendez Apr 24, 2018
0e9d5be
Change to -x
slmendez Apr 24, 2018
1dbf8c8
Went back to old changes before changing the index.html for the regex…
slmendez Apr 24, 2018
dc5e4c1
FIxed up the overlap test case for the HCHouse2017StatPack, will need…
slmendez Apr 25, 2018
c74924c
Completed another test case for multiple regex searches/inclusive and…
slmendez Apr 25, 2018
85e5dc8
Fixed up the multiple searches test cases that was failing because it…
slmendez Apr 26, 2018
8b4313e
Added on test cases for Mecklenburg.Majority pdf file. Will wrap up t…
slmendez Apr 28, 2018
196e2b5
Added on the test cases for Correspondence_FINAL_SBE. There is an iss…
slmendez Apr 28, 2018
b1ed585
Finishing up the test cases, going to go in and fix the ones with exc…
slmendez Apr 29, 2018
ca1f34e
Got rid of some of the thread.sleep() for the eu_002 case
slmendez Apr 29, 2018
1ff738a
Got rid of thread.sleep() for the onestopvotinglistnov2012
slmendez Apr 29, 2018
055781f
Got rid of NCHouse2017StatPack's thread.sleep() that were being redun…
slmendez Apr 29, 2018
0cdff41
Fixed up the Feb_9_2016 test file, changed the overlap regex inputs s…
slmendez Apr 29, 2018
9dcd878
Fixed exception thrown because of an overlay of the drawn rectangle a…
slmendez Apr 29, 2018
f233bcf
Wrapped up the last exception that was being thrown in boron_isotopic
slmendez Apr 29, 2018
2431571
Updated run.sh file to clone the new repo
slmendez Apr 29, 2018
82576c4
Didn't noticed that I had set the location of the file to my local di…
slmendez Apr 29, 2018
35b38ad
Fixed up the previewandexportdata test case that was throwing errors
slmendez Apr 29, 2018
a9fe4ff
Merge branch 'Header_Addition' of https://github.com/redmyers/484_P7_…
slmendez Jun 13, 2018
6754391
Changes from the merge
slmendez Jun 13, 2018
858789c
initial cleanup
jeremybmerrill Jul 22, 2018
586145b
move most changed styles to the relevant sass files
jeremybmerrill Jul 22, 2018
3e79664
comment out PDF Outline hider button (for now?)
jeremybmerrill Jul 22, 2018
34346a2
clean up regex sidebar
jeremybmerrill Jul 22, 2018
02ee1f8
rearrange help page and write thru regex help, changing it to be call…
jeremybmerrill Jul 22, 2018
222fb79
move around code for regex search panel
jeremybmerrill Jul 27, 2018
f7973ae
conditionally render the header/footer things only when regex search …
jeremybmerrill Aug 26, 2018
f6c9533
factors out onclick on the PDF Outline button (which is commented out…
jeremybmerrill Aug 26, 2018
99fa569
cleanup, reorganization and Backboneification
jeremybmerrill Sep 2, 2018
9b8acd2
just a little cleanup
jeremybmerrill Sep 5, 2018
fc1f51b
min-width on columns on the front
jeremybmerrill Sep 6, 2018
f692740
cleanup
jeremybmerrill Sep 6, 2018
ef927f8
fix up selections
jeremybmerrill Sep 6, 2018
f1c43cc
comments to remind people to use SCSS/compass rather than editing CSS…
jeremybmerrill Sep 13, 2018
8b360bd
reorganize Selections By Text display area
jeremybmerrill Sep 16, 2018
9839f63
tests move aside the existing ~/.tabula so that you don't get test fi…
jeremybmerrill Sep 22, 2018
fd17fd0
move test files to test/
jeremybmerrill Sep 26, 2018
02a7791
add note about tests; CSS/SASS issues
jeremybmerrill Sep 26, 2018
869c557
Cleanup root directory
jazzido Sep 27, 2018
68586da
Merge branch 'master' into feature/regex
jeremybmerrill Sep 30, 2018
9607295
Merge branch 'feature/regex' of github.com:tabulapdf/tabula into feat…
jeremybmerrill Sep 30, 2018
3476cdf
fix file paths
jeremybmerrill Oct 2, 2018
401d258
fix a missed method renaming
jeremybmerrill Oct 2, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ spec/reports
test/tmp
test/version_tmp
tmp


SeleniumChrome
target
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>484_P7_1-GUI</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
33 changes: 25 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
sudo: false
language: ruby
language: java
addons:
chrome: stable
before_install:
- gem update --system
- gem install bundler
- gem install jbundler
rvm:
- jruby-9.1.9.0
# GUI
# "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 5
- bash run.sh &
- sleep 100
- bash waitForServerLoad.sh
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
# google chrome standalone driver
- wget http://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo mv chromedriver /usr/local/bin
- sudo chmod a+x /usr/local/bin/chromedriver

install:
# - mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true -B -V


jdk:
- openjdk8
- oraclejdk8
- openjdk7
script: bundle exec jbundle install && bundle exec rake war && bundle exec rake jardist
script:
- mvn test -Dgpg.skip=true
notifications:
email: false

4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ platform :jruby do
gem "jruby-jars", "9.2.0.0"
gem "bootstrap-sass", "~> 3.2.0"
gem "compass"
gem "ruby-maven"
end


end

3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ DEPENDENCIES
jruby-jars (= 9.2.0.0)
rack (~> 2.0.4)
rake
ruby-maven
tilt (~> 2.0.8)
warbler (~> 2.0.4)

BUNDLED WITH
1.16.2
1.16.5
3 changes: 2 additions & 1 deletion Jarfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jar 'technology.tabula:tabula', '1.0.2'
snapshot_repository :snapshots, "https://oss.sonatype.org/content/repositories/snapshots"
jar 'technology.tabula:tabula', '1.0.2-SNAPSHOT'
48 changes: 33 additions & 15 deletions Jarfile.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
---
:runtime:
- org.apache.pdfbox:fontbox:jar:2.0.9
- org.apache.commons:commons-csv:jar:1.4
- commons-cli:commons-cli:jar:1.4
- org.bouncycastle:bcprov-jdk15on:jar:1.56
- org.locationtech.jts:jts-core:jar:1.15.0
- org.slf4j:slf4j-simple:jar:1.7.25
- org.bouncycastle:bcmail-jdk15on:jar:1.56
- org.bouncycastle:bcpkix-jdk15on:jar:1.56
- org.apache.pdfbox:pdfbox:jar:2.0.9
- org.slf4j:slf4j-api:jar:1.7.25
- com.squareup.okhttp3:okhttp:jar:3.9.1
- com.squareup.okio:okio:jar:1.13.0
- org.apache.httpcomponents:httpclient:jar:4.5.3
- org.junit.platform:junit-platform-commons:jar:1.1.0
- com.google.code.findbugs:jsr305:jar:1.3.9
- org.checkerframework:checker-compat-qual:jar:2.0.0
- org.apache.pdfbox:fontbox:jar:2.0.1
- org.seleniumhq.selenium:selenium-opera-driver:jar:3.11.0
- org.seleniumhq.selenium:selenium-remote-driver:jar:3.11.0
- com.google.j2objc:j2objc-annotations:jar:1.1
- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14
- org.junit.jupiter:junit-jupiter-api:jar:5.1.0
- net.bytebuddy:byte-buddy:jar:1.7.9
- org.seleniumhq.selenium:selenium-safari-driver:jar:3.11.0
- org.seleniumhq.selenium:selenium-firefox-driver:jar:3.11.0
- org.apache.pdfbox:pdfbox:jar:2.0.1
- org.apache.commons:commons-exec:jar:1.3
- com.google.code.gson:gson:jar:2.8.2
- commons-codec:commons-codec:jar:1.10
- com.google.errorprone:error_prone_annotations:jar:2.1.3
- technology.tabula:tabula:jar:1.0.2-SNAPSHOT
- org.opentest4j:opentest4j:jar:1.0.0
- jline:jline:jar:2.11
- org.apache.httpcomponents:httpcore:jar:4.4.6
- org.seleniumhq.selenium:selenium-edge-driver:jar:3.11.0
- commons-logging:commons-logging:jar:1.2
- com.google.code.gson:gson:jar:2.8.0
- com.github.jai-imageio:jai-imageio-core:jar:1.3.1
- technology.tabula:tabula:jar:1.0.2
- com.github.jai-imageio:jai-imageio-jpeg2000:jar:1.3.0
- com.levigo.jbig2:levigo-jbig2-imageio:jar:2.0
- org.seleniumhq.selenium:selenium-api:jar:3.11.0
- org.seleniumhq.selenium:selenium-java:jar:3.11.0
- org.seleniumhq.selenium:selenium-chrome-driver:jar:3.11.0
- org.seleniumhq.selenium:selenium-ie-driver:jar:3.11.0
- org.yaml:snakeyaml:jar:1.18
- org.seleniumhq.selenium:selenium-support:jar:3.11.0
- com.google.guava:guava:jar:23.6-jre
- org.apiguardian:apiguardian-api:jar:1.0.0
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Tabula has bindings for JRuby and R. If you end up writing bindings for another

The site instance should now be viewable at http://127.0.0.1:9292/ .

You can a couple some options when executing the server in this manner:
You can use some options when executing the server in this manner:

TABULA_DATA_DIR="/tmp/tabula" \
TABULA_DEBUG=1 \
Expand Down Expand Up @@ -195,6 +195,14 @@ If you intend to develop against an unreleased version of [`tabula-java`](https:

Then, adjust the `Jarfile` accordingly.

If you intend to make stylesheet changes, do NOT modify the CSS files in `webapp/static/css`. Instead, modify the SASS files in `webapp/static/sass`. You can compile SASS into CSS with `$ compass compile`; alternatively, you can run `$ compass watch` to watch for changes to SASS files and automatically compile them to CSS.

### Testing.

There are tests in `test/`. You can run them all with `mvn test` or individually, e.g. `mvn test -Dtest=TestExtractionPage`. The tests depend on having `chromedriver` installed locally.

We do not have 100% test coverage, so you should not assume that passing tests mean a code change doesn't break anything. Additionally, I believe there's some possibility that tests will sporadically fail "by accident", so if you get a failure, it might not be indicative of something broken.

### Building a packaged application version

After performing the above steps ("Running Tabula from source"), you can compile
Expand Down
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ task :jardist => [:create_version_file, :war] do |t|
File.delete(output)
end

IO.popen("zip -r9 #{output} tabula") { |f|
IO.popen("7z -r9 #{output} tabula") { |f|
f.each { |line| puts line }
}
FileUtils.rm_rf(dist_dir)
Expand Down Expand Up @@ -141,7 +141,7 @@ task :macosx => [:create_version_file, :war] do |t|
File.delete(output)
end

IO.popen("zip -r9 #{output} tabula") { |f|
IO.popen("7z -r9 #{output} tabula") { |f|
f.each { |line| puts line }
}
FileUtils.rm_rf(dist_dir)
Expand Down Expand Up @@ -212,7 +212,7 @@ task :windows => [:create_version_file, :war] do |t|
File.delete(output)
end

IO.popen("zip -r9 #{output} tabula") { |f|
IO.popen("7z -r9 #{output} tabula") { |f|
f.each { |line| puts line }
}
FileUtils.rm_rf(dist_dir)
Expand Down
16 changes: 14 additions & 2 deletions lib/tabula_java_wrapper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
java_import org.apache.pdfbox.pdmodel.PDDocument
java_import org.apache.pdfbox.pdmodel.encryption.StandardDecryptionMaterial

module JavaIO
include_package "java.io"
end

module Gson
include_package "com.google.gson"
end

class Java::TechnologyTabula::Table
attr_accessor :spec_index
def to_csv
Expand All @@ -25,11 +33,14 @@ def to_json(*a)
module Tabula

def Tabula.extract_tables(pdf_path, specs, options={})
puts 'In extract_tables'
puts 'Options:'
puts options
options = {
:password => '',
:detect_ruling_lines => true,
:vertical_rulings => [],
:extraction_method => "guess",
:extraction_method => '',#"guess", Commenting out guess because of its variable behavior (GUI vs CLI)...
}.merge(options)

specs.each_with_index{|spec, i| spec["spec_index"] = i }
Expand All @@ -56,7 +67,7 @@ def Tabula.extract_tables(pdf_path, specs, options={})
table_extractor = use_spreadsheet_extraction_method ? sea : bea
table_extractor.extract(area).each { |table| table.spec_index = spec["spec_index"]; y.yield table }
end
end;
end
extractor.close!
end

Expand Down Expand Up @@ -108,3 +119,4 @@ def pages
end
end
end

8 changes: 4 additions & 4 deletions lib/tabula_workspace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def add_file(contents, document_id, filename)
end

def move_file(path, document_id, filename)
FileUtils.mv(path, File.join(get_document_dir(document_id), filename))
FileUtils.mv(path, File.join(get_document_dir(document_id), filename),:noop=> false, :verbose=> true, :force=> true)
end

def copy_file(path, document_id, filename)
Expand All @@ -101,10 +101,10 @@ def add_template(template_metadata)

# write template metadata to workspace
@workspace["templates"].insert(0,{
"name" => template_metadata["name"].gsub(".tabula-template.json", ""),
"name" => template_metadata["name"].gsub(".tabula-template.json", ""),
"selection_count" => template_metadata["selection_count"],
"page_count" => template_metadata["page_count"],
"time" => template_metadata["time"],
"page_count" => template_metadata["page_count"],
"time" => template_metadata["time"],
"id" => template_metadata["id"]
})
# write template file to disk
Expand Down
39 changes: 39 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>groupId</groupId>
<artifactId>484_P7_1-GUI</artifactId>
<version>1.0-SNAPSHOT</version>

<build>
<testSourceDirectory>test/</testSourceDirectory>
</build>


<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.11.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.1</version>
</dependency>
</dependencies>
</project>
26 changes: 26 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
gem update --system
# download and use jruby
wget https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.1.16.0/jruby-dist-9.1.16.0-bin.zip
unzip jruby-dist-9.1.16.0-bin.zip
mv jruby-9.1.16.0 ~/
export PATH=~/jruby-9.1.16.0/bin:$PATH
# create back-end jar
echo 'CLONING BACK END REPO...'
cd ~/
git clone https://github.com/redmyers/tabula-java.git
cd tabula-java
echo 'CREATING BACK-END JAR...'
mvn clean compile assembly:single
mvn install:install-file -Dfile=../tabula-java/target/tabula-1.0.2-SNAPSHOT-jar-with-dependencies.jar -DgroupId=technology.tabula -DartifactId=tabula -Dversion=1.0.2-SNAPSHOT -Dpackaging=jar -DpomFile=pom.xml
# start server via GUI repo
cd ~/
git clone https://github.com/redmyers/484_P7_1-GUI.git
cd 484_P7_1-GUI
git checkout Header_Addition
export PATH=~/jruby-9.1.16.0/bin:$PATH
gem install bundler
bundle install
jruby -S jbundle install
jruby -G -r jbundler -S rackup

Loading