redbooth-ruby 0.0.5 → 0.1.0

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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +0 -1
  4. data/README.md +187 -115
  5. data/lib/redbooth-ruby/client.rb +6 -39
  6. data/lib/redbooth-ruby/client_operations/perform.rb +93 -0
  7. data/lib/redbooth-ruby/file.rb +8 -0
  8. data/lib/redbooth-ruby/helpers.rb +32 -0
  9. data/lib/redbooth-ruby/operations/base.rb +3 -2
  10. data/lib/redbooth-ruby/request/collection.rb +3 -2
  11. data/lib/redbooth-ruby/request/connection.rb +66 -30
  12. data/lib/redbooth-ruby/request/helpers.rb +2 -2
  13. data/lib/redbooth-ruby/request/info.rb +1 -1
  14. data/lib/redbooth-ruby/request/validator.rb +2 -2
  15. data/lib/redbooth-ruby/session.rb +34 -11
  16. data/lib/redbooth-ruby/task_list.rb +28 -0
  17. data/lib/redbooth-ruby/version.rb +2 -2
  18. data/lib/redbooth-ruby.rb +6 -3
  19. data/spec/cassettes/RedboothRuby_File/_download/downloads_a_file.yml +354 -0
  20. data/spec/cassettes/RedboothRuby_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml +4 -4
  21. data/spec/cassettes/RedboothRuby_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml +110 -110
  22. data/spec/cassettes/RedboothRuby_Session/_refresh_access_token_/.yml +55 -0
  23. data/spec/cassettes/RedboothRuby_Session/_refresh_access_token_/call_on_token_refresh_with_the_old_and_new_token.yml +55 -0
  24. data/spec/cassettes/RedboothRuby_Session/_refresh_access_token_/refreshes_the_access_token.yml +55 -0
  25. data/spec/redbooth-ruby/base_spec.rb +5 -5
  26. data/spec/redbooth-ruby/client_operations/metadata_spec.rb +4 -4
  27. data/spec/redbooth-ruby/client_operations/perform_spec.rb +135 -0
  28. data/spec/redbooth-ruby/client_operations/search_spec.rb +4 -4
  29. data/spec/redbooth-ruby/client_spec.rb +2 -43
  30. data/spec/redbooth-ruby/comment_spec.rb +17 -18
  31. data/spec/redbooth-ruby/conversation_spec.rb +16 -16
  32. data/spec/redbooth-ruby/file_spec.rb +29 -22
  33. data/spec/redbooth-ruby/me_spec.rb +2 -2
  34. data/spec/redbooth-ruby/membership_spec.rb +18 -18
  35. data/spec/redbooth-ruby/note_spec.rb +16 -16
  36. data/spec/redbooth-ruby/organization_spec.rb +16 -16
  37. data/spec/redbooth-ruby/person_spec.rb +18 -18
  38. data/spec/redbooth-ruby/project_spec.rb +18 -18
  39. data/spec/redbooth-ruby/request/base_spec.rb +5 -5
  40. data/spec/redbooth-ruby/request/collection_spec.rb +3 -3
  41. data/spec/redbooth-ruby/request/connection_spec.rb +8 -8
  42. data/spec/redbooth-ruby/request/info_spec.rb +13 -13
  43. data/spec/redbooth-ruby/request/response_spec.rb +4 -4
  44. data/spec/redbooth-ruby/request/validator_spec.rb +7 -7
  45. data/spec/redbooth-ruby/session_spec.rb +100 -0
  46. data/spec/redbooth-ruby/subtaks_spec.rb +16 -16
  47. data/spec/redbooth-ruby/task_spec.rb +22 -22
  48. data/spec/redbooth-ruby/user_spec.rb +4 -4
  49. data/spec/redbooth_spec.rb +13 -13
  50. data/spec/spec_helper.rb +2 -3
  51. data/temp/spec/files/test_download.txt +8 -0
  52. metadata +41 -24
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redbooth-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andres Bravo
@@ -9,118 +9,118 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-19 00:00:00.000000000 Z
12
+ date: 2015-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 1.8.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 1.8.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: oauth2
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: 0.9.3
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: 0.9.3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: multipart-post
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: 1.1.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: 1.1.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rspec
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: pry
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: vcr
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '>='
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: fakeweb
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - '>='
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: rack-test
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  description: API wrapper for Redbooth.
@@ -130,9 +130,9 @@ executables: []
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
- - .gitignore
134
- - .rspec
135
- - .travis.yml
133
+ - ".gitignore"
134
+ - ".rspec"
135
+ - ".travis.yml"
136
136
  - Gemfile
