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,131 +2,143 @@
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%2Fquadernoapp.com&events[]=created&events[]=updated
8
+ string: url=http%3A%2F%2Fquadernoapp.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:25 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
- - '1845'
21
- content-type:
22
- - application/json; charset=utf-8
32
+ - '1495'
23
33
  x-ua-compatible:
24
- - IE=Edge
34
+ - IE=Edge,chrome=1
25
35
  etag:
26
- - ! '"ac5fe06c7b789c44be39a5067fafd567"'
36
+ - ! '"18d08397aecafc03a78a1c17ea041e1f"'
27
37
  cache-control:
28
38
  - max-age=0, private, must-revalidate
39
+ set-cookie:
40
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTExN2M4NmIwZDlkZjE4Y2NhY2I1MDkzNmQ2Yzk1NmI0BjsAVA%3D%3D--52866b819e6874848144ff7d947549eb692d463b;
41
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
29
42
  x-request-id:
30
- - 752c1ae31cf8c015fddbd49e833f3687
43
+ - 43de1febc258e54153b77a85ca210acd
31
44
  x-runtime:
32
- - '2.250647'
33
- server:
34
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
35
- date:
36
- - Tue, 04 Feb 2014 14:53:30 GMT
37
- content-length:
38
- - '232'
39
- connection:
40
- - close
41
- set-cookie:
42
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWU1NjkyODJjMDliZDNiOWNjNWRkMDZiMGY5ZGM4NjhhBjsAVA%3D%3D--c11d1dcfeed44509b54475959e7e3d8d34d5174e;
43
- path=/; HttpOnly
45
+ - '0.541669'
46
+ x-rack-cache:
47
+ - invalidate, pass
44
48
  body:
45
49
  encoding: US-ASCII
46
- string: ! '{"id":4,"url":"http://quadernoapp.com","auth_key":"kTeGJm_Km4iHhiCLxoJM-g","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-02-04T14:53:30Z","updated_at":"2014-02-04T14:53:30Z"}'
50
+ string: ! '{"id":30,"url":"http://quadernoapp.com","auth_key":"xSNKJF2GC6uB6mWCSARNsw","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:25Z","updated_at":"2014-06-13T12:34:25Z"}'
47
51
  http_version: '1.1'
48
- recorded_at: Tue, 04 Feb 2014 14:53:30 GMT
52
+ recorded_at: Fri, 13 Jun 2014 12:34:26 GMT
49
53
  - request:
50
54
  method: get
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
58
  string: ''
55
59
  headers:
56
60
  authorization:
57
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
61
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
58
62
  response:
59
63
  status:
60
64
  code: 200
61
- message: ! 'OK '
65
+ message: OK
62
66
  headers:
67
+ server:
68
+ - nginx/1.4.5
69
+ date:
70
+ - Fri, 13 Jun 2014 12:34:26 GMT
71
+ content-type:
72
+ - application/json; charset=utf-8
73
+ transfer-encoding:
74
+ - chunked
75
+ connection:
76
+ - close
77
+ status:
78
+ - 200 OK
63
79
  x-ratelimit-limit:
64
80
  - '2000'
65
81
  x-ratelimit-remaining:
66
- - '1844'
67
- content-type:
68
- - application/json; charset=utf-8
82
+ - '1494'
69
83
  x-ua-compatible:
70
- - IE=Edge
84
+ - IE=Edge,chrome=1
71
85
  etag:
72
- - ! '"da6eb979652b51b00dfa9b4461476ba2"'
86
+ - ! '"e60bdfd62f26036c7471e2895362e35a"'
73
87
  cache-control:
74
- - max-age=0, private, must-revalidate
88
+ - must-revalidate, private, max-age=0
75
89
  x-request-id:
76
- - fa653bbbe072c106f4e3e61c4c29099e
90
+ - b6dfa8be65fa68ffaac87f75e6bec393
77
91
  x-runtime:
78
- - '0.122414'
79
- server:
80
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
81
- date:
82
- - Tue, 04 Feb 2014 14:53:31 GMT
83
- content-length:
84
- - '234'
85
- connection:
86
- - close
92
+ - '0.049623'
93
+ x-rack-cache:
94
+ - miss
87
95
  body:
88
96
  encoding: US-ASCII
