Skip to content

✨ simplify access to input sources - #279

Merged
ianardee merged 1 commit into
mainfrom
simpler-input-source
Nov 6, 2026
Merged

ianardee merged 1 commit into
mainfrom
simpler-input-source

Conversation

@ianardee

@ianardee ianardee commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Description

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires a change to the official Guide documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The updated spec lacks the mindee import needed for the new top-level aliases, causing standalone runs to raise NameError even when full-suite load order masks the issue.

1 open issue
What changed in this PR

This PR simplifies input-source creation in the Mindee Ruby SDK by exposing existing source classes directly under Mindee, while retaining their nested names.

Changes:

  • Adds five top-level input-source aliases and corresponding RBS declarations.
  • Updates V1 and V2 code samples to use Mindee::PathInputSource.new.
  • Updates input-source specs to exercise the shorter names and reorganizes RBS namespaces.
File Description
lib/​mindee.rb Adds five top-level input-source aliases.
sig/​mindee.rbs Declares aliases and reorganizes namespaces.
spec/​input/​sources/​url_input_source_spec.rb Uses URL and bytes aliases.
spec/​input/​sources/​sources_spec.rb Uses the path alias in format tests.
spec/​input/​sources/​files_handling_spec.rb Uses path and Base64 aliases.
docs/​code_samples/​workflow_polling.txt Simplifies workflow input creation.
docs/​code_samples/​v2_split.txt Simplifies split input creation.
docs/​code_samples/​v2_ocr.txt Simplifies OCR input creation.
docs/​code_samples/​v2_extraction.txt Simplifies extraction input creation.
docs/​code_samples/​v2_extraction_webhook.txt Simplifies webhook extraction input creation.
docs/​code_samples/​v2_crop.txt Simplifies crop input creation.
docs/​code_samples/​v2_classification.txt Simplifies classification input creation.
docs/​code_samples/​resume_v1_async.txt Uses the path alias for résumés.
docs/​code_samples/​passport_v1.txt Uses the path alias for passports.
docs/​code_samples/​multi_receipts_detector_v1.txt Uses the path alias for receipt detection.
docs/​code_samples/​invoices_v4.txt Uses the path alias for invoices.
docs/​code_samples/​invoices_v4_async.txt Uses the path alias for async invoices.
docs/​code_samples/​invoice_splitter_v1_async.txt Uses the path alias for invoice splitting.
docs/​code_samples/​international_id_v2_async.txt Uses the path alias for international IDs.
docs/​code_samples/​idcard_fr_v2.txt Uses the path alias for French ID cards.
docs/​code_samples/​financial_document_v1.txt Uses the path alias for financial documents.
docs/​code_samples/​financial_document_v1_async.txt Uses the path alias for async financial documents.
docs/​code_samples/​expense_receipts_v5.txt Uses the path alias for expense receipts.
docs/​code_samples/​expense_receipts_v5_async.txt Uses the path alias for async expense receipts.
docs/​code_samples/​default.txt Simplifies custom-endpoint input creation.
docs/​code_samples/​default_async.txt Simplifies async custom-endpoint input creation.
docs/​code_samples/​cropper_v1.txt Uses the path alias for cropping.
docs/​code_samples/​bank_statement_fr_v2_async.txt Uses the path alias for French bank statements.
docs/​code_samples/​bank_account_details_v2.txt Uses the path alias for bank account details.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the input-source alias changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@ianardee
ianardee force-pushed the simpler-input-source branch from 9e89cb0 to 202fd6d Compare November 6, 2026 00:05
@ianardee
ianardee force-pushed the simpler-input-source branch from 202fd6d to a403cc8 Compare November 6, 2026 00:07
@ianardee
ianardee merged commit f2ac687 into main Nov 6, 2026
31 checks passed
@ianardee
ianardee deleted the simpler-input-source branch November 6, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants