SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Downloaden Sie, um offline zu lesen
Ruby-GNOME2 のメンテナになってみた話

Ruby-GNOME2 のメンテナになってみた話
@cosmo

2013/12/8
Ruby-GNOME2 のメンテナになってみた話
Who am I?

.
自己紹介
.

TwitterID: @cosmo .. Twitter
Github: cosmo0920 .. Github
ソフトウェアエンジニア
Ruby-GNOME2 メンテナ (New)
.
Ruby-GNOME2 のメンテナになってみた話
Ruby-GNOME2 とは

.
Ruby-GNOME2 とは
.

ruby から GTK2/GTK3 を使おうと
するバインディングライブラリ集
.
Ruby-GNOME2 のメンテナになってみた話
Ruby-GNOME2 の gem を使っているアプリケーション

.

Q. Ruby-GNOME2 の gem を使って
いるアプリケーションとは?
.
Ruby-GNOME2 のメンテナになってみた話
Ruby-GNOME2 の gem を使っているアプリケーション

.

A. mikutter
.
Ruby-GNOME2 のメンテナになってみた話
Ruby-GNOME2 と関わったきっかけ

.
きっかけ
.
.

ruby 2.1.0 preview1 が出た
gtk2 入れて mikutter を動かしてみようとした
Ruby-GNOME2 のメンテナになってみた話

_人人人人人人人人人人人人人_
> 突然のコンパイルエラー <
 ̄ YˆYˆYˆYˆYˆYˆYˆYˆYˆYˆY  ̄
Ruby-GNOME2 のメンテナになってみた話
バグ報告をしてみよう

自分のところだけで直してもい
いけれど
Upstream(開発元)に報告した
ほうが他の人も幸せになれる
よし、頑張って報告してできた
らパッチを書いてみよう
Ruby-GNOME2 のメンテナになってみた話
バグ報告をしてみよう
Ruby-GNOME2 のメンテナになってみた話
パッチを投げてみた

色々と議論しているうちに
パッチが書けた
Ruby-GNOME2 のメンテナになってみた話
パッチを投げてみた
Ruby-GNOME2 のメンテナになってみた話
その後

PullRequest を 5 件送りました
Ruby-GNOME2 の開発者にならないかと誘わ
れた

→快諾しました
Ruby-GNOME2 のメンテナになってみた話

_人人人人人人人人人人人人人_
> メンテナになってしまった <
 ̄ YˆYˆYˆYˆYˆYˆYˆYˆYˆYˆYˆY  ̄
Ruby-GNOME2 のメンテナになってみた話
メンテナとしての自分の方針

基本的に issue にあがっていることからできそ
うな所をやってみる方針

Ruby-GNOME2 のメンバーになった後に ML の
存在に気づいた
基本 Github でやり取り、突っ込んだ議論は ML
ですることも
主にテスト周りのメンテナンスしています
Ruby-GNOME2 のメンテナになってみた話
メンテナになってからしたこと

.
やったことの概要
.

2.10 以前の GTK2 のサポートを切る .. Go
古い Pango/ATK/GLib のサポートを切る
例: .. Go
rcairo の依存関係の見直し .. Go
Travis CI を緑にするための作業 .. Go
deprecated なテストを直す .. Go
Gdk::EventTouch の実装 .. Go
C 言語拡張のコンパイル時の警告への対応 .. Go
GObject-Introspection を使った gio2 の試験実装

.

.. Go
Ruby-GNOME2 のメンテナになってみた話
メンテナになってからしたこと

.
要約
.
.

テストに関すること
コードのリファクタリング

がほとんど
Ruby-GNOME2 のメンテナになってみた話
Ruby-GNOME2 プロジェクトの問題

テストコードが少ない事

Ruby のコードの中では長い歴史を持つ
ruby-gtk-0.11 (1998/9∼)
Ruby-GNOME (2001/10∼)
Ruby-GNOME2(∼現在)

Travis CI がいつも失敗していた
Ruby-GNOME2 のメンテナになってみた話
Ruby-GNOME2 プロジェクトの問題

テストコードが少ない事

Ruby のコードの中では長い歴史を持つ
ruby-gtk-0.11 (1998/9∼)
Ruby-GNOME (2001/10∼)
Ruby-GNOME2(∼現在)

Travis CI がいつも失敗していた
Ruby-GNOME2 のメンテナになってみた話
Ruby-GNOME2 とテストコード

RubyUnit(現在の Test::Unit)の
0.4.0 リリースは 2001 年 09 月 08
日1
GUI のライブラリはテストが特
に難しい!
それも相まってテストコードが
少ない
1

http://homepage1.nifty.com/markey/ruby/rubyunit/
Ruby-GNOME2 のメンテナになってみた話
テスト周りについて

Ruby-GNOME2 では Test::Unit で
テストを書いている
GUI のテストは難しい!
労力に見合うだけのテストを書
くに留めよう!
CI したい!
Ruby-GNOME2 のメンテナになってみた話
テスト周りについて

Ruby-GNOME2 では Test::Unit で
テストを書いている
GUI のテストは難しい!
労力に見合うだけのテストを書
くに留めよう!
CI したい!
Ruby-GNOME2 のメンテナになってみた話
テスト周りについて

Ruby-GNOME2 では Test::Unit で
テストを書いている
GUI のテストは難しい!
労力に見合うだけのテストを書
くに留めよう!
CI したい!
Ruby-GNOME2 のメンテナになってみた話
テスト周りについて

Ruby-GNOME2 では Test::Unit で
テストを書いている
GUI のテストは難しい!
労力に見合うだけのテストを書
くに留めよう!
CI したい!
Ruby-GNOME2 のメンテナになってみた話
テスト周りについて

何故テストを書くのか
Ruby-GNOME2 のメンテナになってみた話
テスト周りについて

不安をなくすため?
Ruby-GNOME2 のメンテナになってみた話
テスト周りについて

と言うよりも
Ruby-GNOME2 のメンテナになってみた話
テスト周りについて

開発を楽しむため!
Ruby-GNOME2 のメンテナになってみた話
テストについて

労力に見合うだけのテストを
書く
テストは開発を楽しむために書
くもの
メンテナンスしやすいテス
トを!
Ruby-GNOME2 のメンテナになってみた話
テストについて

労力に見合うだけのテストを
書く
テストは開発を楽しむために書
くもの
メンテナンスしやすいテス
トを!
Ruby-GNOME2 のメンテナになってみた話
テストについて

労力に見合うだけのテストを
書く
テストは開発を楽しむために書
くもの
メンテナンスしやすいテス
トを!
Ruby-GNOME2 のメンテナになってみた話
今の Ruby-GNOME2

出来るところからテストコード
を追加
開発者 ML が活発に
Travis CI が Green に!

Weitere ähnliche Inhalte

Empfohlen

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Kernelvm-9th-lt