Ruby で iOS アプリを開発できる Ruby Motion を使ってアプリを作り始めているのですが、Objective C で開発していたときと比べて楽過ぎてヤバいです。 Ruby Motion だけでも充分楽になるのですが、さらに BubbleWrap というラッパーと一緒に使うと、コードがとってもシンプルになって楽しい。 どんなにコードがシンプルになるかをデモするために、API にアクセスし、取得した JSON をパースする、という良くあるパターンを含んだサンプルアプリを作ってみました。 World Countries API にアクセスし、取得した JSON から国名のリストを作成し、画面をタップするごとにランダムに国名を表示します。 このサンプルを動かすには、 gem install bubble-wrapで BubbleWrap をインストールしたあと、Rakefile に