Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
my-first-mrbgem
Search
Masafumi Okura
March 24, 2021
Programming
1
320
my-first-mrbgem
Masafumi Okura
March 24, 2021
Tweet
Share
More Decks by Masafumi Okura
See All by Masafumi Okura
RDoc meets YARD
okuramasafumi
1
43
Why doesn't Ruby have Boolean class?
okuramasafumi
0
9
My KaigiEffect at RubyKaigi 2025, part 1
okuramasafumi
1
49
Writing documentation can be fun with plugin system
okuramasafumi
0
200
Alba: Why, How and What's So Interesting
okuramasafumi
0
400
Why did my proposals get rejected?
okuramasafumi
1
710
A suggestion for the future of RDoc
okuramasafumi
1
390
15 JSON serializers for Ruby
okuramasafumi
2
450
Tech Events, Should We See Them from the Outside or the Inside?
okuramasafumi
1
75
Other Decks in Programming
See All in Programming
AIレビュアーをスケールさせるには / Scaling AI Reviewers
technuma
2
220
開発チーム・開発組織の設計改善スキルの向上
masuda220
PRO
13
6.9k
Flutterと Vibe Coding で個人開発!
hyshu
1
260
『リコリス・リコイル』に学ぶ!! 〜キャリア戦略における計画的偶発性理論と変わる勇気の重要性〜
wanko_it
1
590
一人でAIプロダクトを作るための工夫 〜技術選定・開発プロセス編〜 / I want AI to work harder
rkaga
12
2.8k
KessokuでDIでもgoroutineを活用する / Go Connect #6
mazrean
0
110
🔨 小さなビルドシステムを作る
momeemt
1
350
Claude Code と OpenAI o3 で メタデータ情報を作る
laket
0
140
Terraform やるなら公式スタイルガイドを読もう 〜重要項目 10選〜
hiyanger
13
3.2k
Vibe coding コードレビュー
kinopeee
0
460
TROCCO×dbtで実現する人にもAIにもやさしいデータ基盤
nealle
0
320
Scale out your Claude Code ~自社専用Agentで10xする開発プロセス~
yukukotani
9
2.5k
Featured
See All Featured
Docker and Python
trallard
45
3.5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.6k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.6k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Facilitating Awesome Meetings
lara
55
6.5k
The Cost Of JavaScript in 2023
addyosmani
53
8.8k
GitHub's CSS Performance
jonrohan
1031
460k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Transcript
mrbgemΛ࡞ͬͯΈͨ Fukuoka.rb 200ճ LTେձ OKURA Masafumi, 2021-03-24
@okuramasafumi.inspect • ໊લɿେխ࢙ • ॴଐɿϑϦʔϥϯε • ίϛϡχςΟࢀՃɿແʢfukuoka.rb20ճࢀՃʣ • ՝֎׆ಈɿKaigi on
Rails, Grow.rb, Entaku.rb • ࣗ࡞ͷgemɿAlba, neco, rubocop-sensibleͳͲ • ࣗ࡞ͷmrbgemɿmruby-malba, mruby-factory
mrubyʹ͍ͭͯ
None
ུ
ཁΈࠐΈ͚ͷRuby
mrbgemʹ͍ͭͯ
mrbgemͱ • mruby༻ͷgem • RubyͱCͰॻ͚Δ • Gemͱ͍ͬͯCRubyͷgemͱ৭ʑҧ͏ʢͲ͏ҧ͏ͷ͔આ໌Ͱ͖ Δ΄ͲཧղͰ͖͍ͯͳ͍…ʣ
mrbgemΛ࡞ͬͯΈͨײ
͍͚Δɺ͍͚Δͧʂ ʢιʔείʔυΛίϐϖ͠ͳ͕Βʣ
͍ͱͨ͘͢ൃੜ͢Δ NoMethodError
ͳ͔ͥʁ
mrubyσϑΥϧτͰCRubyͷ͢ ͯͷػೳΛ͏͜ͱͰ͖ͳ͍
mrbgemΛadd_dependency͢Δ
mruby-malbaͷ߹
# mrbgem.rake MRuby::Gem::Specification.new('mruby-malba') do |spec| spec.license = 'MIT' spec.authors =
'OKURA Masafumi' spec.add_dependency 'mruby-hash-ext' spec.add_dependency 'mruby-json' spec.add_dependency 'mruby-object-ext' spec.add_dependency 'mruby-class-ext' # Test spec.add_dependency 'mruby-proc-ext' spec.add_dependency 'mruby-print' end
Ұߦղઆ • mruby-hash-extɿHash#transform_valuesͳͲΛՃ͢Δ • mruby-object-extɿBasicObject#instance_execͳͲΛՃ͢Δ • mruby-class-extɿClass#<=ͳͲΛՃ͢Δ • mruby-proc-extɿKernel#procͳͲΛՃ͢Δ •
mruby-printɿKernel#putsͳͲΛՃ͢Δ
Ͳ͏ͬͯඞཁͳmrbgemΛ୳͢ͷʁ
৬ਓͷצ
mrubyΛϏϧυ͢Δͱɺ”build summary”ͷ߲ʹΈࠐΈͷ mrbgemҰཡ͕ग़ΔͷͰɺ͔ͦ͜Βͦ ΕͬΆ͍ͷΛ୳͢
ਖ਼ɺख୳Γͷ໘͋Δͱࢥ͏
RubyͷϑϩϯςΟΞ͕͜͜ʹ͋Δʂ