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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 793c38bd5d26267925b37737509d9ba7d125e0a971b566d084880fac2d6d6141
4
- data.tar.gz: 6efe638382bfee6a626873633403c53664b77cdce4aef522dadb5c1d72db11b1
3
+ metadata.gz: ebc2567be3e7f3a41d76e77be2abd068dee9d60584fca47db35e70e36f8706f1
4
+ data.tar.gz: 6641fa9577efbf87e27a549b3eb2646beffa32539bfcd01674a5f868ac880570
5
5
  SHA512:
6
- metadata.gz: 4661129b261a1f1907f28a12ac5b5d269a7f4e609b09175ac7f4a9f916e7459a464d07384831082fdc09cf2947dbcf39322c97683737f3350c164ca0f86e6d75
7
- data.tar.gz: 67f6fc0e8537f52d239d65c60f7d4960ea154fe62058486fff6a001b5972bfca88a71336d3f6589f45ea51c4eb8e0b5afa79a35bf86364d93b38252d0882f7a3
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 = OpenLayer::Client.new(api_key: "YOUR_OPENLAYER_API_KEY")
17
+ client = Openlayer::Client.new(api_key: "YOUR_OPENLAYER_API_KEY")
18
18
  inference_pipeline = client.inference_pipeline("YOUR_INFERENCE_PIPELINE_ID")
19
- inferencce_pipeline.stream_data(
19
+ inference_pipeline.stream_data(
20
20
  {
21
21
  rows: [...],
22
22
  config: {...}
@@ -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(**attributes)
13
- handle_response client.connection.post("inference-pipelines/#{inference_pipeline_id}/data-stream", attributes)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Openlayer
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.1"
5
5
  end
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", "~> 1.7"
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.2
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-18 00:00:00.000000000 Z
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: '1.7'
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: '1.7'
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