89
- string: ! '[{"id":4,"url":"http://quadernoapp.com","auth_key":"kTeGJm_Km4iHhiCLxoJM-g","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-02-04T14:53:30Z","updated_at":"2014-02-04T14:53:30Z"}]'
97
+ 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":30,"url":"http://quadernoapp.com","auth_key":"xSNKJF2GC6uB6mWCSARNsw","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:25Z","updated_at":"2014-06-13T12:34:25Z"}]'
90
98
  http_version: '1.1'
91
- recorded_at: Tue, 04 Feb 2014 14:53:31 GMT
99
+ recorded_at: Fri, 13 Jun 2014 12:34:26 GMT
92
100
  - request:
93
101
  method: delete
94
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks/4.json
102
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks/30.json
95
103
  body:
96
104
  encoding: US-ASCII
97
105
  string: ''
98
106
  headers:
99
107
  authorization:
100
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
108
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
101
109
  response:
102
110
  status:
103
111
  code: 204
104
- message: ! 'No Content '
112
+ message: No Content
105
113
  headers:
114
+ server:
115
+ - nginx/1.4.5
116
+ date:
117
+ - Fri, 13 Jun 2014 12:34:27 GMT
118
+ connection:
119
+ - close
120
+ status:
121
+ - 204 No Content
106
122
  x-ratelimit-limit:
107
123
  - '2000'
108
124
  x-ratelimit-remaining:
109
- - '1843'
125
+ - '1493'
110
126
  x-ua-compatible:
111
- - IE=Edge
127
+ - IE=Edge,chrome=1
112
128
  cache-control:
113
129
  - no-cache
130
+ set-cookie:
131
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWYyM2YwNzA1Y2JhYTM4NTlmNTI2MDQ1MDRkYzE3Mzk4BjsAVA%3D%3D--adfb3995d198cee841be10a554f2ff9b5f86fbce;
132
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
114
133
  x-request-id:
115
- - dbd28f4206f07aa7f96a4e564679530a
134
+ - 469ca3d84ad12e575e08acdbef7b0d6b
116
135
  x-runtime:
117
- - '0.102628'
118
- server:
119
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
120
- date:
121
- - Tue, 04 Feb 2014 14:53:31 GMT
122
- connection:
123
- - close
124
- set-cookie:
125
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTRlMWQxOGIzNmJiNjU2MTVlODA4NzNkOGZiODE1NGQ4BjsAVA%3D%3D--ebe416c88496e3276cb5793ff04df11db9760f51;
126
- path=/; HttpOnly
136
+ - '0.103594'
137
+ x-rack-cache:
138
+ - invalidate, pass
127
139
  body:
128
140
  encoding: US-ASCII
129
141
  string: ''
130
142
  http_version: '1.1'
131
- recorded_at: Tue, 04 Feb 2014 14:53:31 GMT
132
- recorded_with: VCR 2.3.0
143
+ recorded_at: Fri, 13 Jun 2014 12:34:27 GMT
144
+ recorded_with: VCR 2.9.2
@@ -2,48 +2,52 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
5
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/contacts.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: kind=company&first_name=Test_Skynet&email=my_little%40po.ny
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:33:01 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
- - '1989'
21
- content-type:
22
- - application/json; charset=utf-8
32
+ - '1513'
23
33
  x-ua-compatible:
24
- - IE=Edge
34
+ - IE=Edge,chrome=1
25
35
  etag:
26
- - ! '"4dcaa41a92eaf65d8cff622e26197c1a"'
36
+ - ! '"a90760b4311a7aa162f929ad1665a0e5"'
27
37
  cache-control:
28
38
  - max-age=0, private, must-revalidate
39
+ set-cookie:
40
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTYxZmYyNTU1YmIxODAyMGZjMDY1NjVmNTBkNTcxY2MzBjsAVA%3D%3D--0d62c20e3d557aa8d78c6e3d7c10417f2b8b1d3f;
41
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
29
42
  x-request-id:
30
- - 71d46738b0fefa4a2eb8b96b5a173dc0
43
+ - 53ae3ff675e4f44f2c42dfe336705078
31
44
  x-runtime:
