robot_lab-rails 0.2.7 → 0.3.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: 0f3993dec73549da3d3bca3309e96a16f9a1d304e1408dc15f2ad1ee3af9ed91
4
- data.tar.gz: 67af7392d9a5b3e8e825faa9c851351d53e812697cee4cba658b17121c0a7e04
3
+ metadata.gz: deed94fd344d8fd28bf0701a1916166ee6f3474953ceb46760d3fd2d0a3731f7
4
+ data.tar.gz: 8ed4be36aaa78be67d1429c78a3744e9756a754fdf488b8c0d72a083fee3e8f9
5
5
  SHA512:
6
- metadata.gz: 85c87ce89a82511ba6ae96599b1b49bc7df3eded8cfbd6d85ee4ae066fa92eb06b814a5f9e44038c0adea2275e53e6b38de8fef0f9e19c0db8d74db9611d0f11
7
- data.tar.gz: ea846ff3354a05714299d74f20753ce06c12b7b0d5be7b265a987715387595c767f810e106e30ae95b5c594979d403599e487a6c299b4e9264ef48317e2de285
6
+ metadata.gz: 638ff46cdcd7d2913b5283f3ab0eb2bee904b514fbf231e7f8e8d513bd9f49ede30b2ece3c51d84a9b1767682ae6cc2c4af1e40105b4c9f204ef5162c1c54e2b
7
+ data.tar.gz: 64ee08352896028fb9d2633ed76c15d13e1ca16fa8c25ebc170cca1aa97cb2cb9022253ae6a2e3b149562b2608ed39fc7402944f138d58f455def58df149b73c
data/.envrc CHANGED
@@ -1,3 +1,8 @@
1
+ # robot_lab_project/robot_lab-rails/.envrc
2
+
1
3
  source_up
2
- export RR=`pwd`
3
- export BUNDLE_GEMFILE=Gemfile
4
+
5
+ export RR=$(pwd)
6
+ export RAILS_ROOT=$RR
7
+
8
+ # BUNDLE_GEMFILE is inherited from the project root .envrc (asgard dev|prod)
data/.loki CHANGED
@@ -8,7 +8,7 @@ class Tasks
8
8
 
9
9
  header "robot_lab-rails v#{gem_version} — Rails integration for RobotLab"
10
10
 
11
- desc "Run Rails-specific integration tests"
11
+ desc "Run the full test suite (this gem's tests ARE its Rails integration tests)"
12
12
  def integration
13
13
  sh "bundle exec rake test"
14
14
  end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.8] - 2026-09-09
4
+
5
+ Released in lockstep with `robot_lab` core v0.2.8: this gem now resolves the released core gem from RubyGems instead of the local sibling checkout (local-path development remains available via `BUNDLE_GEMFILE=Gemfile.local`). Also in this release: 6 reek false positives annotated inline, reek added to the development bundle, and gem lifecycle moved to asgard with `RAILS_ROOT` set for the Rails-aware quality gates.
6
+
3
7
  ### Added
4
8
  - `.loki` Asgard task file: `test`, `rubocop`, `rubocop_fix`, `flog`, `flay`, `quality`, `build`, `install`, `release`, and `console` tasks via the Asgard task runner
5
9
  - `flay_check` Rake task: structural code duplication gate (mass threshold 50); integrated into the `quality` Rake task
data/Rakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
4
3
  require 'rake/testtask'
5
4
 
6
5
  Rake::TestTask.new(:test) do |t|
@@ -1,3 +1,6 @@
1
+ # robot_lab_project/robot_lab-rails/.envrc
2
+
1
3
  source_up
2
4
 
3
5
  export RR=`pwd`
6
+ export RAILS_ROOT=$RR
@@ -47,6 +47,8 @@ module RobotLab
47
47
  empty_directory "app/tools"
48
48
  end
49
49
 
50
+ # :reek:DuplicateMethodCall -- each `say ""` prints one blank spacer line; the repetition is the formatting.
51
+ # :reek:TooManyStatements -- a linear list of post-install instructions printed in order.
50
52
  def display_post_install
51
53
  say ""
52
54
  say "RobotLab installed successfully!", :green
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RobotLab
4
4
  module Rails
5
- VERSION = "0.2.7"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  module RobotLab
4
4
  module RailsIntegration
5
+ # :reek:UncommunicativeVariableName -- `g` is the conventional Rails config.generators block param.
5
6
  class Engine < ::Rails::Engine
6
7
  isolate_namespace RobotLab
7
8
 
@@ -18,6 +18,7 @@ module RobotLab
18
18
  retry_on StandardError, wait: 5.seconds, attempts: 3
19
19
  discard_on ActiveJob::DeserializationError
20
20
 
21
+ # :reek:TooManyStatements -- the job's one linear resolve/run/persist/broadcast orchestration.
21
22
  def perform(message:, robot_class: nil, thread_id: nil, **context)
22
23
  klass = resolve_robot_class(robot_class)
23
24
  thread = setup_thread(thread_id, message)
@@ -37,6 +38,7 @@ module RobotLab
37
38
 
38
39
  private
39
40
 
41
+ # :reek:ControlParameter -- nil runtime_class means "fall back to the class-level robot_class DSL", a default, not a mode switch.
40
42
  def resolve_robot_class(runtime_class)
41
43
  klass = runtime_class || self.class.robot_class
42
44
  unless klass
@@ -57,6 +59,7 @@ module RobotLab
57
59
  thread
58
60
  end
59
61
 
62
+ # :reek:FeatureEnvy -- factory method: the job wires its own Turbo callbacks into klass.build; the robot class cannot know them.
60
63
  def build_robot(klass, thread_id)
61
64
  if thread_id && turbo_available?
62
65
  stream_name = "robot_lab_thread_#{thread_id}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robot_lab-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dewayne VanHoozer
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.2.0
18
+ version: 0.3.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 0.2.0
25
+ version: 0.3.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: railties
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 4.0.19
159
+ rubygems_version: 4.0.21
160
160
  specification_version: 4
161
161
  summary: Rails integration for the robot_lab LLM agent framework
162
162
  test_files: []