libera 1.0.3 → 1.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc67662d24297b55afcd217860f7e697705a8ab953bcc231c32470cdfd62e3ca
4
- data.tar.gz: 5179c2a11db34d3681716e7a59d4850f3cd5e81a89cce8d0de066bcc384f6243
3
+ metadata.gz: 3b18cafd8da29b2c0ab3634a6e59c5ccb5c5872c6c40e4f94e368cb40f12b4f3
4
+ data.tar.gz: 5904b679490946cff98a77c3cdaf668f543a540b8948ef2804331cc76d7ae06b
5
5
  SHA512:
6
- metadata.gz: 30ac6eb77d7f1055411ba8f440cf850ba2cae900919be56389e7bf700f803e128da576e12f7b9b95990ba122d2bba918089b4b52a8e9f413f39bfcf987c958df
7
- data.tar.gz: 562b9e12cf76f7a91564cedefadda8ebf6777d1910e0a4092ad32938125b13d9fc210d94e0c44bc7984bfcc6e265e495e84a86314b4fd5468522bc3233004c7b
6
+ metadata.gz: 18e6ff9786c70f3c4763028cbc76884793afbbbe92b3b51f82ffcb336cd916cd459c7484355ae2dcfc77aea3489d98a7dbf8e260c2d25f16a24cc497e29dfbec
7
+ data.tar.gz: a708d6a2f90afb16c796763e1ea9c6ac29fc539e07629e04557dd31dbb106cf1833276f1b8a52bbf124ab59fc5f245ca268429eeb5fdd54f108f2c02dd900a28
@@ -0,0 +1 @@
1
+ ruby-2.5.8
data/Dockerfile CHANGED
@@ -10,5 +10,6 @@ USER libera
10
10
  RUN mkdir -p /home/libera/source
11
11
  WORKDIR /home/libera/source
12
12
  COPY --chown=libera:libera . /home/libera/source
13
+ RUN /home/libera/source/bin/setup
13
14
  RUN gem build libera.gemspec
14
- RUN gem install libera-1.0.3.gem
15
+ RUN gem install libera-1.0.4.gem
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- libera (1.0.0)
4
+ libera (1.0.4)
5
5
  fileutils (~> 1)
6
6
  nokogiri (~> 1.8)
7
7
  om (~> 3.1)
@@ -14,14 +14,14 @@ GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
16
  Ascii85 (1.0.3)
17
- activemodel (6.0.2.1)
18
- activesupport (= 6.0.2.1)
19
- activesupport (6.0.2.1)
17
+ activemodel (6.0.3.1)
18
+ activesupport (= 6.0.3.1)
19
+ activesupport (6.0.3.1)
20
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
21
21
  i18n (>= 0.7, < 2)
22
22
  minitest (~> 5.1)
23
23
  tzinfo (~> 1.1)
24
- zeitwerk (~> 2.2)
24
+ zeitwerk (~> 2.2, >= 2.2.2)
25
25
  afm (0.2.2)
26
26
  concurrent-ruby (1.1.6)
27
27
  daemons (1.3.1)
@@ -31,8 +31,8 @@ GEM
31
31
  i18n (1.8.2)
32
32
  concurrent-ruby (~> 1.0)
33
33
  mini_portile2 (2.4.0)
34
- minitest (5.14.0)
35
- nokogiri (1.10.8)
34
+ minitest (5.14.1)
35
+ nokogiri (1.10.9)
36
36
  mini_portile2 (~> 2.4.0)
37
37
  om (3.2.0)
38
38
  activemodel (>= 5.1, < 7)
@@ -73,10 +73,10 @@ GEM
73
73
  stomp (1.4.9)
74
74
  thread_safe (0.3.6)
75
75
  ttfunk (1.6.2.1)
76
- tzinfo (1.2.6)
76
+ tzinfo (1.2.7)
77
77
  thread_safe (~> 0.1)
78
78
  xml-simple (1.1.5)
79
- zeitwerk (2.2.2)
79
+ zeitwerk (2.3.0)
80
80
 
81
81
  PLATFORMS
82
82
  ruby
@@ -88,4 +88,4 @@ DEPENDENCIES
88
88
  rspec (~> 3)
89
89
 
90
90
  BUNDLED WITH
91
- 1.16.1
91
+ 1.17.3
data/README.md CHANGED
@@ -4,6 +4,26 @@ Libera is a gem built for Charon - https://github.com/NEU-Libraries/charon - a d
4
4
 
5
5
  It's purpose is to take PDF files as input, and split them apart into individual page images for OCR and TEI generation.
6
6
 
7
+ ## Docker
8
+
9
+ Whilst there are installation instructions below for work as a developer, often times there are significant environmental challenges to software setup. To that end, Libera can be run in Docker. Install Docker as instructed here - https://docs.docker.com/install/
10
+
11
+ Then pull down the libera container image;
12
+
13
+ docker pull nakatomi/libera
14
+
15
+ To share the PDF with the application, you'll need to bind mount a directory to the container. If you run into permission errors or an empty directory issue, you'll need to consult the variances that can occur based on host operating system - https://docs.docker.com/storage/bind-mounts/
16
+
17
+ An example of how to run the container, use a bind mount, and instruct libera is below
18
+
19
+ docker run -ti --mount type=bind,source=/c/Libera,target=/home/libera/work_dir nakatomi/libera libera -p /home/libera/work_dir/dsg.pdf -w /home/libera/work_dir
20
+
21
+ In the above example, the mounted host directory ```/c/Libera``` becomes ```/home/libera/work_dir``` inside the container. In this use case, we use the same directory to deliver the PDF ```dsg.pdf``` as well as use it for where the produced artifacts are then made.
22
+
23
+ The last section of the above is the same as if you'd run Libera in your home operating system
24
+
25
+ libera -p /home/libera/work_dir/dsg.pdf -w /home/libera/work_dir
26
+
7
27
  ## Installation
8
28
 
9
29
  There are some programs that are required for Libera to work;
@@ -83,7 +83,7 @@ module Libera
83
83
 
84
84
  def mk_working_dir
85
85
  # Check if working dir exists - If not, make it
86
- FileUtils.mkdir("#{Libera.configuration.working_dir}") unless File.exists? "#{Libera.configuration.working_dir}"
86
+ FileUtils.mkdir_p("#{Libera.configuration.working_dir}") unless File.exists? "#{Libera.configuration.working_dir}"
87
87
  end
88
88
  end
89
89
 
@@ -1,3 +1,3 @@
1
1
  module Libera
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libera
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-19 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -160,6 +160,7 @@ extra_rdoc_files: []
160
160
  files:
161
161
  - ".gitignore"
162
162
  - ".rspec"
163
+ - ".ruby-version"
163
164
  - ".travis.yml"
164
165
  - Dockerfile
165
166
  - Gemfile
@@ -194,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
195
  version: '0'
195
196
  requirements: []
196
197
  rubyforge_project:
197
- rubygems_version: 2.7.6
198
+ rubygems_version: 2.7.6.2
198
199
  signing_key:
199
200
  specification_version: 4
200
201
  summary: A utility gem for processing PDFs for OCR and TEI