emites-client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/README.md +146 -0
  4. data/emites-client.gemspec +2 -2
  5. data/lib/emites.rb +3 -0
  6. data/lib/emites/client.rb +8 -0
  7. data/lib/emites/entities/service.rb +29 -0
  8. data/lib/emites/resources/service.rb +98 -0
  9. data/lib/emites/resources/taker.rb +98 -0
  10. data/lib/emites/version.rb +1 -1
  11. data/spec/emites/client_spec.rb +12 -0
  12. data/spec/emites/entities/services_spec.rb +21 -0
  13. data/spec/emites/resources/service_spec.rb +107 -0
  14. data/spec/emites/resources/taker_spec.rb +117 -0
  15. data/spec/vcr_cassettes/services/create/error.yml +49 -0
  16. data/spec/vcr_cassettes/services/create/success.yml +74 -0
  17. data/spec/vcr_cassettes/services/destroy/error.yml +49 -0
  18. data/spec/vcr_cassettes/services/destroy/success.yml +44 -0
  19. data/spec/vcr_cassettes/services/info/error.yml +49 -0
  20. data/spec/vcr_cassettes/services/info/success.yml +75 -0
  21. data/spec/vcr_cassettes/services/list/success.yml +215 -0
  22. data/spec/vcr_cassettes/services/search/returns_empty.yml +49 -0
  23. data/spec/vcr_cassettes/services/search/success.yml +76 -0
  24. data/spec/vcr_cassettes/takers/create/error.yml +49 -0
  25. data/spec/vcr_cassettes/takers/create/success.yml +58 -0
  26. data/spec/vcr_cassettes/takers/destroy/error.yml +49 -0
  27. data/spec/vcr_cassettes/takers/destroy/success.yml +44 -0
  28. data/spec/vcr_cassettes/takers/info/error.yml +49 -0
  29. data/spec/vcr_cassettes/takers/info/success.yml +57 -0
  30. data/spec/vcr_cassettes/takers/list/success.yml +308 -0
  31. data/spec/vcr_cassettes/takers/search/returns_empty.yml +49 -0
  32. data/spec/vcr_cassettes/takers/search/success.yml +58 -0
  33. metadata +49 -2
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://sandbox.emites.com.br/api/v1/service-values/50
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Emites Ruby Client v0.0.2
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 204
19
+ message: NO CONTENT
20
+ headers:
21
+ Allow:
22
+ - GET, PUT, PATCH, DELETE, HEAD, OPTIONS
23
+ Content-Length:
24
+ - '0'
25
+ Date:
26
+ - Fri, 28 Aug 2015 13:29:30 GMT
27
+ Server:
28
+ - nginx/1.6.2
29
+ User-Agent:
30
+ - emites-sandbox-v1
31
+ Vary:
32
+ - Cookie
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ Connection:
36
+ - keep-alive
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version: '1.1'
41
+ adapter_metadata:
42
+ effective_url: https://sandbox.emites.com.br/api/v1/service-values/50
43
+ recorded_at: Fri, 28 Aug 2015 13:29:30 GMT
44
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.emites.com.br/api/v1/service-values/51
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Emites Ruby Client v0.0.2
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: NOT FOUND
20
+ headers:
21
+ Allow:
22
+ - GET, PUT, PATCH, DELETE, HEAD, OPTIONS
23
+ Content-Encoding:
24
+ - gzip
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Fri, 28 Aug 2015 13:26:19 GMT
29
+ Server:
30
+ - nginx/1.6.2
31
+ User-Agent:
32
+ - emites-sandbox-v1
33
+ Vary:
34
+ - Accept-Encoding
35
+ - Cookie
36
+ X-Frame-Options:
37
+ - SAMEORIGIN
38
+ Content-Length:
39
+ - '43'
40
+ Connection:
41
+ - keep-alive
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"detail": "Not found"}'
45
+ http_version: '1.1'
46
+ adapter_metadata:
47
+ effective_url: https://sandbox.emites.com.br/api/v1/service-values/51
48
+ recorded_at: Fri, 28 Aug 2015 13:26:19 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,75 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.emites.com.br/api/v1/service-values/50
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Emites Ruby Client v0.0.2
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Allow:
22
+ - GET, PUT, PATCH, DELETE, HEAD, OPTIONS
23
+ Content-Encoding:
24
+ - gzip
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Fri, 28 Aug 2015 13:25:54 GMT
29
+ Server:
30
+ - nginx/1.6.2
31
+ User-Agent:
32
+ - emites-sandbox-v1
33
+ Vary:
34
+ - Accept-Encoding
35
+ - Cookie
36
+ X-Frame-Options:
37
+ - SAMEORIGIN
38
+ Content-Length:
39
+ - '399'
40
+ Connection:
41
+ - keep-alive
42
+ body:
43
+ encoding: ASCII-8BIT
44
+ string: !binary |-
45
+ eyJfbGlua3MiOiBbeyJocmVmIjogImh0dHBzOi8vc2FuZGJveC5lbWl0ZXMu
46
+ Y29tLmJyL2FwaS92MS9zZXJ2aWNlLXZhbHVlcy81MCIsICJtZXRob2QiOiAi
47
+ R0VUIiwgInJlbCI6ICJzZWxmIn0sIHsiaHJlZiI6ICJodHRwczovL3NhbmRi
48
+ b3guZW1pdGVzLmNvbS5ici9hcGkvdjEvc2VydmljZS12YWx1ZXMvNTAiLCAi
49
+ bWV0aG9kIjogIlBVVCIsICJyZWwiOiAidXBkYXRlIn0sIHsiaHJlZiI6ICJo
50
+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ft
67
+ b3VudCI6IG51bGwsICJkZXNjcmlwdGlvbiI6IG51bGwsICJjaXR5X3RheF9j
68
+ b2RlX2Rlc2MiOiBudWxsLCAiY2l0eV9jb2RlX2Rlc2MiOiBudWxsLCAiY25h
69
+ ZV9jb2RlX2Rlc2MiOiBudWxsLCAic2VydmljZV9pdGVtX2NvZGVfZGVzYyI6
70
+ IG51bGx9
71
+ http_version: '1.1'
72
+ adapter_metadata:
73
+ effective_url: https://sandbox.emites.com.br/api/v1/service-values/50
74
+ recorded_at: Fri, 28 Aug 2015 13:25:54 GMT
75
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,215 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.emites.com.br/api/v1/service-values
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Emites Ruby Client v0.0.2
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Allow:
22
+ - GET, POST, HEAD, OPTIONS
23
+ Content-Encoding:
24
+ - gzip
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Fri, 28 Aug 2015 13:26:50 GMT
29
+ Server:
30
+ - nginx/1.6.2
31
+ User-Agent:
32
+ - emites-sandbox-v1
33
+ Vary:
34
+ - Accept-Encoding
35
+ - Cookie
36
+ X-Frame-Options:
37
+ - SAMEORIGIN
38
+ transfer-encoding:
39
+ - chunked
40
+ Connection:
41
+ - keep-alive
42
+ body:
43
+ encoding: ASCII-8BIT
44
+ string: !binary |-
45
+ eyJjb3VudCI6IDYsICJuZXh0IjogbnVsbCwgInByZXZpb3VzIjogbnVsbCwg
46
+ ImNvbGxlY3Rpb24iOiBbeyJfbGlua3MiOiBbeyJocmVmIjogImh0dHBzOi8v
47
+ c2FuZGJveC5lbWl0ZXMuY29tLmJyL2FwaS92MS9zZXJ2aWNlLXZhbHV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GUiOiBudWxsLCAiY2l0eV90YXhfY29kZSI6IG51
197
+ bGwsICJzZXJ2aWNlX2l0ZW1fY29kZSI6IG51bGwsICJjbmFlX2NvZGUiOiBu
198
+ dWxsLCAic2VydmljZV9hbW91bnQiOiAiOTkuOTAiLCAiZGlzY291bnRfY29u
199
+ ZGl0aW9uaW5nX3BlcmNlbnRhZ2UiOiBudWxsLCAidW5jb25kaXRpb25lZF9k
200
+ aXNjb3VudF9wZXJjZW50YWdlIjogbnVsbCwgImRlZHVjdGlvbl9wZXJjZW50
201
+ YWdlIjogbnVsbCwgIm90aGVyX3JldGVudGlvbnNfcGVyY2VudGFnZSI6IG51
202
+ bGwsICJjYWxjdWxhdGlvbl9iYXNlIjogbnVsbCwgImlzc19wZXJjZW50YWdl
203
+ IjogbnVsbCwgInBpc19wZXJjZW50YWdlIjogbnVsbCwgImNvZmluc19wZXJj
204
+ ZW50YWdlIjogbnVsbCwgImluc3NfcGVyY2VudGFnZSI6IG51bGwsICJpcl9w
205
+ ZXJjZW50YWdlIjogbnVsbCwgImNzbGxfcGVyY2VudGFnZSI6IG51bGwsICJy
206
+ ZXRhaW5lZF9pc3MiOiBmYWxzZSwgInJldGFpbmVkX2lzc19wZXJjZW50YWdl
207
+ IjogbnVsbCwgIm5mc2VfbGlxdWlkX2Ftb3VudCI6IG51bGwsICJkZXNjcmlw
208
+ dGlvbiI6IG51bGwsICJjaXR5X3RheF9jb2RlX2Rlc2MiOiBudWxsLCAiY2l0
209
+ eV9jb2RlX2Rlc2MiOiBudWxsLCAiY25hZV9jb2RlX2Rlc2MiOiBudWxsLCAi
210
+ c2VydmljZV9pdGVtX2NvZGVfZGVzYyI6IG51bGx9XX0=
211
+ http_version: '1.1'
212
+ adapter_metadata:
213
+ effective_url: https://sandbox.emites.com.br/api/v1/service-values
214
+ recorded_at: Fri, 28 Aug 2015 13:26:50 GMT
215
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.emites.com.br/api/v1/service-values?name=abc
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Emites Ruby Client v0.0.2
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Allow:
22
+ - GET, POST, HEAD, OPTIONS
23
+ Content-Encoding:
24
+ - gzip
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Fri, 28 Aug 2015 13:29:03 GMT
29
+ Server:
30
+ - nginx/1.6.2
31
+ User-Agent:
32
+ - emites-sandbox-v1
33
+ Vary:
34
+ - Accept-Encoding
35
+ - Cookie
36
+ X-Frame-Options:
37
+ - SAMEORIGIN
38
+ Content-Length:
39
+ - '69'
40
+ Connection:
41
+ - keep-alive
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"count": 0, "next": null, "previous": null, "collection": []}'
45
+ http_version: '1.1'
46
+ adapter_metadata:
47
+ effective_url: https://sandbox.emites.com.br/api/v1/service-values?name=abc
48
+ recorded_at: Fri, 28 Aug 2015 13:29:03 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.emites.com.br/api/v1/service-values?name=Servi%C3%A7os%20de%20inform%C3%A1tica
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Emites Ruby Client v0.0.2
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Allow:
22
+ - GET, POST, HEAD, OPTIONS
23
+ Content-Encoding:
24
+ - gzip
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Fri, 28 Aug 2015 13:27:46 GMT
29
+ Server:
30
+ - nginx/1.6.2
31
+ User-Agent:
32
+ - emites-sandbox-v1
33
+ Vary:
34
+ - Accept-Encoding
35
+ - Cookie
36
+ X-Frame-Options:
37
+ - SAMEORIGIN
38
+ Content-Length:
39
+ - '431'
40
+ Connection:
41
+ - keep-alive
42
+ body:
43
+ encoding: ASCII-8BIT
44
+ string: !binary |-
45
+ eyJjb3VudCI6IDEsICJuZXh0IjogbnVsbCwgInByZXZpb3VzIjogbnVsbCwg
46
+ ImNvbGxlY3Rpb24iOiBbeyJfbGlua3MiOiBbeyJocmVmIjogImh0dHBzOi8v
47
+ c2FuZGJveC5lbWl0ZXMuY29tLmJyL2FwaS92MS9zZXJ2aWNlLXZhbHVlcy81
48
+ MCIsICJtZXRob2QiOiAiR0VUIiwgInJlbCI6ICJzZWxmIn0sIHsiaHJlZiI6
49
+ ICJodHRwczovL3NhbmRib3guZW1pdGVzLmNvbS5ici9hcGkvdjEvc2Vydmlj
50
+ ZS12YWx1ZXMvNTAiLCAibWV0aG9kIjogIlBVVCIsICJyZWwiOiAidXBkYXRl
51
+ In0sIHsiaHJlZiI6ICJodHRwczovL3NhbmRib3guZW1pdGVzLmNvbS5ici9h
52
+ cGkvdjEvc2VydmljZS12YWx1ZXMvNTAiLCAibWV0aG9kIjogIkRFTEVURSIs
53
+ ICJyZWwiOiAiZGVzdHJveSJ9LCB7ImhyZWYiOiAiaHR0cHM6Ly9zYW5kYm94
54
+ LmVtaXRlcy5jb20uYnIvc2VydmljZXMvZWRpdC81MCIsICJtZXRob2QiOiAi
55
+ R0VUIiwgInJlbCI6ICJodG1sIn1dLCAiZW1pdHRlcl9pZCI6IDEwLCAiaWQi
56
+ OiA1MCwgIm5hbWUiOiAiU2VydmnDp29zIGRlIGluZm9ybcOhdGljYSIsICJj
57
+ aXR5X2NvZGUiOiBudWxsLCAiY2l0eV90YXhfY29kZSI6IG51bGwsICJzZXJ2
58
+ aWNlX2l0ZW1fY29kZSI6IG51bGwsICJjbmFlX2NvZGUiOiBudWxsLCAic2Vy
59
+ dmljZV9hbW91bnQiOiAiOTkuOTAiLCAiZGlzY291bnRfY29uZGl0aW9uaW5n
60
+ X3BlcmNlbnRhZ2UiOiBudWxsLCAidW5jb25kaXRpb25lZF9kaXNjb3VudF9w
61
+ ZXJjZW50YWdlIjogbnVsbCwgImRlZHVjdGlvbl9wZXJjZW50YWdlIjogbnVs
62
+ bCwgIm90aGVyX3JldGVudGlvbnNfcGVyY2VudGFnZSI6IG51bGwsICJjYWxj
63
+ dWxhdGlvbl9iYXNlIjogbnVsbCwgImlzc19wZXJjZW50YWdlIjogbnVsbCwg
64
+ InBpc19wZXJjZW50YWdlIjogbnVsbCwgImNvZmluc19wZXJjZW50YWdlIjog
65
+ bnVsbCwgImluc3NfcGVyY2VudGFnZSI6IG51bGwsICJpcl9wZXJjZW50YWdl
66
+ IjogbnVsbCwgImNzbGxfcGVyY2VudGFnZSI6IG51bGwsICJyZXRhaW5lZF9p
67
+ c3MiOiBmYWxzZSwgInJldGFpbmVkX2lzc19wZXJjZW50YWdlIjogbnVsbCwg
68
+ Im5mc2VfbGlxdWlkX2Ftb3VudCI6IG51bGwsICJkZXNjcmlwdGlvbiI6IG51
69
+ bGwsICJjaXR5X3RheF9jb2RlX2Rlc2MiOiBudWxsLCAiY2l0eV9jb2RlX2Rl
70
+ c2MiOiBudWxsLCAiY25hZV9jb2RlX2Rlc2MiOiBudWxsLCAic2VydmljZV9p
71
+ dGVtX2NvZGVfZGVzYyI6IG51bGx9XX0=
72
+ http_version: '1.1'
73
+ adapter_metadata:
74
+ effective_url: https://sandbox.emites.com.br/api/v1/service-values?name=Servi%C3%A7os%20de%20inform%C3%A1tica
75
+ recorded_at: Fri, 28 Aug 2015 13:27:46 GMT
76
+ recorded_with: VCR 2.9.3