137
137
  - LICENSE
138
138
  - README.md
@@ -141,10 +141,12 @@ files:
141
141
  - lib/redbooth-ruby/base.rb
142
142
  - lib/redbooth-ruby/client.rb
143
143
  - lib/redbooth-ruby/client_operations/metadata.rb
144
+ - lib/redbooth-ruby/client_operations/perform.rb
144
145
  - lib/redbooth-ruby/client_operations/search.rb
145
146
  - lib/redbooth-ruby/comment.rb
146
147
  - lib/redbooth-ruby/conversation.rb
147
148
  - lib/redbooth-ruby/file.rb
149
+ - lib/redbooth-ruby/helpers.rb
148
150
  - lib/redbooth-ruby/me.rb
149
151
  - lib/redbooth-ruby/membership.rb
150
152
  - lib/redbooth-ruby/note.rb
@@ -168,6 +170,7 @@ files:
168
170
  - lib/redbooth-ruby/session.rb
169
171
  - lib/redbooth-ruby/subtask.rb
170
172
  - lib/redbooth-ruby/task.rb
173
+ - lib/redbooth-ruby/task_list.rb
171
174
  - lib/redbooth-ruby/user.rb
172
175
  - lib/redbooth-ruby/version.rb
173
176
  - redbooth-ruby.gemspec
@@ -198,6 +201,7 @@ files:
198
201
  - spec/cassettes/RedboothRuby_File/_create/.yml
199
202
  - spec/cassettes/RedboothRuby_File/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_file.yml
200
203
  - spec/cassettes/RedboothRuby_File/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml
204
+ - spec/cassettes/RedboothRuby_File/_download/downloads_a_file.yml
201
205
  - spec/cassettes/RedboothRuby_File/_index/.yml
202
206
  - spec/cassettes/RedboothRuby_File/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml
203
207
  - spec/cassettes/RedboothRuby_File/_initialize/.yml
@@ -274,6 +278,9 @@ files:
274
278
  - spec/cassettes/RedboothRuby_Request_Collection/_prev_page/where_is_the_first_page/.yml
275
279
  - spec/cassettes/RedboothRuby_Request_Collection/_total_pages/.yml
276
280
  - spec/cassettes/RedboothRuby_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
281
+ - spec/cassettes/RedboothRuby_Session/_refresh_access_token_/.yml
282
+ - spec/cassettes/RedboothRuby_Session/_refresh_access_token_/call_on_token_refresh_with_the_old_and_new_token.yml
283
+ - spec/cassettes/RedboothRuby_Session/_refresh_access_token_/refreshes_the_access_token.yml
277
284
  - spec/cassettes/RedboothRuby_Subtask/_create/.yml
278
285
  - spec/cassettes/RedboothRuby_Subtask/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_subtask.yml
279
286
  - spec/cassettes/RedboothRuby_Subtask/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_subtask.yml
@@ -339,6 +346,7 @@ files:
339
346
  - spec/fixtures/hola.txt
340
347
  - spec/redbooth-ruby/base_spec.rb
341
348
  - spec/redbooth-ruby/client_operations/metadata_spec.rb
349
+ - spec/redbooth-ruby/client_operations/perform_spec.rb
342
350
  - spec/redbooth-ruby/client_operations/search_spec.rb
343
351
  - spec/redbooth-ruby/client_spec.rb
344
352
  - spec/redbooth-ruby/comment_spec.rb
@@ -356,12 +364,14 @@ files:
356
364
  - spec/redbooth-ruby/request/info_spec.rb
357
365
  - spec/redbooth-ruby/request/response_spec.rb
358
366
  - spec/redbooth-ruby/request/validator_spec.rb
