unstructured 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
  SHA256:
3
- metadata.gz: 66c48cd9be308e1d08567869d61c5fb450a1251928dd9f013313096224b4735b
4
- data.tar.gz: 77ddd812edc3de3c23a1419e11179906c51f78ebe9ac3849f4401fd61d931436
3
+ metadata.gz: fa0d699cea60414f18b20141a762fd799888f9fed302932bcca79f56d2aa920d
4
+ data.tar.gz: a2c500ce244f280063b70ad4842af872dfcfb76b088dd677beda3a5db56e8a6e
5
5
  SHA512:
6
- metadata.gz: 9c3b456532eb9739f883f3299d69556259687df63c4b253b8caf3d0745aca6f7563eeaf29110e6c1660bb6ab7aaed8094362ae3af28c27cfd2e0f6b656e5e087
7
- data.tar.gz: a8e7bc04334a13d214e7d9f32bb0f8e6cc512632e1c96c14873c6c931030aac552a9ac5815b7df6755ca52edf4ed16785abc501972cae7f642854ec0fcf9c24a
6
+ metadata.gz: 99a1ed5e1bca90e7dcd837aea54f5dbea074d6382fb8664f5ce1337b60a6b6fa532d5493315630ee0cb8c493265770657a20b3adba9af1b534471bc126181bd5
7
+ data.tar.gz: 453c780ecab30f178847c1ef6e5c2c0e08f00bae4b7bf549b7d1c37fb1b861bd14c5208728575f0156e3cc61a4a441cfaf6ac24d1819cb6e9faa67498a4752ab
data/README.md CHANGED
@@ -3,17 +3,19 @@ This is a Ruby client for the [Unstructured API](https://unstructured-io.github.
3
3
 
4
4
  ## Installation
5
5
 
6
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
7
-
8
6
  Install the gem and add to the application's Gemfile by executing:
9
-
10
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
7
+ ```
8
+ $ bundle add unstructured
9
+ ```
11
10
 
12
11
  If bundler is not being used to manage dependencies, install the gem by executing:
13
-
14
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
12
+ ```
13
+ $ gem install unstructured
14
+ ```
15
15
 
16
16
  ## Usage
17
+ Find all available params on [Unstructured documentation](https://unstructured-io.github.io/unstructured/apis/api_parameters.html)
18
+
17
19
  ```ruby
18
20
  server_url = "https://api.unstructured.io" # "http://localhost:8000" if you are running a docker container
19
21
  client = Unstructured::Client.new(server_url: server_url, api_key: ENV["UNSTRUCTURED_API_KEY"])
@@ -28,7 +30,6 @@ params = {
28
30
  new_after_n_chars: 1000
29
31
  }
30
32
  chunks = client.partition(file_path, params)
31
-
32
33
  ```
33
34
 
34
35
  ## Development
@@ -31,8 +31,8 @@ module Unstructured
31
31
  ChunkCollection.from_response handle_response(connection.post(
32
32
  "/general/v0/general",
33
33
  default_params.merge(params).merge({
34
- files: files(file_path)
35
- }),
34
+ files: files(file_path)
35
+ }),
36
36
  headers
37
37
  ))
38
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Unstructured
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unstructured
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
  - Jose Fernando Davila