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,206 +2,224 @@
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:41:45 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
- - '1897'
32
+ - '1445'
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
- - 967d1a637f3f55f1a97c7556001b812e
44
+ - b29e4ca6e9e99212d7f0d27eba2beb43
35
45
  x-runtime:
36
- - '0.383227'
37
- server:
38
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
39
- date:
40
- - Tue, 04 Feb 2014 14:50:56 GMT
41
- content-length:
42
- - '1879'
43
- connection:
44
- - close
46
+ - '0.221473'
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:50:56 GMT
72
+ recorded_at: Fri, 13 Jun 2014 12:41:45 GMT
53
73
  - request:
54
74
  method: post
55
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.json
75
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/expenses.json
56
76
  body:
57
77
  encoding: US-ASCII
58
- string: contact_id=2&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&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:41:46 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
- - '1896'
71
- content-type:
72
- - application/json; charset=utf-8
102
+ - '1444'
73
103
  x-ua-compatible:
74
- - IE=Edge
104
+ - IE=Edge,chrome=1
75
105
  etag:
76
- - ! '"d6e4d1ca2525d9b38bd57585e0f98525"'
106
+ - ! '"ddf5edaac3fd482faac515d6d2bdc5a9"'
77
107
  cache-control:
78
108
  - max-age=0, private, must-revalidate
109
+ set-cookie:
110
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWU5NWM5ZmU5YTE5MzBlMTg3YmM0ODY5NmFhZjIxNGU0BjsAVA%3D%3D--3e2bee58736e6a4a40a4e00084c5575c2d588498;
111
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
79
112
  x-request-id:
80
- - 0e6e68c3beecbbaf83900fd09c98bbeb
113
+ - b0a096e733adba6a55972341027fc8b0
81
114
  x-runtime:
82
- - '0.495320'
83
- server:
84
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
85
- date:
86
- - Tue, 04 Feb 2014 14:50:56 GMT
87
- content-length:
88
- - '605'
89
- connection:
90
- - close
91
- set-cookie:
92
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTVmOTU3OWZkYWNkYmExZGI4YTg2MDI2ZWMwNWIwNjlmBjsAVA%3D%3D--47b9e332dcb91b3a6efd07724bc5a0217855d5fc;
93
- path=/; HttpOnly
115
+ - '0.275920'
116
+ x-rack-cache:
117
+ - invalidate, pass
94
118
  body:
95
119
  encoding: US-ASCII
96
- string: ! '{"id":23,"number":null,"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":545,"number":null,"issue_date":"2014-06-13","contact":{"id":760,"full_name":"\u0003
121
+ esatipa"},"po_number":null,"currency":"EUR","items":[{"id":699,"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","payments":[],"notes":"","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/23.json"}'
123
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"notes":"","state":"outstanding","tag_list":[],"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/545.json"}'
100
124
  http_version: '1.1'
101
- recorded_at: Tue, 04 Feb 2014 14:50:56 GMT
125
+ recorded_at: Fri, 13 Jun 2014 12:41:46 GMT
102
126
  - request:
103
127
  method: delete
104
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/23.json
128
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/expenses/545.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:41:47 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
- - '1895'
151
+ - '1443'
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTFmOTkwNzdjOTBlYTQyODFjZjk2ZDc1NjM2MTE2ZjhlBjsAVA%3D%3D--63c0603b1b84f1064d8242ed42d7b198eb5c081d;
158
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
124
159
  x-request-id:
125
- - 0969d6b9d87fd8db222b5c2c29fffa10
160
+ - 5a03be2fb921fb4c728840f5a6d5d0fb
126
161
  x-runtime:
127
- - '0.432289'
128
- server:
129
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
130
- date:
131
- - Tue, 04 Feb 2014 14:50:57 GMT
132
- connection:
133
- - close
134
- set-cookie:
135
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWM5NjhiNmE1M2FiYmVjYWU2NmJjNTVkMmI1YmJlYzY3BjsAVA%3D%3D--b6be86ae1e862a8027eb66e35ec8eae4ce359837;
136
- path=/; HttpOnly
162
+ - '0.233548'
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:50:57 GMT
169
+ recorded_at: Fri, 13 Jun 2014 12:41:47 GMT
142
170
  - request:
143
171
  method: get
144
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.json
172
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/expenses.json
145
173
  body:
146
174
  encoding: US-ASCII
147
175
  string: ''
148
176
  headers:
149
177
  authorization:
150
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
178
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
151
179
  response:
152
180
  status:
153
181
  code: 200
