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 +4 -4
- data/lib/ruby_llm/code_mode/description.rb +18 -0
- data/lib/ruby_llm/code_mode.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5eac58938f9b9a3d4f6f8315e68f2b664a8a47ce648fa8f97a5cf6dd9cc023b
|
|
4
|
+
data.tar.gz: f617d3620da2bdd6712dc1bd03e83f04f32ea1f7eee3e7493415b26da4680681
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/ruby_llm/code_mode.rb
CHANGED
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.
|
|
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.
|
|
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.
|
|
39
|
+
version: '0.7'
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: rspec
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|