simple_desk 0.4.0 → 1.0.0
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/LICENSE.txt +1 -1
- data/README.md +84 -44
- data/RELEASE.md +6 -0
- data/Rakefile +5 -0
- data/lib/simple_desk/client.rb +24 -0
- data/lib/simple_desk/configuration.rb +32 -0
- data/lib/simple_desk/endpoints.yml +11 -0
- data/lib/simple_desk/exceptions.rb +52 -0
- data/lib/simple_desk/version.rb +1 -1
- data/lib/simple_desk.rb +25 -51
- data/simple_desk.gemspec +12 -9
- data/spec/integrations/simple_desk_spec.rb +167 -0
- data/spec/spec_helper.rb +9 -7
- data/spec/vcr_cassettes/add_customer.yml +52 -0
- data/spec/vcr_cassettes/add_customer_api_disabled.yml +50 -0
- data/spec/vcr_cassettes/add_customer_bad_params.yml +50 -0
- data/spec/vcr_cassettes/add_customer_bad_token.yml +50 -0
- data/spec/vcr_cassettes/add_customer_no_subscription.yml +50 -0
- data/spec/vcr_cassettes/message_customer.yml +50 -0
- data/spec/vcr_cassettes/message_customer_api_disabled.yml +50 -0
- data/spec/vcr_cassettes/message_customer_bad_params.yml +50 -0
- data/spec/vcr_cassettes/message_customer_bad_token.yml +50 -0
- data/spec/vcr_cassettes/message_customer_no_subscription.yml +50 -0
- metadata +80 -25
- data/spec/my_spec.rb +0 -37
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/customers
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: phone_number=5555555557&email=user%40example.com&first_name=john&last_name=doe&properties[great_customer]=true
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- 3Z9L8xFjeNmXL7Yn-pFJUBoxkVWBbl5o
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '110'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: 'Created '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '158'
|
33
|
+
Etag:
|
34
|
+
- '"f9adcdb012185fe56fe84ad04e1a2824"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 68168308-eff1-41f8-98e0-12c2a4694f0f
|
39
|
+
X-Runtime:
|
40
|
+
- '0.490912'
|
41
|
+
Server:
|
42
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
43
|
+
Date:
|
44
|
+
- Fri, 19 Sep 2014 20:22:08 GMT
|
45
|
+
Connection:
|
46
|
+
- Keep-Alive
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"id":5,"phone_number":"5555555557","email":"user@example.com","first_name":"john","last_name":"doe","subscribed":true,"properties":{"great_customer":"true"}}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Fri, 19 Sep 2014 20:22:08 GMT
|
52
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/customers
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: phone_number=5555555557&email=user%40example.com&first_name=john&last_name=doe&properties[great_customer]=true
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- ts9mOO_O5Dc7TOBaEAQym-00RGEl3Uel
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '110'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 403
|
27
|
+
message: 'Forbidden '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '36'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- 96abc3ba-c542-4609-b133-be2f649e8770
|
37
|
+
X-Runtime:
|
38
|
+
- '0.016683'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
41
|
+
Date:
|
42
|
+
- Fri, 19 Sep 2014 20:22:08 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"Api Disabled For Company"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 19 Sep 2014 20:22:08 GMT
|
50
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/customers
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: phone_numbah=5555555558
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- 3Z9L8xFjeNmXL7Yn-pFJUBoxkVWBbl5o
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '23'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 400
|
27
|
+
message: 'Bad Request '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '35'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- c8c9a1f9-4caa-419c-92f8-7a9d4a2729d6
|
37
|
+
X-Runtime:
|
38
|
+
- '0.017334'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
41
|
+
Date:
|
42
|
+
- Fri, 19 Sep 2014 20:22:08 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"phone_number is missing"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 19 Sep 2014 20:22:08 GMT
|
50
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/customers
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: phone_number=5555555557&email=user%40example.com&first_name=john&last_name=doe&properties[great_customer]=true
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- FAKE_TOKEN
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '110'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 401
|
27
|
+
message: 'Unauthorized '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '21'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- 4138ab6a-357c-40a5-acb1-aa6370822cd3
|
37
|
+
X-Runtime:
|
38
|
+
- '0.012138'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
41
|
+
Date:
|
42
|
+
- Fri, 19 Sep 2014 20:22:08 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"Bad Token"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 19 Sep 2014 20:22:08 GMT
|
50
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/customers
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: phone_number=5555555557&email=user%40example.com&first_name=john&last_name=doe&properties[great_customer]=true
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- tKux9Vwkt0UuTVJqGUO80MGJHCAeebpe
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '110'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 403
|
27
|
+
message: 'Forbidden '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '34'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- 60931c12-7335-48db-bf4c-5d15b0da874d
|
37
|
+
X-Runtime:
|
38
|
+
- '0.015270'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
41
|
+
Date:
|
42
|
+
- Fri, 19 Sep 2014 20:22:08 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"No Active Subscription"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 19 Sep 2014 20:22:08 GMT
|
50
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/messages
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: to=5555555557&text=this%20is%20the%20message%20text
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- 3Z9L8xFjeNmXL7Yn-pFJUBoxkVWBbl5o
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '51'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 202
|
27
|
+
message: 'Accepted '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '71'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- 77e091c0-f026-4e5d-b9d7-931990d73c95
|
37
|
+
X-Runtime:
|
38
|
+
- '0.057751'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
41
|
+
Date:
|
42
|
+
- Fri, 19 Sep 2014 20:52:14 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"to":"5555555557","text":"this is the message text","status":"queued"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 19 Sep 2014 20:52:14 GMT
|
50
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/messages
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: to=5555555557&text=this%20is%20the%20message%20text
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- ts9mOO_O5Dc7TOBaEAQym-00RGEl3Uel
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '51'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 403
|
27
|
+
message: 'Forbidden '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '36'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- 091f4623-a053-46fc-8680-3f2ea4a1ffbb
|
37
|
+
X-Runtime:
|
38
|
+
- '0.028476'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
41
|
+
Date:
|
42
|
+
- Fri, 19 Sep 2014 20:48:59 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"Api Disabled For Company"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 19 Sep 2014 20:48:59 GMT
|
50
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/messages
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: toz=5555555558
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- 3Z9L8xFjeNmXL7Yn-pFJUBoxkVWBbl5o
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '14'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 400
|
27
|
+
message: 'Bad Request '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '42'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- 9ce887cb-c076-43af-8400-04a3c0f44a02
|
37
|
+
X-Runtime:
|
38
|
+
- '0.023421'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
41
|
+
Date:
|
42
|
+
- Fri, 19 Sep 2014 20:48:59 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"text is missing, to is missing"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 19 Sep 2014 20:48:59 GMT
|
50
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/messages
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: to=5555555557&text=this%20is%20the%20message%20text
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- FAKE_TOKEN
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '51'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 401
|
27
|
+
message: 'Unauthorized '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '21'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- 0af8cfce-d329-49bc-b10e-a589b4d7f453
|
37
|
+
X-Runtime:
|
38
|
+
- '0.021898'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
41
|
+
Date:
|
42
|
+
- Fri, 19 Sep 2014 20:48:59 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"Bad Token"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 19 Sep 2014 20:48:59 GMT
|
50
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/v1/messages
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: to=5555555557&text=this%20is%20the%20message%20text
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Token:
|
15
|
+
- tKux9Vwkt0UuTVJqGUO80MGJHCAeebpe
|
16
|
+
Client:
|
17
|
+
- rubygem 0.0.1
|
18
|
+
Content-Length:
|
19
|
+
- '51'
|
20
|
+
Content-Type:
|
21
|
+
- application/x-www-form-urlencoded
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 403
|
27
|
+
message: 'Forbidden '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '34'
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- 1c9f8477-1fcc-47e4-bc64-e18af44a95c7
|
37
|
+
X-Runtime:
|
38
|
+
- '0.110783'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
41
|
+
Date:
|
42
|
+
- Fri, 19 Sep 2014 20:48:59 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"No Active Subscription"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 19 Sep 2014 20:48:59 GMT
|
50
|
+
recorded_with: VCR 2.9.2
|
metadata
CHANGED
@@ -1,73 +1,103 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_desk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- John Gesimondo
|
7
8
|
- Elijah Murray
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-23 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
+
name: bundler
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- -
|
18
|
+
- - ~>
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
+
version: '1.3'
|
20
21
|
type: :development
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
|
-
- -
|
25
|
+
- - ~>
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
+
version: '1.3'
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
+
name: rake
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- -
|
32
|
+
- - ~>
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
+
version: '10.0'
|
34
35
|
type: :development
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
|
-
- -
|
39
|
+
- - ~>
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
+
version: '10.0'
|
41
42
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
43
|
+
name: rspec
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
46
|
- - ~>
|
46
47
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
+
version: '3.0'
|
48
49
|
type: :development
|
49
50
|
prerelease: false
|
50
51
|
version_requirements: !ruby/object:Gem::Requirement
|
51
52
|
requirements:
|
52
53
|
- - ~>
|
53
54
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
55
|
+
version: '3.0'
|
55
56
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
57
|
+
name: vcr
|
57
58
|
requirement: !ruby/object:Gem::Requirement
|
58
59
|
requirements:
|
59
|
-
- -
|
60
|
+
- - ~>
|
60
61
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
+
version: '2.6'
|
62
63
|
type: :development
|
63
64
|
prerelease: false
|
64
65
|
version_requirements: !ruby/object:Gem::Requirement
|
65
66
|
requirements:
|
66
|
-
- -
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.6'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: webmock
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.1'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.1'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rest-client
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '1.7'
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ~>
|
67
96
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
97
|
+
version: '1.7'
|
69
98
|
description: ''
|
70
99
|
email:
|
100
|
+
- john@jmondo.com
|
71
101
|
- elijah@bluefantail.com
|
72
102
|
executables: []
|
73
103
|
extensions: []
|
@@ -80,11 +110,25 @@ files:
|
|
80
110
|
- RELEASE.md
|
81
111
|
- Rakefile
|
82
112
|
- lib/simple_desk.rb
|
113
|
+
- lib/simple_desk/client.rb
|
114
|
+
- lib/simple_desk/configuration.rb
|
115
|
+
- lib/simple_desk/endpoints.yml
|
116
|
+
- lib/simple_desk/exceptions.rb
|
83
117
|
- lib/simple_desk/version.rb
|
84
118
|
- simple_desk.gemspec
|
85
|
-
- spec/
|
119
|
+
- spec/integrations/simple_desk_spec.rb
|
86
120
|
- spec/spec_helper.rb
|
87
|
-
|
121
|
+
- spec/vcr_cassettes/add_customer.yml
|
122
|
+
- spec/vcr_cassettes/add_customer_api_disabled.yml
|
123
|
+
- spec/vcr_cassettes/add_customer_bad_params.yml
|
124
|
+
- spec/vcr_cassettes/add_customer_bad_token.yml
|
125
|
+
- spec/vcr_cassettes/add_customer_no_subscription.yml
|
126
|
+
- spec/vcr_cassettes/message_customer.yml
|
127
|
+
- spec/vcr_cassettes/message_customer_api_disabled.yml
|
128
|
+
- spec/vcr_cassettes/message_customer_bad_params.yml
|
129
|
+
- spec/vcr_cassettes/message_customer_bad_token.yml
|
130
|
+
- spec/vcr_cassettes/message_customer_no_subscription.yml
|
131
|
+
homepage: http://github.com/getsimpledesk/simple_desk_gem
|
88
132
|
licenses:
|
89
133
|
- MIT
|
90
134
|
metadata: {}
|
@@ -104,10 +148,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
148
|
version: '0'
|
105
149
|
requirements: []
|
106
150
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.1
|
151
|
+
rubygems_version: 2.2.1
|
108
152
|
signing_key:
|
109
153
|
specification_version: 4
|
110
|
-
summary: Provides a clean and simple gem to connect to
|
154
|
+
summary: Provides a clean and simple gem to connect to Simpledesk
|
111
155
|
test_files:
|
112
|
-
- spec/
|
156
|
+
- spec/integrations/simple_desk_spec.rb
|
113
157
|
- spec/spec_helper.rb
|
158
|
+
- spec/vcr_cassettes/add_customer.yml
|
159
|
+
- spec/vcr_cassettes/add_customer_api_disabled.yml
|
160
|
+
- spec/vcr_cassettes/add_customer_bad_params.yml
|
161
|
+
- spec/vcr_cassettes/add_customer_bad_token.yml
|
162
|
+
- spec/vcr_cassettes/add_customer_no_subscription.yml
|
163
|
+
- spec/vcr_cassettes/message_customer.yml
|
164
|
+
- spec/vcr_cassettes/message_customer_api_disabled.yml
|
165
|
+
- spec/vcr_cassettes/message_customer_bad_params.yml
|
166
|
+
- spec/vcr_cassettes/message_customer_bad_token.yml
|
167
|
+
- spec/vcr_cassettes/message_customer_no_subscription.yml
|
168
|
+
has_rdoc:
|