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.
- data/Gemfile +6 -7
- data/Gemfile.lock +0 -9
- data/README.md +6 -2
- data/VERSION +1 -1
- data/build_install.sh +1 -1
- data/changelog.md +4 -0
- data/lib/quaderno-ruby/base.rb +10 -2
- data/lib/quaderno-ruby/behavior/crud.rb +0 -1
- data/lib/quaderno-ruby.rb +0 -2
- data/quaderno.gemspec +6 -25
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +23 -18
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +35 -18
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +38 -18
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +35 -29
- data/test/fixtures/quaderno_cassettes/all_items.yml +17 -12
- data/test/fixtures/quaderno_cassettes/all_webhooks.yml +84 -68
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +81 -62
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +96 -62
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +99 -62
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +96 -73
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +49 -37
- data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +100 -80
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +66 -45
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +66 -56
- data/test/fixtures/quaderno_cassettes/found_contact.yml +39 -30
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +55 -32
- data/test/fixtures/quaderno_cassettes/found_expense.yml +62 -30
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +58 -42
- data/test/fixtures/quaderno_cassettes/found_item.yml +33 -24
- data/test/fixtures/quaderno_cassettes/found_webhook.yml +50 -40
- data/test/fixtures/quaderno_cassettes/new_contact.yml +19 -12
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +61 -44
- data/test/fixtures/quaderno_cassettes/new_expense.yml +99 -62
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +61 -44
- data/test/fixtures/quaderno_cassettes/new_item.yml +19 -12
- data/test/fixtures/quaderno_cassettes/new_webhook.yml +34 -28
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +57 -30
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +54 -41
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +14 -10
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +73 -43
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +70 -54
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +42 -30
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +84 -57
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +81 -56
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +84 -57
- data/test/fixtures/quaderno_cassettes/updated_item.yml +36 -24
- data/test/fixtures/quaderno_cassettes/updated_webhook.yml +69 -55
- data/test/helper.rb +12 -12
- data/test/unit/test_quaderno_contacts.rb +4 -3
- data/test/unit/test_quaderno_estimates.rb +2 -1
- data/test/unit/test_quaderno_expenses.rb +3 -2
- data/test/unit/test_quaderno_invoices.rb +3 -2
- data/test/unit/test_quaderno_items.rb +4 -3
- data/test/unit/test_quaderno_webhooks.rb +4 -3
- metadata +10 -94
- data/quaderno-1.0.0.gem +0 -0
- data/quaderno-1.1.0.gem +0 -0
- data/quaderno-1.1.2.gem +0 -0
- data/quaderno-1.2.0.gem +0 -0
|
@@ -2,170 +2,189 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: post
|
|
5
|
-
uri: http://
|
|
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=Z%2C%20Mazinger%20Z&email=koji%40kabuto.ftw
|
|
9
9
|
headers:
|
|
10
10
|
authorization:
|
|
11
|
-
- Basic
|
|
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
|
-
- '
|
|
18
|
+
- '2000'
|
|
19
19
|
x-ratelimit-remaining:
|
|
20
|
-
- '
|
|
20
|
+
- '1988'
|
|
21
21
|
content-type:
|
|
22
22
|
- application/json; charset=utf-8
|
|
23
23
|
x-ua-compatible:
|
|
24
24
|
- IE=Edge
|
|
25
25
|
etag:
|
|
26
|
-
- ! '"
|
|
26
|
+
- ! '"d227ac68787a27020eefba905c7d5572"'
|
|
27
27
|
cache-control:
|
|
28
28
|
- max-age=0, private, must-revalidate
|
|
29
29
|
x-request-id:
|
|
30
|
-
-
|
|
30
|
+
- 1ddfcb6777bb2677ac1a8d3f79bc8b29
|
|
31
31
|
x-runtime:
|
|
32
|
-
- '0.
|
|
32
|
+
- '0.402369'
|
|
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
|
+
- '367'
|
|
33
39
|
connection:
|
|
34
40
|
- close
|
|
35
|
-
|
|
36
|
-
-
|
|
41
|
+
set-cookie:
|
|
42
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTk3ODk1NWE1ODZhNDczZDFlNWZiNWNjNzY4OTQwYTY0BjsAVA%3D%3D--c53dba9f387e5316c44a51acb42697db8d10eb41;
|
|
43
|
+
path=/; HttpOnly
|
|
37
44
|
body:
|
|
38
45
|
encoding: US-ASCII
|
|
39
|
-
string: ! '{"id":
|
|
46
|
+
string: ! '{"id":7,"kind":"company","full_name":"Z, Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/7"}'
|
|
40
47
|
http_version: '1.1'
|
|
41
|
-
recorded_at: Tue,
|
|
48
|
+
recorded_at: Tue, 04 Feb 2014 14:39:42 GMT
|
|
42
49
|
- request:
|
|
43
50
|
method: get
|
|
44
|
-
uri: http://
|
|
51
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
|
|
45
52
|
body:
|
|
46
53
|
encoding: US-ASCII
|
|
47
54
|
string: ''
|
|
48
55
|
headers:
|
|
49
56
|
authorization:
|
|
50
|
-
- Basic
|
|
57
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
|
51
58
|
response:
|
|
52
59
|
status:
|
|
53
60
|
code: 200
|
|
54
|
-
message: OK
|
|
61
|
+
message: ! 'OK '
|
|
55
62
|
headers:
|
|
56
63
|
x-ratelimit-limit:
|
|
57
|
-
- '
|
|
64
|
+
- '2000'
|
|
58
65
|
x-ratelimit-remaining:
|
|
59
|
-
- '
|
|
66
|
+
- '1987'
|
|
67
|
+
x-pages-currentpage:
|
|
68
|
+
- '1'
|
|
69
|
+
x-pages-totalpages:
|
|
70
|
+
- '1'
|
|
60
71
|
content-type:
|
|
61
72
|
- application/json; charset=utf-8
|
|
62
73
|
x-ua-compatible:
|
|
63
74
|
- IE=Edge
|
|
64
75
|
etag:
|
|
65
|
-
- ! '"
|
|
76
|
+
- ! '"11443a4841e97a4e8cdbb5c37797a605"'
|
|
66
77
|
cache-control:
|
|
67
78
|
- max-age=0, private, must-revalidate
|
|
68
79
|
x-request-id:
|
|
69
|
-
-
|
|
80
|
+
- 13365a6496b9b79ee010166ea77912ae
|
|
70
81
|
x-runtime:
|
|
71
|
-
- '0.
|
|
82
|
+
- '0.258855'
|
|
83
|
+
server:
|
|
84
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
85
|
+
date:
|
|
86
|
+
- Tue, 04 Feb 2014 14:39:43 GMT
|
|
87
|
+
content-length:
|
|
88
|
+
- '2247'
|
|
72
89
|
connection:
|
|
73
90
|
- close
|
|
74
|
-
server:
|
|
75
|
-
- thin 1.5.0 codename Knife
|
|
76
91
|
body:
|
|
77
92
|
encoding: US-ASCII
|
|
78
|
-
string: ! '[{"id":
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
|
|
84
|
-
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"},{"id":16,"kind":"company","full_name":"Z,
|
|
85
|
-
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/16"}]'
|
|
93
|
+
string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
|
|
94
|
+
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
|
|
95
|
+
Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
|
|
96
|
+
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"},{"id":7,"kind":"company","full_name":"Z,
|
|
97
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/7"}]'
|
|
86
98
|
http_version: '1.1'
|
|
87
|
-
recorded_at: Tue,
|
|
99
|
+
recorded_at: Tue, 04 Feb 2014 14:39:43 GMT
|
|
88
100
|
- request:
|
|
89
101
|
method: delete
|
|
90
|
-
uri: http://
|
|
102
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts/7.json
|
|
91
103
|
body:
|
|
92
104
|
encoding: US-ASCII
|
|
93
105
|
string: ''
|
|
94
106
|
headers:
|
|
95
107
|
authorization:
|
|
96
|
-
- Basic
|
|
108
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
|
97
109
|
response:
|
|
98
110
|
status:
|
|
99
111
|
code: 204
|
|
100
|
-
message: No Content
|
|
112
|
+
message: ! 'No Content '
|
|
101
113
|
headers:
|
|
102
114
|
x-ratelimit-limit:
|
|
103
|
-
- '
|
|
115
|
+
- '2000'
|
|
104
116
|
x-ratelimit-remaining:
|
|
105
|
-
- '
|
|
117
|
+
- '1986'
|
|
106
118
|
x-ua-compatible:
|
|
107
119
|
- IE=Edge
|
|
108
120
|
cache-control:
|
|
109
121
|
- no-cache
|
|
110
|
-
set-cookie:
|
|
111
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWIyOTRhMTA5YmJmYjI4MTAzMTI5NjZjMjVjNTk4YmM4BjsAVA%3D%3D--0b910a5923e7ac648b7602b8e7b473726efb9c13;
|
|
112
|
-
path=/; HttpOnly
|
|
113
122
|
x-request-id:
|
|
114
|
-
-
|
|
123
|
+
- 817086194f8b7e66340ec0ac6e2bcbfd
|
|
115
124
|
x-runtime:
|
|
116
|
-
- '0.
|
|
125
|
+
- '0.077995'
|
|
126
|
+
server:
|
|
127
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
128
|
+
date:
|
|
129
|
+
- Tue, 04 Feb 2014 14:39:43 GMT
|
|
117
130
|
connection:
|
|
118
131
|
- close
|
|
119
|
-
|
|
120
|
-
-
|
|
132
|
+
set-cookie:
|
|
133
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWFiNDMwYWMzNzlhMWMxZTYwZjVlYTBiMGU2NGM1MGY1BjsAVA%3D%3D--e606d16c3926f04003e8f77b4b44343d9ebeab39;
|
|
134
|
+
path=/; HttpOnly
|
|
121
135
|
body:
|
|
122
136
|
encoding: US-ASCII
|
|
123
137
|
string: ''
|
|
124
138
|
http_version: '1.1'
|
|
125
|
-
recorded_at: Tue,
|
|
139
|
+
recorded_at: Tue, 04 Feb 2014 14:39:43 GMT
|
|
126
140
|
- request:
|
|
127
141
|
method: get
|
|
128
|
-
uri: http://
|
|
142
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
|
|
129
143
|
body:
|
|
130
144
|
encoding: US-ASCII
|
|
131
145
|
string: ''
|
|
132
146
|
headers:
|
|
133
147
|
authorization:
|
|
134
|
-
- Basic
|
|
148
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
|
135
149
|
response:
|
|
136
150
|
status:
|
|
137
151
|
code: 200
|
|
138
|
-
message: OK
|
|
152
|
+
message: ! 'OK '
|
|
139
153
|
headers:
|
|
140
154
|
x-ratelimit-limit:
|
|
141
|
-
- '
|
|
155
|
+
- '2000'
|
|
142
156
|
x-ratelimit-remaining:
|
|
143
|
-
- '
|
|
157
|
+
- '1985'
|
|
158
|
+
x-pages-currentpage:
|
|
159
|
+
- '1'
|
|
160
|
+
x-pages-totalpages:
|
|
161
|
+
- '1'
|
|
144
162
|
content-type:
|
|
145
163
|
- application/json; charset=utf-8
|
|
146
164
|
x-ua-compatible:
|
|
147
165
|
- IE=Edge
|
|
148
166
|
etag:
|
|
149
|
-
- ! '"
|
|
167
|
+
- ! '"71b79c1b45cfb58a71172c277dd004b5"'
|
|
150
168
|
cache-control:
|
|
151
169
|
- max-age=0, private, must-revalidate
|
|
152
170
|
x-request-id:
|
|
153
|
-
-
|
|
171
|
+
- b81ecdc030476dcb566ec1cef69e9885
|
|
154
172
|
x-runtime:
|
|
155
|
-
- '0.
|
|
173
|
+
- '0.094156'
|
|
174
|
+
server:
|
|
175
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
176
|
+
date:
|
|
177
|
+
- Tue, 04 Feb 2014 14:39:43 GMT
|
|
178
|
+
content-length:
|
|
179
|
+
- '1879'
|
|
156
180
|
connection:
|
|
157
181
|
- close
|
|
158
|
-
server:
|
|
159
|
-
- thin 1.5.0 codename Knife
|
|
160
182
|
body:
|
|
161
183
|
encoding: US-ASCII
|
|
162
|
-
string: ! '[{"id":
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
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":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
|
|
167
|
-
Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
|
|
168
|
-
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"}]'
|
|
184
|
+
string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
|
|
185
|
+
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
|
|
186
|
+
Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
|
|
187
|
+
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"}]'
|
|
169
188
|
http_version: '1.1'
|
|
170
|
-
recorded_at: Tue,
|
|
189
|
+
recorded_at: Tue, 04 Feb 2014 14:39:43 GMT
|
|
171
190
|
recorded_with: VCR 2.3.0
|
|
@@ -2,169 +2,203 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: http://
|
|
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
|
|
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
|
-
- '
|
|
18
|
+
- '2000'
|
|
19
19
|
x-ratelimit-remaining:
|
|
20
|
-
- '
|
|
20
|
+
- '1976'
|
|
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
|
-
- ! '"
|
|
30
|
+
- ! '"71b79c1b45cfb58a71172c277dd004b5"'
|
|
27
31
|
cache-control:
|
|
28
32
|
- max-age=0, private, must-revalidate
|
|
29
33
|
x-request-id:
|
|
30
|
-
-
|
|
34
|
+
- 40c504d3ee1254d5321cd62b9a8ecc98
|
|
31
35
|
x-runtime:
|
|
32
|
-
- '0.
|
|
36
|
+
- '0.267820'
|
|
37
|
+
server:
|
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
39
|
+
date:
|
|
40
|
+
- Tue, 04 Feb 2014 14:39:53 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":
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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,
|
|
52
|
+
recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
|
|
48
53
|
- request:
|
|
49
54
|
method: post
|
|
50
|
-
uri: http://
|
|
55
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates.json
|
|
51
56
|
body:
|
|
52
57
|
encoding: US-ASCII
|
|
53
|
-
string: contact_id=
|
|
58
|
+
string: contact_id=2&number=test%20number%204400&contact_name=Another%20Test%20Contact¤cy=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=¬es=
|
|
54
59
|
headers:
|
|
55
60
|
authorization:
|
|
56
|
-
- Basic
|
|
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
|
-
- '
|
|
68
|
+
- '2000'
|
|
64
69
|
x-ratelimit-remaining:
|
|
65
|
-
- '
|
|
70
|
+
- '1975'
|
|
66
71
|
content-type:
|
|
67
72
|
- application/json; charset=utf-8
|
|
68
73
|
x-ua-compatible:
|
|
69
74
|
- IE=Edge
|
|
70
75
|
etag:
|
|
71
|
-
- ! '"
|
|
76
|
+
- ! '"96731bd4e0be6ec97c875ec181b960e3"'
|
|
72
77
|
cache-control:
|
|
73
78
|
- max-age=0, private, must-revalidate
|
|
74
79
|
x-request-id:
|
|
75
|
-
-
|
|
80
|
+
- da7a3ee65c0b23d2ccdf7df80dc825b4
|
|
76
81
|
x-runtime:
|
|
77
|
-
- '0.
|
|
82
|
+
- '0.156521'
|
|
83
|
+
server:
|
|
84
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
85
|
+
date:
|
|
86
|
+
- Tue, 04 Feb 2014 14:39:53 GMT
|
|
87
|
+
content-length:
|
|
88
|
+
- '707'
|
|
78
89
|
connection:
|
|
79
90
|
- close
|
|
80
|
-
|
|
81
|
-
-
|
|
91
|
+
set-cookie:
|
|
92
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWQyNzQwNWJhZjM5OGI3YTI0MGUwN2FmOTFhNTM4YTQzBjsAVA%3D%3D--fe10ea5a21ea4ab9b34d039c6768d55867089f8c;
|
|
93
|
+
path=/; HttpOnly
|
|
82
94
|
body:
|
|
83
95
|
encoding: US-ASCII
|
|
84
|
-
string: ! '{"id":
|
|
96
|
+
string: ! '{"id":11,"number":"test number 4400","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/193b01105b8019fd2da1f27b13b17707ecd4fe9b","url":"http://localhost:3000/recrea/api/v1/estimates/11.json"}'
|
|
85
100
|
http_version: '1.1'
|
|
86
|
-
recorded_at: Tue,
|
|
101
|
+
recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
|
|
87
102
|
- request:
|
|
88
103
|
method: delete
|
|
89
|
-
uri: http://
|
|
104
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates/11.json
|
|
90
105
|
body:
|
|
91
106
|
encoding: US-ASCII
|
|
92
107
|
string: ''
|
|
93
108
|
headers:
|
|
94
109
|
authorization:
|
|
95
|
-
- Basic
|
|
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
|
-
- '
|
|
117
|
+
- '2000'
|
|
103
118
|
x-ratelimit-remaining:
|
|
104
|
-
- '
|
|
119
|
+
- '1974'
|
|
105
120
|
x-ua-compatible:
|
|
106
121
|
- IE=Edge
|
|
107
122
|
cache-control:
|
|
108
123
|
- no-cache
|
|
109
|
-
set-cookie:
|
|
110
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTcxZGEzMjA5N2I1YjRkN2RjZDE0NmQ4ZTFhMDQ2MzBiBjsAVA%3D%3D--0c17cfac393063b0ea8491fa091953e45901dab7;
|
|
111
|
-
path=/; HttpOnly
|
|
112
124
|
x-request-id:
|
|
113
|
-
-
|
|
125
|
+
- d6ca8117ed7821d9932588d148bf3c26
|
|
114
126
|
x-runtime:
|
|
115
|
-
- '0.
|
|
127
|
+
- '0.257304'
|
|
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
|
-
|
|
119
|
-
-
|
|
134
|
+
set-cookie:
|
|
135
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTI4NTJkMmY3NWVkYzUzNWY5ZmViZTlmODBlNjc3YjY4BjsAVA%3D%3D--df4593775971c5434138b94c42e69fb30e226be9;
|
|
136
|
+
path=/; HttpOnly
|
|
120
137
|
body:
|
|
121
138
|
encoding: US-ASCII
|
|
122
139
|
string: ''
|
|
123
140
|
http_version: '1.1'
|
|
124
|
-
recorded_at: Tue,
|
|
141
|
+
recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
|
|
125
142
|
- request:
|
|
126
143
|
method: get
|
|
127
|
-
uri: http://
|
|
144
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates.json
|
|
128
145
|
body:
|
|
129
146
|
encoding: US-ASCII
|
|
130
147
|
string: ''
|
|
131
148
|
headers:
|
|
132
149
|
authorization:
|
|
133
|
-
- Basic
|
|
150
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
|
134
151
|
response:
|
|
135
152
|
status:
|
|
136
153
|
code: 200
|
|
137
|
-
message: OK
|
|
154
|
+
message: ! 'OK '
|
|
138
155
|
headers:
|
|
139
156
|
x-ratelimit-limit:
|
|
140
|
-
- '
|
|
157
|
+
- '2000'
|
|
141
158
|
x-ratelimit-remaining:
|
|
142
|
-
- '
|
|
159
|
+
- '1973'
|
|
160
|
+
x-pages-currentpage:
|
|
161
|
+
- '1'
|
|
162
|
+
x-pages-totalpages:
|
|
163
|
+
- '1'
|
|
143
164
|
content-type:
|
|
144
165
|
- application/json; charset=utf-8
|
|
145
166
|
x-ua-compatible:
|
|
146
167
|
- IE=Edge
|
|
147
168
|
etag:
|
|
148
|
-
- ! '"
|
|
169
|
+
- ! '"e381d87821899056ec8529c9f9bb5f0a"'
|
|
149
170
|
cache-control:
|
|
150
171
|
- max-age=0, private, must-revalidate
|
|
151
172
|
x-request-id:
|
|
152
|
-
-
|
|
173
|
+
- 1c7c4f7302c2f73593d05cce598f0e96
|
|
153
174
|
x-runtime:
|
|
154
|
-
- '0.
|
|
175
|
+
- '0.170577'
|
|
176
|
+
server:
|
|
177
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
178
|
+
date:
|
|
179
|
+
- Tue, 04 Feb 2014 14:39:53 GMT
|
|
180
|
+
content-length:
|
|
181
|
+
- '2872'
|
|
155
182
|
connection:
|
|
156
183
|
- close
|
|
157
|
-
server:
|
|
158
|
-
- thin 1.5.0 codename Knife
|
|
159
184
|
body:
|
|
160
185
|
encoding: US-ASCII
|
|
161
|
-
string: ! '[{"id":
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
186
|
+
string: ! '[{"id":9,"number":"0000003","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
|
187
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Bread
|
|
188
|
+
pack","quantity":"1.0","unit_price":"2.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"2.00
|
|
189
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"2.00 \u20ac"}],"subtotal":"2.00
|
|
190
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"2.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/43cb8820f8901ce8ee208a79f2a4c4d6eef63eb6","url":"http://localhost:3000/recrea/api/v1/estimates/9.json"},{"id":8,"number":"0000002","issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
|
|
191
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Paint","quantity":"1.0","unit_price":"50.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"50.00
|
|
192
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"50.00 \u20ac"},{"description":"Brushes","quantity":"1.0","unit_price":"12.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"12.00
|
|
193
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"12.00 \u20ac"},{"description":"Working
|
|
194
|
+
suits","quantity":"1.0","unit_price":"20.99","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"20.99
|
|
195
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"20.99 \u20ac"}],"subtotal":"82.99
|
|
196
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IVA (21.00%)","amount":"2.52
|
|
197
|
+
\u20ac"}],"total":"85.51 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/749d695e7c7b0fd8545416fa30346ca3c69f5658","url":"http://localhost:3000/recrea/api/v1/estimates/8.json"},{"id":7,"number":"0000001","issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
|
|
198
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Paint","quantity":"1.0","unit_price":"50.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"50.00
|
|
199
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"50.00 \u20ac"},{"description":"Brushes","quantity":"1.0","unit_price":"12.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"12.00
|
|
200
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"12.00 \u20ac"}],"subtotal":"62.00
|
|
201
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"62.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/8a4c4788bf7cbb1ecf13e875176864a9b02f5d7f","url":"http://localhost:3000/recrea/api/v1/estimates/7.json"}]'
|
|
168
202
|
http_version: '1.1'
|
|
169
|
-
recorded_at: Tue,
|
|
203
|
+
recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
|
|
170
204
|
recorded_with: VCR 2.3.0
|