quaderno 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +8 -8
  2. data/Gemfile +3 -2
  3. data/Gemfile.lock +27 -22
  4. data/README.md +7 -2
  5. data/Rakefile +5 -6
  6. data/VERSION +1 -1
  7. data/build_install.sh +1 -1
  8. data/changelog.md +5 -0
  9. data/lib/quaderno-ruby/base.rb +24 -8
  10. data/lib/quaderno-ruby/behavior/crud.rb +5 -5
  11. data/lib/quaderno-ruby/behavior/deliver.rb +1 -1
  12. data/lib/quaderno-ruby/behavior/payment.rb +2 -2
  13. data/quaderno.gemspec +8 -7
  14. data/test/fixtures/.DS_Store +0 -0
  15. data/test/fixtures/quaderno_cassettes/.DS_Store +0 -0
  16. data/test/fixtures/quaderno_cassettes/all_contacts.yml +44 -26
  17. data/test/fixtures/quaderno_cassettes/all_estimates.yml +29 -37
  18. data/test/fixtures/quaderno_cassettes/all_expenses.yml +30 -40
  19. data/test/fixtures/quaderno_cassettes/all_invoices.yml +108 -36
  20. data/test/fixtures/quaderno_cassettes/all_items.yml +27 -23
  21. data/test/fixtures/quaderno_cassettes/all_webhooks.yml +124 -104
  22. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +135 -92
  23. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +125 -105
  24. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +126 -108
  25. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +203 -104
  26. data/test/fixtures/quaderno_cassettes/deleted_item.yml +74 -62
  27. data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +149 -125
  28. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +75 -75
  29. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +159 -77
  30. data/test/fixtures/quaderno_cassettes/found_contact.yml +71 -49
  31. data/test/fixtures/quaderno_cassettes/found_estimate.yml +59 -64
  32. data/test/fixtures/quaderno_cassettes/found_expense.yml +61 -71
  33. data/test/fixtures/quaderno_cassettes/found_invoice.yml +145 -66
  34. data/test/fixtures/quaderno_cassettes/found_item.yml +54 -46
  35. data/test/fixtures/quaderno_cassettes/found_webhook.yml +75 -63
  36. data/test/fixtures/quaderno_cassettes/new_contact.yml +28 -24
  37. data/test/fixtures/quaderno_cassettes/new_estimate.yml +97 -69
  38. data/test/fixtures/quaderno_cassettes/new_expense.yml +126 -108
  39. data/test/fixtures/quaderno_cassettes/new_invoice.yml +96 -69
  40. data/test/fixtures/quaderno_cassettes/new_item.yml +28 -24
  41. data/test/fixtures/quaderno_cassettes/new_webhook.yml +50 -42
  42. data/test/fixtures/quaderno_cassettes/paid_expense.yml +57 -63
  43. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +135 -59
  44. data/test/fixtures/quaderno_cassettes/rate_limit.yml +24 -20
  45. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +79 -81
  46. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +157 -77
  47. data/test/fixtures/quaderno_cassettes/updated_contact.yml +71 -49
  48. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +126 -94
  49. data/test/fixtures/quaderno_cassettes/updated_expense.yml +125 -93
  50. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +125 -94
  51. data/test/fixtures/quaderno_cassettes/updated_item.yml +54 -46
  52. data/test/fixtures/quaderno_cassettes/updated_webhook.yml +103 -87
  53. data/test/unit/test_quaderno_contacts.rb +5 -9
  54. data/test/unit/test_quaderno_estimates.rb +3 -3
  55. data/test/unit/test_quaderno_expenses.rb +3 -3
  56. data/test/unit/test_quaderno_invoices.rb +3 -3
  57. data/test/unit/test_quaderno_items.rb +6 -6
  58. data/test/unit/test_quaderno_webhooks.rb +14 -14
  59. metadata +8 -7
  60. data/test/test_quaderno-ruby.rb +0 -4
@@ -2,130 +2,142 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/items.json
5
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/items.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  authorization:
11
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
11
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
12
12
  response:
13
13
  status:
14
14
  code: 200
15
- message: ! 'OK '
15
+ message: OK
16
16
  headers:
