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
280
my-first-mrbgem
Masafumi Okura
March 24, 2021
Tweet
Share
More Decks by Masafumi Okura
See All by Masafumi Okura
Why did my proposals get rejected?
okuramasafumi
1
480
A suggestion for the future of RDoc
okuramasafumi
1
69
15 JSON serializers for Ruby
okuramasafumi
2
130
Tech Events, Should We See Them from the Outside or the Inside?
okuramasafumi
1
45
Creating gems 101
okuramasafumi
1
85
How NOT to make your DSL terrible
okuramasafumi
0
310
オブジェクトしこう
okuramasafumi
2
220
Debugging Alba
okuramasafumi
1
200
Learning Ruby
okuramasafumi
5
570
Other Decks in Programming
See All in Programming
Jakarta EE meets AI
ivargrimstad
0
280
Online-Dokumentation, die hilft: Strukturen, Prozesse, Tools
ahus1
0
100
iOS開発におけるCopilot For XcodeとCode Completion / copilot for xcode
fuyan777
1
110
各クラウドサービスにおける.NETの対応と見解
ymd65536
0
180
アクターシステムに頼らずEvent Sourcingする方法について
j5ik2o
4
360
AWSのLambdaで PHPを動かす選択肢
rinchoku
2
300
Semantic Kernelのネイティブプラグインで知識拡張をしてみる
tomokusaba
0
180
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
3
760
MCP with Cloudflare Workers
yusukebe
2
230
EC2からECSへ 念願のコンテナ移行と巨大レガシーPHPアプリケーションの再構築
sumiyae
2
430
useSyncExternalStoreを使いまくる
ssssota
6
1.4k
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
110
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Designing for humans not robots
tammielis
250
25k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
The Invisible Side of Design
smashingmag
298
50k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
180
Product Roadmaps are Hard
iamctodd
PRO
50
11k
Typedesign – Prime Four
hannesfritz
40
2.4k
GraphQLとの向き合い方2022年版
quramy
44
13k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
GitHub's CSS Performance
jonrohan
1031
460k
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ͷϑϩϯςΟΞ͕͜͜ʹ͋Δʂ