doshii 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eca56ca2714b029d9da78f34ddf852a02bfd3cb9
4
- data.tar.gz: e7ee47054bf5cd141f402b10fa26ce6a086f03b7
3
+ metadata.gz: 21c3d8430f4026ad2ccea4495e07ce6fb1163f7f
4
+ data.tar.gz: 5071726124ea7f93c3b91973aa3db9f111c29b8b
5
5
  SHA512:
6
- metadata.gz: 0714ab4409c9f0d727c5e0c2b3b9b95d96065a105a50c484f98a763a762bd21c1ef321929b482990fa4818443a00b2f6b8ac700b3f4bacd0e26550b0c649924f
7
- data.tar.gz: aa11be65f5a6fda18e0d5f9c17778bbca5fcb0e79bbc0b7b0700949a7cf5ebbd667fd64e1f8ace906011acc74f472e057096c9aa23bb173929fb8f0b81f07db4
6
+ metadata.gz: 1909698d9330f046cc2c39306a0973c7dab9d3beb8ced8dd5a9e931379c6e4536e790e2c8c55804a41e41196cfb5e4afee5360199cc98b1677525fd90f4f331c
7
+ data.tar.gz: 5451a22cd9299aa64819679ab2fbe6082b499fb8371c2094c574cc970b6b15ac98b42b572672ab9615d5d9fc1ff54de105d64253c73679d59a5b2414edbe80f0
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Doshii
2
+ [![Gem Version](https://badge.fury.io/rb/doshii.svg)](http://badge.fury.io/rb/doshii)
2
3
 
3
- A Doshii API wrapper gem. Refer to [alphasandbox.doshii.co](https://alphasandbox.doshii.co/docs/partner/api/) for Doshii's API official documentation.
4
+ A Doshii API wrapper gem. Refer to [alphasandbox.doshii.co](https://alphasandbox.doshii.co/docs/partner/api/) for Doshii's official API documentation.
4
5
 
5
6
 
6
7
  ## Installation
@@ -27,12 +28,12 @@ Run this to create configuration file ```config/initializers/doshii.rb```:
27
28
 
28
29
  $ rails g doshii:install
29
30
 
30
- Change ```config/initializers/doshii.rb``` as necessary. You might want to set values in system env or environment files to differentiate development, test and production details:
31
+ Change ```config/initializers/doshii.rb``` as necessary. You might want to set values in system env or environment files to differentiate development, test and production setup:
31
32
  ```ruby
32
33
  Doshii.configure do |config|
33
34
  # you might want to set these values in environment files
34
- config.client_id = '369c27e8d884e0b54e56035b41eed4b07b0fc59091907418f0368ab643a4ad31'
35
- config.client_secret = 'c0c0441e9bcc671dff9beb8e2a16fb43ed392f8c9a029dc8075cb71b1ac87e5f'
35
+ config.client_id = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
36
+ config.client_secret = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
36
37
  config.endpoint = 'https://alphasandbox.doshii.co/partner/api'
37
38
  config.verify_ssl = false
38
39
  config.version = 'v1'
@@ -72,6 +73,12 @@ Doshii.checkin.create :location_id do |param|
72
73
  params.merge!(checkin_params)
73
74
  end
74
75
  ```
76
+ POST /checkins/:checkinId/table
77
+ ```ruby
78
+ Doshii.checkin.create "#{:checkin_id}/table" do |params|
79
+ params[:name] = '3'
80
+ end
81
+ ```
75
82
 
76
83
  **LOCATIONS**
77
84
 
@@ -83,7 +90,7 @@ POST /locations
83
90
  ```ruby
84
91
  Doshii.location.create do |params|
85
92
  params[:name] = 'Chickens R Us'
86
- params[:mobility] = 'fixed'
93
+ params[:mobility] = 'fixed'
87
94
  params[:availability] = 'closed'
88
95
  params[:address_line1] = '608 St Kilda Rd'
89
96
  # see the official api page for complete list of available params
@@ -136,6 +143,13 @@ GET /products/:locationId
136
143
  Doshii.product.find :location_id
137
144
  ```
138
145
 
146
+ **TABLES**
147
+
148
+ GET /tables/:tableId
149
+ ```ruby
150
+ Doshii.table.find :table_id
151
+ ```
152
+
139
153
 
140
154
  ## Development
141
155
 
data/lib/doshii/client.rb CHANGED
@@ -18,6 +18,10 @@ module Doshii
18
18
  resource 'products'
19
19
  end
20
20
 
21
+ def table
22
+ resource 'tables'
23
+ end
24
+
21
25
  def options
22
26
  Hash[*Configuration::VALID_CONFIG_KEYS.map { |key| [key, value(key)] }.flatten]
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module Doshii
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doshii
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Romel Campos
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-17 00:00:00.000000000 Z
11
+ date: 2015-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project:
169
- rubygems_version: 2.4.8
169
+ rubygems_version: 2.4.6
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Gem to wrap Doshii API