claude-ruby 0.1.0 → 0.1.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: b216c34d33d43142418a12fa080388398044f0552c2146b990a4d78d04f98d82
4
- data.tar.gz: 9f82ea13bea11b376aa10b058fba3d45afbc04100fe0fd103e7a6cbd8de5b46a
3
+ metadata.gz: bade409fb3530c6e6de1521db0162f7ae06278ce01cd4d3896b0c2ffc5b50818
4
+ data.tar.gz: 6d10c4d5444cd5a5828728ad5c80573e8e01f53d31bdad301f8e770be66d9594
5
5
  SHA512:
6
- metadata.gz: f774be056a44ab57dd6bab72f0dd7d98e9c25a76f52b7524809beeab003bd14ac400a9b93d8a67323e5902fc91be745131980925f074a47878e61b79727055db
7
- data.tar.gz: dcba4a5ff5c4472aa21222d20a37edc7558ae5d5b46abc332b4354844d93f1ff5c121e69766163bbb02f93fb8ca7a26e01da8ec7154fc1b6d533f8081f575f4b
6
+ metadata.gz: a447524b55699acdc8c3348c0b675fbacc35381e3a814c425bd53f7235a42e7edbcf9cfef26ca21a1f88385962d6b3d65029630c01ae65e87baf4527fcdd1fb4
7
+ data.tar.gz: 333037a3b8cb45a39a1ece28ad7ee027774888a59ca652a9497a0607b219a44742d3f297f16f0d3d1d9959cbe64310d4246b967bb66258a06936a6d27a475592
data/CHANGELOG.md CHANGED
@@ -1,3 +1,3 @@
1
- ## [0.1.0] - 2024-0310-
1
+ ## [0.1.1] - 2024-03-10
2
2
 
3
3
  - Initial release
