openlayer 0.1.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/openlayer/client.rb +1 -1
- data/lib/openlayer/inference_pipeline.rb +2 -2
- data/lib/openlayer/version.rb +1 -1
- data/openlayer.gemspec +1 -2
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebc2567be3e7f3a41d76e77be2abd068dee9d60584fca47db35e70e36f8706f1
|
4
|
+
data.tar.gz: 6641fa9577efbf87e27a549b3eb2646beffa32539bfcd01674a5f868ac880570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e770b5a7767f8cb5af2a39db21878519888daad9b099cb2a147ba7445ee46457ffec6e02584f23a48e96ccfe28fb55a0a710731c10af16e938dd39eaebfbe03
|
7
|
+
data.tar.gz: eff22b7d4b39dba55a5679d0d78dcd83a47228cc804b99d596a2110069266a67f4efdad00418a257ff616eb5337f1add4ed887172eaac5705924dd897fe6b391
|
data/README.md
CHANGED
@@ -14,9 +14,9 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
14
14
|
## Usage
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
client =
|
17
|
+
client = Openlayer::Client.new(api_key: "YOUR_OPENLAYER_API_KEY")
|
18
18
|
inference_pipeline = client.inference_pipeline("YOUR_INFERENCE_PIPELINE_ID")
|
19
|
-
|
19
|
+
inference_pipeline.stream_data(
|
20
20
|
{
|
21
21
|
rows: [...],
|
22
22
|
config: {...}
|
data/lib/openlayer/client.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "faraday"
|
4
|
-
require "faraday_middleware"
|
5
4
|
|
6
5
|
module Openlayer
|
7
6
|
class Client
|
@@ -21,6 +20,7 @@ module Openlayer
|
|
21
20
|
conn.request :authorization, "Bearer", api_key
|
22
21
|
conn.request :json
|
23
22
|
conn.response :json, content_type: "application/json"
|
23
|
+
conn.response :logger
|
24
24
|
conn.adapter adapter, @stubs
|
25
25
|
end
|
26
26
|
end
|
@@ -9,8 +9,8 @@ module Openlayer
|
|
9
9
|
@inference_pipeline_id = inference_pipeline_id
|
10
10
|
end
|
11
11
|
|
12
|
-
def stream_data(
|
13
|
-
handle_response client.connection.post("inference-pipelines/#{inference_pipeline_id}/data-stream",
|
12
|
+
def stream_data(body = {})
|
13
|
+
handle_response client.connection.post("inference-pipelines/#{inference_pipeline_id}/data-stream", body)
|
14
14
|
true
|
15
15
|
end
|
16
16
|
|
data/lib/openlayer/version.rb
CHANGED
data/openlayer.gemspec
CHANGED
@@ -34,8 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
|
35
35
|
# Uncomment to register a new dependency of your gem
|
36
36
|
# spec.add_dependency "example-gem", "~> 1.0"
|
37
|
-
spec.add_dependency "faraday", "~>
|
38
|
-
spec.add_dependency "faraday_middleware", "~> 1.1.0"
|
37
|
+
spec.add_dependency "faraday", "~> 2.9.0"
|
39
38
|
|
40
39
|
# For more information and examples about making a new gem, check out our
|
41
40
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openlayer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Fernando Davila
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,28 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.9.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: faraday_middleware
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.1.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.1.0
|
26
|
+
version: 2.9.0
|
41
27
|
description: Openlayer api wrapper
|
42
28
|
email:
|
43
29
|
- davila.jose23@gmail.com
|