32
- - '0.617169'
33
- server:
34
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
35
- date:
36
- - Tue, 04 Feb 2014 14:39:42 GMT
37
- content-length:
38
- - '365'
39
- connection:
40
- - close
41
- set-cookie:
42
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTRiOGZjZjBjYjIyNWY3ODM0OThjNzljZjA3YTQ1ZGYxBjsAVA%3D%3D--2007caa01d9ec5aeda2cc828d93d5347fb00bedf;
43
- path=/; HttpOnly
45
+ - '0.128104'
46
+ x-rack-cache:
47
+ - invalidate, pass
44
48
  body:
45
49
  encoding: US-ASCII
46
- string: ! '{"id":6,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/6"}'
50
+ string: ! '{"id":788,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/788"}'
47
51
  http_version: '1.1'
48
- recorded_at: Tue, 04 Feb 2014 14:39:42 GMT
49
- recorded_with: VCR 2.3.0
52
+ recorded_at: Fri, 13 Jun 2014 12:33:01 GMT
53
+ recorded_with: VCR 2.9.2
@@ -2,141 +2,169 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
5
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/contacts.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:37:48 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
- - '1979'
32
+ - '1467'
21
33
  x-pages-currentpage:
22
34
  - '1'
23
35
  x-pages-totalpages:
24
- - '1'
25
- content-type:
26
- - application/json; charset=utf-8
36
+ - '6'
27
37
  x-ua-compatible:
28
- - IE=Edge
38
+ - IE=Edge,chrome=1
29
39
  etag:
30
- - ! '"71b79c1b45cfb58a71172c277dd004b5"'
40
+ - ! '"1b15811e4cf410f02945920334685406"'
31
41
  cache-control:
32
- - max-age=0, private, must-revalidate
42
+ - must-revalidate, private, max-age=0
33
43
  x-request-id:
34
- - 07f8689eb215099c56f3a3393ecd8164
44
+ - 49d2ba79a3cab08417dd02dacb649ed7
35
45
  x-runtime:
36
- - '0.097028'
37
- server:
38
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
39
- date:
40
- - Tue, 04 Feb 2014 14:39:51 GMT
41
- content-length:
42
- - '1879'
43
- connection:
44
- - close
46
+ - '0.154216'
47
+ x-rack-cache:
48
+ - miss
45
49
  body:
46
50
  encoding: US-ASCII
47
- string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
48
- Kashin Ryu no Dojo","street_line_2":"","postal_code":"876-0854","city":"Tokyo","region":"Tokyo","country":"JP","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":1,"kind":"company","full_name":"API
49
- Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
50
- 1B0","city":"Springfield","region":"Canada","country":"ES","phone_1":"","phone_2":"","fax":"","email":"dummy@email.test","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":4,"kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":6,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":3,"kind":"company","full_name":"TSM","contact_name":"Reginald","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"reggie@tsm.com","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"}]'
51
+ string: ! '[{"id":760,"kind":"company","full_name":"\u0003 esatipa","contact_name":null,"street_line_1":"Torres
52
+ Quevedo","street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"673832948","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/760"},{"id":113,"kind":"company","full_name":"100-499","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"totoro.estepario@gmail.com","web":null,"discount":null,"tax_id":"","bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/113"},{"id":498,"kind":"company","full_name":"Alejandro","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"alexmanalopez@gmail.com","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/498"},{"id":744,"kind":"company","full_name":"Alejandro
53
+ Lopez Santos","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"alexmanalopez@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/744"},{"id":739,"kind":"company","full_name":"ANA","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"ana@vali2.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/739"},{"id":773,"kind":"company","full_name":"Angel
54
+ Ramos de Miguel","contact_name":null,"street_line_1":";;;Las Palmas de Gran
55
+ Canaria;;;Espa\u00f1a","street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"668829133","phone_2":null,"fax":null,"email":"aramos.gcc@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/773"},{"id":717,"kind":"company","full_name":"Angel
56
+ Ramos de Miguel","contact_name":null,"street_line_1":";;;Las Palmas de Gran
57
+ Canaria;;;Espa\u00f1a","street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"668829133","phone_2":null,"fax":null,"email":"aramos.gcc@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/717"},{"id":748,"kind":"company","full_name":"Antonio Brito","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"605100535","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/748"},{"id":752,"kind":"company","full_name":"Antonio
58
+ C. Dom\u00ednguez Brito","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"adominguez@iusiani.ulpgc.es","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/752"},{"id":733,"kind":"company","full_name":"aviso_llegada","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"avisollegada@adtpostales.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/733"},{"id":764,"kind":"company","full_name":"Aythami","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"678875767","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/764"},{"id":736,"kind":"company","full_name":"Borja
59
+ Santana Corvo","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"ahviel@hotmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/736"},{"id":713,"kind":"company","full_name":"Bycor","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"+34646675709","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/713"},{"id":728,"kind":"company","full_name":"Bycor
60
+ S\u00e1nchez","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"bycor1989@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/728"},{"id":729,"kind":"company","full_name":"Canal
61
+ Amena","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"2224","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/729"},{"id":755,"kind":"company","full_name":"Carlos
62
+ Hern\u00e1ndez","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"620815221","phone_2":null,"fax":null,"email":"carlos@recrea.es","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/755"},{"id":735,"kind":"company","full_name":"Carlos
63
+ Hern\u00e1ndez Medina","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"carlos@recrea.es","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/735"},{"id":686,"kind":"company","full_name":"Coolmod","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"902
64
+ 88 85 34","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/686"},{"id":749,"kind":"company","full_name":"Cristina","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"+34650756263","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/749"},{"id":726,"kind":"company","full_name":"Cruz
65
+ Roja","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"987795001","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/726"},{"id":763,"kind":"company","full_name":"Dalia","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"637
66
+ 22 08 60","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/763"},{"id":711,"kind":"company","full_name":"David","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"620453446","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/711"},{"id":673,"kind":"company","full_name":"David
67
+ Meli\u00e1n Godoy","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dmg_dragon@hotmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/673"},{"id":756,"kind":"company","full_name":"David
68
+ Santiago","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"660608373","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/756"},{"id":114,"kind":"person","first_name":"Direct","last_name":"Debit","full_name":"Direct
69
+ Debit","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
70
+ Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"","phone_2":"","fax":"","email":"totoro.estepario@gmail.com","web":"","discount":null,"tax_id":"12345678Z","bank_account":"ES9121000418450200051332","language":"EN","notes":"","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/114"}]'
51
71
  http_version: '1.1'
52
- recorded_at: Tue, 04 Feb 2014 14:39:51 GMT
72
+ recorded_at: Fri, 13 Jun 2014 12:37:48 GMT
53
73
  - request:
54
74
  method: post
55
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates.json
75
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/estimates.json
56
76
  body:
57
77
  encoding: US-ASCII
58
- string: contact_id=2&number=test%20number%2042&contact_name=Another%20Test%20Contact&currency=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=&notes=
78
+ string: contact_id=760&number=test%20number%2042&contact_name=%03%20esatipa&currency=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=&notes=
59
79
  headers:
60
80
  authorization:
61
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
81
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
62
82
  response:
63
83
  status:
64
84
  code: 201
65
- message: ! 'Created '
85
+ message: Created
66
86
  headers:
87
+ server:
88
+ - nginx/1.4.5
89
+ date:
90
+ - Fri, 13 Jun 2014 12:37:49 GMT
91
+ content-type:
92
+ - application/json; charset=utf-8
93
+ transfer-encoding:
94
+ - chunked
95
+ connection:
96
+ - close
97
+ status:
98
+ - 201 Created
67
99
  x-ratelimit-limit:
68
100
  - '2000'
69
101
  x-ratelimit-remaining:
70
- - '1978'
71
- content-type:
72
- - application/json; charset=utf-8
102
+ - '1466'
73
103
  x-ua-compatible:
74
- - IE=Edge
104
+ - IE=Edge,chrome=1
75
105
  etag:
76
- - ! '"3910952204f2aa0150028b59da286dc1"'
106
+ - ! '"4018fa01b255f34c6afef17274297faa"'
77
107
  cache-control:
78
108
  - max-age=0, private, must-revalidate
109
+ set-cookie:
110
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJThhMTk0Y2E3ZWU4NjQ2NWM4ZDlkOTk2YmEyZjM5MTNjBjsAVA%3D%3D--357434ff2602c47a890fe90435793b88c40a0b1d;
111
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
79
112
  x-request-id:
80
- - 2ebbe2328a544721599edf7cf1715f0f
113
+ - a7a220ae0761fed5fa236fb64c0f3613
81
114
  x-runtime:
82
- - '0.401485'
83
- server:
84
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
85
- date:
86
- - Tue, 04 Feb 2014 14:39:51 GMT
87
- content-length:
88
- - '705'
89
- connection:
90
- - close
91
- set-cookie:
92
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTc0MGYyNjE5Mjc0YTFhZmJlZjA3ODhlZjcyZjhjMTQyBjsAVA%3D%3D--34134577b024aa2444b477ba11a9557cf6d1ef1c;
93
- path=/; HttpOnly
115
+ - '0.136726'
116
+ x-rack-cache:
117
+ - invalidate, pass
94
118
  body:
95
119
  encoding: US-ASCII
96
- string: ! '{"id":10,"number":"test number 42","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
97
- Test Contact"},"po_number":null,"currency":"EUR","items":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":null,"tax_1_rate":null,"tax_2_name":null,"tax_2_rate":null,"reference":null,"subtotal":"0.00
120
+ string: ! '{"id":540,"number":"test number 42","issue_date":"2014-06-13","contact":{"id":760,"full_name":"\u0003
121
+ esatipa"},"po_number":null,"currency":"EUR","items":[{"id":694,"description":"Aircraft","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":null,"tax_1_rate":null,"tax_2_name":null,"tax_2_rate":null,"reference":null,"subtotal":"0.00
98
122
  \u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
99
- \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/f1354bb9de5ba5aa18e95eef420937e1abcc4f73","url":"http://localhost:3000/recrea/api/v1/estimates/10.json"}'
123
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"secure_id":"3aa4ab31a13c680849c75571cc3e7f7a7ec8fdaa","permalink":"http://ninive-688.sandbox-quadernoapp.com/estimate/3aa4ab31a13c680849c75571cc3e7f7a7ec8fdaa","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/estimates/540.json"}'
100
124
  http_version: '1.1'
101
- recorded_at: Tue, 04 Feb 2014 14:39:51 GMT
125
+ recorded_at: Fri, 13 Jun 2014 12:37:49 GMT
102
126
  - request:
103
127
  method: delete
104
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates/10.json
128
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/estimates/540.json
105
129
  body:
106
130
  encoding: US-ASCII
107
131
  string: ''
108
132
  headers:
109
133
  authorization:
110
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
134
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
111
135
  response:
112
136
  status:
113
137
  code: 204
114
- message: ! 'No Content '
138
+ message: No Content
115
139
  headers:
140
+ server:
141
+ - nginx/1.4.5
142
+ date:
143
+ - Fri, 13 Jun 2014 12:37:49 GMT
144
+ connection:
145
+ - close
146
+ status:
147
+ - 204 No Content
116
148
  x-ratelimit-limit:
117
149
  - '2000'
118
150
  x-ratelimit-remaining:
119
- - '1977'
151
+ - '1465'
120
152
  x-ua-compatible:
121
- - IE=Edge
153
+ - IE=Edge,chrome=1
122
154
  cache-control:
123
155
  - no-cache
156
+ set-cookie:
157
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTA3MWUyZTU3Yzk3NDE4MWQ3NzIzMDYzMDFkYTQxMDM1BjsAVA%3D%3D--b611ab19b4ddb6b8128f7b1614c20882b3f980f4;
158
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
124
159
  x-request-id:
125
- - 06ecb2133adcc1831d8858008baadfbd
160
+ - 5c63e6f3cc74203c53bd77c775e3f4a4
126
161
  x-runtime:
127
- - '1.115152'
128
- server:
129
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
130
- date:
131
- - Tue, 04 Feb 2014 14:39:53 GMT
132
- connection:
133
- - close
134
- set-cookie:
135
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWRlZGM0MDE5MTNiYzQ4NjMxOGI2NTA3MzliN2Q5MGUxBjsAVA%3D%3D--6425e2a9bcb28ca3a8064f21d7f4db46f2fa95a2;
136
- path=/; HttpOnly
162
+ - '0.104336'
163
+ x-rack-cache:
164
+ - invalidate, pass
137
165
  body:
138
166
  encoding: US-ASCII
139
167
  string: ''
140
168
  http_version: '1.1'
141
- recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
142
- recorded_with: VCR 2.3.0
169
+ recorded_at: Fri, 13 Jun 2014 12:37:49 GMT
170
+ recorded_with: VCR 2.9.2