feat: add MicroBit More tilt/pin Ruby conversion (Issue #20) #522
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.
Summary
MicroBit More拡張機能のIssue #20 に関する以下の実装を行いました:
Implementation Details
Task 3A: Label changes (previous commit)
ja.jsandja-Hira.jslocale filesRuby Conversion (this commit)
Block to Ruby Conversions
microbit_more.when_pin_connected(0)microbit_more.when("moved")microbit_more.when("tilted_any")microbit_more.when("tilted_front/back/left/right")microbit_more.tilted?("any")microbit_more.tilt_angle("front")Snippet Updates
microbit_more.button_pressed?: description を「ボタン [A▼] が押された」に修正microbit_more.when: デフォルト値を "shake" → "moved" に変更、description を「[動いた▼] とき」に修正when_pin_connected,tilted?,tilt_angleTest Coverage
test/unit/lib/ruby-generator/microbit_more.test.jstest/unit/lib/ruby-to-blocks-converter/microbit_more.test.jstest/integration/ruby-tab/extension_microbit_more.test.jsRelated
Fixes smalruby/smalruby3-develop#20
🤖 Generated with Claude Code