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.

RubyKaigi2009 Presentation Slide

2,552 views

Published on

Our tDiary's policy and strategies to support Ruby 1.9 and our future plan.

Published in: Technology
  • Be the first to comment

RubyKaigi2009 Presentation Slide

  1. 1. tDiary Ruby1.9 Our tDiary's policy and strategies to support Ruby 1.9 and our future plan. (tDiary.org) SHIBATA Hiroshi (tDiary.org) 2009 7 19 1
  2. 2. 2009 7 19 2
  3. 3. • SHIBATA Hiroshi a.k.a hsbt (hsbt.org) • • 1981 2009 7 19 3
  4. 4. Ruby • 4 id:gotoken • tDiary Web 2009 7 19 4
  5. 5. • Administrator of developer team for tDiary.org 2009 7 19 5
  6. 6. RubyKaigi2009 / 2009 7 19 6
  7. 7. 2009 7 19 7
  8. 8. Agenda • • tDiary-2.3.2 (Ruby 1.9 ) • Ruby 1.9 • tDiary-2.3.3~ future 2009 7 19 8
  9. 9. 2009 7 19 9
  10. 10. tDiary ? 2009 7 19 10
  11. 11. tDiary 2009 7 19 11
  12. 12. tDiary … 2009 7 19 12
  13. 13. tDiary • feed reader (ry • tDiary (ry • (ry 2009 7 19 13
  14. 14. tDiary • Tsukkomi oriented Diary system • before Rails (25 ) • Ruby • Ruby 2009 7 19 14
  15. 15. tDiary Ruby 2009 7 19 15
  16. 16. 2009/01/30 Ruby 1.9 Release! 2009 7 19 16
  17. 17. Ruby 1.9 ? 2009 7 19 17
  18. 18. RubyKaigi2009 / 2009 7 19 18
  19. 19. tDiary Ruby 1.9 2009 7 19 19
  20. 20. tDiary Ruby 1.9 • Ruby 1.9 • tDiary Ruby 1.9 • Ruby 1.9 2009 7 19 20
  21. 21. Agenda • • tDiary-2.3.2 (Ruby 1.9 ) • Ruby 1.9 • tDiary-2.3.3~ future 2009 7 19 21
  22. 22. tDiary-2.3.2 (Ruby 1.9 ) 2009 7 19 22
  23. 23. 2009 7 19 23
  24. 24. orz 2009 7 19 24
  25. 25. by kakutani 2009 7 19 25
  26. 26. … 2009 7 19 26
  27. 27. 2009 7 19 27
  28. 28. 2008 12 2009 7 19 28
  29. 29. 2009 7 19 29
  30. 30. Ruby 1.9 • • 2009 7 19 30
  31. 31. Ruby 1.9 • 1.8 1.9 • magic comment 2009 7 19 31
  32. 32. Ruby 1.9 • ruby --encoding • 2009 7 19 32
  33. 33. Agenda • • tDiary-2.3.2 (Ruby 1.9 ) • Ruby 1.9 • tDiary-2.3.3~ future 2009 7 19 33
  34. 34. Ruby 1.9 2009 7 19 34
  35. 35. 1 (core/misc/lib/compatible.rb) 2009 7 19 35
  36. 36. compatible.rb • machu • 1.8 1.9 • for 1.9: String.each_line, String.to_a ... • for 1.8: String.force_encoding, String.bytesize ... 2009 7 19 36
  37. 37. 2 (magic comment ru) 2009 7 19 37
  38. 38. • *.rb 1 • shebang 2 2009 7 19 38
  39. 39. 1 2009 7 19 39
  40. 40. sed ! gsed -i "1s/.*/# -*- coding: utf-8; -*-n&/" **/*.rb 2009 7 19 40
  41. 41. 3 ruby --encoding=utf-8 2009 7 19 41
  42. 42. ruby --encoding=utf-8 • ruby --encoding • tDiary index.rb update.rb shebang • 2009 7 19 42
  43. 43. 4 2009 7 19 43
  44. 44. • open( file, ‘r:utf-8’) • Ruby 1.8.6 • 2009 7 19 44
  45. 45. default_external ! Encoding::default_external = ‘UTF-8’ 2009 7 19 45
  46. 46. RUBY_VERSION 2009 7 19 46
  47. 47. 2009 7 19 47
  48. 48. • cgi.cookies ASCII-8BIT encoding • map Enumerator to_a • get nil 2009 7 19 48
  49. 49. … 2009 7 19 49
  50. 50. 2009 7 19 50
  51. 51. … 2009 7 19 51
  52. 52. eval SecurityError 2009 7 19 52
  53. 53. eval SecurityError 2009 7 19 53
  54. 54. [BUG] • $SAFE= 1 eval [BUG] • 2009 7 19 54
  55. 55. ruby-1.9.1p129 bug fix 2009 7 19 55
  56. 56. • Ruby [BUG] • Ruby [BUG] • (ry 2009 7 19 56
  57. 57. 2009/05/08 tDiary-2.3.2 2009 7 19 57
  58. 58. 2009 7 19 58
  59. 59. hsbt.org 2009 7 19 59
  60. 60. Agenda • • tDiary-2.3.2 (Ruby 1.9 ) • Ruby 1.9 • tDiary-2.3.3~ future 2009 7 19 60
  61. 61. tDiary-2.3.3~ future 2009 7 19 61
  62. 62. tDiary-2.3.3~ future • testing framework • rspec • cucumber • CGI Rack • 2009 7 19 62
  63. 63. testing framework • ( C ) : • • : rspec cucumber 2009 7 19 63
  64. 64. rspec •plugin • contrib core 2009 7 19 64
  65. 65. cucumber • • testable_tdiary 2009 7 19 65
  66. 66. testable_tdiary!! 2009 7 19 66
  67. 67. 2009 7 19 67
  68. 68. SapporoRubyKaigi01 2009 7 19 68
  69. 69. … • tDiary 01 • http://kakutani.com/20081025.html#p01 2009 7 19 69
  70. 70. testable_tdiary 2009 7 19 70
  71. 71. github http://github.com/hsbt/tdiary/tree/testable_merge 2009 7 19 71
  72. 72. •script/server (pure webrick) • rackup -s webrick tdiary.ru • cucumber -l ja features • 2009 7 19 72
  73. 73. tDiary 2009 7 19 73
  74. 74. tDiary cgi.rb webrick cgi.rb rack webrick passenger 2009 7 19 74
  75. 75. / • cache cache • XMLRPC • mod_ruby fcgi • Ruby 1.9 2009 7 19 75
  76. 76. 2009 7 19 76
  77. 77. 2009 7 19 77
  78. 78. • tDiary Ruby • : tDiary Ruby1.9 • : tDiary 2.3.3 2009 7 19 78
  79. 79. 2009 7 19 79
  80. 80. Q&A 2009 7 19 80

×