cohere-ruby 0.9.1 → 0.9.2

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: 0c67041bcd2e0d7e0992bedc136a47406882b80f1ec4eb2b8ed9d0d359d27a67
4
- data.tar.gz: d55d966852f0046ac1bb869200d37da08a7cccee46cf850259f38b8bd4e14b92
3
+ metadata.gz: 52c112897d243ee60c582f2aedc1a84a11b3dcec41470b2e8cae2411cb524776
4
+ data.tar.gz: fedb32a5e5186589fb90ef8eaf8915a8b001d9d2ad8b576c4bd2f6707a26b8a5
5
5
  SHA512:
6
- metadata.gz: 492c6e18297271bdcd600842e9c1a42eac2660d59e794813875b2eb5b70e899f4a687812b7e470c218a123d2ce00cdbd720d690f0baf492bdefff0d50ee8320b
7
- data.tar.gz: d955326483690a221dbfc8c2a1ddbf60b9a7731e34b2458f0b87acf4a932790d3f0d8f618ff9c71003c06e2cb5cf32d44915b824c3364a9229283223780f4a5d
6
+ metadata.gz: 6268e7067c2ff09e019e61dc8839e319aaabd7f7f687bfc2caa198af7a787c927dcd615f54974351a8f667490a1a6fd914b7e018c361b6ddc59fa1850393a156
7
+ data.tar.gz: f4ac37e10a43250191d09666655a95ff0895a6c1511c90723765ca40d8241641cfefb1db5b6d4cefd896da5b458165118e1550ebc90703b700d3859fe6e90bc6
data/Gemfile.lock CHANGED
@@ -1,21 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cohere-ruby (0.9.1)
5
- faraday (~> 2.7.0)
4
+ cohere-ruby (0.9.2)
5
+ faraday (~> 1)
6
+ faraday_middleware (~> 1)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
11
  ast (2.4.2)
11
12
  diff-lcs (1.5.0)
12
- faraday (2.7.4)
13
- faraday-net_http (>= 2.0, < 3.1)
14
- ruby2_keywords (>= 0.0.4)
15
- faraday-net_http (3.0.2)
13
+ faraday (1.2.0)
14
+ multipart-post (>= 1.2, < 3)
15
+ ruby2_keywords
16
+ faraday_middleware (1.2.0)
17
+ faraday (~> 1.0)
16
18
  json (2.6.3)
17
19
  language_server-protocol (3.17.0.3)
18
20
  lint_roller (1.0.0)
21
+ multipart-post (2.3.0)
19
22
  parallel (1.23.0)
20
23
  parser (3.2.2.1)
21
24
  ast (~> 2.4.1)
data/README.md CHANGED
@@ -24,6 +24,8 @@ If bundler is not being used to manage dependencies, install the gem by executin
24
24
 
25
25
  ### Instantiating API client
26
26
  ```ruby
27
+ require "cohere"
28
+
27
29
  client = Cohere::Client.new(
28
30
  api_key: ENV['COHERE_API_KEY']
29
31
  )
data/lib/cohere/client.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "faraday"
4
+ require "faraday_middleware"
4
5
 
5
6
  module Cohere
6
7
  class Client
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cohere
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cohere-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Bondarev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-24 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.7.0
19
+ version: '1'
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: 2.7.0
26
+ version: '1'
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'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
27
41
  description: Cohere API client for Ruby.
28
42
  email:
29
43
  - andrei.bondarev13@gmail.com