anthropic 0.3.1 → 0.3.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: 9e97ad4ba3bb5f72993b149b48b0519c74f2ec2ec81d831635fb4f8fd58e0752
4
- data.tar.gz: c9680b4b3dbc60dce535c7901a496f4c250db488786c8686b31044a59eddaab5
3
+ metadata.gz: 4b7437e17231234859a48749dd8da3cdbd5a809df002cb2654a78b6d91edbff5
4
+ data.tar.gz: 38b2a62cc793013345b9eeef31d152f3fcd1a704515a45640132ff8ceccfd24c
5
5
  SHA512:
6
- metadata.gz: 3ba13081aae415c8fe3f6a0d18a11b6ebf8922543d46fd4ee4124bb0bf1d7890f669f89bbb50f08522c199c15fb36a3b604d928ef99d82bf0a929d00db021752
7
- data.tar.gz: 517a53e9dd57e9f56c71f7a13cd769975acea95cc137b79e8ee4062855ba243e0473ddfb8c81609a17da8099e5a6966bb5dfc2ceed0760ecdc6ac5e37c1ec3df
6
+ metadata.gz: 53e3400a7f4a752a981e788dac7b83c286732dd18216ad0314a7a84d703f582930b5dcaeae19ebcd8c8ab3ace746dbe277e096fe5604c5b3edc9163acf1b16fd
7
+ data.tar.gz: 94ea524fb3e4b6a1e7b8f3277315b7a001488bbb7d345240cf6120820af405be212f6a8e6a30f480e2c14110cc03cd71545cf022538d6ce1c8936f7631cef41e
data/CHANGELOG.md CHANGED
@@ -5,11 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.2] - 2024-10-09
9
+
10
+ ### Fixed
11
+
12
+ - Fix for use with older versions of Faraday pre-v2.5.0. Thanks to [@geeosh](https://github.com/geeosh) for the PR!
13
+
8
14
  ## [0.3.1] - 2024-10-09
9
15
 
10
16
  ### Fixed
11
17
 
12
- - Fix for Tool streaming.
18
+ - Fix for Tool streaming. Thanks to [@Leteyski](https://github.com/Leteyski) for this fix!
13
19
 
14
20
  ## [0.3.0] - 2024-06-10
15
21
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- anthropic (0.3.1)
4
+ anthropic (0.3.2)
5
5
  event_stream_parser (>= 0.3.0, < 2.0.0)
6
6
  faraday (>= 1)
7
7
  faraday-multipart (>= 1)
@@ -73,7 +73,9 @@ module Anthropic
73
73
  preprocess_stack = ""
74
74
 
75
75
  proc do |chunk, _bytes, env|
76
- handle_faraday_error(chunk, env)
76
+ # Versions of Faraday < 2.5.0 do not include an `env` argument,
77
+ # so we have to assume they are successful
78
+ handle_faraday_error(chunk, env) if env
77
79
 
78
80
  parser.feed(chunk) do |type, data|
79
81
  parsed_data = JSON.parse(data)
@@ -1,3 +1,3 @@
1
1
  module Anthropic
2
- VERSION = "0.3.1".freeze
2
+ VERSION = "0.3.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anthropic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex