tika-app 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7e13e3b027b7dfdb22b89fd6c07a8b021c3210e
4
- data.tar.gz: 2e1021d068af535cef610eb244540a4c4f671052
3
+ metadata.gz: dac88ca710d2516a90d29989bb0ea63a14df2006
4
+ data.tar.gz: ca55ac4ccb810f4e590f9f868d3afa3fa2842d61
5
5
  SHA512:
6
- metadata.gz: 1f8ff1d0edac49772f8ecd1f8577458824014a6dfd359b96c0680f600addb1039ae1c90dd2d4605653698715bb45427abd5e89f5d9102e05844804727356ecc4
7
- data.tar.gz: 74dedc5a7debfb4100a9db85dc1a095c0da329e01659b0a8526770ec95c52cddc62fa5d229d1a2e3a7849ac3e5e07f2f8d11f7093e62a3970fca4b75aa91c23b
6
+ metadata.gz: 0d8ec1b6d79e06797c82533545434ef738a603f4547387a62a9a86361b9b8e5e23dfb32c8b5859dfe1082b316e028c5d7ada6a0975afe496a035b3a2ec93d4af
7
+ data.tar.gz: ec436a41263594aaf20de28321c287521f4a768932ad539380ed48ed30313c73f1cd74756c98ba3b7bd6b79237ea4533454a181123c0b59e5e327bb2f4914629
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Tika::App
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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.0
1
+ 0.1.1
@@ -1,6 +1,4 @@
1
1
  require "open3"
2
- require "tempfile"
3
- require_relative "result"
4
2
 
5
3
  module Tika
6
4
  class Command
@@ -1,4 +1,5 @@
1
1
  require_relative "command"
2
+ require_relative "result"
2
3
 
3
4
  module Tika
4
5
  module Commands
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.0
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-04-15 00:00:00.000000000 Z
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.2.2
103
+ rubygems_version: 2.4.6
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Ruby Tika app bindings