Compare commits
18 Commits
3.4.0-beta
...
3
Author | SHA1 | Date |
---|---|---|
Guy Sartorelli | e04501cb52 | |
Maxime Rainville | 821d2858f3 | |
Guy Sartorelli | de215d63f6 | |
Maxime Rainville | 2a260607ec | |
Steve Boyd | 6a92eb58e2 | |
Guy Sartorelli | 87869e94a6 | |
Guy Sartorelli | 61f443d49c | |
Guy Sartorelli | 8f2e1d9b75 | |
Sabina Talipova | a281114ed2 | |
Steve Boyd | 1a0cd6d6a6 | |
Steve Boyd | 3bfa989a7e | |
Steve Boyd | 46b7f51040 | |
Guy Sartorelli | 041296bda2 | |
Steve Boyd | e8997870c5 | |
Steve Boyd | e8061724c5 | |
Steve Boyd | db8a36fa3e | |
Guy Sartorelli | 04ff0c6084 | |
Steve Boyd | e5bf4f1322 |
|
@ -0,0 +1,11 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: CI
|
||||||
|
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
|
|
@ -0,0 +1,16 @@
|
||||||
|
name: Dispatch CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
# At 12:20 PM UTC, only on Saturday and Sunday
|
||||||
|
schedule:
|
||||||
|
- cron: '20 12 * * 6,0'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dispatch-ci:
|
||||||
|
name: Dispatch CI
|
||||||
|
# Only run cron on the silverstripe account
|
||||||
|
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Dispatch CI
|
||||||
|
uses: silverstripe/gha-dispatch-ci@v1
|
|
@ -0,0 +1,17 @@
|
||||||
|
name: Keepalive
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
# The 4th of every month at 10:50am UTC
|
||||||
|
schedule:
|
||||||
|
- cron: '50 10 4 * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
keepalive:
|
||||||
|
name: Keepalive
|
||||||
|
# Only run cron on the silverstripe account
|
||||||
|
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Keepalive
|
||||||
|
uses: silverstripe/gha-keepalive@v1
|
|
@ -1,13 +0,0 @@
|
||||||
inherit: true
|
|
||||||
|
|
||||||
checks:
|
|
||||||
php: true
|
|
||||||
|
|
||||||
build:
|
|
||||||
nodes:
|
|
||||||
analysis:
|
|
||||||
tests:
|
|
||||||
override: [php-scrutinizer-run]
|
|
||||||
|
|
||||||
filter:
|
|
||||||
paths: [src/*, tests/*]
|
|
|
@ -1,4 +0,0 @@
|
||||||
version: ~> 1.0
|
|
||||||
|
|
||||||
import:
|
|
||||||
- silverstripe/silverstripe-travis-shared:config/provision/standard-jobs-range.yml
|
|
12
README.md
12
README.md
|
@ -1,9 +1,7 @@
|
||||||
# Text extraction module
|
# Text extraction module
|
||||||
|
|
||||||
[![Build Status](https://api.travis-ci.com/silverstripe/silverstripe-textextraction.svg?branch=3)](https://travis-ci.com/silverstripe/silverstripe-textextraction)
|
[![CI](https://github.com/silverstripe/silverstripe-textextraction/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-textextraction/actions/workflows/ci.yml)
|
||||||
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-textextraction/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-textextraction/?branch=master)
|
[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/)
|
||||||
[![codecov](https://codecov.io/gh/silverstripe/silverstripe-textextraction/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-textextraction)
|
|
||||||
[![SilverStripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/)
|
|
||||||
|
|
||||||
Provides a text extraction API for file content, that can hook into different extractor
|
Provides a text extraction API for file content, that can hook into different extractor
|
||||||
engines based on availability and the parsed file format. The output returned is always a string of the file content.
|
engines based on availability and the parsed file format. The output returned is always a string of the file content.
|
||||||
|
@ -24,7 +22,7 @@ The module supports text extraction on the following file formats:
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* SilverStripe ^4.0
|
* Silverstripe ^4.0
|
||||||
* (optional) [XPDF](http://www.foolabs.com/xpdf/) (`pdftotext` utility)
|
* (optional) [XPDF](http://www.foolabs.com/xpdf/) (`pdftotext` utility)
|
||||||
* (optional) [Apache Solr with ExtracingRequestHandler](http://wiki.apache.org/solr/ExtractingRequestHandler)
|
* (optional) [Apache Solr with ExtracingRequestHandler](http://wiki.apache.org/solr/ExtractingRequestHandler)
|
||||||
* (optional) [Apache Tika](http://tika.apache.org/)
|
* (optional) [Apache Tika](http://tika.apache.org/)
|
||||||
|
@ -54,8 +52,8 @@ If the issue does look like a new bug:
|
||||||
- Create a new issue
|
- Create a new issue
|
||||||
- Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots
|
- Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots
|
||||||
and screencasts can help here.
|
and screencasts can help here.
|
||||||
- Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version,
|
- Describe your environment as detailed as possible: Silverstripe version, Browser, PHP version,
|
||||||
Operating System, any installed SilverStripe modules.
|
Operating System, any installed Silverstripe modules.
|
||||||
|
|
||||||
Please report security issues to security@silverstripe.org directly. Please don't file security issues in the bugtracker.
|
Please report security issues to security@silverstripe.org directly. Please don't file security issues in the bugtracker.
|
||||||
|
|
||||||
|
|
|
@ -42,4 +42,4 @@
|
||||||
"extra": [],
|
"extra": [],
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true
|
"prefer-stable": true
|
||||||
}
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Default">
|
<testsuite name="Default">
|
||||||
|
|
|
@ -108,7 +108,7 @@ class TikaRestClient extends Client
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this->mimes = Convert::json2array($response->getBody());
|
return $this->mimes = json_decode($response->getBody(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue