quaderno 1.2.1 → 1.2.2

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.
Files changed (59) hide show
  1. data/Gemfile +6 -7
  2. data/Gemfile.lock +0 -9
  3. data/README.md +6 -2
  4. data/VERSION +1 -1
  5. data/build_install.sh +1 -1
  6. data/changelog.md +4 -0
  7. data/lib/quaderno-ruby/base.rb +10 -2
  8. data/lib/quaderno-ruby/behavior/crud.rb +0 -1
  9. data/lib/quaderno-ruby.rb +0 -2
  10. data/quaderno.gemspec +6 -25
  11. data/test/fixtures/quaderno_cassettes/all_contacts.yml +23 -18
  12. data/test/fixtures/quaderno_cassettes/all_estimates.yml +35 -18
  13. data/test/fixtures/quaderno_cassettes/all_expenses.yml +38 -18
  14. data/test/fixtures/quaderno_cassettes/all_invoices.yml +35 -29
  15. data/test/fixtures/quaderno_cassettes/all_items.yml +17 -12
  16. data/test/fixtures/quaderno_cassettes/all_webhooks.yml +84 -68
  17. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +81 -62
  18. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +96 -62
  19. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +99 -62
  20. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +96 -73
  21. data/test/fixtures/quaderno_cassettes/deleted_item.yml +49 -37
  22. data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +100 -80
  23. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +66 -45
  24. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +66 -56
  25. data/test/fixtures/quaderno_cassettes/found_contact.yml +39 -30
  26. data/test/fixtures/quaderno_cassettes/found_estimate.yml +55 -32
  27. data/test/fixtures/quaderno_cassettes/found_expense.yml +62 -30
  28. data/test/fixtures/quaderno_cassettes/found_invoice.yml +58 -42
  29. data/test/fixtures/quaderno_cassettes/found_item.yml +33 -24
  30. data/test/fixtures/quaderno_cassettes/found_webhook.yml +50 -40
  31. data/test/fixtures/quaderno_cassettes/new_contact.yml +19 -12
  32. data/test/fixtures/quaderno_cassettes/new_estimate.yml +61 -44
  33. data/test/fixtures/quaderno_cassettes/new_expense.yml +99 -62
  34. data/test/fixtures/quaderno_cassettes/new_invoice.yml +61 -44
  35. data/test/fixtures/quaderno_cassettes/new_item.yml +19 -12
  36. data/test/fixtures/quaderno_cassettes/new_webhook.yml +34 -28
  37. data/test/fixtures/quaderno_cassettes/paid_expense.yml +57 -30
  38. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +54 -41
  39. data/test/fixtures/quaderno_cassettes/rate_limit.yml +14 -10
  40. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +73 -43
  41. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +70 -54
  42. data/test/fixtures/quaderno_cassettes/updated_contact.yml +42 -30
  43. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +84 -57
  44. data/test/fixtures/quaderno_cassettes/updated_expense.yml +81 -56
  45. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +84 -57
  46. data/test/fixtures/quaderno_cassettes/updated_item.yml +36 -24
  47. data/test/fixtures/quaderno_cassettes/updated_webhook.yml +69 -55
  48. data/test/helper.rb +12 -12
  49. data/test/unit/test_quaderno_contacts.rb +4 -3
  50. data/test/unit/test_quaderno_estimates.rb +2 -1
  51. data/test/unit/test_quaderno_expenses.rb +3 -2
  52. data/test/unit/test_quaderno_invoices.rb +3 -2
  53. data/test/unit/test_quaderno_items.rb +4 -3
  54. data/test/unit/test_quaderno_webhooks.rb +4 -3
  55. metadata +10 -94
  56. data/quaderno-1.0.0.gem +0 -0
  57. data/quaderno-1.1.0.gem +0 -0
  58. data/quaderno-1.1.2.gem +0 -0
  59. data/quaderno-1.2.0.gem +0 -0
@@ -2,121 +2,131 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/webhooks.json
5
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: url=http%3A%2F%2Fquadernoapp.com&events[]=created&events[]=updated
9
9
  headers:
10
10
  authorization:
11
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
11
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
12
12
  response:
13
13
  status:
14
14
  code: 201
15
- message: Created
15
+ message: ! 'Created '
16
16
  headers:
17
17
  x-ratelimit-limit:
18
- - '1000'
18
+ - '2000'
19
19
  x-ratelimit-remaining:
20
- - '923'
20
+ - '1845'
21
21
  content-type:
22
22
  - application/json; charset=utf-8
23
23
  x-ua-compatible:
24
24
  - IE=Edge
25
25
  etag:
26
- - ! '"2b8c264ac5f7b2b4c3489fb6992ad96d"'
26
+ - ! '"ac5fe06c7b789c44be39a5067fafd567"'
27
27
  cache-control:
28
28
  - max-age=0, private, must-revalidate
29
- set-cookie:
30
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTBhYzJjMzJhMTM4OGY3MGY1MWQ2MmI4NjU1MGQ1YTkyBjsAVA%3D%3D--3e5239471da1121ea193883c36d86fac13f6dccf;
31
- path=/; HttpOnly
32
29
  x-request-id:
33
- - 1706d5ad95d12642f8df01a155d9fdba
30
+ - 752c1ae31cf8c015fddbd49e833f3687
34
31
  x-runtime:
35
- - '2.145630'
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'
36
39
  connection:
37
40
  - close
38
- server:
39
- - thin 1.5.0 codename Knife
41
+ set-cookie:
42
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWU1NjkyODJjMDliZDNiOWNjNWRkMDZiMGY5ZGM4NjhhBjsAVA%3D%3D--c11d1dcfeed44509b54475959e7e3d8d34d5174e;
43
+ path=/; HttpOnly
40
44
  body:
41
45
  encoding: US-ASCII
42
- string: ! '{"id":31,"url":"http://quadernoapp.com","auth_key":"6SZP25iCuJpUPh1GE5ZL9w","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2013-05-22T13:03:21Z","updated_at":"2013-05-22T13:03:21Z"}'
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"}'
43
47
  http_version: '1.1'
44
- recorded_at: Wed, 22 May 2013 13:03:21 GMT
48
+ recorded_at: Tue, 04 Feb 2014 14:53:30 GMT
45
49
  - request:
46
50
  method: get
47
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/webhooks.json
51
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks.json
48
52
  body:
49
53
  encoding: US-ASCII
50
54
  string: ''
51
55
  headers:
52
56
  authorization:
53
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
57
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
54
58
  response:
55
59
  status:
56
60
  code: 200
57
- message: OK
61
+ message: ! 'OK '
58
62
  headers:
59
63
  x-ratelimit-limit:
60
- - '1000'
64
+ - '2000'
61
65
  x-ratelimit-remaining:
62
- - '922'
66
+ - '1844'
63
67
  content-type:
64
68
  - application/json; charset=utf-8
65
69
  x-ua-compatible:
66
70
  - IE=Edge
67
71
  etag:
68
- - ! '"7ffd0811c0ecf62689577631a6470f81"'
72
+ - ! '"da6eb979652b51b00dfa9b4461476ba2"'
69
73
  cache-control:
70
74
  - max-age=0, private, must-revalidate
71
75
  x-request-id:
72
- - 6e224fcf09355e55c1e795e5114b3aef
76
+ - fa653bbbe072c106f4e3e61c4c29099e
73
77
  x-runtime:
74
- - '0.075392'
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'
75
85
  connection:
76
86
  - close
77
- server:
78
- - thin 1.5.0 codename Knife
79
87
  body:
80
88
  encoding: US-ASCII
81
- string: ! '[{"id":31,"url":"http://quadernoapp.com","auth_key":"6SZP25iCuJpUPh1GE5ZL9w","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2013-05-22T13:03:21Z","updated_at":"2013-05-22T13:03:21Z"}]'
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"}]'
82
90
  http_version: '1.1'
83
- recorded_at: Wed, 22 May 2013 13:03:21 GMT
91
+ recorded_at: Tue, 04 Feb 2014 14:53:31 GMT
84
92
  - request:
85
93
  method: delete
86
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/webhooks/31.json
94
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks/4.json
87
95
  body:
88
96
  encoding: US-ASCII
89
97
  string: ''
90
98
  headers:
91
99
  authorization:
92
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
100
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
93
101
  response:
94
102
  status:
95
103
  code: 204
96
- message: No Content
104
+ message: ! 'No Content '
97
105
  headers:
98
106
  x-ratelimit-limit:
99
- - '1000'
107
+ - '2000'
100
108
  x-ratelimit-remaining:
101
- - '921'
109
+ - '1843'
102
110
  x-ua-compatible:
103
111
  - IE=Edge
104
112
  cache-control:
105
113
  - no-cache
106
- set-cookie:
107
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU4ODZiOWMwYWEzYWI3YzFkNjc3NWRlYTM5Njk5ZjQ0BjsAVA%3D%3D--999e96f296f5cbce65ad1338c80c6a8ce12338fe;
108
- path=/; HttpOnly
109
114
  x-request-id:
110
- - e2ed76f34849f8a2ae5b4fb86d23dfc9
115
+ - dbd28f4206f07aa7f96a4e564679530a
111
116
  x-runtime:
112
- - '0.072239'
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
113
122
  connection:
114
123
  - close
115
- server:
116
- - thin 1.5.0 codename Knife
124
+ set-cookie:
125
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTRlMWQxOGIzNmJiNjU2MTVlODA4NzNkOGZiODE1NGQ4BjsAVA%3D%3D--ebe416c88496e3276cb5793ff04df11db9760f51;
126
+ path=/; HttpOnly
117
127
  body:
118
128
  encoding: US-ASCII
119
129
  string: ''
120
130
  http_version: '1.1'
121
- recorded_at: Wed, 22 May 2013 13:03:21 GMT
131
+ recorded_at: Tue, 04 Feb 2014 14:53:31 GMT
122
132
  recorded_with: VCR 2.3.0
@@ -2,41 +2,48 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
5
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/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 bjhzRExVWjV6MWQ2ZFlYS2l4bng6
11
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
12
12
  response:
13
13
  status:
14
14
  code: 201
15
- message: Created
15
+ message: ! 'Created '
16
16
  headers:
17
17
  x-ratelimit-limit:
18
- - '1000'
18
+ - '2000'
19
19
  x-ratelimit-remaining:
20
- - '901'
20
+ - '1989'
21
21
  content-type:
22
22
  - application/json; charset=utf-8
23
23
  x-ua-compatible:
24
24
  - IE=Edge
25
25
  etag:
26
- - ! '"b70b7b1eeb598f310cf02a0836eb39dd"'
26
+ - ! '"4dcaa41a92eaf65d8cff622e26197c1a"'
27
27
  cache-control:
28
28
  - max-age=0, private, must-revalidate
29
29
  x-request-id:
30
- - 2f3d715f1e37585554284e6d3d3ebca9
30
+ - 71d46738b0fefa4a2eb8b96b5a173dc0
31
31
  x-runtime:
32
- - '0.769979'
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'
33
39
  connection:
34
40
  - close
35
- server:
36
- - thin 1.5.0 codename Knife
41
+ set-cookie:
42
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTRiOGZjZjBjYjIyNWY3ODM0OThjNzljZjA3YTQ1ZGYxBjsAVA%3D%3D--2007caa01d9ec5aeda2cc828d93d5347fb00bedf;
43
+ path=/; HttpOnly
37
44
  body:
38
45
  encoding: US-ASCII
39
- string: ! '{"id":15,"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/15"}'
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"}'
40
47
  http_version: '1.1'
41
- recorded_at: Tue, 14 May 2013 10:47:49 GMT
48
+ recorded_at: Tue, 04 Feb 2014 14:39:42 GMT
42
49
  recorded_with: VCR 2.3.0
@@ -2,124 +2,141 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
5
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  authorization:
11
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
11
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
12
12
  response:
13
13
  status:
14
14
  code: 200
15
- message: OK
15
+ message: ! 'OK '
16
16
  headers:
17
17
  x-ratelimit-limit:
18
- - '1000'
18
+ - '2000'
19
19
  x-ratelimit-remaining:
20
- - '891'
20
+ - '1979'
21
+ x-pages-currentpage:
22
+ - '1'
23
+ x-pages-totalpages:
24
+ - '1'
21
25
  content-type:
22
26
  - application/json; charset=utf-8
23
27
  x-ua-compatible:
24
28
  - IE=Edge
25
29
  etag:
26
- - ! '"d251a198e8a45af2dac75b448e48bbce"'
30
+ - ! '"71b79c1b45cfb58a71172c277dd004b5"'
27
31
  cache-control:
28
32
  - max-age=0, private, must-revalidate
29
33
  x-request-id:
30
- - 41f333a0c7e25d92363ecd95598df92e
34
+ - 07f8689eb215099c56f3a3393ecd8164
31
35
  x-runtime:
32
- - '0.143150'
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'
33
43
  connection:
34
44
  - close
35
- server:
36
- - thin 1.5.0 codename Knife
37
45
  body:
38
46
  encoding: US-ASCII
39
- string: ! '[{"id":3,"kind":"company","full_name":"100-499","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"},{"id":6,"kind":"company","full_name":"ACME","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":1,"kind":"company","full_name":"Recrea
40
- Systems, SLU","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":"info@recreahq.com","web":null,"discount":null,"tax_id":"B35635648","bank_account":null,"language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":5,"kind":"company","full_name":"Stark
41
- Industries","contact_name":"Tony","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/5"},{"id":2,"kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"C/Bernardo
42
- de la Torre n\u00ba 104","street_line_2":"apartamento 201","postal_code":"35007","city":"Las
43
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":7,"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/7"},{"id":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
44
- Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
45
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":12,"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/12"},{"id":15,"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/15"},{"id":8,"kind":"company","full_name":"Toby","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":null,"web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/8"}]'
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"}]'
46
51
  http_version: '1.1'
