Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

GemoireというYARDホスティングアプリを作った #shibuyarb

1,926 views

Published on

渋谷.rb[:20141015] の発表資料です
http://shibuyarb.doorkeeper.jp/events/15950

Published in: Technology
  • Be the first to comment

GemoireというYARDホスティングアプリを作った #shibuyarb

  1. 1. Gemoire䛸䛔䛖YARD䝩䝇䝔䜱䞁䜾 䜰䝥䝸䜢స䛳䛯 Copyright Drecom Co., Ltd. All Rights Reserved. @sue445 2014/10/15 Shibuya.rb
  2. 2. ⮬ᕫ⤂௓ sue445 ● drecom ○ ♫ෆ䝒䞊䝹䛸䛛♫ෆ䝷䜲䝤䝷䝸䛸䛛 ● RubyKaja ● TDD䝬䝙䜰䛺䜻䝳䜰䜶䞁䝆䝙䜰 Copyright Drecom Co., Ltd. All Rights Reserved.
  3. 3. ௒ᮇ䛾᎑䠖䜻䝳䜰䝝䝙䞊 Copyright Drecom Co., Ltd. All Rights Reserved.
  4. 4. ᮏጔ䠖䜻䝳䜰䝢䞊䝇 Copyright Drecom Co., Ltd. All Rights Reserved.
  5. 5. Agenda ● స䛳䛯⫼ᬒ ● 䜰䝥䝸䛾⤂௓ Copyright Drecom Co., Ltd. All Rights Reserved.
  6. 6. స䛳䛯⫼ᬒ Copyright Drecom Co., Ltd. All Rights Reserved.
  7. 7. స䛳䛯⫼ᬒ ● ᘢ♫䛿䜹䝆䝳䜰䝹䛻♫ෆgem䛜స䜙䜜䜛ᩥ໬ ○ http://rubykaigi.org/2014/presentation/S-TakumiMiura ○ ♫ෆgem100ಶ䛟䜙䛔 ● ᡭ㍍䛻♫ෆgem䛾䝗䜻䝳䝯䞁䝖䜢බ㛤䛷䛝䜛ሙᡤ䛜ḧ䛧䛛䛳 䛯 ○ RubyDoc.info( http://rubydoc.info/ )䛾♫ෆ∧䜏䛯䛔䛺 䜒䛾 Copyright Drecom Co., Ltd. All Rights Reserved. gitのパスを入力するだけでド キュメントを公開できる
  8. 8. 䛺䛔䛺䜙స䜝䛖 Copyright Drecom Co., Ltd. All Rights Reserved.
  9. 9. Jenkins䛷䛔䛔䛨䜓䜣䠛 ● 䜰䝥䝸䛤䛸䛻㔝ⰋJenkins䛜஘❧䛧䛶䜛䛾䛷඲♫ᒎ㛤䛧䛵䜙 䛔 ○ 䛹䛾䜰䝥䝸䛻䜒ᒓ䛥䛺䛔gem䛾䝷䜲䝤䝷䝸䜢බ㛤䛩䜛䛻䛿 ྥ䛔䛶䛺䛔 ● 䝗䜻䝳䝯䞁䝖స䜛䛰䛡䛷Jenkins౑䛖䛾䛿኱䛢䛥 ○ ಶู䛻䝆䝵䝤䛾タᐃ䛩䜛䛾䛜ᡭ㛫 ● 䝗䜻䝳䝯䞁䝖⏕ᡂ䛾䛯䜑䛰䛡䛻gem䛾dependency䛻yard䜢 ㏣ຍ䛩䜛䛾䜒㐪࿴ឤ䛜䛒䜛 Copyright Drecom Co., Ltd. All Rights Reserved.
  10. 10. 䜰䝥䝸䛾⤂௓ Copyright Drecom Co., Ltd. All Rights Reserved.
  11. 11. 䜰䝥䝸䛾⤂௓ Gemoire䠄䝆䜵䝰䝽䞊䝹䠅 https://github.com/sue445/gemoire http://gemoire.herokuapp.com/ Copyright Drecom Co., Ltd. All Rights Reserved.
  12. 12. ඲యീ 1. push 2. webhook Copyright Drecom Co., Ltd. All Rights Reserved. Gemoire YARD doc 3. clone 5. browsing 4. generate
  13. 13. Gemoire Copyright Drecom Co., Ltd. All Rights Reserved. gitのパスを入力するだけでド キュメントを公開できる
  14. 14. Gemoire ● ྡ๓䛾⏤᮶䛿Gem + Grimoire(㨱ᑟ᭩) ○ gem䛾ྲྀᢅㄝ᫂᭩䜢㞟䜑䛯ⓗ䛺ឤ䛨 ○ 䝆䜵䝮 + 䜾䝸䝰䝽䞊䝹 = 䝆䜵䝰䝽䞊䝹 ● gem䛾YARD䝗䜻䝳䝯䞁䝖䜢ᡭ㍍䛻බ㛤䛩䜛䛯䜑䛾䜰䝥䝸 ● git䛾URLⓏ㘓䛩䜛䛰䛡䛷຾ᡭ䛻䝗䜻䝳䝯䞁䝖⏕ᡂ ● Ruby 2.1.3 + Padrino 0.12.3 + activerecord 4.1.6 ㎶䜚 ○ ึ䜑䛶Pardino䛷䜰䝥䝸䜢స䜚䛝䛳䛯䡓 ● Heroku deploy button䛜౽฼䛺䛾䛷heroku䛻䜒䝕䝥䝻䜲䛧䛶䜛 䛡䛹䚸䝃䞊䝞䛻clone䛧䛶౑䛖䛣䛸䜢᝿ᐃ Copyright Drecom Co., Ltd. All Rights Reserved.
  15. 15. ⣽䛛䛔௙ᵝ ● 䝩䝇䝔䜱䞁䜾䝃䜲䝖䛻౫Ꮡ䛧䛶䛔䜛䛾䛿webhook䛰䛡䛺䛾 䛷䚸git clone䛷䛝䜛URL䛷䛒䜜䜀඲㒊౑䛘䜛 ○ http://ࠥ.git ○ https://ࠥ.git ○ git://ࠥ.git ○ ssh://ࠥ.git (ู㏵බ㛤㘽䛾Ⓩ㘓䛜ᚲせ) ● DB䛿MySQL, PostgreSQL, sqlite3䛻ᑐᛂ ● git clone䛧䛶䝗䜻䝳䝯䞁䝖⏕ᡂ䛩䜛䛾䛿sidekiq౑䛳䛶㠀ྠᮇ ᐇ⾜ Copyright Drecom Co., Ltd. All Rights Reserved.
  16. 16. ཧ⪃䝸䞁䜽 ● Github䜶䝁䝅䝇䝔䝮䜢ά⏝䛧䛯䜲䝬䝗䜻䛾㊃࿡㛤Ⓨ ○ http://sue445.hatenablog. com/entry/2014/09/24/200624 ● Gemoire䛸䛔䛖YARD䝩䝇䝔䜱䞁䜾䜰䝥䝸䜢స䜚䜎䛧䛯 ○ http://sue445.hatenablog. com/entry/2014/09/29/115504 Copyright Drecom Co., Ltd. All Rights Reserved.

×