s-osa / color_me

カラーミーのAPIをRubyから扱うためのラッパーgem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ColorMe

Build Status Code Climate

カラーミーのAPI( http://shop-pro.jp/?mode=api_started )をRubyから扱うためのラッパーgem

API対応状況

  • ✅ GET /v1/shop.json
  • ✅ GET /v1/sales/stat.json
  • ✅ GET /v1/sales.json
  • ✅ GET /v1/sales/#{id}.json
  • ☑️ PUT /v1/sales/#{id}.json
  • ☑️ PUT /v1/sales/#{id}/cancel.json
  • ☑️ GET /v1/customers.json
  • ☑️ GET /v1/customers/#{id}.json
  • ✅ GET /v1/products.json
  • ✅ GET /v1/products/#{id}.json
  • ☑️ PUT /v1/products/#{id}.json
  • ☑️ GET /v1/stocks.json
  • ✅ GET /v1/categories.json
  • ✅ GET /v1/payments.json
  • ☑️ GET /v1/deliveries.json
  • ☑️ GET /v1/deliveries/date.json
  • ☑️ GET /v1/gifts.json
  • ☑️ GET /logout

対応Rubyバージョン

  • 2.1.0
  • 2.0.0
  • 1.9.3

インストール

Gemfileに以下の内容の追加してbundleコマンドを実行してください。

gem 'color_me', github: 's-osa/color_me'

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/s-osa/color_me/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

テスト

基本的なテストは以下のコマンドで実行できます。

$ bundle exec rake spec

また、実際のAPIを用いたテストが以下のコマンドで行えます。

$ echo "YourOwnToken" > token
$ bundle exec rake spec:online

token ファイルは.gitignoreに含まれていますが、typoなどによるcommitに注意してください。

About

カラーミーのAPIをRubyから扱うためのラッパーgem

License:MIT License


Languages

Language:Ruby 100.0%