cohere-ruby 0.9.0 → 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: 02ed5a633d1adf0626506a7f1d6023b268b54c3f7c3320086ef5a63240d8e024
4
- data.tar.gz: c6105abcfaefd5996eeba2fa8cac19e64debcf0a0e4d68f73cc12b340b521305
3
+ metadata.gz: 52c112897d243ee60c582f2aedc1a84a11b3dcec41470b2e8cae2411cb524776
4
+ data.tar.gz: fedb32a5e5186589fb90ef8eaf8915a8b001d9d2ad8b576c4bd2f6707a26b8a5
5
5
  SHA512:
6
- metadata.gz: 27d9ac0456381e1b1734b88432832a9623fc66c87a437747a3e6b64103dce806920fcb208531a8eb7c19befbcc595cd35a653fb2ab4e8d8cd167c2c7c194214c
7
- data.tar.gz: be9555d9ac14e534c70afe1df520666ff893abc60a54161435bcce45b0973974722cbd81565f74793699b49d23e3e6871957ee5d10010da63eeb8c352a665a7c
6
+ metadata.gz: 6268e7067c2ff09e019e61dc8839e319aaabd7f7f687bfc2caa198af7a787c927dcd615f54974351a8f667490a1a6fd914b7e018c361b6ddc59fa1850393a156
7
+ data.tar.gz: f4ac37e10a43250191d09666655a95ff0895a6c1511c90723765ca40d8241641cfefb1db5b6d4cefd896da5b458165118e1550ebc90703b700d3859fe6e90bc6
data/Gemfile CHANGED
@@ -8,4 +8,4 @@ gemspec
8
8
  gem "rake", "~> 13.0"
9
9
 
10
10
  gem "rspec", "~> 3.0"
11
- gem "standard", "~> 1.28.0"
11
+ gem "standard", "~> 1.28.0"
data/Gemfile.lock CHANGED
@@ -1,21 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cohere-ruby (0.9.0)
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
@@ -126,6 +127,7 @@ module Cohere
126
127
 
127
128
  private
128
129
 
130
+ # standard:disable Lint/DuplicateMethods
129
131
  def connection
130
132
  @connection ||= Faraday.new(url: ENDPOINT_URL) do |faraday|
131
133
  if api_key
@@ -136,5 +138,6 @@ module Cohere
136
138
  faraday.adapter Faraday.default_adapter
137
139
  end
138
140
  end
141
+ # standard:enable Lint/DuplicateMethods
139
142
  end
140
143
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cohere
4
- VERSION = "0.9.0"
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.0
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