ruby_llm-code_mode 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2971c55a0ddb64f36fac74369b9f591a457d7f790fef69629c840105ee44a41f
4
- data.tar.gz: ce4cb05af563703b265ac6cf39e4dcfd726cfc4fcd34d3c346e2e2a9783d6613
3
+ metadata.gz: f5eac58938f9b9a3d4f6f8315e68f2b664a8a47ce648fa8f97a5cf6dd9cc023b
4
+ data.tar.gz: f617d3620da2bdd6712dc1bd03e83f04f32ea1f7eee3e7493415b26da4680681
5
5
  SHA512:
6
- metadata.gz: e5cc54963c906914bcc93c8ce4bc07ca92aa069993746d1b471bbd7572687b9aea89b6b241cb09cbc0323ecb42318b0cc6f921c89b4ab2fe81f7b65d60868201
7
- data.tar.gz: 036fdc62c104e9c3afe3309459cc1da6d5a8693ce28078f358d6af8f51e33f59d67b6a8f29f2e0504354692bee1c944d0917599423e14edf7317fd3e8b33eb15
6
+ metadata.gz: 0c36613b706be8b381b3c69f4d7a3462c51d37269691b772e5cb6f258b91ee64d24a03d3ae2b5858346c649e6fd275e88c8d62811d5995e473b54668d13e319a
7
+ data.tar.gz: 6dcb68d87137f904c586785952ec933c8f71b8d77d2e69d3331c1fdd5ec7105fac2eeca00a228d97d4d37912a73a4aac1ab69c488f21af167ba80fb055dcb26e
@@ -19,6 +19,24 @@ module RubyLLM
19
19
  a JSON-serializable data structure (returned as `value`; non-serializable
20
20
  objects come back as their inspect string). If the code raises, the error
21
21
  class, message and backtrace are returned so you can fix and retry.
22
+
23
+ ## Running specs (RSpec)
24
+
25
+ RSpec 3.13 is bundled in the sandbox, so you can run an existing suite from
26
+ a mounted project. Call `SB.run_rspec(*args, chdir: "/work")`: it loads
27
+ RSpec lazily, runs it and returns RSpec's exit status (`0` = all examples
28
+ passed) instead of exiting, with the report printed to `stdout`. Pass load
29
+ paths and the suite directory as arguments, for example
30
+ `SB.run_rspec("--no-color", "-I", "/project/lib", "/project/spec", chdir: "/project")`.
31
+ `chdir:` defaults to `/work`; use a writable directory when RSpec writes
32
+ `.rspec`/status files. You can also call RSpec directly with
33
+ `require "/bundle/setup.rb"; require "rspec/core"` and
34
+ `RSpec::Core::Runner.run(args, $stderr, $stdout)`.
35
+
36
+ Specs run inside the same single execution: size it for the whole suite,
37
+ and remember the guest has no process APIs (external formatters and
38
+ `--bisect`-style workflows are unavailable). Only RSpec is bundled — gems
39
+ required by the mounted sources are not installed and raise `LoadError`.
22
40
  DESC
23
41
 
24
42
  HOST_TOOLS_INTRO = <<~DESC.freeze
@@ -5,7 +5,7 @@ require "security_box"
5
5
 
6
6
  module RubyLLM
7
7
  class CodeMode < Tool
8
- VERSION = "0.5.1"
8
+ VERSION = "0.6.0"
9
9
 
10
10
  DEFAULT_TIMEOUT_MS = 30_000
11
11
  DEFAULT_FUEL_MS = 10_000
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_llm-code_mode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juneira
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '0.6'
32
+ version: '0.7'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '0.6'
39
+ version: '0.7'
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rspec
42
42
  requirement: !ruby/object:Gem::Requirement