47
- recorded_at: Tue, 14 May 2013 10:47:58 GMT
52
+ recorded_at: Tue, 04 Feb 2014 14:39:51 GMT
48
53
  - request:
49
54
  method: post
50
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates.json
55
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates.json
51
56
  body:
52
57
  encoding: US-ASCII
53
- string: contact_id=3&number=test%20number%2042&contact_name=100-499&currency=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=&notes=
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=
54
59
  headers:
55
60
  authorization:
56
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
61
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
57
62
  response:
58
63
  status:
59
64
  code: 201
60
- message: Created
65
+ message: ! 'Created '
61
66
  headers:
62
67
  x-ratelimit-limit:
63
- - '1000'
68
+ - '2000'
64
69
  x-ratelimit-remaining:
65
- - '890'
70
+ - '1978'
66
71
  content-type:
67
72
  - application/json; charset=utf-8
68
73
  x-ua-compatible:
69
74
  - IE=Edge
70
75
  etag:
71
- - ! '"4cb13c21e470a6cc393e96ad78a03fb5"'
76
+ - ! '"3910952204f2aa0150028b59da286dc1"'
72
77
  cache-control:
73
78
  - max-age=0, private, must-revalidate
74
79
  x-request-id:
75
- - 048c8ad4c5a21b03fae8a209285ba684
80
+ - 2ebbe2328a544721599edf7cf1715f0f
76
81
  x-runtime:
77
- - '0.489653'
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'
78
89
  connection:
79
90
  - close
80
- server:
81
- - thin 1.5.0 codename Knife
91
+ set-cookie:
92
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTc0MGYyNjE5Mjc0YTFhZmJlZjA3ODhlZjcyZjhjMTQyBjsAVA%3D%3D--34134577b024aa2444b477ba11a9557cf6d1ef1c;
93
+ path=/; HttpOnly
82
94
  body:
83
95
  encoding: US-ASCII
84
- string: ! '{"id":169,"number":"test number 42","issue_date":"2013-05-14","contact":{"id":3,"full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/615de810948fefda293d02dc927f0ea6e50ae8f8","url":"http://localhost:3000/recrea/api/v1/estimates/169.json"}'
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
98
+ \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"}'
85
100
  http_version: '1.1'
86
- recorded_at: Tue, 14 May 2013 10:47:59 GMT
101
+ recorded_at: Tue, 04 Feb 2014 14:39:51 GMT
87
102
  - request:
88
103
  method: delete
89
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates/169.json
104
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates/10.json
90
105
  body:
91
106
  encoding: US-ASCII
92
107
  string: ''
93
108
  headers:
94
109
  authorization:
95
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
110
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
96
111
  response:
97
112
  status:
98
113
  code: 204
99
- message: No Content
114
+ message: ! 'No Content '
100
115
  headers:
101
116
  x-ratelimit-limit:
102
- - '1000'
117
+ - '2000'
103
118
  x-ratelimit-remaining:
104
- - '889'
119
+ - '1977'
105
120
  x-ua-compatible:
106
121
  - IE=Edge
107
122
  cache-control:
108
123
  - no-cache
109
- set-cookie:
110
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTJjY2UyOTAyYjY5YWQ0YmY5NmM5NDA4ZmU4ZjExNGZmBjsAVA%3D%3D--2dd1e2e07e8c3425277c3c4fd44e5927317b6f5d;
111
- path=/; HttpOnly
112
124
  x-request-id:
113
- - 63906e47aa4a685a0ae2a500056d5faf
125
+ - 06ecb2133adcc1831d8858008baadfbd
114
126
  x-runtime:
115
- - '0.370236'
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
116
132
  connection:
117
133
  - close
118
- server:
119
- - thin 1.5.0 codename Knife
134
+ set-cookie:
135
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWRlZGM0MDE5MTNiYzQ4NjMxOGI2NTA3MzliN2Q5MGUxBjsAVA%3D%3D--6425e2a9bcb28ca3a8064f21d7f4db46f2fa95a2;
136
+ path=/; HttpOnly
120
137
  body:
121
138
  encoding: US-ASCII
122
139
  string: ''
123
140
  http_version: '1.1'
124
- recorded_at: Tue, 14 May 2013 10:47:59 GMT
141
+ recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
125
142
  recorded_with: VCR 2.3.0