plaintext 0.1.0 → 0.2.0
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 +4 -4
- data/CHANGELOG +14 -0
- data/README.md +5 -5
- data/lib/plaintext/version.rb +1 -1
- data/plaintext.gemspec +2 -3
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c04f6f06ab6a16b423c2a74ddb38685a49a23372
|
|
4
|
+
data.tar.gz: 8dc49ce59bde01f25983b982323889a512fa900f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13876311c960330abc0596ccc09a5eb172feca1101fa154386182bb04c7cfe6ca5f2b8fb4a408ffa658fbe0cbc616e29c8770c2a0680ec11064e950a75eae19d
|
|
7
|
+
data.tar.gz: 50f4d40bcb4bfb257b4e280e081cea291a633203746c322c028e6dcacd53b68f0e5c50da6ede80bdeb0ae5a7c300c0ddb38694b4ee97d6ed8343ae81e5c8a69e
|
data/CHANGELOG
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.2.0] - 2018-12-22
|
|
10
|
+
### Changed
|
|
11
|
+
- relaxed Nokogiri dependency to '~> 1.8' for Redmine 4 (which uses 1.9)
|
|
12
|
+
|
|
13
|
+
## [0.1.0] - 2018-02-15
|
|
14
|
+
- Initial release
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# plaintext
|
|
1
|
+
# plaintext [](https://travis-ci.org/planio-gmbh/plaintext)
|
|
2
2
|
|
|
3
3
|
This gem wraps command line tools to extract plain text from typical files such as
|
|
4
4
|
|
|
@@ -47,10 +47,10 @@ your needs.
|
|
|
47
47
|
Then load that configuration file in an initializer. Add the following lines to `config/initializers/plaintext.rb`:
|
|
48
48
|
|
|
49
49
|
```ruby
|
|
50
|
-
|
|
51
|
-
if File.file?(
|
|
52
|
-
|
|
53
|
-
Plaintext::Configuration.load(
|
|
50
|
+
path = Rails.root.join 'config', 'plaintext.yml'
|
|
51
|
+
if File.file?(path)
|
|
52
|
+
config = File.read(path)
|
|
53
|
+
Plaintext::Configuration.load(config)
|
|
54
54
|
end
|
|
55
55
|
````
|
|
56
56
|
|
data/lib/plaintext/version.rb
CHANGED
data/plaintext.gemspec
CHANGED
|
@@ -12,15 +12,14 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.summary = 'Extract plain text from most common office documents.'
|
|
13
13
|
spec.description = "Extract text from common office files. Based on the file's content type a command line tool is selected to do the job."
|
|
14
14
|
spec.homepage = 'https://github.com/planio-gmbh/plaintext'
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
|
|
17
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
17
|
spec.bindir = "exe"
|
|
19
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
20
19
|
spec.require_paths = ["lib"]
|
|
21
20
|
|
|
22
21
|
spec.add_dependency 'rubyzip', '~> 1.2.1'
|
|
23
|
-
spec.add_dependency 'nokogiri', '~> 1.8
|
|
22
|
+
spec.add_dependency 'nokogiri', '~> 1.8'
|
|
24
23
|
spec.add_dependency 'activesupport', '>2.2.1 '
|
|
25
24
|
|
|
26
25
|
spec.add_development_dependency "bundler", "~> 1.10"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plaintext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jens Krämer
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2018-
|
|
13
|
+
date: 2018-12-22 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rubyzip
|
|
@@ -32,14 +32,14 @@ dependencies:
|
|
|
32
32
|
requirements:
|
|
33
33
|
- - "~>"
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: 1.8
|
|
35
|
+
version: '1.8'
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - "~>"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: 1.8
|
|
42
|
+
version: '1.8'
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: activesupport
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -107,6 +107,7 @@ files:
|
|
|
107
107
|
- ".gitignore"
|
|
108
108
|
- ".rspec"
|
|
109
109
|
- ".travis.yml"
|
|
110
|
+
- CHANGELOG
|
|
110
111
|
- Gemfile
|
|
111
112
|
- LICENSE
|
|
112
113
|
- README.md
|
|
@@ -136,8 +137,7 @@ files:
|
|
|
136
137
|
- plaintext.gemspec
|
|
137
138
|
- plaintext.yml.example
|
|
138
139
|
homepage: https://github.com/planio-gmbh/plaintext
|
|
139
|
-
licenses:
|
|
140
|
-
- GPL-2.0
|
|
140
|
+
licenses: []
|
|
141
141
|
metadata: {}
|
|
142
142
|
post_install_message:
|
|
143
143
|
rdoc_options: []
|
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
155
|
version: '0'
|
|
156
156
|
requirements: []
|
|
157
157
|
rubyforge_project:
|
|
158
|
-
rubygems_version: 2.
|
|
158
|
+
rubygems_version: 2.4.5.5
|
|
159
159
|
signing_key:
|
|
160
160
|
specification_version: 4
|
|
161
161
|
summary: Extract plain text from most common office documents.
|