redbooth-ruby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +237 -20
- data/lib/redbooth-ruby.rb +10 -0
- data/lib/redbooth-ruby/base.rb +1 -1
- data/lib/redbooth-ruby/client.rb +9 -2
- data/lib/redbooth-ruby/client_operations/metadata.rb +32 -0
- data/lib/redbooth-ruby/client_operations/search.rb +32 -0
- data/lib/redbooth-ruby/comment.rb +34 -0
- data/lib/redbooth-ruby/file.rb +68 -0
- data/lib/redbooth-ruby/note.rb +25 -0
- data/lib/redbooth-ruby/operations/create.rb +1 -1
- data/lib/redbooth-ruby/operations/index.rb +0 -12
- data/lib/redbooth-ruby/operations/meta.rb +33 -2
- data/lib/redbooth-ruby/operations/show.rb +1 -1
- data/lib/redbooth-ruby/request/collection.rb +37 -5
- data/lib/redbooth-ruby/request/connection.rb +14 -8
- data/lib/redbooth-ruby/request/validator.rb +32 -4
- data/lib/redbooth-ruby/subtask.rb +18 -0
- data/lib/redbooth-ruby/task.rb +1 -1
- data/lib/redbooth-ruby/version.rb +1 -1
- data/redbooth-ruby.gemspec +1 -0
- data/spec/cassettes/RedboothRuby_ClientOperations_Metadata/_metadata/.yml +55 -0
- data/spec/cassettes/RedboothRuby_ClientOperations_Metadata/_metadata/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml +55 -0
- data/spec/cassettes/RedboothRuby_ClientOperations_Search/_index/.yml +271 -0
- data/spec/cassettes/RedboothRuby_ClientOperations_Search/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml +271 -0
- data/spec/cassettes/RedboothRuby_Comment/_create/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Comment/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_comment.yml +47 -0
- data/spec/cassettes/RedboothRuby_Comment/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml +84 -0
- data/spec/cassettes/RedboothRuby_Comment/_index/.yml +94 -0
- data/spec/cassettes/RedboothRuby_Comment/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml +94 -0
- data/spec/cassettes/RedboothRuby_Comment/_initialize/.yml +65 -0
- data/spec/cassettes/RedboothRuby_Comment/_show/.yml +65 -0
- data/spec/cassettes/RedboothRuby_Comment/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_comment.yml +65 -0
- data/spec/cassettes/RedboothRuby_Comment/_update/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Comment/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_comment.yml +47 -0
- data/spec/cassettes/RedboothRuby_File/_create/.yml +65 -0
- data/spec/cassettes/RedboothRuby_File/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_file.yml +65 -0
- data/spec/cassettes/RedboothRuby_File/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml +102 -0
- data/spec/cassettes/RedboothRuby_File/_index/.yml +58 -0
- data/spec/cassettes/RedboothRuby_File/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml +58 -0
- data/spec/cassettes/RedboothRuby_File/_initialize/.yml +44 -0
- data/spec/cassettes/RedboothRuby_File/_show/.yml +44 -0
- data/spec/cassettes/RedboothRuby_File/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_file.yml +44 -0
- data/spec/cassettes/RedboothRuby_File/_update/.yml +46 -0
- data/spec/cassettes/RedboothRuby_File/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_file.yml +46 -0
- data/spec/cassettes/RedboothRuby_Note/_create/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Note/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_note.yml +47 -0
- data/spec/cassettes/RedboothRuby_Note/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_note.yml +84 -0
- data/spec/cassettes/RedboothRuby_Note/_index/.yml +193 -0
- data/spec/cassettes/RedboothRuby_Note/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml +193 -0
- data/spec/cassettes/RedboothRuby_Note/_initialize/.yml +109 -0
- data/spec/cassettes/RedboothRuby_Note/_show/.yml +109 -0
- data/spec/cassettes/RedboothRuby_Note/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_note.yml +109 -0
- data/spec/cassettes/RedboothRuby_Note/_update/.yml +73 -0
- data/spec/cassettes/RedboothRuby_Note/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_note.yml +73 -0
- data/spec/cassettes/RedboothRuby_Subtask/_create/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Subtask/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_subtask.yml +47 -0
- data/spec/cassettes/RedboothRuby_Subtask/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_subtask.yml +84 -0
- data/spec/cassettes/RedboothRuby_Subtask/_index/.yml +99 -0
- data/spec/cassettes/RedboothRuby_Subtask/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_subtasks_collection.yml +99 -0
- data/spec/cassettes/RedboothRuby_Subtask/_initialize/.yml +45 -0
- data/spec/cassettes/RedboothRuby_Subtask/_show/.yml +45 -0
- data/spec/cassettes/RedboothRuby_Subtask/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_subtask.yml +45 -0
- data/spec/cassettes/RedboothRuby_Subtask/_update/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Subtask/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_subtask.yml +47 -0
- data/spec/cassettes/RedboothRuby_Task/_medatada/.yml +88 -0
- data/spec/cassettes/RedboothRuby_Task/_medatada/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +88 -0
- data/spec/cassettes/RedboothRuby_Task/_medatada_/.yml +90 -0
- data/spec/cassettes/RedboothRuby_Task/_medatada_/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +90 -0
- data/spec/cassettes/RedboothRuby_Task/_metadata_merge/.yml +133 -0
- data/spec/cassettes/RedboothRuby_Task/_metadata_merge/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +133 -0
- data/spec/redbooth-ruby/client_operations/metadata_spec.rb +24 -0
- data/spec/redbooth-ruby/client_operations/search_spec.rb +24 -0
- data/spec/redbooth-ruby/comment_spec.rb +87 -0
- data/spec/redbooth-ruby/file_spec.rb +89 -0
- data/spec/redbooth-ruby/note_spec.rb +84 -0
- data/spec/redbooth-ruby/subtaks_spec.rb +83 -0
- data/spec/redbooth-ruby/task_spec.rb +41 -0
- data/spec/spec_helper.rb +2 -0
- metadata +134 -2
@@ -0,0 +1,83 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe RedboothRuby::Subtask, vcr: 'subtasks' do
|
4
|
+
include_context 'authentication'
|
5
|
+
|
6
|
+
let(:create_params) do
|
7
|
+
{ task_id: 2,
|
8
|
+
name: 'new created subtask',
|
9
|
+
resolved: 'false' }
|
10
|
+
end
|
11
|
+
let(:new_record) { client.subtask(:create, create_params) }
|
12
|
+
let(:endpoint) { 'subtasks' }
|
13
|
+
let(:subtask) do
|
14
|
+
client.subtask(:show, id: 1)
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#initialize" do
|
18
|
+
subject { subtask }
|
19
|
+
|
20
|
+
it { expect(subject.id).to eql 1 }
|
21
|
+
it { expect(subject.name).to eql 'Perrea, perrea' }
|
22
|
+
it { expect(subject.task_id).to eql 1 }
|
23
|
+
it { expect(subject.resolved).to eql true }
|
24
|
+
end
|
25
|
+
|
26
|
+
describe ".show" do
|
27
|
+
subject { subtask }
|
28
|
+
|
29
|
+
it "makes a new GET request using the correct API endpoint to receive a specific subtask" do
|
30
|
+
expect(RedboothRuby).to receive(:request).with(:get, nil, "#{endpoint}/1", {}, { session: session }).and_call_original
|
31
|
+
subject
|
32
|
+
end
|
33
|
+
|
34
|
+
it { expect(subject.id).to eql 1 }
|
35
|
+
it { expect(subject.name).to eql 'Perrea, perrea' }
|
36
|
+
it { expect(subject.task_id).to eql 1 }
|
37
|
+
end
|
38
|
+
|
39
|
+
describe ".update" do
|
40
|
+
subject { client.subtask(:update, id: 2, name: 'new test name') }
|
41
|
+
|
42
|
+
it "makes a new PUT request using the correct API endpoint to receive a specific subtask" do
|
43
|
+
expect(RedboothRuby).to receive(:request).with(:put, nil, "#{endpoint}/2", { name: 'new test name' }, { session: session }).and_call_original
|
44
|
+
subject
|
45
|
+
end
|
46
|
+
|
47
|
+
it { expect(subject.name).to eql 'new test name' }
|
48
|
+
it { expect(subject.id).to eql 2 }
|
49
|
+
end
|
50
|
+
|
51
|
+
describe ".create" do
|
52
|
+
subject { new_record }
|
53
|
+
|
54
|
+
it "makes a new POST request using the correct API endpoint to create a specific subtask" do
|
55
|
+
expect(RedboothRuby).to receive(:request).with(:post, nil, endpoint, create_params, { session: session }).and_call_original
|
56
|
+
subject
|
57
|
+
end
|
58
|
+
|
59
|
+
it { expect(subject.name).to eql 'new created subtask' }
|
60
|
+
it { expect(subject.task_id).to eql 2 }
|
61
|
+
it { expect(subject.resolved).to eql false }
|
62
|
+
end
|
63
|
+
|
64
|
+
describe ".delete" do
|
65
|
+
subject { client.subtask(:delete, id: new_record.id) }
|
66
|
+
|
67
|
+
it "makes a new DELETE request using the correct API endpoint to delete a specific subtask" do
|
68
|
+
expect(RedboothRuby).to receive(:request).with(:delete, nil, "#{endpoint}/#{new_record.id}", {}, { session: session }).and_call_original
|
69
|
+
subject
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe ".index" do
|
74
|
+
subject { client.subtask(:index, task_id: 2) }
|
75
|
+
|
76
|
+
it "makes a new GET request using the correct API endpoint to receive subtasks collection" do
|
77
|
+
expect(RedboothRuby).to receive(:request).with(:get, nil, endpoint, { task_id: 2 }, { session: session }).and_call_original
|
78
|
+
subject
|
79
|
+
end
|
80
|
+
|
81
|
+
it { expect(subject.class).to eql RedboothRuby::Request::Collection }
|
82
|
+
end
|
83
|
+
end
|
@@ -87,4 +87,45 @@ describe RedboothRuby::Task, vcr: 'tasks' do
|
|
87
87
|
|
88
88
|
it { expect(subject.class).to eql RedboothRuby::Request::Collection }
|
89
89
|
end
|
90
|
+
|
91
|
+
describe '.medatada' do
|
92
|
+
subject { task.metadata }
|
93
|
+
|
94
|
+
it "makes a new PUT request using the correct API endpoint to receive a specific task" do
|
95
|
+
expect(RedboothRuby).to receive(:request).with(:get, nil, "metadata", { target_type: 'Task', target_id: task.id }, { session: session }).and_call_original
|
96
|
+
subject
|
97
|
+
end
|
98
|
+
|
99
|
+
it { expect(subject).to be_a Hash }
|
100
|
+
it { expect(subject).to be_empty }
|
101
|
+
end
|
102
|
+
|
103
|
+
describe '.medatada=' do
|
104
|
+
subject { task.metadata = { 'new' => 'metadata' } }
|
105
|
+
|
106
|
+
it "makes a new PUT request using the correct API endpoint to receive a specific task" do
|
107
|
+
expect(RedboothRuby).to receive(:request).with(:post, nil, "metadata", { target_type: 'Task', target_id: task.id, metadata: { 'new' => 'metadata' } }, { session: session }).and_call_original
|
108
|
+
subject
|
109
|
+
end
|
110
|
+
|
111
|
+
it { expect(subject).to be_a Hash }
|
112
|
+
it { expect(subject).to include 'new' }
|
113
|
+
it { expect(subject['new']).to eql 'metadata' }
|
114
|
+
end
|
115
|
+
|
116
|
+
describe '.metadata_merge' do
|
117
|
+
before { task.metadata = { 'new' => 'metadata', 'other' => 'value' } }
|
118
|
+
subject { task.metadata_merge( 'other' => 'updated_value') }
|
119
|
+
|
120
|
+
it "makes a new PUT request using the correct API endpoint to receive a specific task" do
|
121
|
+
expect(RedboothRuby).to receive(:request).with(:put, nil, "metadata", { target_type: 'Task', target_id: task.id, metadata: { 'other' => 'updated_value' } }, { session: session }).and_call_original
|
122
|
+
subject
|
123
|
+
end
|
124
|
+
|
125
|
+
it { expect(subject).to be_a Hash }
|
126
|
+
it { expect(subject).to include 'new' }
|
127
|
+
it { expect(subject).to include 'other' }
|
128
|
+
it { expect(subject['new']).to eql 'metadata' }
|
129
|
+
it { expect(subject['other']).to eql 'updated_value' }
|
130
|
+
end
|
90
131
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -8,6 +8,7 @@ require 'rspec'
|
|
8
8
|
require 'webmock/rspec'
|
9
9
|
require 'pry'
|
10
10
|
require 'vcr'
|
11
|
+
require 'rack/test'
|
11
12
|
|
12
13
|
# Requires support files
|
13
14
|
Dir[File.join(File.dirname(__FILE__), 'shared/**/*.rb')].each {|f| require f}
|
@@ -22,5 +23,6 @@ VCR.configure do |config|
|
|
22
23
|
end
|
23
24
|
|
24
25
|
RSpec.configure do |config|
|
26
|
+
config.include Rack::Test::Methods
|
25
27
|
config.extend VCR::RSpec::Macros
|
26
28
|
end
|
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.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andres Bravo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -109,6 +109,20 @@ dependencies:
|
|
109
109
|
- - '>='
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: rack-test
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
112
126
|
description: API wrapper for Redbooth.
|
113
127
|
email:
|
114
128
|
- support@redbooth.com
|
@@ -126,9 +140,14 @@ files:
|
|
126
140
|
- lib/redbooth-ruby.rb
|
127
141
|
- lib/redbooth-ruby/base.rb
|
128
142
|
- lib/redbooth-ruby/client.rb
|
143
|
+
- lib/redbooth-ruby/client_operations/metadata.rb
|
144
|
+
- lib/redbooth-ruby/client_operations/search.rb
|
145
|
+
- lib/redbooth-ruby/comment.rb
|
129
146
|
- lib/redbooth-ruby/conversation.rb
|
147
|
+
- lib/redbooth-ruby/file.rb
|
130
148
|
- lib/redbooth-ruby/me.rb
|
131
149
|
- lib/redbooth-ruby/membership.rb
|
150
|
+
- lib/redbooth-ruby/note.rb
|
132
151
|
- lib/redbooth-ruby/operations/base.rb
|
133
152
|
- lib/redbooth-ruby/operations/create.rb
|
134
153
|
- lib/redbooth-ruby/operations/delete.rb
|
@@ -147,10 +166,25 @@ files:
|
|
147
166
|
- lib/redbooth-ruby/request/response.rb
|
148
167
|
- lib/redbooth-ruby/request/validator.rb
|
149
168
|
- lib/redbooth-ruby/session.rb
|
169
|
+
- lib/redbooth-ruby/subtask.rb
|
150
170
|
- lib/redbooth-ruby/task.rb
|
151
171
|
- lib/redbooth-ruby/user.rb
|
152
172
|
- lib/redbooth-ruby/version.rb
|
153
173
|
- redbooth-ruby.gemspec
|
174
|
+
- spec/cassettes/RedboothRuby_ClientOperations_Metadata/_metadata/.yml
|
175
|
+
- spec/cassettes/RedboothRuby_ClientOperations_Metadata/_metadata/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml
|
176
|
+
- spec/cassettes/RedboothRuby_ClientOperations_Search/_index/.yml
|
177
|
+
- spec/cassettes/RedboothRuby_ClientOperations_Search/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml
|
178
|
+
- spec/cassettes/RedboothRuby_Comment/_create/.yml
|
179
|
+
- spec/cassettes/RedboothRuby_Comment/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_comment.yml
|
180
|
+
- spec/cassettes/RedboothRuby_Comment/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml
|
181
|
+
- spec/cassettes/RedboothRuby_Comment/_index/.yml
|
182
|
+
- spec/cassettes/RedboothRuby_Comment/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml
|
183
|
+
- spec/cassettes/RedboothRuby_Comment/_initialize/.yml
|
184
|
+
- spec/cassettes/RedboothRuby_Comment/_show/.yml
|
185
|
+
- spec/cassettes/RedboothRuby_Comment/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_comment.yml
|
186
|
+
- spec/cassettes/RedboothRuby_Comment/_update/.yml
|
187
|
+
- spec/cassettes/RedboothRuby_Comment/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_comment.yml
|
154
188
|
- spec/cassettes/RedboothRuby_Conversation/_create/.yml
|
155
189
|
- spec/cassettes/RedboothRuby_Conversation/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_conversation.yml
|
156
190
|
- spec/cassettes/RedboothRuby_Conversation/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_conversation.yml
|
@@ -161,6 +195,16 @@ files:
|
|
161
195
|
- spec/cassettes/RedboothRuby_Conversation/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml
|
162
196
|
- spec/cassettes/RedboothRuby_Conversation/_update/.yml
|
163
197
|
- spec/cassettes/RedboothRuby_Conversation/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml
|
198
|
+
- spec/cassettes/RedboothRuby_File/_create/.yml
|
199
|
+
- spec/cassettes/RedboothRuby_File/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_file.yml
|
200
|
+
- spec/cassettes/RedboothRuby_File/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml
|
201
|
+
- spec/cassettes/RedboothRuby_File/_index/.yml
|
202
|
+
- spec/cassettes/RedboothRuby_File/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml
|
203
|
+
- spec/cassettes/RedboothRuby_File/_initialize/.yml
|
204
|
+
- spec/cassettes/RedboothRuby_File/_show/.yml
|
205
|
+
- spec/cassettes/RedboothRuby_File/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_file.yml
|
206
|
+
- spec/cassettes/RedboothRuby_File/_update/.yml
|
207
|
+
- spec/cassettes/RedboothRuby_File/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_file.yml
|
164
208
|
- spec/cassettes/RedboothRuby_Me/_initialize/.yml
|
165
209
|
- spec/cassettes/RedboothRuby_Me/_show/.yml
|
166
210
|
- spec/cassettes/RedboothRuby_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
|
@@ -175,6 +219,16 @@ files:
|
|
175
219
|
- spec/cassettes/RedboothRuby_Membership/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
176
220
|
- spec/cassettes/RedboothRuby_Membership/_update/.yml
|
177
221
|
- spec/cassettes/RedboothRuby_Membership/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
222
|
+
- spec/cassettes/RedboothRuby_Note/_create/.yml
|
223
|
+
- spec/cassettes/RedboothRuby_Note/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_note.yml
|
224
|
+
- spec/cassettes/RedboothRuby_Note/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_note.yml
|
225
|
+
- spec/cassettes/RedboothRuby_Note/_index/.yml
|
226
|
+
- spec/cassettes/RedboothRuby_Note/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml
|
227
|
+
- spec/cassettes/RedboothRuby_Note/_initialize/.yml
|
228
|
+
- spec/cassettes/RedboothRuby_Note/_show/.yml
|
229
|
+
- spec/cassettes/RedboothRuby_Note/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_note.yml
|
230
|
+
- spec/cassettes/RedboothRuby_Note/_update/.yml
|
231
|
+
- spec/cassettes/RedboothRuby_Note/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_note.yml
|
178
232
|
- spec/cassettes/RedboothRuby_Organization/_create/.yml
|
179
233
|
- spec/cassettes/RedboothRuby_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml
|
180
234
|
- spec/cassettes/RedboothRuby_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml
|
@@ -220,12 +274,28 @@ files:
|
|
220
274
|
- spec/cassettes/RedboothRuby_Request_Collection/_prev_page/where_is_the_first_page/.yml
|
221
275
|
- spec/cassettes/RedboothRuby_Request_Collection/_total_pages/.yml
|
222
276
|
- spec/cassettes/RedboothRuby_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
|
277
|
+
- spec/cassettes/RedboothRuby_Subtask/_create/.yml
|
278
|
+
- spec/cassettes/RedboothRuby_Subtask/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_subtask.yml
|
279
|
+
- spec/cassettes/RedboothRuby_Subtask/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_subtask.yml
|
280
|
+
- spec/cassettes/RedboothRuby_Subtask/_index/.yml
|
281
|
+
- spec/cassettes/RedboothRuby_Subtask/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_subtasks_collection.yml
|
282
|
+
- spec/cassettes/RedboothRuby_Subtask/_initialize/.yml
|
283
|
+
- spec/cassettes/RedboothRuby_Subtask/_show/.yml
|
284
|
+
- spec/cassettes/RedboothRuby_Subtask/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_subtask.yml
|
285
|
+
- spec/cassettes/RedboothRuby_Subtask/_update/.yml
|
286
|
+
- spec/cassettes/RedboothRuby_Subtask/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_subtask.yml
|
223
287
|
- spec/cassettes/RedboothRuby_Task/_create/.yml
|
224
288
|
- spec/cassettes/RedboothRuby_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
|
225
289
|
- spec/cassettes/RedboothRuby_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
|
226
290
|
- spec/cassettes/RedboothRuby_Task/_index/.yml
|
227
291
|
- spec/cassettes/RedboothRuby_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
228
292
|
- spec/cassettes/RedboothRuby_Task/_initialize/.yml
|
293
|
+
- spec/cassettes/RedboothRuby_Task/_medatada/.yml
|
294
|
+
- spec/cassettes/RedboothRuby_Task/_medatada/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
295
|
+
- spec/cassettes/RedboothRuby_Task/_medatada_/.yml
|
296
|
+
- spec/cassettes/RedboothRuby_Task/_medatada_/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
297
|
+
- spec/cassettes/RedboothRuby_Task/_metadata_merge/.yml
|
298
|
+
- spec/cassettes/RedboothRuby_Task/_metadata_merge/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
229
299
|
- spec/cassettes/RedboothRuby_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
230
300
|
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_assigned_id.yml
|
231
301
|
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_id.yml
|
@@ -268,10 +338,15 @@ files:
|
|
268
338
|
- spec/cassettes/RedboothRuby_User/_update/name/.yml
|
269
339
|
- spec/fixtures/hola.txt
|
270
340
|
- spec/redbooth-ruby/base_spec.rb
|
341
|
+
- spec/redbooth-ruby/client_operations/metadata_spec.rb
|
342
|
+
- spec/redbooth-ruby/client_operations/search_spec.rb
|
271
343
|
- spec/redbooth-ruby/client_spec.rb
|
344
|
+
- spec/redbooth-ruby/comment_spec.rb
|
272
345
|
- spec/redbooth-ruby/conversation_spec.rb
|
346
|
+
- spec/redbooth-ruby/file_spec.rb
|
273
347
|
- spec/redbooth-ruby/me_spec.rb
|
274
348
|
- spec/redbooth-ruby/membership_spec.rb
|
349
|
+
- spec/redbooth-ruby/note_spec.rb
|
275
350
|
- spec/redbooth-ruby/organization_spec.rb
|
276
351
|
- spec/redbooth-ruby/person_spec.rb
|
277
352
|
- spec/redbooth-ruby/project_spec.rb
|
@@ -281,6 +356,7 @@ files:
|
|
281
356
|
- spec/redbooth-ruby/request/info_spec.rb
|
282
357
|
- spec/redbooth-ruby/request/response_spec.rb
|
283
358
|
- spec/redbooth-ruby/request/validator_spec.rb
|
359
|
+
- spec/redbooth-ruby/subtaks_spec.rb
|
284
360
|
- spec/redbooth-ruby/task_spec.rb
|
285
361
|
- spec/redbooth-ruby/user_spec.rb
|
286
362
|
- spec/redbooth_spec.rb
|
@@ -310,6 +386,20 @@ signing_key:
|
|
310
386
|
specification_version: 4
|
311
387
|
summary: API wrapper for Redbooth.
|
312
388
|
test_files:
|
389
|
+
- spec/cassettes/RedboothRuby_ClientOperations_Metadata/_metadata/.yml
|
390
|
+
- spec/cassettes/RedboothRuby_ClientOperations_Metadata/_metadata/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml
|
391
|
+
- spec/cassettes/RedboothRuby_ClientOperations_Search/_index/.yml
|
392
|
+
- spec/cassettes/RedboothRuby_ClientOperations_Search/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml
|
393
|
+
- spec/cassettes/RedboothRuby_Comment/_create/.yml
|
394
|
+
- spec/cassettes/RedboothRuby_Comment/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_comment.yml
|
395
|
+
- spec/cassettes/RedboothRuby_Comment/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml
|
396
|
+
- spec/cassettes/RedboothRuby_Comment/_index/.yml
|
397
|
+
- spec/cassettes/RedboothRuby_Comment/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml
|
398
|
+
- spec/cassettes/RedboothRuby_Comment/_initialize/.yml
|
399
|
+
- spec/cassettes/RedboothRuby_Comment/_show/.yml
|
400
|
+
- spec/cassettes/RedboothRuby_Comment/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_comment.yml
|
401
|
+
- spec/cassettes/RedboothRuby_Comment/_update/.yml
|
402
|
+
- spec/cassettes/RedboothRuby_Comment/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_comment.yml
|
313
403
|
- spec/cassettes/RedboothRuby_Conversation/_create/.yml
|
314
404
|
- spec/cassettes/RedboothRuby_Conversation/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_conversation.yml
|
315
405
|
- spec/cassettes/RedboothRuby_Conversation/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_conversation.yml
|
@@ -320,6 +410,16 @@ test_files:
|
|
320
410
|
- spec/cassettes/RedboothRuby_Conversation/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml
|
321
411
|
- spec/cassettes/RedboothRuby_Conversation/_update/.yml
|
322
412
|
- spec/cassettes/RedboothRuby_Conversation/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml
|
413
|
+
- spec/cassettes/RedboothRuby_File/_create/.yml
|
414
|
+
- spec/cassettes/RedboothRuby_File/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_file.yml
|
415
|
+
- spec/cassettes/RedboothRuby_File/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml
|
416
|
+
- spec/cassettes/RedboothRuby_File/_index/.yml
|
417
|
+
- spec/cassettes/RedboothRuby_File/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml
|
418
|
+
- spec/cassettes/RedboothRuby_File/_initialize/.yml
|
419
|
+
- spec/cassettes/RedboothRuby_File/_show/.yml
|
420
|
+
- spec/cassettes/RedboothRuby_File/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_file.yml
|
421
|
+
- spec/cassettes/RedboothRuby_File/_update/.yml
|
422
|
+
- spec/cassettes/RedboothRuby_File/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_file.yml
|
323
423
|
- spec/cassettes/RedboothRuby_Me/_initialize/.yml
|
324
424
|
- spec/cassettes/RedboothRuby_Me/_show/.yml
|
325
425
|
- spec/cassettes/RedboothRuby_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
|
@@ -334,6 +434,16 @@ test_files:
|
|
334
434
|
- spec/cassettes/RedboothRuby_Membership/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
335
435
|
- spec/cassettes/RedboothRuby_Membership/_update/.yml
|
336
436
|
- spec/cassettes/RedboothRuby_Membership/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
437
|
+
- spec/cassettes/RedboothRuby_Note/_create/.yml
|
438
|
+
- spec/cassettes/RedboothRuby_Note/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_note.yml
|
439
|
+
- spec/cassettes/RedboothRuby_Note/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_note.yml
|
440
|
+
- spec/cassettes/RedboothRuby_Note/_index/.yml
|
441
|
+
- spec/cassettes/RedboothRuby_Note/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml
|
442
|
+
- spec/cassettes/RedboothRuby_Note/_initialize/.yml
|
443
|
+
- spec/cassettes/RedboothRuby_Note/_show/.yml
|
444
|
+
- spec/cassettes/RedboothRuby_Note/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_note.yml
|
445
|
+
- spec/cassettes/RedboothRuby_Note/_update/.yml
|
446
|
+
- spec/cassettes/RedboothRuby_Note/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_note.yml
|
337
447
|
- spec/cassettes/RedboothRuby_Organization/_create/.yml
|
338
448
|
- spec/cassettes/RedboothRuby_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml
|
339
449
|
- spec/cassettes/RedboothRuby_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml
|
@@ -379,12 +489,28 @@ test_files:
|
|
379
489
|
- spec/cassettes/RedboothRuby_Request_Collection/_prev_page/where_is_the_first_page/.yml
|
380
490
|
- spec/cassettes/RedboothRuby_Request_Collection/_total_pages/.yml
|
381
491
|
- spec/cassettes/RedboothRuby_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
|
492
|
+
- spec/cassettes/RedboothRuby_Subtask/_create/.yml
|
493
|
+
- spec/cassettes/RedboothRuby_Subtask/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_subtask.yml
|
494
|
+
- spec/cassettes/RedboothRuby_Subtask/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_subtask.yml
|
495
|
+
- spec/cassettes/RedboothRuby_Subtask/_index/.yml
|
496
|
+
- spec/cassettes/RedboothRuby_Subtask/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_subtasks_collection.yml
|
497
|
+
- spec/cassettes/RedboothRuby_Subtask/_initialize/.yml
|
498
|
+
- spec/cassettes/RedboothRuby_Subtask/_show/.yml
|
499
|
+
- spec/cassettes/RedboothRuby_Subtask/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_subtask.yml
|
500
|
+
- spec/cassettes/RedboothRuby_Subtask/_update/.yml
|
501
|
+
- spec/cassettes/RedboothRuby_Subtask/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_subtask.yml
|
382
502
|
- spec/cassettes/RedboothRuby_Task/_create/.yml
|
383
503
|
- spec/cassettes/RedboothRuby_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
|
384
504
|
- spec/cassettes/RedboothRuby_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
|
385
505
|
- spec/cassettes/RedboothRuby_Task/_index/.yml
|
386
506
|
- spec/cassettes/RedboothRuby_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
387
507
|
- spec/cassettes/RedboothRuby_Task/_initialize/.yml
|
508
|
+
- spec/cassettes/RedboothRuby_Task/_medatada/.yml
|
509
|
+
- spec/cassettes/RedboothRuby_Task/_medatada/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
510
|
+
- spec/cassettes/RedboothRuby_Task/_medatada_/.yml
|
511
|
+
- spec/cassettes/RedboothRuby_Task/_medatada_/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
512
|
+
- spec/cassettes/RedboothRuby_Task/_metadata_merge/.yml
|
513
|
+
- spec/cassettes/RedboothRuby_Task/_metadata_merge/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
388
514
|
- spec/cassettes/RedboothRuby_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
389
515
|
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_assigned_id.yml
|
390
516
|
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_id.yml
|
@@ -427,10 +553,15 @@ test_files:
|
|
427
553
|
- spec/cassettes/RedboothRuby_User/_update/name/.yml
|
428
554
|
- spec/fixtures/hola.txt
|
429
555
|
- spec/redbooth-ruby/base_spec.rb
|
556
|
+
- spec/redbooth-ruby/client_operations/metadata_spec.rb
|
557
|
+
- spec/redbooth-ruby/client_operations/search_spec.rb
|
430
558
|
- spec/redbooth-ruby/client_spec.rb
|
559
|
+
- spec/redbooth-ruby/comment_spec.rb
|
431
560
|
- spec/redbooth-ruby/conversation_spec.rb
|
561
|
+
- spec/redbooth-ruby/file_spec.rb
|
432
562
|
- spec/redbooth-ruby/me_spec.rb
|
433
563
|
- spec/redbooth-ruby/membership_spec.rb
|
564
|
+
- spec/redbooth-ruby/note_spec.rb
|
434
565
|
- spec/redbooth-ruby/organization_spec.rb
|
435
566
|
- spec/redbooth-ruby/person_spec.rb
|
436
567
|
- spec/redbooth-ruby/project_spec.rb
|
@@ -440,6 +571,7 @@ test_files:
|
|
440
571
|
- spec/redbooth-ruby/request/info_spec.rb
|
441
572
|
- spec/redbooth-ruby/request/response_spec.rb
|
442
573
|
- spec/redbooth-ruby/request/validator_spec.rb
|
574
|
+
- spec/redbooth-ruby/subtaks_spec.rb
|
443
575
|
- spec/redbooth-ruby/task_spec.rb
|
444
576
|
- spec/redbooth-ruby/user_spec.rb
|
445
577
|
- spec/redbooth_spec.rb
|