data/Gemfile.lock ADDED
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ claude-ruby (0.1.1)
5
+ rest-client
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ docile (1.4.0)
12
+ domain_name (0.6.20240107)
13
+ http-accept (1.7.0)
14
+ http-cookie (1.0.5)
15
+ domain_name (~> 0.5)
16
+ json (2.7.1)
17
+ language_server-protocol (3.17.0.3)
18
+ mime-types (3.5.2)
19
+ mime-types-data (~> 3.2015)
20
+ mime-types-data (3.2024.0305)
21
+ minitest (5.22.2)
22
+ netrc (0.11.0)
23
+ parallel (1.24.0)
24
+ parser (3.3.0.5)
25
+ ast (~> 2.4.1)
26
+ racc
27
+ racc (1.7.3)
28
+ rainbow (3.1.1)
29
+ rake (13.1.0)
30
+ regexp_parser (2.9.0)
31
+ rest-client (2.1.0)
32
+ http-accept (>= 1.7.0, < 2.0)
33
+ http-cookie (>= 1.0.2, < 2.0)
34
+ mime-types (>= 1.16, < 4.0)
35
+ netrc (~> 0.8)
36
+ rexml (3.2.6)
37
+ rubocop (1.62.0)
38
+ json (~> 2.3)
39
+ language_server-protocol (>= 3.17.0)
40
+ parallel (~> 1.10)
41
+ parser (>= 3.3.0.2)
42
+ rainbow (>= 2.2.2, < 4.0)
43
+ regexp_parser (>= 1.8, < 3.0)
44
+ rexml (>= 3.2.5, < 4.0)
45
+ rubocop-ast (>= 1.31.1, < 2.0)
46
+ ruby-progressbar (~> 1.7)
47
+ unicode-display_width (>= 2.4.0, < 3.0)
48
+ rubocop-ast (1.31.2)
49
+ parser (>= 3.3.0.4)
50
+ ruby-progressbar (1.13.0)
51
+ simplecov (0.22.0)
52
+ docile (~> 1.1)
53
+ simplecov-html (~> 0.11)
54
+ simplecov_json_formatter (~> 0.1)
55
+ simplecov-html (0.12.3)
56
+ simplecov_json_formatter (0.1.4)
57
+ unicode-display_width (2.5.0)
58
+
59
+ PLATFORMS
60
+ arm64-darwin-22
61
+ ruby
62
+
63
+ DEPENDENCIES
64
+ claude-ruby!
65
+ minitest (~> 5.0)
66
+ rake (~> 13.0)
67
+ rest-client
68
+ rubocop (~> 1.21)
69
+ simplecov
70
+ simplecov_json_formatter
71
+
72
+ BUNDLED WITH
73
+ 2.5.3
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Claude Ruby
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/claude-ruby.svg)](https://badge.fury.io/rb/claude-ruby) [![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Maintainability](https://api.codeclimate.com/v1/badges/08c7e7b58e9fbe7156eb/maintainability)](https://codeclimate.com/github/webven/claude-ruby/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/08c7e7b58e9fbe7156eb/test_coverage)](https://codeclimate.com/github/webven/claude-ruby/test_coverage) [![CI](https://github.com/webven/claude-ruby/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/webven/claude-ruby/actions/workflows/ci.yml)
3
+ [![Gem Version](https://badge.fury.io/rb/claude-ruby.svg)](https://badge.fury.io/rb/claude-ruby) [![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Maintainability](https://api.codeclimate.com/v1/badges/08c7e7b58e9fbe7156eb/maintainability)](https://codeclimate.com/github/webventures/claude-ruby/maintainability) [![CI](https://github.com/webventures/claude-ruby/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/webventures/claude-ruby/actions/workflows/ci.yml)
4
4
 
5
5
  `claude-ruby` gem is an unofficial ruby SDK for interacting with the Anthropic API, for generating and streaming messages through Claude
6
6
 
@@ -26,15 +26,15 @@ $ gem install claude-ruby
26
26
 
27
27
  ## Usage
28
28
 
29
- To use this gemyou'll need an API key from Anthropic, which can be obtained from the Anthropic console
30
- by following the Get API Access link on the [Anthrpic API page](https://www.anthropic.com/api).
29
+ To use this gem you'll need an API key from Anthropic, which can be obtained from the Anthropic console
30
+ by following the Get API Access link on the [Anthropic API page](https://www.anthropic.com/api).
31
31
 
32
32
  Set your API key as an environment variable then you can create a new `Claude::Client` instance:
33
33
 
34
34
  ```ruby
35
35
  require 'claude/client'
36
36
 
37
- api_key = ENV['YOUR_ANTROPIC_API_KEY']
37
+ api_key = ENV['YOUR_ANTHROPIC_API_KEY']
38
38
  claude_client = Claude::Client.new(api_key)
39
39
  ```
40
40
 
@@ -125,7 +125,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
125
125
 
126
126
  ## Contributing
127
127
 
128
- Bug reports and pull requests are welcome on GitHub at https://github.com/webven/claude-ruby.
128
+ Bug reports and pull requests are welcome on GitHub at https://github.com/webventures/claude-ruby.
129
129
 
130
130
  ## License
131
131
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Claude
4
4
  module Ruby
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: claude-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Web Ventures Ltd
@@ -32,14 +32,9 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
- - ".idea/.gitignore"
36
- - ".idea/claude-ruby.iml"
37
- - ".idea/misc.xml"
38
- - ".idea/modules.xml"
39
- - ".idea/vcs.xml"
40
- - ".rubocop.yml"
41
35
  - CHANGELOG.md
42
36
  - Gemfile
37
+ - Gemfile.lock
43
38
  - LICENSE.txt
44
39
  - README.md
45
40
  - Rakefile
@@ -47,13 +42,13 @@ files:
47
42
  - lib/claude/ruby.rb
48
43
  - lib/claude/ruby/version.rb
49
44
  - sig/claude/ruby.rbs
50
- homepage: https://github.com/webven/claude-ruby.git
45
+ homepage: https://github.com/webventures/claude-ruby.git
51
46
  licenses:
52
47
  - MIT
53
48
  metadata:
54
- homepage_uri: https://github.com/webven/claude-ruby.git
55
- source_code_uri: https://github.com/webven/claude-ruby.git
56
- changelog_uri: https://github.com/webven/claude-ruby/blob/main/CHANGELOG.md
49
+ homepage_uri: https://github.com/webventures/claude-ruby.git
50
+ source_code_uri: https://github.com/webventures/claude-ruby.git
51
+ changelog_uri: https://github.com/webventures/claude-ruby/blob/main/CHANGELOG.md
57
52
  post_install_message:
58
53
  rdoc_options: []
59
54
  require_paths:
@@ -62,7 +57,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
57
  requirements:
63
58
  - - ">="
64
59
  - !ruby/object:Gem::Version
65
- version: 2.6.0
60
+ version: 3.0.0
66
61
  required_rubygems_version: !ruby/object:Gem::Requirement
67
62
  requirements:
68
63
  - - ">="
data/.idea/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- # Default ignored files
2
- /shelf/
3
- /workspace.xml
4
- # Editor-based HTTP Client requests
5
- /httpRequests/
6
- # Datasource local storage ignored files
7
- /dataSources/
8
- /dataSources.local.xml
@@ -1,23 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="ModuleRunConfigurationManager">
4
- <shared />
5
- </component>
6
- <component name="NewModuleRootManager">
7
- <content url="file://$MODULE_DIR$">
8
- <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
- <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
- <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
- </content>
12
- <orderEntry type="inheritedJdk" />
13
- <orderEntry type="sourceFolder" forTests="false" />
14
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, rbenv: 2.6.8) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="minitest (v5.14.4, rbenv: 2.6.8) [gem]" level="application" />
16
- <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, rbenv: 2.6.8) [gem]" level="application" />
17
- </component>
18
- <component name="RakeTasksCache">
19
- <option name="myRootTask">
20
- <RakeTaskImpl id="rake" />
21
- </option>
22
- </component>
23
- </module>
data/.idea/misc.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.6.8" project-jdk-type="RUBY_SDK" />
4
- </project>
data/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/claude-ruby.iml" filepath="$PROJECT_DIR$/.idea/claude-ruby.iml" />
6
- </modules>
7
- </component>
8
- </project>
data/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
data/.rubocop.yml DELETED
@@ -1,13 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.6
3
-
4
- Style/StringLiterals:
5
- Enabled: true
6
- EnforcedStyle: double_quotes
7
-
8
- Style/StringLiteralsInInterpolation:
9
- Enabled: true
10
- EnforcedStyle: double_quotes
11
-
12
- Layout/LineLength:
13
- Max: 120