openlayer 0.1.2 → 0.2.0
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/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: bf4d880b659e95a8a73c7948c877ddb2149484e87e1c5be370e4cc3c31438642
|
4
|
+
data.tar.gz: 0a501f964cfbd01640dfde94bbea7144818726b349cca477e3e58ff0a745d0ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25a7f82dd32a7b0c7cb26e93139e705dc7b0467fd6023386d1a579c4b620940f72c8322a7b787f64bce6fb64d76b8528a31d057ed49b40ecc37071dc9cff68bf
|
7
|
+
data.tar.gz: 0f77e74e0851240ca390e168222b8cf2322dc4aaf7810476c78642368667839070ff6664419cba81834a4bc741a6a388ca63ce14fc603c871d64b4c1313d674f
|
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
|
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.
|
4
|
+
version: 0.2.0
|
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
|