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 +4 -4
- data/README.md +19 -5
- data/lib/doshii/client.rb +4 -0
- data/lib/doshii/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21c3d8430f4026ad2ccea4495e07ce6fb1163f7f
|
4
|
+
data.tar.gz: 5071726124ea7f93c3b91973aa3db9f111c29b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1909698d9330f046cc2c39306a0973c7dab9d3beb8ced8dd5a9e931379c6e4536e790e2c8c55804a41e41196cfb5e4afee5360199cc98b1677525fd90f4f331c
|
7
|
+
data.tar.gz: 5451a22cd9299aa64819679ab2fbe6082b499fb8371c2094c574cc970b6b15ac98b42b572672ab9615d5d9fc1ff54de105d64253c73679d59a5b2414edbe80f0
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Doshii
|
2
|
+
[](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
|
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
|
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 = '
|
35
|
-
config.client_secret = '
|
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] =
|
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
data/lib/doshii/version.rb
CHANGED
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.
|
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-
|
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.
|
169
|
+
rubygems_version: 2.4.6
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Gem to wrap Doshii API
|