Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rails 5.0.0.beta2 触ってみた

82827b046babc7a4d4c54b8b96fee67a?s=47 morizyun
March 20, 2016

Rails 5.0.0.beta2 触ってみた

M3 Tech Talk と ゆるびぃ会で発表してきました!#rails #ruby
M3 Tech Talk に興味ある人は気軽にメッセージください => https://twitter.com/zyunnosuke

http://yuruby.connpass.com/event/25620/
http://m3dev.github.io/

82827b046babc7a4d4c54b8b96fee67a?s=128

morizyun

March 20, 2016
Tweet

Transcript

  1. Rails 5.0.0.beta2 ৮ͬͯΈͨ ϞϦδϡϯ (@zyunnosuke)

  2. ࣗݾ঺հ ϞϦδϡϯ (@zyunnosuke) ʮञͱᔢͱRubyͱRailsͱʯॻ͍ͯ·͢ʂ (๑•̀Ŷ•́๑)✧

  3. Rails5 Measure Version Up! • ͍Α͍ΑRails ͷϝδϟʔɾόʔδϣϯΞοϓ • 2015/12/18 -

    5.0.0.beta1 released • 2016/01/25 - 5.0.0.beta1.1 released • 2016/02/01 - 5.0.0.beta2 released ← ࠓίί • 2016/02/16ʙ23 - 5.0.0 rc1 release༧ఆ • ษڧ͕ͯΒ৽ػೳΛ৮ͬͯΈͨͷͰใࠂ
  4. Action Cable

  5. Action CableͬͯԿʁ • Action Cable͸WebSocketΛϋϯυϦϯ ά͢ΔͨΊͷϑϨʔϜϫʔΫ • ͪͳΈʹɺWebSocketͱ͸αʔόͱ
 ϒϥ΢βؒͰͷ૒ํ޲௨৴ͷϓϩτίϧ •

    νϟοτ΍NotificationΛRails WayͰ
 ؆୯ʹ࣮૷͢Δ͜ͱ͕Ͱ͖Δ
  6. νϟοτΞϓϦΛ࡞Ζ͏ GeneratorͰͻͳܗΛੜ੒

  7. νϟοτΞϓϦΛ࡞Ζ͏ ϧʔςΟϯάΛमਖ਼

  8. νϟοτΞϓϦΛ࡞Ζ͏ JavaScriptଆΛमਖ਼

  9. νϟοτΞϓϦΛ࡞Ζ͏ ActionCableͷΫϥεΛ࡞੒

  10. νϟοτΞϓϦΛ࡞Ζ͏ MessageΛςʔϒϧʹอଘɺඇಉظͰJobΛىಈ

  11. νϟοτΞϓϦΛ࡞Ζ͏ อଘ͞ΕͨϝοηʔδΛඇಉظͰ഑৴

  12. νϟοτΞϓϦΛ࡞Ζ͏ ͋ͱ͸ViewΛ࡞Δ͚ͩ

  13. νϟοτΞϓϦΛ࡞Ζ͏ νϟοτΞϓϦ׬੒ ʕ•̀ω•́ʔ✧

  14. Action Cableͷײ૝ • ViewͷΩϟογϡͳͲɺRailsͷࠓ·Ͱͷ
 ஌ࣝΛ༗ޮ׆༻Ͱ͖Δ • Ұ࣌తͳ઀ଓෆྑ΍Τϥʔ࣌ͷϦΧόϦ౳ɺ
 ຊ൪ద༻ʹ͸৭ʑߟ͑ͳ͍ͱ͍͚ͳͦ͏ • Basecamp

    3Ͱ͸طʹຊ൪ద༻ɻ͚Ͳɺωο τͷ஌ݟ͕ͨ·Δ·Ͱগ༷͠ࢠݟ͕͍͍͔΋ http://morizyun.github.io/blog/rails-5.0.0.beta1-new-function-official-blog/
  15. API Mode

  16. API ModeͬͯԿʁ • ϓϩάϥϜ͕ΞΫηε͢Δ͜ͱΛલఏͱ ͨ͠JSON APIʹదͨ͠ΞϓϦ • Rails WayͰϏδωεϩδοΫΛεϐʔ σΟ͔ͭॊೈʹAPIΛߏஙͰ͖Δ

  17. API ModeͷϝϦοτ • ௨ৗͷWebΞϓϦΑΓ΋ɺMiddleware͕௨ ৗΑΓ੍ݶ͞ΕΔ͜ͱͰԠ౴ੑೳ͕޲্͢Δ • GeneratorͰͷView΍Assetͷੜ੒͕ߦΘΕ ͳ͍(ϑϩϯτΤϯυଆ͕ߦ͏͜ͱΛ૝ఆ) • RailsͷϓϥΫςΟεΛͦͷ··࢖͍ͭ

    ͭɺੑೳ͕޲্͍ͯ͠ΔͷͰ࣮༻త http://morizyun.github.io/blog/rails-5.0.0.beta1-new-function-official-blog/
  18. ActiveRecord Attributes

  19. ActiveRecord Attributes DBʹอଘ͢ΔಠࣗͷܕΛ࣋ͭ͜ͱ͕Ͱ͖Δ http://morizyun.github.io/blog/rails-5.0.0.beta1-new-function-official-blog/

  20. ActiveRecord:: Relation#or

  21. ActiveRecord::Relation#or orΛਖ਼֬ʹղऍͰ͖ΔΑ͏ʹͳͬͨ (ۙ೔தʹϒϩάެ։༧ఆ)

  22. ActiveRecord::Relation #left_outer_joins

  23. #left_outer_joins(#left_joins) ֎෦݁߹Λߦ͏ #left_outer_joins(#left_joins) (ۙ೔தʹϒϩάެ։༧ఆ)

  24. Enumerable #pluck

  25. Enumerable#pluck Enumerable͔ΒɺಛఆͷཁૉΛநग़ (ۙ೔தʹϒϩάެ։༧ఆ)

  26. Enumerable #without

  27. Enumerable#without Enumerable͔ΒಛఆͷཁૉΛऔΓআ͘ (ۙ೔தʹϒϩάެ։༧ఆ)

  28. etc…

  29. Change Log (ۙ೔தʹϒϩάެ։༧ఆ) • ActionPack CHANGELOG • ActionMailer CHANGELOG •

    ActionView CHANGELOG • ActiveRecod CHANGELOG • ActiveModel CHANGELOG • ActiveSupport CHANGELOG • ActiveJob CHANGELOG • Railties CHANGELOG
  30. ·ͱΊ

  31. ·ͱΊ • Action Cable => νϟοτ࡞Γ΍ͦ͢͏ • API Mode =>

    APIΛ࡞Γ͸͡Ί΍ͦ͢͏ • ͦͷଞ͍Ζ͍Ζ => ஍ຯͳਐԽ͕خ͍͠