redpomo-reloaded 0.0.13

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 (58) hide show
  1. checksums.yaml +7 -0
  2. data/Dockerfile +5 -0
  3. data/Gemfile +9 -0
  4. data/Gemfile.lock +139 -0
  5. data/Guardfile +23 -0
  6. data/LICENSE +22 -0
  7. data/README.md +176 -0
  8. data/Rakefile +6 -0
  9. data/bin/redpomo +7 -0
  10. data/docker-compose.yml +7 -0
  11. data/lib/redpomo.rb +10 -0
  12. data/lib/redpomo/cli.rb +172 -0
  13. data/lib/redpomo/config.rb +26 -0
  14. data/lib/redpomo/entries_printer.rb +33 -0
  15. data/lib/redpomo/entry.rb +65 -0
  16. data/lib/redpomo/file_cache.rb +44 -0
  17. data/lib/redpomo/fuzzy_converter.rb +68 -0
  18. data/lib/redpomo/issue.rb +38 -0
  19. data/lib/redpomo/null_cache.rb +9 -0
  20. data/lib/redpomo/numeric_ext.rb +30 -0
  21. data/lib/redpomo/task.rb +103 -0
  22. data/lib/redpomo/task_list.rb +61 -0
  23. data/lib/redpomo/templates/config.yml +47 -0
  24. data/lib/redpomo/templates/issue_stub.textile +7 -0
  25. data/lib/redpomo/tracker.rb +175 -0
  26. data/lib/redpomo/ui.rb +73 -0
  27. data/lib/redpomo/version.rb +3 -0
  28. data/redpomo.gemspec +33 -0
  29. data/spec/file_cache_spec.rb +22 -0
  30. data/spec/fixtures/add_results.txt +4 -0
  31. data/spec/fixtures/cassettes/cli_add.yml +102 -0
  32. data/spec/fixtures/cassettes/cli_close.yml +50 -0
  33. data/spec/fixtures/cassettes/cli_pull.yml +1222 -0
  34. data/spec/fixtures/cassettes/cli_push.yml +297 -0
  35. data/spec/fixtures/cassettes/close_issue.yml +50 -0
  36. data/spec/fixtures/cassettes/create_issue.yml +102 -0
  37. data/spec/fixtures/cassettes/issues.yml +449 -0
  38. data/spec/fixtures/cassettes/push_entry.yml +55 -0
  39. data/spec/fixtures/close_results.txt +2 -0
  40. data/spec/fixtures/config.yml +16 -0
  41. data/spec/fixtures/printer_output.txt +16 -0
  42. data/spec/fixtures/proper_timelog.csv +4 -0
  43. data/spec/fixtures/pull_results.txt +20 -0
  44. data/spec/fixtures/tasks.txt +3 -0
  45. data/spec/fixtures/timelog.csv +6 -0
  46. data/spec/integration/add_spec.rb +29 -0
  47. data/spec/integration/init_spec.rb +33 -0
  48. data/spec/lib/redpomo/cli_spec.rb +91 -0
  49. data/spec/lib/redpomo/entry_spec.rb +23 -0
  50. data/spec/lib/redpomo/fuzzy_converter_spec.rb +65 -0
  51. data/spec/lib/redpomo/task_spec.rb +39 -0
  52. data/spec/lib/redpomo/tracker_spec.rb +72 -0
  53. data/spec/spec_helper.rb +28 -0
  54. data/spec/support/cli_helpers.rb +76 -0
  55. data/spec/support/fixtures.rb +24 -0
  56. data/spec/support/ruby_ext.rb +20 -0
  57. data/spec/tmp/REDME.md +0 -0
  58. metadata +296 -0
