Skip to content

ytkg/komeda

Repository files navigation

Komeda

Gem Version ci MIT License

Komeda's coffee menu data

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add komeda

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install komeda

Usage

require 'komeda'

Get all menu

Komeda.all
#=> [
#     {:name=>"コメダブレンド", :description=>"厳選した豆からじっくり丁寧に抽出したコメダ珈琲店伝統の味 濃厚なフレッシュと砂糖の両方を入れるのがオススメです。"},
#     {:name=>"アメリカン", :description=>"軽くて飲みやすく、コーヒーの旨味を楽しめます。"},
#     ...
#     {:name=>"クルーミーショコラ", :description=>"クリームもスポンジもチョコづくし。\n更にきざみくるみとチョコチップを混ぜ込んだホイップクリームを贅沢にサンド。本商品に使用しているチーズは加熱処理済みです。"},
#     {:name=>"りんごーるタルト", :description=>"さっぱりとしたりんご味のクリームの上にシャキシャキ食感のリンゴ果肉と\n" + "彩り鮮やかなりんごソースをたっぷりのせたオールりんごなデザート。"}
#   ]

Get drink menu

Komeda.drinks
#=> [
#     {:name=>"コメダブレンド", :description=>"厳選した豆からじっくり丁寧に抽出したコメダ珈琲店伝統の味 濃厚なフレッシュと砂糖の両方を入れるのがオススメです。"},
#     {:name=>"アメリカン", :description=>"軽くて飲みやすく、コーヒーの旨味を楽しめます。"},
#     ...
#     {:name=>"クリームソーダ でらたっぷりサイズ", :description=>"でらたっぷり約2倍!クリームソーダをでらたっぷりサイズでお楽しみください。※販売は店舗により異なります。※メロンソーダにメロン果汁は含まれておりません。"},
#     {:name=>"アップルジュース", :description=>"りんごのおいしさをぎゅっと濃縮したさっぱりとした味わいです。"}
#   ]

Get food menu

Komeda.foods
#=> [
#     {:name=>"ホットドッグ", :description=>"たっぷりコールスローとパリッとウインナーを特製ドッグパンで挟みました。"},
#     {:name=>"フィッシュフライバーガー", :description=>"タルタルソースとチーズが絶妙にマッチ。\n本商品に使用しているチーズは加熱処理済みです。"},
#     ...
#     {:name=>"ジャーマン(沖縄限定)", :description=>"パリッとジューシーなウインナーとたっぷり野菜。\n※店舗により販売状況が異なります 詳しくは店舗にご確認ください"},
#     {:name=>"手作りたまごドッグ", :description=>"自家製たまごペーストとシャキッとレタスのハーモニーをお楽しみください。"}
#   ]

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ytkg/komeda. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Komeda project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.