12
gems on Rails Ruby関西勉強会#70 2016,1,9 by @satomicchy

Gemの話 紹介編

Embed Size (px)

Citation preview

gems on RailsRuby関西勉強会#70

2016,1,9 by @satomicchy

自己紹介つじた さとみ

@satomicchy

経理屋&プログラマー

Rails歴 兼業で6年ぐらい

RailsGirls行脚してます。

最近やっと、RailsのRubyがちょっと読めるようになりました。

今年はスマホアプリも作りたいです。

昔、H/Wやってたので、そのうち組み込みやりたいです。

Robiはまだ完成してません(汗) (2016年1月9日現在)

今日のネタ

What is a gem?

gemを探す

gemを選ぶ

gemを使う

個人的によく使うgems on Rails

みなさんのお気に入りgemを教えてください

What is a gem?

Rubyのライブラリです!

gemを探す

RubyGems.org

gemのホスティングサービス

https://rubygems.org

The Ruby Toolbox

gemのランキングサービス

https://www.ruby-toolbox.com

gemを選ぶTotal Download数

最近更新されているかどうか

READMEやドキュメントの内容

ちょっと使ってみた感じ(コードとの相性)

バージョン番号

作者、ロゴ

gemを使う

1. GithubのREADME,Wikiを読む

2. APIドキュメント的なものを読む

3. Githubでコードを読む

4. ググる(主にstackoverflowとか)

5. Githubのissueを見る

さき

あといろいろやって 上手く動かないとき

個人的によく使う gems on Rails(認証・権限周辺)

devise # ログイン

https://github.com/plataformatec/devise

CanCanCan # 権限設定(権限ベース)

https://github.com/CanCanCommunity/cancancan

Pundit # 権限設定(ポリシーベース、actionに似た記述)

https://github.com/elabs/pundit

個人的によく使う gems on Rails(入出力ドキュメント)

Prawn # PDF出力(Ruby記述)�えびちゃんカワイイ https://github.com/prawnpdf/prawn

PDFKit # PDF出力(html記述) https://github.com/pdfkit/pdfkit

rubyzip # zip出力 https://github.com/rubyzip/rubyzip

Axlsx # xlsx出力�関西弁由来の名前 https://github.com/randym/axlsx

Docx Templater # docxテンプレート出力 https://github.com/BaseCampOps/docx_templater

Kaminari # ページネーション https://github.com/amatsuda/kaminari

CarrierWave # ファイルアップロード https://github.com/carrierwaveuploader/carrierwave

RailsAssets # assetsマネジメント https://github.com/rails-assets/rails-assets/

Whenever # cron作成 https://github.com/javan/whenever

SimpleCov # テストカバレッジ分析 https://github.com/colszowka/simplecov

個人的によく使う gems on Rails(その他)

みなさんの お気に入りgemなど

githubにある有名サイトのGemfileを参考にする (by @ogomさん) 例)https://github.com/gitlabhq/gitlabhq/blob/master/Gemfile

Rubyのスゴい奴らを紹介しているサイトを参考にする (by @ogomさん) http://awesome-ruby.com

THINREPORT # PDF帳票作成 (by @urimaroさん) http://www.thinreports.org

gem作者のみなさま ありがとうございます!