ݺߣ

ݺߣShare a Scribd company logo
Υĩ`Excel
Rubyע뤷Ƥߤ
 Let's injection dark ruby power
                        to Holy Excel 




                           !RubyKaigi 2011
                                 @koduki
about me
   Name : Hiroaki Nakada
   @twitter_id:koduki
   github
       C   https://github.com/koduki
What is Excel ?
Very populer
Docmentation tool
    in Japan
All document is written
       by Excel.
All document
orz
But
This is good tool
to be written test data and so on.
But...
VBA
(Visual Basic for Appliction)
We generate SQL, source code,
XML, CSV, and so on, from Excel by
              VBA
Example
Υĩ`뷡泦霸ܲעǤߤ
Not Support reguler expression
     Not Support UTF-8
               Not Support Clouser
 Poor Syntax
           Not Support Real Object
                  Oriented
Poor Text Parsing
Ǵɷ򤫣
һΤ򡡤Τ
Ruby
How do I use ruby for excel?
   Win32 OLE binding
   JRuby and POI
WinOLE32
   Powerful API.
   Not only excel, but also IE, Outlook, and so on.
   Only windows plattoform.
JRuby and POI
   Apache POI.(Java Library)
   Support Excel 97, 2000, and 2003.
   A little complex.
More simply
I make it.
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
Υĩ`뷡泦霸ܲעǤߤ
Υĩ`뷡泦霸ܲעǤߤ
auto type convert
build jar file
    > rake jar:package

    > java -jar dist/poilite.jar



   Not Install Ruby!
夬X


        ⤦Τʤ
Nullpointer Exception, orz
We should write test !
Thank you.

More Related Content

Υĩ`뷡泦霸ܲעǤߤ