tika-app 0.1.0 → 0.1.1
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/README.md +23 -2
- data/VERSION +1 -1
- data/lib/tika/command.rb +0 -2
- data/lib/tika/commands.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dac88ca710d2516a90d29989bb0ea63a14df2006
|
|
4
|
+
data.tar.gz: ca55ac4ccb810f4e590f9f868d3afa3fa2842d61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d8ec1b6d79e06797c82533545434ef738a603f4547387a62a9a86361b9b8e5e23dfb32c8b5859dfe1082b316e028c5d7ada6a0975afe496a035b3a2ec93d4af
|
|
7
|
+
data.tar.gz: ec436a41263594aaf20de28321c287521f4a768932ad539380ed48ed30313c73f1cd74756c98ba3b7bd6b79237ea4533454a181123c0b59e5e327bb2f4914629
|
data/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Tika::App
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Ruby bindings for Tika (tika-app.jar).
|
|
4
|
+
|
|
5
|
+
Compatible with Tika 1.9.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
@@ -18,9 +20,28 @@ Or install it yourself as:
|
|
|
18
20
|
|
|
19
21
|
$ gem install tika-app
|
|
20
22
|
|
|
23
|
+
## Configuration
|
|
24
|
+
|
|
25
|
+
Set path to Tika jar file:
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
Tika::App.path = "/path/to/tika-app.jar"
|
|
29
|
+
```
|
|
30
|
+
|
|
21
31
|
## Usage
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
```ruby
|
|
34
|
+
> resource = Tika::Resource.new("README.md")
|
|
35
|
+
=> #<Tika::Resource:0x007f996a04fbe0 @file="README.md", @app=#<Tika::App:0x007f996a04fb68 @path="/path/to/tika-app.jar">, @opts={}>
|
|
36
|
+
> resource.metadata
|
|
37
|
+
=> {"Content-Encoding"=>"ISO-8859-1", "Content-Length"=>"580", "Content-Type"=>"text/plain; charset=ISO-8859-1", "X-Parsed-By"=>["org.apache.tika.parser.DefaultParser", "org.apache.tika.parser.txt.TXTParser"], "resourceName"=>"README.md"}
|
|
38
|
+
> resource.language
|
|
39
|
+
=> "en"
|
|
40
|
+
> resource.content_type
|
|
41
|
+
=> "text/x-web-markdown"
|
|
42
|
+
> resource.text
|
|
43
|
+
=> "# Tika::App\n\nRuby bindings for Tika command-line API.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'tika-app'\n```\n\nAnd then execute:\n\n $ bundle\n\nOr install it yourself as:\n\n $ gem install tika-app\n\n## Usage\n\nTODO: Write usage instructions here\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/tika-app/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request"
|
|
44
|
+
```
|
|
24
45
|
|
|
25
46
|
## Contributing
|
|
26
47
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
data/lib/tika/command.rb
CHANGED
data/lib/tika/commands.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tika-app
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- dchandekstark
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
version: '0'
|
|
101
101
|
requirements: []
|
|
102
102
|
rubyforge_project:
|
|
103
|
-
rubygems_version: 2.
|
|
103
|
+
rubygems_version: 2.4.6
|
|
104
104
|
signing_key:
|
|
105
105
|
specification_version: 4
|
|
106
106
|
summary: Ruby Tika app bindings
|