@@ -0,0 +1,449 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://code.welaika.com/users/current.json?key=WELAIKA_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Sat, 05 May 2012 12:42:05 GMT
25
+ Server:
26
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
27
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
28
+ X-Powered-By:
29
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
30
+ Etag:
31
+ - ! '"500d2715604701bafcb8473e4ebac37e"'
32
+ X-Runtime:
33
+ - '52'
34
+ Cache-Control:
35
+ - private, max-age=0, must-revalidate
36
+ Content-Length:
37
+ - '196'
38
+ Status:
39
+ - '200'
40
+ Content-Type:
41
+ - application/json; charset=utf-8
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ! '{"user":{"mail":"stefano.verna@welaika.com","last_login_on":"2012/05/03
45
+ 11:45:10 +0200","lastname":"Verna","login":"steffoz","created_on":"2010/02/11
46
+ 09:34:28 +0100","firstname":"Stefano","id":4}}'
47
+ http_version:
48
+ recorded_at: Sat, 05 May 2012 12:42:05 GMT
49
+ - request:
50
+ method: get
51
+ uri: http://code.welaika.com/issues.json?assigned_to_id=4&key=WELAIKA_TOKEN&status_id=open
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ headers:
56
+ Accept:
57
+ - application/json
58
+ Accept-Encoding:
59
+ - gzip, deflate
60
+ Content-Type:
61
+ - application/json
62
+ User-Agent:
63
+ - Ruby
64
+ response:
65
+ status:
66
+ code: 200
67
+ message: OK
68
+ headers:
69
+ Date:
70
+ - Sat, 05 May 2012 12:42:05 GMT
71
+ Server:
72
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
73
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
74
+ X-Powered-By:
75
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
76
+ Etag:
77
+ - ! '"4e0411f3e23464c32428942d0089976e"'
78
+ X-Runtime:
79
+ - '52'
80
+ Cache-Control:
81
+ - private, max-age=0, must-revalidate
82
+ Set-Cookie:
83
+ - _redmine_session=BAh7CDoPc2Vzc2lvbl9pZCIlN2YwMGE3OTMyNDRiNWVlNjlkYWRmMjliM2YyNjJkMjA6CnF1ZXJ5ewk6DWdyb3VwX2J5MDoPcHJvamVjdF9pZDA6EWNvbHVtbl9uYW1lczA6DGZpbHRlcnN7ByITYXNzaWduZWRfdG9faWR7BzoLdmFsdWVzWwYiBjQ6DW9wZXJhdG9yIgY9Ig5zdGF0dXNfaWR7BzsLWwYiCHBlbjsMIgZvIhZpc3N1ZXNfaW5kZXhfc29ydCIMaWQ6ZGVzYw%3D%3D--2d196af3a6fd5ff1c69c21c58e26d1828d313eb2;
84
+ path=/; HttpOnly
85
+ Content-Length:
86
+ - '3476'
87
+ Status:
88
+ - '200'
89
+ Content-Type:
90
+ - application/json; charset=utf-8
91
+ body:
92
+ encoding: US-ASCII
93
+ string: ! '{"limit":25,"issues":[{"status":{"name":"New","id":1},"updated_on":"2012/05/03
94
+ 09:06:07 +0200","assigned_to":{"name":"Stefano Verna","id":4},"done_ratio":0,"description":"-
95
+ per tutte le app, tutti i mercati, solo iOS, proviamo a prendere il valore
96
+ dei \"new users\" e metterlo a newUsers/4\r\n- per tutte le app, tutti i mercati,
97
+ solo Android, proviamo a prendere il valore dei \"new users\" e metterlo a
98
+ newUsers*10\r\n","tracker":{"name":"Feature","id":2},"start_date":"2012/05/03","created_on":"2012/05/03
99
+ 09:04:06 +0200","subject":"New Users iOS","author":{"name":"Paolo Romagnoli","id":63},"id":3316,"priority":{"name":"Urgent","id":6},"project":{"name":"Dashboard
100
+ FIAT","id":82}},{"status":{"name":"New","id":1},"updated_on":"2012/04/27 18:15:57
101
+ +0200","assigned_to":{"name":"Stefano Verna","id":4},"done_ratio":0,"description":"","tracker":{"name":"Feature","id":2},"start_date":"2012/04/27","created_on":"2012/04/27
102
+ 18:15:57 +0200","subject":"Orlando Locator","author":{"name":"Stefano Verna","id":4},"id":3296,"priority":{"name":"Normal","id":4},"project":{"name":"Olasagasti
103
+ ","id":52}},{"status":{"name":"New","id":1},"updated_on":"2012/04/27 18:15:49
104
+ +0200","assigned_to":{"name":"Stefano Verna","id":4},"done_ratio":0,"description":"","tracker":{"name":"Feature","id":2},"start_date":"2012/04/27","created_on":"2012/04/27
105
+ 18:15:49 +0200","subject":"Il Paniere","author":{"name":"Stefano Verna","id":4},"id":3295,"priority":{"name":"Normal","id":4},"project":{"name":"Olasagasti
106
+ ","id":52}},{"status":{"name":"New","id":1},"updated_on":"2012/04/27 18:15:38
107
+ +0200","assigned_to":{"name":"Stefano Verna","id":4},"done_ratio":0,"description":"","tracker":{"name":"Feature","id":2},"start_date":"2012/04/27","created_on":"2012/04/27
108
+ 18:15:38 +0200","subject":"Scheda Prodotto","author":{"name":"Stefano Verna","id":4},"id":3294,"priority":{"name":"Normal","id":4},"project":{"name":"Olasagasti
109
+ ","id":52}},{"status":{"name":"New","id":1},"updated_on":"2012/04/27 18:15:23
110
+ +0200","assigned_to":{"name":"Stefano Verna","id":4},"done_ratio":0,"description":"","tracker":{"name":"Feature","id":2},"start_date":"2012/04/27","created_on":"2012/04/27
111
+ 18:15:23 +0200","subject":"Ricette","author":{"name":"Stefano Verna","id":4},"id":3293,"priority":{"name":"Normal","id":4},"project":{"name":"Olasagasti
112
+ ","id":52}},{"status":{"name":"New","id":1},"updated_on":"2012/04/27 14:36:28
113
+ +0200","assigned_to":{"name":"Stefano Verna","id":4},"done_ratio":0,"description":"","tracker":{"name":"Bug","id":1},"start_date":"2012/04/27","created_on":"2012/04/27
114
+ 14:36:28 +0200","subject":"Some users have mentioned that the intranet wiki
115
+ does not support ''table'' markup. Can that be updated to work?","author":{"name":"Stefano
116
+ Verna","id":4},"id":3286,"priority":{"name":"Normal","id":4},"project":{"name":"Orchid","id":101}},{"status":{"name":"New","id":1},"updated_on":"2012/04/27
117
+ 14:36:51 +0200","assigned_to":{"name":"Stefano Verna","id":4},"done_ratio":0,"description":"Ok.
118
+ Also, there is an issue with the blog emails - could you strip out the html
119
+ (particularly \u003Ca\u003E tags) in the blog emails so that the text appears
120
+ clean? I attach an example email.\r\n\r\nhttp://o7.no/IfiSnP","tracker":{"name":"Bug","id":1},"start_date":"2012/04/25","created_on":"2012/04/25
121
+ 13:02:50 +0200","subject":"Issue with the blog emails","author":{"name":"Stefano
122
+ Verna","id":4},"id":3269,"priority":{"name":"Normal","id":4},"project":{"name":"Orchid","id":101}}],"total_count":13,"offset":0}'
123
+ http_version:
124
+ recorded_at: Sat, 05 May 2012 12:42:05 GMT
125
+ - request:
126
+ method: get
127
+ uri: http://code.welaika.com/projects/82.json?key=WELAIKA_TOKEN
128
+ body:
129
+ encoding: US-ASCII
130
+ string: ''
131
+ headers:
132
+ Accept:
133
+ - application/json
134
+ Accept-Encoding:
135
+ - gzip, deflate
136
+ Content-Type:
137
+ - application/json
138
+ User-Agent:
139
+ - Ruby
140
+ response:
141
+ status:
142
+ code: 200
143
+ message: OK
144
+ headers:
145
+ Date:
146
+ - Sat, 05 May 2012 12:42:05 GMT
147
+ Server:
148
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
149
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
150
+ X-Powered-By:
151
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
152
+ Etag:
153
+ - ! '"b17ba1116d4aaaecb964417078e703b4"'
154
+ X-Runtime:
155
+ - '208'
156
+ Cache-Control:
157
+ - private, max-age=0, must-revalidate
158
+ Content-Length:
159
+ - '288'
160
+ Status:
161
+ - '200'
162
+ Content-Type:
163
+ - application/json; charset=utf-8
164
+ body:
165
+ encoding: US-ASCII
166
+ string: ! '{"project":{"parent":{"name":"Seac02","id":62},"updated_on":"2012/02/17
167
+ 18:05:04 +0100","custom_fields":[{"value":"0","name":"Send Diff Emails","id":1}],"description":"","created_on":"2012/01/23
168
+ 09:05:05 +0100","identifier":"dashboard-fiat","name":"Dashboard FIAT","homepage":"","id":82}}'
169
+ http_version:
170
+ recorded_at: Sat, 05 May 2012 12:42:06 GMT
171
+ - request:
172
+ method: get
173
+ uri: http://code.welaika.com/projects/52.json?key=WELAIKA_TOKEN
174
+ body:
175
+ encoding: US-ASCII
176
+ string: ''
177
+ headers:
178
+ Accept:
179
+ - application/json
180
+ Accept-Encoding:
181
+ - gzip, deflate
182
+ Content-Type:
183
+ - application/json
184
+ User-Agent:
185
+ - Ruby
186
+ response:
187
+ status:
188
+ code: 200
189
+ message: OK
190
+ headers:
191
+ Date:
192
+ - Sat, 05 May 2012 12:42:06 GMT
193
+ Server:
194
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
195
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
196
+ X-Powered-By:
197
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
198
+ Etag:
199
+ - ! '"6e1b9b5ff1a1f8d0298b3d1e0fa4a4af"'
200
+ X-Runtime:
201
+ - '332'
202
+ Cache-Control:
203
+ - private, max-age=0, must-revalidate
204
+ Content-Length:
205
+ - '305'
206
+ Status:
207
+ - '200'
208
+ Content-Type:
209
+ - application/json; charset=utf-8
210
+ body:
211
+ encoding: US-ASCII
212
+ string: ! '{"project":{"parent":{"name":"Sites dev","id":32},"updated_on":"2011/09/20
213
+ 10:54:27 +0200","custom_fields":[{"value":"0","name":"Send Diff Emails","id":1}],"description":"Il
214
+ sito di Olasagasti","created_on":"2011/09/20 10:54:27 +0200","identifier":"olasagasti","name":"Olasagasti
215
+ ","homepage":"","id":52}}'
216
+ http_version:
217
+ recorded_at: Sat, 05 May 2012 12:42:06 GMT
218
+ - request:
219
+ method: get
220
+ uri: http://code.welaika.com/projects/52.json?key=WELAIKA_TOKEN
221
+ body:
222
+ encoding: US-ASCII
223
+ string: ''
224
+ headers:
225
+ Accept:
226
+ - application/json
227
+ Accept-Encoding:
228
+ - gzip, deflate
229
+ Content-Type:
230
+ - application/json
231
+ User-Agent:
232
+ - Ruby
233
+ response:
234
+ status:
235
+ code: 200
236
+ message: OK
237
+ headers:
238
+ Date:
239
+ - Sat, 05 May 2012 12:42:06 GMT
240
+ Server:
241
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
242
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
243
+ X-Powered-By:
244
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
245
+ Etag:
246
+ - ! '"6e1b9b5ff1a1f8d0298b3d1e0fa4a4af"'
247
+ X-Runtime:
248
+ - '24'
249
+ Cache-Control:
250
+ - private, max-age=0, must-revalidate
251
+ Content-Length:
252
+ - '305'
253
+ Status:
254
+ - '200'
255
+ Content-Type:
256
+ - application/json; charset=utf-8
257
+ body:
258
+ encoding: US-ASCII
259
+ string: ! '{"project":{"parent":{"name":"Sites dev","id":32},"updated_on":"2011/09/20
260
+ 10:54:27 +0200","custom_fields":[{"value":"0","name":"Send Diff Emails","id":1}],"description":"Il
261
+ sito di Olasagasti","created_on":"2011/09/20 10:54:27 +0200","identifier":"olasagasti","name":"Olasagasti
262
+ ","homepage":"","id":52}}'
263
+ http_version:
264
+ recorded_at: Sat, 05 May 2012 12:42:06 GMT
265
+ - request:
266
+ method: get
267
+ uri: http://code.welaika.com/projects/52.json?key=WELAIKA_TOKEN
268
+ body:
269
+ encoding: US-ASCII
270
+ string: ''
271
+ headers:
272
+ Accept:
273
+ - application/json
274
+ Accept-Encoding:
275
+ - gzip, deflate
276
+ Content-Type:
277
+ - application/json
278
+ User-Agent:
279
+ - Ruby
280
+ response:
281
+ status:
282
+ code: 200
283
+ message: OK
284
+ headers:
285
+ Date:
286
+ - Sat, 05 May 2012 12:42:06 GMT
287
+ Server:
288
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
289
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
290
+ X-Powered-By:
291
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
292
+ Etag:
293
+ - ! '"6e1b9b5ff1a1f8d0298b3d1e0fa4a4af"'
294
+ X-Runtime:
295
+ - '24'
296
+ Cache-Control:
297
+ - private, max-age=0, must-revalidate
298
+ Content-Length:
299
+ - '305'
300
+ Status:
301
+ - '200'
302
+ Content-Type:
303
+ - application/json; charset=utf-8
304
+ body:
305
+ encoding: US-ASCII
306
+ string: ! '{"project":{"parent":{"name":"Sites dev","id":32},"updated_on":"2011/09/20
307
+ 10:54:27 +0200","custom_fields":[{"value":"0","name":"Send Diff Emails","id":1}],"description":"Il
308
+ sito di Olasagasti","created_on":"2011/09/20 10:54:27 +0200","identifier":"olasagasti","name":"Olasagasti
309
+ ","homepage":"","id":52}}'
310
+ http_version:
311
+ recorded_at: Sat, 05 May 2012 12:42:06 GMT
312
+ - request:
313
+ method: get
314
+ uri: http://code.welaika.com/projects/52.json?key=WELAIKA_TOKEN
315
+ body:
316
+ encoding: US-ASCII
317
+ string: ''
318
+ headers:
319
+ Accept:
320
+ - application/json
321
+ Accept-Encoding:
322
+ - gzip, deflate
323
+ Content-Type:
324
+ - application/json
325
+ User-Agent:
326
+ - Ruby
327
+ response:
328
+ status:
329
+ code: 200
330
+ message: OK
331
+ headers:
332
+ Date:
333
+ - Sat, 05 May 2012 12:42:06 GMT
334
+ Server:
335
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
336
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
337
+ X-Powered-By:
338
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
339
+ Etag:
340
+ - ! '"6e1b9b5ff1a1f8d0298b3d1e0fa4a4af"'
341
+ X-Runtime:
342
+ - '24'
343
+ Cache-Control:
344
+ - private, max-age=0, must-revalidate
345
+ Content-Length:
346
+ - '305'
347
+ Status:
348
+ - '200'
349
+ Content-Type:
350
+ - application/json; charset=utf-8
351
+ body:
352
+ encoding: US-ASCII
353
+ string: ! '{"project":{"parent":{"name":"Sites dev","id":32},"updated_on":"2011/09/20
354
+ 10:54:27 +0200","custom_fields":[{"value":"0","name":"Send Diff Emails","id":1}],"description":"Il
355
+ sito di Olasagasti","created_on":"2011/09/20 10:54:27 +0200","identifier":"olasagasti","name":"Olasagasti
356
+ ","homepage":"","id":52}}'
357
+ http_version:
358
+ recorded_at: Sat, 05 May 2012 12:42:06 GMT
359
+ - request:
360
+ method: get
361
+ uri: http://code.welaika.com/projects/101.json?key=WELAIKA_TOKEN
362
+ body:
363
+ encoding: US-ASCII
364
+ string: ''
365
+ headers:
366
+ Accept:
367
+ - application/json
368
+ Accept-Encoding:
369
+ - gzip, deflate
370
+ Content-Type:
371
+ - application/json
372
+ User-Agent:
373
+ - Ruby
374
+ response:
375
+ status:
376
+ code: 200
377
+ message: OK
378
+ headers:
379
+ Date:
380
+ - Sat, 05 May 2012 12:42:06 GMT
381
+ Server:
382
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
383
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
384
+ X-Powered-By:
385
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
386
+ Etag:
387
+ - ! '"d6285a3cb224ea4aeab8d914d70f4ffc"'
388
+ X-Runtime:
389
+ - '28'
390
+ Cache-Control:
391
+ - private, max-age=0, must-revalidate
392
+ Content-Length:
393
+ - '238'
394
+ Status:
395
+ - '200'
396
+ Content-Type:
397
+ - application/json; charset=utf-8
398
+ body:
399
+ encoding: US-ASCII
400
+ string: ! '{"project":{"updated_on":"2012/04/25 12:59:43 +0200","custom_fields":[{"value":"0","name":"Send
401
+ Diff Emails","id":1}],"description":"","created_on":"2012/04/25 12:59:43 +0200","identifier":"orchid","name":"Orchid","homepage":"","id":101}}'
402
+ http_version:
403
+ recorded_at: Sat, 05 May 2012 12:42:06 GMT
404
+ - request:
405
+ method: get
406
+ uri: http://code.welaika.com/projects/101.json?key=WELAIKA_TOKEN
407
+ body:
408
+ encoding: US-ASCII
409
+ string: ''
410
+ headers:
411
+ Accept:
412
+ - application/json
413
+ Accept-Encoding:
414
+ - gzip, deflate
415
+ Content-Type:
416
+ - application/json
417
+ User-Agent:
418
+ - Ruby
419
+ response:
420
+ status:
421
+ code: 200
422
+ message: OK
423
+ headers:
424
+ Date:
425
+ - Sat, 05 May 2012 12:42:06 GMT
426
+ Server:
427
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
428
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
429
+ X-Powered-By:
430
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
431
+ Etag:
432
+ - ! '"d6285a3cb224ea4aeab8d914d70f4ffc"'
433
+ X-Runtime:
434
+ - '184'
435
+ Cache-Control:
436
+ - private, max-age=0, must-revalidate
437
+ Content-Length:
438
+ - '238'
439
+ Status:
440
+ - '200'
441
+ Content-Type:
442
+ - application/json; charset=utf-8
443
+ body:
444
+ encoding: US-ASCII
445
+ string: ! '{"project":{"updated_on":"2012/04/25 12:59:43 +0200","custom_fields":[{"value":"0","name":"Send
446
+ Diff Emails","id":1}],"description":"","created_on":"2012/04/25 12:59:43 +0200","identifier":"orchid","name":"Orchid","homepage":"","id":101}}'
447
+ http_version:
448
+ recorded_at: Sat, 05 May 2012 12:42:07 GMT
449
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://code.welaika.com/time_entries.json?key=WELAIKA_TOKEN
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"time_entry":{"issue_id":3392,"spent_on":"2012-01-01","hours":0.001388888888888889,"comments":"Foobar"}}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '105'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Date:
26
+ - Sun, 13 May 2012 12:27:38 GMT
27
+ Server:
28
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9
29
+ OpenSSL/0.9.8g Phusion_Passenger/3.0.0
30
+ X-Powered-By:
31
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.0
32
+ X-Runtime:
33
+ - '80'
34
+ Cache-Control:
35
+ - no-cache
36
+ Set-Cookie:
37
+ - _redmine_session=BAh7BjoPc2Vzc2lvbl9pZCIlZmVlOTJlNzQ0NDQxZmQ1YjBhYzJhZDhlMmVkYjc3ODY%3D--be9fdcbbc0ed25d715650a2684f1a590641636a4;
38
+ path=/; HttpOnly
39
+ Location:
40
+ - http://code.welaika.com/time_entries/4015
41
+ Content-Length:
42
+ - '321'
43
+ Status:
44
+ - '201'
45
+ Content-Type:
46
+ - application/json; charset=utf-8
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ! '{"time_entry":{"spent_on":"2012/01/01","updated_on":"2012/05/13 14:27:38
50
+ +0200","activity":{"name":"Development","id":9},"user":{"name":"Stefano Verna","id":4},"created_on":"2012/05/13
51
+ 14:27:38 +0200","hours":0.00138888888888889,"comments":"Foobar","issue":{"id":3392},"id":4015,"project":{"name":"Olasagasti
52
+ ","id":52}}}'
53
+ http_version:
54
+ recorded_at: Sun, 13 May 2012 12:27:38 GMT
55
+ recorded_with: VCR 2.0.1