367
+ - spec/redbooth-ruby/session_spec.rb
359
368
  - spec/redbooth-ruby/subtaks_spec.rb
360
369
  - spec/redbooth-ruby/task_spec.rb
361
370
  - spec/redbooth-ruby/user_spec.rb
362
371
  - spec/redbooth_spec.rb
363
372
  - spec/shared/authentication_context.rb
364
373
  - spec/spec_helper.rb
374
+ - temp/spec/files/test_download.txt
365
375
  homepage: https://github.com/teambox/redbooth-ruby
366
376
  licenses: []
367
377
  metadata: {}
@@ -371,17 +381,17 @@ require_paths:
371
381
  - lib
372
382
  required_ruby_version: !ruby/object:Gem::Requirement
373
383
  requirements:
374
- - - '>='
384
+ - - ">="
375
385
  - !ruby/object:Gem::Version
376
386
  version: 1.9.3
377
387
  required_rubygems_version: !ruby/object:Gem::Requirement
378
388
  requirements:
379
- - - '>='
389
+ - - ">="
380
390
  - !ruby/object:Gem::Version
381
391
  version: '0'
382
392
  requirements: []
383
393
  rubyforge_project:
384
- rubygems_version: 2.0.6
394
+ rubygems_version: 2.4.1
385
395
  signing_key:
386
396
  specification_version: 4
387
397
  summary: API wrapper for Redbooth.
@@ -413,6 +423,7 @@ test_files:
413
423
  - spec/cassettes/RedboothRuby_File/_create/.yml
414
424
  - spec/cassettes/RedboothRuby_File/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_file.yml
415
425
  - spec/cassettes/RedboothRuby_File/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml
426
+ - spec/cassettes/RedboothRuby_File/_download/downloads_a_file.yml
416
427
  - spec/cassettes/RedboothRuby_File/_index/.yml
417
428
  - spec/cassettes/RedboothRuby_File/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml
418
429
  - spec/cassettes/RedboothRuby_File/_initialize/.yml
@@ -489,6 +500,9 @@ test_files:
489
500
  - spec/cassettes/RedboothRuby_Request_Collection/_prev_page/where_is_the_first_page/.yml
490
501
  - spec/cassettes/RedboothRuby_Request_Collection/_total_pages/.yml
491
502
  - spec/cassettes/RedboothRuby_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
503
+ - spec/cassettes/RedboothRuby_Session/_refresh_access_token_/.yml
504
+ - spec/cassettes/RedboothRuby_Session/_refresh_access_token_/call_on_token_refresh_with_the_old_and_new_token.yml
505
+ - spec/cassettes/RedboothRuby_Session/_refresh_access_token_/refreshes_the_access_token.yml
492
506
  - spec/cassettes/RedboothRuby_Subtask/_create/.yml
493
507
  - spec/cassettes/RedboothRuby_Subtask/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_subtask.yml
494
508
  - spec/cassettes/RedboothRuby_Subtask/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_subtask.yml
@@ -554,6 +568,7 @@ test_files:
554
568
  - spec/fixtures/hola.txt
555
569
  - spec/redbooth-ruby/base_spec.rb
556
570
  - spec/redbooth-ruby/client_operations/metadata_spec.rb
571
+ - spec/redbooth-ruby/client_operations/perform_spec.rb
557
572
  - spec/redbooth-ruby/client_operations/search_spec.rb
558
573
  - spec/redbooth-ruby/client_spec.rb
559
574
  - spec/redbooth-ruby/comment_spec.rb
@@ -571,9 +586,11 @@ test_files:
571
586
  - spec/redbooth-ruby/request/info_spec.rb
572
587
  - spec/redbooth-ruby/request/response_spec.rb
573
588
  - spec/redbooth-ruby/request/validator_spec.rb
589
+ - spec/redbooth-ruby/session_spec.rb
574
590
  - spec/redbooth-ruby/subtaks_spec.rb
575
591
  - spec/redbooth-ruby/task_spec.rb
576
592
  - spec/redbooth-ruby/user_spec.rb
577
593
  - spec/redbooth_spec.rb
578
594
  - spec/shared/authentication_context.rb
579
595
  - spec/spec_helper.rb
596
+ has_rdoc: