my-first-mrbgem
by
Masafumi Okura
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
mrbgemΛ࡞ͬͯΈͨ Fukuoka.rb 200ճ LTେձ OKURA Masafumi, 2021-03-24
Slide 2
Slide 2 text
@okuramasafumi.inspect • ໊લɿେխ࢙ • ॴଐɿϑϦʔϥϯε • ίϛϡχςΟࢀՃɿແʢfukuoka.rb20ճࢀՃʣ • ՝֎׆ಈɿKaigi on Rails, Grow.rb, Entaku.rb • ࣗ࡞ͷgemɿAlba, neco, rubocop-sensibleͳͲ • ࣗ࡞ͷmrbgemɿmruby-malba, mruby-factory
Slide 3
Slide 3 text
mrubyʹ͍ͭͯ
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
ུ
Slide 6
Slide 6 text
ཁΈࠐΈ͚ͷRuby
Slide 7
Slide 7 text
mrbgemʹ͍ͭͯ
Slide 8
Slide 8 text
mrbgemͱ • mruby༻ͷgem • RubyͱCͰॻ͚Δ • Gemͱ͍ͬͯCRubyͷgemͱ৭ʑҧ͏ʢͲ͏ҧ͏ͷ͔આ໌Ͱ͖ Δ΄ͲཧղͰ͖͍ͯͳ͍…ʣ
Slide 9
Slide 9 text
mrbgemΛ࡞ͬͯΈͨײ
Slide 10
Slide 10 text
͍͚Δɺ͍͚Δͧʂ ʢιʔείʔυΛίϐϖ͠ͳ͕Βʣ
Slide 11
Slide 11 text
͍ͱͨ͘͢ൃੜ͢Δ NoMethodError
Slide 12
Slide 12 text
ͳ͔ͥʁ
Slide 13
Slide 13 text
mrubyσϑΥϧτͰCRubyͷ͢ ͯͷػೳΛ͏͜ͱͰ͖ͳ͍
Slide 14
Slide 14 text
mrbgemΛadd_dependency͢Δ
Slide 15
Slide 15 text
mruby-malbaͷ߹
Slide 16
Slide 16 text
# 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
Slide 17
Slide 17 text
Ұߦղઆ • 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ͳͲΛՃ͢Δ
Slide 18
Slide 18 text
Ͳ͏ͬͯඞཁͳmrbgemΛ୳͢ͷʁ
Slide 19
Slide 19 text
৬ਓͷצ
Slide 20
Slide 20 text
mrubyΛϏϧυ͢Δͱɺ”build summary”ͷ߲ʹΈࠐΈͷ mrbgemҰཡ͕ग़ΔͷͰɺ͔ͦ͜Βͦ ΕͬΆ͍ͷΛ୳͢
Slide 21
Slide 21 text
ਖ਼ɺख୳Γͷ໘͋Δͱࢥ͏
Slide 22
Slide 22 text
RubyͷϑϩϯςΟΞ͕͜͜ʹ͋Δʂ