17
+ server:
18
+ - nginx/1.4.5
19
+ date:
20
+ - Fri, 13 Jun 2014 12:46:12 GMT
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ transfer-encoding:
24
+ - chunked
25
+ connection:
26
+ - close
27
+ status:
28
+ - 200 OK
17
29
  x-ratelimit-limit:
18
30
  - '2000'
19
31
  x-ratelimit-remaining:
20
- - '1861'
21
- content-type:
22
- - application/json; charset=utf-8
32
+ - '1402'
23
33
  x-ua-compatible:
24
- - IE=Edge
34
+ - IE=Edge,chrome=1
25
35
  etag:
26
- - ! '"651cd49db028a8999f68f2b9be0eeb35"'
36
+ - ! '"8bab47993f28af1c3cc850b71eba6275"'
27
37
  cache-control:
28
- - max-age=0, private, must-revalidate
38
+ - must-revalidate, private, max-age=0
29
39
  x-request-id:
30
- - 24285e882deb4022ad29869ae6853333
40
+ - 6e492370a4941e92cf5353afacbffa7e
31
41
  x-runtime:
32
- - '0.205742'
33
- server:
34
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
35
- date:
36
- - Tue, 04 Feb 2014 14:52:21 GMT
37
- content-length:
38
- - '568'
39
- connection:
40
- - close
42
+ - '0.119582'
43
+ x-rack-cache:
44
+ - miss
41
45
  body:
42
46
  encoding: US-ASCII
