Skip to content

create merged img4 data - #154

Merged
rickmark merged 1 commit into
mainfrom
img4_all
Aug 6, 2026
Merged

create merged img4 data#154
rickmark merged 1 commit into
mainfrom
img4_all

Conversation

@rickmark

@rickmark rickmark commented Aug 6, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 6, 2026 04:14
@rickmark
rickmark merged commit 41e6482 into main Aug 6, 2026
12 checks passed
@rickmark
rickmark deleted the img4_all branch August 6, 2026 04:27

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.

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Adds a way to expose a merged “all IMG4 schema data” hash, backed by a new DSL capability to attach custom instance methods to generated schema classes.

Changes:

  • Introduces define_method support in the schema/data-file DSL and applies it to IMG4.
  • Adds AppleData::Schemas::IMG4#all to merge multiple IMG4 collections into one hash (indifferent access).
  • Adjusts Ruby package Rake task versioning to use main for repo height.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 3 comments.

File Description
spec/apple_data/schemas/img4_spec.rb Adds a basic spec to exercise the new #all API.
_packages/ruby/lib/apple_data/schemas/img4.rb Defines #all to merge IMG4 collections into a single hash with indifferent access.
_packages/ruby/lib/apple_data/dsl/data_file_definition.rb Extends the DSL to register and install custom methods on generated schema classes.
_packages/ruby/Rakefile Changes version task to count commits from main instead of HEAD.
Files not reviewed (2)
  • .idea/apple-knowledge.iml: Generated file
  • .idea/runConfigurations/AppleData_Specs.xml: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread _packages/ruby/Rakefile
desc 'set the version patch to the git main height'
task :version do
repo_height = `git rev-list --count HEAD`
repo_height = `git rev-list --count main`
Comment on lines +20 to +23
define_method :all do
[img4_tags, manifest_properties, objects, lpol_properties, core, types,
cryptex_properties].reduce(&:merge).with_indifferent_access
end
Comment on lines +48 to +53
it 'has #all' do
aggregate_failures do
expect(instance.all).to be_a(Hash)
expect(instance.all).not_to be_empty
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants