wax_tasks 1.1.2 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +30 -0
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -0
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/lib/tasks/derivatives_simple.rake +1 -1
- data/lib/wax_tasks/collection/images.rb +1 -1
- data/lib/wax_tasks/record.rb +6 -3
- data/lib/wax_tasks/version.rb +1 -1
- metadata +4 -4
- data/.travis.yml +0 -27
- data/CHANGELOG.md +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fd8340a2ecff9fe1d3fa57fa2bbd0d70dfbf33584131d2056a8805ee36e1902
|
4
|
+
data.tar.gz: db4172c4bbd872c5f07e042149137eb321d0b3dd7862819a2cdb4e758c5ae87c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f001ba8520a410f2601eb6386fd2fca430af7f8feea875497e589454472822a6ceecb8bf41711be8cdff89b45a63f82393da7354a98bd8e0a4392515de4ae65
|
7
|
+
data.tar.gz: abbec63cdc47318a45b9dc3eb74d9341f39f3aac2ba807879bb9008467f1f78c9b4033e2ec344367b54e88d1434717456a71f59fb181d16ac35a5e779f7a7b99
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: ci:test
|
2
|
+
on:
|
3
|
+
pull_request:
|
4
|
+
paths-ignore:
|
5
|
+
- '**/README.md'
|
6
|
+
push:
|
7
|
+
paths-ignore:
|
8
|
+
- '**/README.md'
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
rspec:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
steps:
|
14
|
+
- name: change imagemagick policy to allow pdf->png conversion.
|
15
|
+
run: |
|
16
|
+
sudo sed -i 's/^.*policy.*coder.*none.*PDF.*//' /etc/ImageMagick-6/policy.xml
|
17
|
+
- name: install ghostscript
|
18
|
+
run: sudo apt-get update && sudo apt-get install -y ghostscript
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
with:
|
21
|
+
fetch-depth: 1
|
22
|
+
- uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
bundler-cache: true
|
25
|
+
- name: install
|
26
|
+
run: gem install bundler && bundle
|
27
|
+
- name: check for outdated gems
|
28
|
+
run: bundle outdated
|
29
|
+
- name: test
|
30
|
+
run: bundle exec rspec
|
data/.rubocop.yml
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.2
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# wax_tasks 🐝
|
2
|
-
[![
|
2
|
+
[![ci:test](https://github.com/minicomp/wax_tasks/actions/workflows/ci.yml/badge.svg)](https://github.com/minicomp/wax_tasks/actions/workflows/ci.yml) [![Depfu](https://badges.depfu.com/badges/6105c55b9634e74b1c27055b19bad8f0/overview.svg)](https://depfu.com/github/minicomp/wax_tasks?project_id=10548)
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/wax_tasks.svg)](https://badge.fury.io/rb/wax_tasks)
|
4
4
|
[![Gem Downloads](https://img.shields.io/gem/dt/wax_tasks.svg?color=046d0b)](https://badge.fury.io/rb/wax_tasks)
|
5
5
|
[![docs](http://img.shields.io/badge/docs-rdoc.info-blue.svg?style=flat)](https://www.rubydoc.info/github/minicomp/wax_tasks/)
|
@@ -16,7 +16,7 @@ It can be used to:
|
|
16
16
|
- generate either IIIF-compliant derivatives ([wax:derivatives:iiif](#waxderivativesiiif)) or simple image derivatives ([wax:derivatives:simple](#waxderivativessimple)) from local image and pdf files
|
17
17
|
|
18
18
|
<br>
|
19
|
-
<img src="https://
|
19
|
+
<img src="https://raw.githubusercontent.com/minicomp/wiki/main/src/assets/wax_screen.gif?raw=true?raw=true"/>
|
20
20
|
|
21
21
|
|
22
22
|
# Getting Started
|
@@ -26,7 +26,7 @@ It can be used to:
|
|
26
26
|
You'll need `Ruby >= 2.4` with `bundler` installed. Check your versions with:
|
27
27
|
```bash
|
28
28
|
$ ruby -v
|
29
|
-
ruby 2.
|
29
|
+
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin18]
|
30
30
|
|
31
31
|
$ bundler -v
|
32
32
|
Bundler version 1.16.1
|
@@ -108,7 +108,7 @@ collections:
|
|
108
108
|
source 'source_images/objects' # path to the directory of source images, must be within '_data'
|
109
109
|
|
110
110
|
# wax search index settings
|
111
|
-
|
111
|
+
search:
|
112
112
|
main:
|
113
113
|
index: 'js/lunr-index.json' # where the index will be generated
|
114
114
|
collections: # the collections to index
|
@@ -4,7 +4,7 @@ require 'wax_tasks'
|
|
4
4
|
|
5
5
|
namespace :wax do
|
6
6
|
namespace :derivatives do
|
7
|
-
desc 'generate
|
7
|
+
desc 'generate simple derivatives from local image files'
|
8
8
|
task :simple do
|
9
9
|
args = ARGV.drop(1).each { |a| task a.to_sym }
|
10
10
|
args.reject! { |a| a.start_with? '-' }
|
data/lib/wax_tasks/record.rb
CHANGED
@@ -3,12 +3,15 @@
|
|
3
3
|
module WaxTasks
|
4
4
|
#
|
5
5
|
class Record
|
6
|
-
attr_reader :pid, :hash
|
6
|
+
attr_reader :pid, :hash
|
7
7
|
|
8
8
|
def initialize(hash)
|
9
9
|
@hash = hash
|
10
10
|
@pid = @hash.dig 'pid'
|
11
|
-
|
11
|
+
end
|
12
|
+
|
13
|
+
def order
|
14
|
+
@hash.dig 'order'
|
12
15
|
end
|
13
16
|
|
14
17
|
#
|
@@ -42,7 +45,7 @@ module WaxTasks
|
|
42
45
|
#
|
43
46
|
#
|
44
47
|
def order?
|
45
|
-
|
48
|
+
!order.to_s.empty?
|
46
49
|
end
|
47
50
|
|
48
51
|
#
|
data/lib/wax_tasks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wax_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marii Nyrop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: progress_bar
|
@@ -103,11 +103,11 @@ extra_rdoc_files: []
|
|
103
103
|
files:
|
104
104
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
105
105
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
106
|
+
- ".github/workflows/ci.yml"
|
106
107
|
- ".gitignore"
|
107
108
|
- ".rspec"
|
108
109
|
- ".rubocop.yml"
|
109
|
-
- ".
|
110
|
-
- CHANGELOG.md
|
110
|
+
- ".ruby-version"
|
111
111
|
- CODE_OF_CONDUCT.md
|
112
112
|
- Gemfile
|
113
113
|
- LICENSE
|
data/.travis.yml
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# sudo: true
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.4
|
5
|
-
- 2.5
|
6
|
-
- 2.6
|
7
|
-
addons:
|
8
|
-
apt:
|
9
|
-
packages:
|
10
|
-
- ghostscript
|
11
|
-
- tree
|
12
|
-
env:
|
13
|
-
global:
|
14
|
-
- CC_TEST_REPORTER_ID=9ef8644063d4113becf719844a0f9c0f8a452f87d69a8315c6fb090123e52cc8
|
15
|
-
before_install:
|
16
|
-
- gem update --system
|
17
|
-
- gem install bundler
|
18
|
-
- sudo rm /etc/ImageMagick-6/policy.xml
|
19
|
-
before_script:
|
20
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
21
|
-
- chmod +x ./cc-test-reporter
|
22
|
-
- ./cc-test-reporter before-build
|
23
|
-
script:
|
24
|
-
- bundle exec bundle-audit
|
25
|
-
- bundle exec rspec
|
26
|
-
after_script:
|
27
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/CHANGELOG.md
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
Welcome to the Changelog! Below is the first attempt at a log for this project.
|
4
|
-
|
5
|
-
Please note that we define ___breaking changes___ as those changes which force users to change how they interact with __wax_tasks__
|
6
|
-
via their site's `_config.yml` file or how they invoke the tasks on the command line.
|
7
|
-
|
8
|
-
## v1.0.3
|
9
|
-
#### Date: ???
|
10
|
-
|
11
|
-
#### Non-breaking Changes:
|
12
|
-
- :white_check_mark: Allows use of `wax_iiif < 0.3` (was `<0.2`)
|
13
|
-
- :white_check_mark: Fix bug where command options (e.g., `--trace`) were being parsed as task ARGV args.
|
14
|
-
|
15
|
-
## v1.0.2
|
16
|
-
#### Date: 06/12/2019
|
17
|
-
|
18
|
-
#### Non-breaking Changes:
|
19
|
-
- :white_check_mark: Fixes [32](https://github.com/minicomp/wax_tasks/issues/32); accepts narrow images (< 1140px)
|
20
|
-
- :white_check_mark: Fixes [33](https://github.com/minicomp/wax_tasks/issues/33); better image extension handling
|
21
|
-
- :white_check_mark: Fixes [34](https://github.com/minicomp/wax_tasks/issues/34); ^
|
22
|
-
- :white_check_mark: Fixes [36](https://github.com/minicomp/wax_tasks/issues/36); fixes bug if an image item doesn't have a record
|
23
|
-
|
24
|
-
## v1.0.1
|
25
|
-
#### Date: 06/05/2019
|
26
|
-
|
27
|
-
#### Non-breaking Changes:
|
28
|
-
- :white_check_mark: Uses `wax_iiif v0.1.2` with better progress bar handling on IIIF derivative generation
|
29
|
-
- :white_check_mark: Has better progress bar handling on simple derivative generation
|
30
|
-
|
31
|
-
## v1.0.0
|
32
|
-
#### Date: 06/04/2019
|
33
|
-
|
34
|
-
#### Breaking Changes:
|
35
|
-
- :bangbang: __Search index generation__ is now handled under the variable `search` in `_config.yml` instead of `lunr_index` and accepts a hash instead of an array.
|
36
|
-
- :bangbang: __Search index generation__ is now run with `bundle exec rake wax:search NAME` instead of `bundle exec rake wax:lunr`
|
37
|
-
- :x: __Search UI__ is now handled dynamically by `wax_theme`; as such the `UI=true` option on the rake task has been depricated.
|
38
|
-
- :x:: The __site testing__ task `bundle exec rake wax:test` was deprecated and moved to `wax_theme`, since it deals with site presentation and not the handling of collection data.
|
39
|
-
- :x: The `wax:jspackage` task was depricated, since it was arbitrary and unused.
|
40
|
-
|
41
|
-
#### Non-breaking Changes:
|
42
|
-
- :white_check_mark: The __page generation__ task `bundle exec rake wax:pagemaster NAME` has become `bundle exec rake wax:pages NAME`. However, this is currently aliased for backwards compatibility.
|