43
- string: ! '[{"id":1,"code":"00001","name":"Fritata","unit_cost":"20.0","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/1"},{"id":3,"code":"NaN00","name":"Nan
44
- Kima","unit_cost":"2.35","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/3"},{"id":2,"code":"000017","name":"Pizzata","unit_cost":"25.99","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/2"},{"id":4,"code":"000000","name":"Test_Skynet","unit_cost":"21.0","url":"http://localhost:3000/recrea/api/v1/items/4"}]'
47
+ string: ! '[{"id":51,"code":"0001-x","name":"Nothing else matters","unit_cost":"20.0","stock":"23.0","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/51"},{"id":47,"code":"007","name":"Test
48
+ Item","unit_cost":"20.0","stock":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/47"},{"id":53,"code":"000000","name":"Test_Skynet","unit_cost":"21.0","stock":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/53"}]'
45
49
  http_version: '1.1'
46
- recorded_at: Tue, 04 Feb 2014 14:52:21 GMT
50
+ recorded_at: Fri, 13 Jun 2014 12:46:12 GMT
47
51
  - request:
48
52
  method: delete
49
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/items/4.json
53
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/items/53.json
50
54
  body:
51
55
  encoding: US-ASCII
52
56
  string: ''
53
57
  headers:
54
58
  authorization:
55
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
59
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
56
60
  response:
57
61
  status:
58
62
  code: 204
59
- message: ! 'No Content '
63
+ message: No Content
60
64
  headers:
65
+ server:
66
+ - nginx/1.4.5
67
+ date:
68
+ - Fri, 13 Jun 2014 12:46:13 GMT
69
+ connection:
70
+ - close
71
+ status:
72
+ - 204 No Content
61
73
  x-ratelimit-limit:
62
74
  - '2000'
63
75
  x-ratelimit-remaining:
64
- - '1860'
76
+ - '1401'
65
77
  x-ua-compatible:
66
- - IE=Edge
78
+ - IE=Edge,chrome=1
67
79
  cache-control:
68
80
  - no-cache
81
+ set-cookie:
82
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTI2ZWNjZTZjZjNiNjQyMmM5NThlMDllODhiODc5N2EzBjsAVA%3D%3D--d83f2ba713ad4e69645f0d056a1d9127c878463d;
83
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
69
84
  x-request-id:
70
- - c110b71facae138b439318e17d0f51b3
85
+ - e2b9aced34a074397921bcae8c20beff
71
86
  x-runtime:
72
- - '0.371695'
73
- server:
74
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
75
- date:
76
- - Tue, 04 Feb 2014 14:52:21 GMT
77
- connection:
78
- - close
79
- set-cookie:
80
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWY2ZmYyNGU5ODY2N2Q2NTBhYzM0NWI5ZDM1OTZmYjhlBjsAVA%3D%3D--616af23580a575a6a1544590d598f24a3b852660;
81
- path=/; HttpOnly
87
+ - '0.113841'
88
+ x-rack-cache:
89
+ - invalidate, pass
82
90
  body:
83
91
  encoding: US-ASCII
84
92
  string: ''
85
93
  http_version: '1.1'
86
- recorded_at: Tue, 04 Feb 2014 14:52:21 GMT
94
+ recorded_at: Fri, 13 Jun 2014 12:46:13 GMT
87
95
  - request:
88
96
  method: get
89
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/items.json
97
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/items.json
90
98
  body:
91
99
  encoding: US-ASCII
92
100
  string: ''
93
101
  headers:
94
102
  authorization:
95
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
103
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
96
104
  response:
97
105
  status:
98
106
  code: 200
99
- message: ! 'OK '
107
+ message: OK
100
108
  headers:
109
+ server:
110
+ - nginx/1.4.5
111
+ date:
112
+ - Fri, 13 Jun 2014 12:46:13 GMT
113
+ content-type:
114
+ - application/json; charset=utf-8
115
+ transfer-encoding:
116
+ - chunked
117
+ connection:
118
+ - close
119
+ status:
120
+ - 200 OK
101
121
  x-ratelimit-limit:
102
122
  - '2000'
103
123
  x-ratelimit-remaining:
104
- - '1859'
105
- content-type:
106
- - application/json; charset=utf-8
124
+ - '1400'
107
125
  x-ua-compatible:
108
- - IE=Edge
126
+ - IE=Edge,chrome=1
109
127
  etag:
110
- - ! '"bcea0893565ac5c95d5dae6164a7cad8"'
128
+ - ! '"92861c01f089737feb118f784953b52a"'
111
129
  cache-control:
112
- - max-age=0, private, must-revalidate
130
+ - must-revalidate, private, max-age=0
113
131
  x-request-id:
114
- - 73c4cac53551363d68526fab7adaf410
132
+ - 5ccaec09bfcb5cd41a64f34f9b729007
115
133
  x-runtime:
116
- - '0.159657'
117
- server:
118
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
119
- date:
120
- - Tue, 04 Feb 2014 14:52:21 GMT
121
- content-length:
122
- - '451'
123
- connection:
124
- - close
134
+ - '0.112752'
135
+ x-rack-cache:
136
+ - miss
125
137
  body:
126
138
  encoding: US-ASCII
127
- string: ! '[{"id":1,"code":"00001","name":"Fritata","unit_cost":"20.0","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/1"},{"id":3,"code":"NaN00","name":"Nan
128
- Kima","unit_cost":"2.35","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/3"},{"id":2,"code":"000017","name":"Pizzata","unit_cost":"25.99","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/2"}]'
139
+ string: ! '[{"id":51,"code":"0001-x","name":"Nothing else matters","unit_cost":"20.0","stock":"23.0","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/51"},{"id":47,"code":"007","name":"Test
140
+ Item","unit_cost":"20.0","stock":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/47"}]'
129
141
  http_version: '1.1'
130
- recorded_at: Tue, 04 Feb 2014 14:52:21 GMT
131
- recorded_with: VCR 2.3.0
142
+ recorded_at: Fri, 13 Jun 2014 12:46:13 GMT
143
+ recorded_with: VCR 2.9.2
@@ -2,260 +2,284 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks.json
5
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: url=http%3A%2F%2Fgoogle.com&events[]=created&events[]=updated
8
+ string: url=http%3A%2F%2Fgoogle.com&events_types[]=invoice.created&events_types[]=expense.updated
9
9
  headers:
10
10
  authorization:
11
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
11
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
12
12
  response:
13
13
  status:
14
14
  code: 201
15
- message: ! 'Created '
15
+ message: Created
16
16
  headers:
17
+ server:
18
+ - nginx/1.4.5
19
+ date:
20
+ - Fri, 13 Jun 2014 12:34:21 GMT
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ transfer-encoding:
24
+ - chunked
25
+ connection:
26
+ - close
27
+ status:
28
+ - 201 Created
17
29
  x-ratelimit-limit:
18
30
  - '2000'
19
31
  x-ratelimit-remaining:
20
- - '1851'
21
- content-type:
22
- - application/json; charset=utf-8
32
+ - '1501'
23
33
  x-ua-compatible:
24
- - IE=Edge
34
+ - IE=Edge,chrome=1
25
35
  etag:
26
- - ! '"4555700f677a7c9e4b13c85dcb6b6661"'
36
+ - ! '"31562dd72f63726cc2f3a801bb6672aa"'
27
37
  cache-control:
28
38
  - max-age=0, private, must-revalidate
39
+ set-cookie:
40
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWMxYWVkNDIwYzI0ZTdmMDU4NTQ0Yjk4MGZmZDc0NDE2BjsAVA%3D%3D--3965afc619ffae4cd9c35681584dd584e4ec5b02;
41
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
29
42
  x-request-id:
30
- - 4221c70b915cb94f5d2a52802b3c3161
43
+ - ddd56d8c06d0c5ae1ec50e9c003c5b76
31
44
  x-runtime:
32
- - '1.480550'
33
- server:
34
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
35
- date:
36
- - Tue, 04 Feb 2014 14:53:25 GMT
37
- content-length:
38
- - '227'
39
- connection:
40
- - close
41
- set-cookie:
42
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWY4NDQ2MGNiZjBhOWRiMjExNzRlZDM1YTQzMWQ0YmMyBjsAVA%3D%3D--eba3c76f196c41a3d0722d4c3c8ec0f8c121dca7;
43
- path=/; HttpOnly
45
+ - '0.303244'
46
+ x-rack-cache:
47
+ - invalidate, pass
44
48
  body:
45
49
  encoding: US-ASCII
46
- string: ! '{"id":2,"url":"http://google.com","auth_key":"yISVcCmG28BKfEQgoIP7fA","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-02-04T14:53:25Z","updated_at":"2014-02-04T14:53:25Z"}'
50
+ string: ! '{"id":28,"url":"http://google.com","auth_key":"jTdma26QqhzsF3j967YsTA","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:20Z","updated_at":"2014-06-13T12:34:20Z"}'
47
51
  http_version: '1.1'
48
- recorded_at: Tue, 04 Feb 2014 14:53:25 GMT
52
+ recorded_at: Fri, 13 Jun 2014 12:34:21 GMT
49
53
  - request:
50
54
  method: post
51
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks.json
55
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
52
56
  body:
53
57
  encoding: US-ASCII
54
- string: url=http%3A%2F%2Fquadernoapp.com&events[]=created&events[]=updated
58
+ string: url=http%3A%2F%2Fquadernoapp.com&events_types[]=invoice.created&events_types[]=expense.updated
55
59
  headers:
56
60
  authorization:
57
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
61
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
58
62
  response:
59
63
  status:
60
64
  code: 201
61
- message: ! 'Created '
65
+ message: Created
62
66
  headers:
67
+ server:
68
+ - nginx/1.4.5
69
+ date:
70
+ - Fri, 13 Jun 2014 12:34:22 GMT
71
+ content-type:
72
+ - application/json; charset=utf-8
73
+ transfer-encoding:
74
+ - chunked
75
+ connection:
76
+ - close
77
+ status:
78
+ - 201 Created
63
79
  x-ratelimit-limit:
64
80
  - '2000'
65
81
  x-ratelimit-remaining:
66
- - '1850'
67
- content-type:
68
- - application/json; charset=utf-8
82
+ - '1500'
69
83
  x-ua-compatible:
70
- - IE=Edge
84
+ - IE=Edge,chrome=1
71
85
  etag:
72
- - ! '"4fb35fc680c5c1154f2b8b759fb3c6a1"'
86
+ - ! '"8fde5046546a399d00da6d14e7a6218f"'
73
87
  cache-control:
74
88
  - max-age=0, private, must-revalidate
89
+ set-cookie:
90
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTMyNzJmYTI4NjBkYzc2ZWFlZjlhNGE1NzBmMmI1ZGFmBjsAVA%3D%3D--f5d0aa11c0bbc4420e1af229a997ed6b51b05190;
91
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
75
92
  x-request-id:
76
- - c9fddb1e800bf55ced76a84387cf00b9
93
+ - e52890e632c3b585743557a26e7156f0
77
94
  x-runtime:
