Download - プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup
![Page 1: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/1.jpg)
プリキュアのRuby実装の紹介 (2015 ver)
@sue4452015/05/13 目黒スタートアップ勉強会(仮)
![Page 2: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/2.jpg)
自己紹介
@sue445● “Go” って名前だけどgolang全然書けないw● Twitterは上級者向けのアカウントなのでフォロー厳禁
○ 30分間で200ツイート以上流れるよ!!
お仕事
● iOS/Androidアプリの課金ライブラリのメンテ
● 社内ツール、社内ライブラリ開発
● サーバサイド全般(アプリ~インフラまで横断的に)● TDDおじさん
● PO (Precure Ojisan)
![Page 3: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/3.jpg)
【今期の嫁】キュアトゥインクル
![Page 4: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/4.jpg)
今期の黄色は肩背中出し!!!!
![Page 5: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/5.jpg)
【本妻】キュアピース
![Page 6: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/6.jpg)
プリキュアが大好きなので
プリキュアを作った!
![Page 7: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/7.jpg)
プリキュアが大好きなので
Rubyでプリキュアを作った!
![Page 8: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/8.jpg)
rubicure (Ruby + Precure)
![Page 9: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/9.jpg)
バッジの展覧会としても有名
https://github.com/sue445/rubicure
![Page 10: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/10.jpg)
詳細
● https://github.com/sue445/rubicure● http://sue445.hatenablog.
com/entry/2013/12/16/000011● Supported
○ 2.0.x○ 2.1.x○ 2.2.x○ ruby-head
![Page 11: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/11.jpg)
実演
![Page 12: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/12.jpg)
関連プロダクト
● faker-precure○ https://github.com/sue445/faker-precure○ rubicureを使ってテストデータをランダム作成
する
![Page 13: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/13.jpg)
呼ぶ度にランダムで名前が返る
require "faker/precure"
Faker::Precure.precure_name
#=> "キュアピース"
Faker::Precure.precure_name
#=> "キュアアクア"
![Page 14: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/14.jpg)
実装されているメソッド
● Faker::Precure.precure_name● Faker::Precure.human_name● Faker::Precure.cast_name● Faker::Precure.user_name
○ アルファベット小文字+アンスコ的な名前
● Faker::Precure.title○ 作品タイトル
● Faker::Precure.transform_message○ 変身時の名乗り
![Page 15: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/15.jpg)
使用例 (with factory_girl)
FactoryGirl.define do
factory :user do
name { Faker::Precure.human_name }
end
end
![Page 16: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/16.jpg)
関連プロダクト
● unite-precure○ vimからrubicureを呼び出すuniteプラグイン○ https://github.com/igrep/unite-precure○ http://the.igreque.info/posts/2014-12-25-
unite-precure.vim.html
![Page 17: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/17.jpg)
多言語での実装
● Acme::PrettyCure: プリキュアのPerl実装
○ http://perl-users.jp/articles/advent-calendar/2010/acme/6
● pycure: プリキュアのPython実装○ https://github.com/drillbits/pycure
● groovycure: プリキュアのgroovy実装○ https://github.com/ligun/groovycure
● clocure: プリキュアのclojure実装○ https://github.com/kaosf/clocure
![Page 18: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/18.jpg)
まとめ
![Page 19: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/19.jpg)
エンジニアは誰だってプリキュアを作れるのよ
エンジニアはダレだってプリキュアを作れるのよ
![Page 20: プリキュアのRuby実装の紹介 (2015 ver) #MeguroStartup](https://reader033.vdocuments.pub/reader033/viewer/2022042701/55af60e91a28abc8618b46af/html5/thumbnails/20.jpg)
ご静聴ありがとうございました
あなたとRUBICUREいますぐダウンロー
ド