154
- message: ! 'OK '
182
+ message: OK
155
183
  headers:
184
+ server:
185
+ - nginx/1.4.5
186
+ date:
187
+ - Fri, 13 Jun 2014 12:41:48 GMT
188
+ content-type:
189
+ - application/json; charset=utf-8
190
+ transfer-encoding:
191
+ - chunked
192
+ connection:
193
+ - close
194
+ status:
195
+ - 200 OK
156
196
  x-ratelimit-limit:
157
197
  - '2000'
158
198
  x-ratelimit-remaining:
159
- - '1894'
199
+ - '1442'
160
200
  x-pages-currentpage:
161
201
  - '1'
162
202
  x-pages-totalpages:
163
203
  - '1'
164
- content-type:
165
- - application/json; charset=utf-8
166
204
  x-ua-compatible:
167
- - IE=Edge
205
+ - IE=Edge,chrome=1
168
206
  etag:
169
- - ! '"0caa665340ca3fbfd0127f8d8d146941"'
207
+ - ! '"f8c16df3cad07eca53aa3d6a08d8657b"'
170
208
  cache-control:
171
- - max-age=0, private, must-revalidate
209
+ - must-revalidate, private, max-age=0
172
210
  x-request-id:
173
- - 3f06d408d99737d6e33c2c1bafea8bd5
211
+ - 71594ebfb8c9ac59ee7208bad465a03e
174
212
  x-runtime:
175
- - '0.546128'
176
- server:
177
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
178
- date:
179
- - Tue, 04 Feb 2014 14:50:57 GMT
180
- content-length:
181
- - '2759'
182
- connection:
183
- - close
213
+ - '0.165001'
214
+ x-rack-cache:
215
+ - miss
184
216
  body:
185
217
  encoding: US-ASCII
186
- string: ! '[{"id":6,"number":null,"issue_date":"2014-05-04","contact":{"id":2,"full_name":"Another
187
- Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Honeypots","quantity":"1.3","unit_price":"19.03","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"24.74
188
- \u20ac","discount":"0.00 \u20ac","gross_amount":"24.74 \u20ac"}],"subtotal":"24.74
189
- \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-2.23
190
- \u20ac"},{"label":"IVA (21.00%)","amount":"5.20 \u20ac"}],"total":"27.71 \u20ac","payments":[{"id":1,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
191
- \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/1.json"},{"id":3,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
192
- \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/3.json"},{"id":5,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
193
- \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/5.json"},{"id":7,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
194
- \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/7.json"}],"notes":"Hello","state":"paid","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/6.json"},{"id":4,"number":null,"issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
195
- Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Very
196
- important stuff","quantity":"1.0","unit_price":"2230.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"2,230.00
197
- \u20ac","discount":"0.00 \u20ac","gross_amount":"2,230.00 \u20ac"}],"subtotal":"2,230.00
198
- \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-200.70
199
- \u20ac"},{"label":"IVA (21.00%)","amount":"468.30 \u20ac"}],"total":"2,497.60
200
- \u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/4.json"},{"id":5,"number":null,"issue_date":"2014-02-04","contact":{"id":3,"full_name":"TSM"},"po_number":"","currency":"EUR","items":[{"description":"Bombers","quantity":"5.0","unit_price":"29.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"145.00
201
- \u20ac","discount":"0.00 \u20ac","gross_amount":"145.00 \u20ac"}],"subtotal":"145.00
202
- \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-13.05
203
- \u20ac"},{"label":"IVA (21.00%)","amount":"30.45 \u20ac"}],"total":"162.40
204
- \u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/5.json"}]'
218
+ string: ! '[{"id":543,"number":null,"issue_date":"2014-06-13","contact":{"id":790,"full_name":"Test
219
+ Contact"},"po_number":"","currency":"EUR","items":[{"id":697,"description":"Hello","quantity":"1.0","unit_price":"30.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"30.00
220
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"30.00 \u20ac"}],"subtotal":"30.00
221
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"30.00 \u20ac","payments":[{"id":373,"date":"2014-06-13","payment_method":"cash","amount":"10,000.00
222
+ \u20ac","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/543/payments/373.json"}],"notes":"","state":"paid","tag_list":[],"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/543.json"}]'
205
223
  http_version: '1.1'
206
- recorded_at: Tue, 04 Feb 2014 14:50:57 GMT
207
- recorded_with: VCR 2.3.0
224
+ recorded_at: Fri, 13 Jun 2014 12:41:48 GMT
225
+ recorded_with: VCR 2.9.2