78
- - '2.248368'
79
- server:
80
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
81
- date:
82
- - Tue, 04 Feb 2014 14:53:27 GMT
83
- content-length:
84
- - '232'
85
- connection:
86
- - close
87
- set-cookie:
88
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTJjMDIwYjkxYTM1YjhiYmFhN2U5MmQ2MmY1ZDVlMmM1BjsAVA%3D%3D--3dbe45aa15afeef725dc64373de80aa5c3d152ff;
89
- path=/; HttpOnly
95
+ - '0.477087'
96
+ x-rack-cache:
97
+ - invalidate, pass
90
98
  body:
91
99
  encoding: US-ASCII
92
- string: ! '{"id":3,"url":"http://quadernoapp.com","auth_key":"rmiUjrx2YZpTSg2O6UgYag","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-02-04T14:53:27Z","updated_at":"2014-02-04T14:53:27Z"}'
100
+ string: ! '{"id":29,"url":"http://quadernoapp.com","auth_key":"V_Gar4QoS8618UX2y2ZIGQ","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:22Z","updated_at":"2014-06-13T12:34:22Z"}'
93
101
  http_version: '1.1'
94
- recorded_at: Tue, 04 Feb 2014 14:53:27 GMT
102
+ recorded_at: Fri, 13 Jun 2014 12:34:22 GMT
95
103
  - request:
96
104
  method: get
97
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks.json
105
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
98
106
  body:
99
107
  encoding: US-ASCII
100
108
  string: ''
101
109
  headers:
102
110
  authorization:
103
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
111
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
104
112
  response:
105
113
  status:
106
114
  code: 200
107
- message: ! 'OK '
115
+ message: OK
108
116
  headers:
117
+ server:
118
+ - nginx/1.4.5
119
+ date:
120
+ - Fri, 13 Jun 2014 12:34:23 GMT
121
+ content-type:
122
+ - application/json; charset=utf-8
123
+ transfer-encoding:
124
+ - chunked
125
+ connection:
126
+ - close
127
+ status:
128
+ - 200 OK
109
129
  x-ratelimit-limit:
110
130
  - '2000'
111
131
  x-ratelimit-remaining:
112
- - '1849'
113
- content-type:
114
- - application/json; charset=utf-8
132
+ - '1499'
115
133
  x-ua-compatible:
116
- - IE=Edge
134
+ - IE=Edge,chrome=1
117
135
  etag:
118
- - ! '"5d1505498f7a35127b522d99a23c7100"'
136
+ - ! '"1378f87b016667f11bba12043d5f4af1"'
119
137
  cache-control:
120
- - max-age=0, private, must-revalidate
138
+ - must-revalidate, private, max-age=0
121
139
  x-request-id:
122
- - 548728b73b8e2c0333b681dacbfa2736
140
+ - 79fb05a2ed109320b4d48ef40a846eab
123
141
  x-runtime:
124
- - '0.142064'
125
- server:
126
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
127
- date:
128
- - Tue, 04 Feb 2014 14:53:28 GMT
129
- content-length:
130
- - '462'
131
- connection:
132
- - close
142
+ - '0.124663'
143
+ x-rack-cache:
144
+ - miss
133
145
  body:
134
146
  encoding: US-ASCII
135
- string: ! '[{"id":2,"url":"http://google.com","auth_key":"yISVcCmG28BKfEQgoIP7fA","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-02-04T14:53:25Z","updated_at":"2014-02-04T14:53:25Z"},{"id":3,"url":"http://quadernoapp.com","auth_key":"rmiUjrx2YZpTSg2O6UgYag","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-02-04T14:53:27Z","updated_at":"2014-02-04T14:53:27Z"}]'
147
+ string: ! '[{"id":6,"url":"http://quadernoapp.com","auth_key":"ebL7LVbbJBVOwMSZCQz75A","events_types":["invoice.created","expense.updated"],"last_sent_at":"2014-06-13T12:29:43Z","last_error":null,"events_sent":7,"created_at":"2014-06-13T12:09:20Z","updated_at":"2014-06-13T12:09:20Z"},{"id":12,"url":"http://quadernoapp.com","auth_key":"CyZRqDK-ypNmYYeL0l1B0Q","events_types":["invoice.created","invoice.updated","contact.deleted"],"last_sent_at":"2014-06-13T12:33:03Z","last_error":null,"events_sent":16,"created_at":"2014-06-13T12:09:32Z","updated_at":"2014-06-13T12:09:34Z"},{"id":28,"url":"http://google.com","auth_key":"jTdma26QqhzsF3j967YsTA","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:20Z","updated_at":"2014-06-13T12:34:20Z"},{"id":29,"url":"http://quadernoapp.com","auth_key":"V_Gar4QoS8618UX2y2ZIGQ","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:22Z","updated_at":"2014-06-13T12:34:22Z"}]'
136
148
  http_version: '1.1'
