Add draw support for loading external DSL path files - #27
Closed
kalashnikovisme wants to merge 3 commits into
Closed
Add draw support for loading external DSL path files#27kalashnikovisme wants to merge 3 commits into
draw support for loading external DSL path files#27kalashnikovisme wants to merge 3 commits into
Conversation
kalashnikovisme
deleted the
codex/implement-draw-method-in-someclient
branch
February 18, 2026 15:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
draw 'relative/path'call so nestedpath/response/root_methoddeclarations can be kept in external files.Description
draw(file_name)toPurple::Clientwhich resolvesfile_namerelative to the caller file, auto-appends.rbwhen missing, and evaluates the file in the client class context viainstance_eval.drawhelper raises clearLoadErrormessages when the caller file cannot be detected or when the target DSL file does not exist.spec/purple/support/drawn_client/v1.rbwhich declares av1/warehousespath and response schema.DrawnClientand a new RSpec case inspec/purple/client_spec.rbwhich usesdraw 'support/drawn_client/v1'and asserts the generatedwarehousesroot method invokes the correct URL and returns the parsed response.Testing
bundle exec rspec spec/purple/client_spec.rb, but it could not run because therspecexecutable/gems were not available in this environment.bundle install, but the install was blocked by a network403 Forbiddenfrom rubygems.org in this environment.ruby -c lib/purple/client.rb,ruby -c spec/purple/client_spec.rb, andruby -c spec/purple/support/drawn_client/v1.rb, and all returnedSyntax OK.Codex Task