SlideShare a Scribd company logo
Ruby
          11
       Agile Web Posting with Ruby
         2008 UJIHISA, Tatsuhiro




                                     1
2008 UJIHISA, Tatsuhiro




                          2
Agenda
•             (bg and motivation)

•   (basis)

•   (methods)

•        (howto)

•   (demonstration)

•     (conclusion)
                                    3
4
4
4
4
4
4
4
Agile Web Posting
•
    Web      Post


    output

•   c.f.            2.0 at
    input


                             5
• Ruby
         …


•


             6
Web   ?




          7
Web   ?




          7
Web   ?




          7
Web   ?




          7
?
•                Autofill

• bookmarklet
• greasemonkey
• add-on
•
                               8
Web
•
• ( , ):
•                        : RSS

•          RSS :

  • Yahoo! Pipes, p[lr]agger,
    PatchService
                                 9
•   ...



              URI



•“        ”   OK

•
                    10
11
Ruby

               Web



 Ruby script



                     12
Ruby Web
  • net/http
  • open-uri
  • Hpricot (HTML    )

  • WWW::Mechanize


                         13
Ruby Web




WWW::Mechanize


                 14
15
?

              Web



Ruby script



                        16
?




    17
•
    POST
•
         POST

•                   EDITOR
                             POST
    (svn ci     )
                                    18
Vim
               vim      (vim   )


•        etc

•                POST

• →vim
                               19
vimscript



            20
lusty-explorer.vim




                     21
lusty-explorer.vim

ruby...?




                     21
vim ruby
• vimscript
              ruby

• vimscript       vim          ruby


• ruby        vimscript eval


                                      22
23
24
25
• ~/.vim/plugin/
•        vim              :Mixi


•
    require ‘mechanize’

                                  26
•             (          OK)

• VIM.evaluate
• CodeRepos       lang/vim


  http://coderepos.org/share/browser/
  lang/vim/

                                        27
vimscript



            28
mixi.vim/nowa.vim
•
                 POST

• :Mixi, :Nowa
            subject,

• http://coderepos.org/share/browser/
    lang/vim/misc/{mixi|nowa}.vim
•
                                        29
30
30
30
30
30
cotocoto.vim
•
• :Cotocoto    buffer
    :CotocotoPost

•              yaml

•
                        31
32
• vim/emacs
•
 (    ,       ,       )
                  vim/emacs

•“                        ”


                              33
• ruby

• vimscript   elisp
  vimscript elisp     ruby


• mechanize
                             34
vimscript            !
 • CodeRepos
     lang/vim

 •
                !!




                         35
vimscriptupdater




                   36
•

•

• vim   ruby
        !

               37
• twitter vim   &   !

• timeline
    →

•


                        38
39
• 11         Web


•

•               : CodeRepos
    http://coderepos.org

                              40

More Related Content

Agile Web Posting with Ruby (lang:ja)