137
- recorded_at: Tue, 04 Feb 2014 14:53:28 GMT
149
+ recorded_at: Fri, 13 Jun 2014 12:34:23 GMT
138
150
  - request:
139
151
  method: delete
140
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks/3.json
152
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks/29.json
141
153
  body:
142
154
  encoding: US-ASCII
143
155
  string: ''
144
156
  headers:
145
157
  authorization:
146
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
158
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
147
159
  response:
148
160
  status:
149
161
  code: 204
150
- message: ! 'No Content '
162
+ message: No Content
151
163
  headers:
164
+ server:
165
+ - nginx/1.4.5
166
+ date:
167
+ - Fri, 13 Jun 2014 12:34:23 GMT
168
+ connection:
169
+ - close
170
+ status:
171
+ - 204 No Content
152
172
  x-ratelimit-limit:
153
173
  - '2000'
154
174
  x-ratelimit-remaining:
155
- - '1848'
175
+ - '1498'
156
176
  x-ua-compatible:
157
- - IE=Edge
177
+ - IE=Edge,chrome=1
158
178
  cache-control:
159
179
  - no-cache
180
+ set-cookie:
181
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWU5ZjU3YTVhMjk2MjliN2VjMDE4YzNhZDE5NmM3ZTI0BjsAVA%3D%3D--df1d59b6d184b07c51891a835ea4f8788671b811;
182
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
160
183
  x-request-id:
161
- - bd741af48783fac18f53c67f62911ab9
184
+ - 62bd9a381acfc0cc2717fab95a446f5e
162
185
  x-runtime:
163
- - '0.120173'
164
- server:
165
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
166
- date:
167
- - Tue, 04 Feb 2014 14:53:28 GMT
168
- connection:
169
- - close
170
- set-cookie:
171
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTk4YTNmMzVhZjkxZGNjNTkyZDkzZTdjMTM5NGUyMWRmBjsAVA%3D%3D--f2be9b8d3eecf23eb1892640d37923a5d77f9756;
172
- path=/; HttpOnly
186
+ - '0.100064'
187
+ x-rack-cache:
188
+ - invalidate, pass
173
189
  body:
174
190
  encoding: US-ASCII
175
191
  string: ''
176
192
  http_version: '1.1'
177
- recorded_at: Tue, 04 Feb 2014 14:53:28 GMT
193
+ recorded_at: Fri, 13 Jun 2014 12:34:23 GMT
178
194
  - request:
179
195
  method: get
180
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks.json
196
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
181
197
  body:
182
198
  encoding: US-ASCII
183
199
  string: ''
184
200
  headers:
185
201
  authorization:
186
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
202
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
187
203
  response:
188
204
  status:
189
205
  code: 200
190
- message: ! 'OK '
206
+ message: OK
191
207
  headers:
208
+ server:
209
+ - nginx/1.4.5
210
+ date:
211
+ - Fri, 13 Jun 2014 12:34:24 GMT
212
+ content-type:
213
+ - application/json; charset=utf-8
214
+ transfer-encoding:
215
+ - chunked
216
+ connection:
217
+ - close
218
+ status:
219
+ - 200 OK
192
220
  x-ratelimit-limit:
193
221
  - '2000'
194
222
  x-ratelimit-remaining:
195
- - '1847'
196
- content-type:
197
- - application/json; charset=utf-8
223
+ - '1497'
198
224
  x-ua-compatible:
199
- - IE=Edge
225
+ - IE=Edge,chrome=1
200
226
  etag:
201
- - ! '"1f4e1ff7ceca5e61d6a938a27bfc2e95"'
227
+ - ! '"c8352429038cd2fbbf25cd53554d093c"'
202
228
  cache-control:
203
- - max-age=0, private, must-revalidate
229
+ - must-revalidate, private, max-age=0
204
230
  x-request-id:
205
- - 4cf7369b12291329c18cb77ef891f5d4
231
+ - 0f39d7be2a47e85702ac5e4e5714b94d
206
232
  x-runtime:
207
- - '0.353821'
208
- server:
209
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
210
- date:
211
- - Tue, 04 Feb 2014 14:53:28 GMT
212
- content-length:
213
- - '229'
214
- connection:
215
- - close
233
+ - '0.103642'
234
+ x-rack-cache:
235
+ - miss
216
236
  body:
217
237
  encoding: US-ASCII
218
- string: ! '[{"id":2,"url":"http://google.com","auth_key":"yISVcCmG28BKfEQgoIP7fA","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-02-04T14:53:25Z","updated_at":"2014-02-04T14:53:25Z"}]'
238
+ string: ! '[{"id":6,"url":"http://quadernoapp.com","auth_key":"ebL7LVbbJBVOwMSZCQz75A","events_types":["invoice.created","expense.updated"],"last_sent_at":"2014-06-13T12:29:43Z","last_error":null,"events_sent":7,"created_at":"2014-06-13T12:09:20Z","updated_at":"2014-06-13T12:09:20Z"},{"id":12,"url":"http://quadernoapp.com","auth_key":"CyZRqDK-ypNmYYeL0l1B0Q","events_types":["invoice.created","invoice.updated","contact.deleted"],"last_sent_at":"2014-06-13T12:33:03Z","last_error":null,"events_sent":16,"created_at":"2014-06-13T12:09:32Z","updated_at":"2014-06-13T12:09:34Z"},{"id":28,"url":"http://google.com","auth_key":"jTdma26QqhzsF3j967YsTA","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:20Z","updated_at":"2014-06-13T12:34:20Z"}]'
219
239
  http_version: '1.1'
220
- recorded_at: Tue, 04 Feb 2014 14:53:28 GMT
240
+ recorded_at: Fri, 13 Jun 2014 12:34:24 GMT
221
241
  - request:
222
242
  method: delete
223
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks/2.json
243
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks/28.json
224
244
  body:
225
245
  encoding: US-ASCII
226
246
  string: ''
227
247
  headers:
228
248
  authorization:
229
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
249
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
230
250
  response:
231
251
  status:
232
252
  code: 204
233
- message: ! 'No Content '
253
+ message: No Content
234
254
  headers:
255
+ server:
256
+ - nginx/1.4.5
257
+ date:
258
+ - Fri, 13 Jun 2014 12:34:24 GMT
259
+ connection:
260
+ - close
261
+ status:
262
+ - 204 No Content
235
263
  x-ratelimit-limit:
236
264
  - '2000'
237
265
  x-ratelimit-remaining:
238
- - '1846'
266
+ - '1496'
239
267
  x-ua-compatible:
240
- - IE=Edge
268
+ - IE=Edge,chrome=1
241
269
  cache-control:
242
270
  - no-cache
271
+ set-cookie:
272
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTUzMDg2NmE2OTU3ZTdkN2NmNzQ2MmNhZGU5OGVhZGEyBjsAVA%3D%3D--cc2201926ecca55081fcc6db55632a5abf850e7b;
273
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
243
274
  x-request-id:
244
- - 1e3b1b6451c0b314e2bd75652329e8ce
275
+ - 4ca748eb209a3717563d5120a0b31317
245
276
  x-runtime:
246
- - '0.107987'
247
- server:
248
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
249
- date:
250
- - Tue, 04 Feb 2014 14:53:28 GMT
251
- connection:
252
- - close
253
- set-cookie:
254
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTUzMWFjMjkwMjRiMTdlYjgyZmUyYmExOGY3MGM2MzBmBjsAVA%3D%3D--d35abc22fadb8e9e16ea00bd72d3f9014f47669b;
255
- path=/; HttpOnly
277
+ - '0.098393'
278
+ x-rack-cache:
279
+ - invalidate, pass
256
280
  body:
257
281
  encoding: US-ASCII
258
282
  string: ''
259
283
  http_version: '1.1'
260
- recorded_at: Tue, 04 Feb 2014 14:53:28 GMT
261
- recorded_with: VCR 2.3.0
284
+ recorded_at: Fri, 13 Jun 2014 12:34:24 GMT
285
+ recorded_with: VCR 2.9.2