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
260
my-first-mrbgem
Masafumi Okura
March 24, 2021
Tweet
Share
More Decks by Masafumi Okura
See All by Masafumi Okura
オブジェクトしこう
okuramasafumi
2
150
Debugging Alba
okuramasafumi
1
85
Learning Ruby
okuramasafumi
5
430
How to build a conference for both newbies and seasoned devs
okuramasafumi
1
1.2k
Why doesn't Ruby have Boolean class?
okuramasafumi
4
1.9k
Writing Minitest clone in 30 minutes
okuramasafumi
0
300
Developing a Vim plugin with Ruby
okuramasafumi
0
530
On proposals
okuramasafumi
0
250
5
okuramasafumi
0
190
Other Decks in Programming
See All in Programming
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
110
ログラスを支える設計標準について / loglass-design-standards
urmot
10
2.1k
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
410
コードレビューで学ぶ!Kotlinオブジェクト指向デザインパターン
akkie76
2
170
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.6k
Java 22 Overview
kishida
1
160
Ruby Function Composition
bkuhlmann
1
330
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
210
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
250
今、知っておきたい! 生成AIエージェントの世界
elith
3
340
Rails と人魚の話/rails-and-mermaid
sanfrecce_osaka
0
100
入門 AWS Amplify Gen2 / Introduction to AWS Amplify Gen2
genkiogasawara
1
310
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
355
22k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
115
18k
Producing Creativity
orderedlist
PRO
336
39k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
60
14k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Building an army of robots
kneath
300
41k
Practical Orchestrator
shlominoach
181
9.7k
Build your cross-platform service in a week with App Engine
jlugia
224
17k
The Invisible Side of Design
smashingmag
293
49k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
118
38k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
15
1.4k
Being A Developer After 40
akosma
56
580k
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ͷϑϩϯςΟΞ͕͜͜ʹ͋Δʂ