光のツールExcelに闇Rubyの力を注いでみた

1,284 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,284
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

光のツールExcelに闇Rubyの力を注いでみた

  1. 1. 光のツールExcelに闇Rubyの力を注入してみた~ Lets injection dark ruby power to Holy Excel ~ !RubyKaigi 2011 @koduki
  2. 2. about me● Name : Hiroaki Nakada● @twitter_id:koduki● github – https://github.com/koduki
  3. 3. What is Excel ?
  4. 4. Very populerDocmentation tool in Japan
  5. 5. All document is written by Excel.
  6. 6. All document
  7. 7. orz
  8. 8. But
  9. 9. This is good toolto be written test data and so on.
  10. 10. But...
  11. 11. VBA(Visual Basic for Appliction)
  12. 12. We generate SQL, source code,XML, CSV, and so on, from Excel by VBA
  13. 13. Example
  14. 14. Not Support reguler expression Not Support UTF-8 Not Support Clouser Poor Syntax Not Support Real Object OrientedPoor Text Parsing
  15. 15. そんな言語で大丈夫か?
  16. 16. 一番 良いのを たのむ
  17. 17. Ruby
  18. 18. How do I use ruby for excel?● Win32 OLE binding● JRuby and POI
  19. 19. WinOLE32● Powerful API.● Not only excel, but also IE, Outlook, and so on.● Only windows plattoform.
  20. 20. JRuby and POI● Apache POI.(Java Library)● Support Excel 97, 2000, and 2003.● A little complex.
  21. 21. More simply
  22. 22. I make it.
  23. 23. POILite● Very simple POI wrapper for jruby https://github.com/koduki/POILite● using Excel Sheet as simple arrray.● you can write simple code.● erb is very useful● Example:Selenium Testcase Generator https://github.com/koduki/Tesla
  24. 24. auto type convert
  25. 25. build jar file > rake jar:package > java -jar dist/poilite.jar● Not Install Ruby!
  26. 26. 体が軽い! もう何も怖くない
  27. 27. Nullpointer Exception, orz
  28. 28. We should write test !
  29. 29. Thank you.

×