LoginSignup
1
0

More than 3 years have passed since last update.

puma のコードネームが面白い

Last updated at Posted at 2019-12-16

みんな使ってるRubyのWebサーバーpumaですが、マイナーバージョンごとに振られるコードネームが面白いので抽出してみた。

コードネームは定数ファイル(lib/puma/const.rb)に書かれてるっぽいのでバージョンごとにそのファイルを調べてみる。

shell
git tag --list |
  ggrep -E "v\d.+\.0" |
  sort --version-sort|
  xargs -I ver sh -c "git --no-pager show ver:lib/puma/const.rb"|
  ggrep -E '^\s+(CODE_NAME|PUMA_VERSION)\s+=.+'|
  ggrep -oP '(?<=").+(?=")'

このシェルスクリプトはmacOSでしか動かしてなく、また grep は GNU のやつ使っている(brew instrall grepでインストールできるggrep)。やってることは:

  • git タグの出力
  • メジャー、マイナーバージョンアップのみを抽出 (v2.2.0とか)
  • バージョンごとにソート
  • それぞれのバージョンの lib/puma/const.rb を出力
  • CODE_NAME = ...PUMA_VERSION = ... を抽出
  • コードネームとバージョンのみを出力
結果
1.0.0
1.1.0
1.2.0
1.3.0
1.4.0
1.5.0
2.0.0
2.0.0.b2
2.0.0.b3
2.0.0.b4
2.0.0.b5
2.0.0.b6
2.0.0.b7
2.1.0
2.2.0
2.3.0
Delicious Thin Mints
2.4.0
Crunchy Munchy Lunchy
2.5.0
Astronaut Shoelaces
2.6.0
Pantsuit Party
2.7.0
Earl of Sandwich Partition
2.8.0
Sir Edmund Percival Hillary
2.9.0
Team High Five
2.10.0
Robots on Comets
2.11.0
Intrepid Squirrel
2.12.0
Plutonian Photo Shoot
2.13.0
A Midsummer Code's Dream
2.14.0
Fuchsia Friday
2.15.0
Autumn Arbor Airbrush
2.16.0
Midwinter Nights Trance
3.0.0
Plethora of Penguin Pinatas
3.0.0.rc1
Schneems Sleak Shoes
3.1.0
El Niño Winter Wonderland
3.2.0
Spring Is A Heliocentric Viewpoint
3.3.0
Jovial Platypus
3.4.0
Owl Bowl Brawl
3.5.0
Amateur Raccoon Rocketry
3.6.0
Sleepy Sunday Serenity
3.7.0
Snowy Sagebrush
3.8.0
Sassy Salamander
3.9.0
Private Caller
3.10.0
Russell's Teapot
3.11.0
Love Song
3.12.0
Llamas in Pajamas
4.0.0
4 Fast 4 Furious
4.1.0
Fourth and One
4.2.0
Distant Airhorns
4.3.0
Mysterious Traveller

なんか元ネタあるのかな?最新のやつは Weather Report のアルバム名っぽいけど

追記:
こちらの記事で同じことやってた。 https://qiita.com/rnitta/items/8caff31e5f9b054b9287

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0