dock_health_api 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +59 -0
- data/LICENSE +201 -0
- data/README.md +701 -0
- data/Rakefile +10 -0
- data/bin/console +22 -0
- data/bin/setup +6 -0
- data/dock_health_api.gemspec +39 -0
- data/lib/dock_health_api/client.rb +27 -0
- data/lib/dock_health_api/config.rb +9 -0
- data/lib/dock_health_api/crud/create.rb +14 -0
- data/lib/dock_health_api/crud/delete.rb +12 -0
- data/lib/dock_health_api/crud/get.rb +11 -0
- data/lib/dock_health_api/crud/list.rb +19 -0
- data/lib/dock_health_api/crud/put.rb +15 -0
- data/lib/dock_health_api/crud/update.rb +21 -0
- data/lib/dock_health_api/object.rb +19 -0
- data/lib/dock_health_api/resource.rb +33 -0
- data/lib/dock_health_api/resources/customfield.rb +20 -0
- data/lib/dock_health_api/resources/developer.rb +5 -0
- data/lib/dock_health_api/resources/organization.rb +15 -0
- data/lib/dock_health_api/resources/patient.rb +9 -0
- data/lib/dock_health_api/resources/task.rb +22 -0
- data/lib/dock_health_api/resources/tasklist.rb +21 -0
- data/lib/dock_health_api/resources/user.rb +9 -0
- data/lib/dock_health_api/resources/webhook.rb +14 -0
- data/lib/dock_health_api/version.rb +3 -0
- data/lib/dock_health_api.rb +47 -0
- data/spec/client_spec.rb +35 -0
- data/spec/customfield_spec.rb +53 -0
- data/spec/developer_spec.rb +13 -0
- data/spec/dock_health_api_spec.rb +5 -0
- data/spec/organization.rb +58 -0
- data/spec/patient_spec.rb +59 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/task_group_spec.rb +70 -0
- data/spec/task_spec.rb +65 -0
- data/spec/tasklist_spec.rb +80 -0
- data/spec/tasklist_user_spec.rb +62 -0
- data/spec/user_spec.rb +60 -0
- data/spec/webhook_spec.rb +117 -0
- metadata +156 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require "bundler/setup"
|
2
|
+
require "dock_health_api"
|
3
|
+
require "dotenv/load"
|
4
|
+
require "pry"
|
5
|
+
|
6
|
+
Dotenv.load
|
7
|
+
|
8
|
+
|
9
|
+
RSpec.configure do |config|
|
10
|
+
# Enable flags like --only-failures and --next-failure
|
11
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
12
|
+
|
13
|
+
# Disable RSpec exposing methods globally on `Module` and `main`
|
14
|
+
config.disable_monkey_patching!
|
15
|
+
|
16
|
+
config.expect_with :rspec do |c|
|
17
|
+
c.syntax = :expect
|
18
|
+
end
|
19
|
+
|
20
|
+
DockHealthApi.api_key = ENV["DOCK_HEALTH_KEY"]
|
21
|
+
DockHealthApi.api_secret = ENV["DOCK_HEALTH_SECRET"]
|
22
|
+
DockHealthApi.resource_url = ENV["DOCK_HEALTH_URL"]
|
23
|
+
DockHealthApi.org_id = ENV["DOCK_ORG"]
|
24
|
+
DockHealthApi.user_id = ENV["DOCK_USER"]
|
25
|
+
DockHealthApi.api = ENV["DOCK_HEALTH_API"]
|
26
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
require 'dock_health_api'
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
RSpec.describe DockHealthApi::Task::Group do
|
5
|
+
let(:tasklistid) { DockHealthApi::TaskList.list.last["id"] }
|
6
|
+
let(:params) {{ groupName: "test foobar", taskList: { type: "DEVELOPER", id: tasklistid } }}
|
7
|
+
id = ""
|
8
|
+
|
9
|
+
describe "#create" do
|
10
|
+
context "create new task group" do
|
11
|
+
it "should create new task group" do
|
12
|
+
initial_count = DockHealthApi::Task::Group.list(taskListIdentifier: tasklistid).count
|
13
|
+
response = DockHealthApi::Task::Group.create(params)
|
14
|
+
final_count = DockHealthApi::Task::Group.list(taskListIdentifier: tasklistid).count
|
15
|
+
expect(response["groupName"]).to eq(params[:groupName])
|
16
|
+
expect(final_count - initial_count).to eq(1)
|
17
|
+
id = response["id"]
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe "#list" do
|
23
|
+
context "list task group by criteria" do
|
24
|
+
it "should list all task groups by criteria" do
|
25
|
+
response = DockHealthApi::Task::Group.list(taskListIdentifier: tasklistid)
|
26
|
+
expect(response.last.is_a?(DockHealthApi::Task::Group))
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe "#get" do
|
32
|
+
context "get a specific task group" do
|
33
|
+
it "should get the correct task group" do
|
34
|
+
response = DockHealthApi::Task::Group.get(id)
|
35
|
+
expect(response["groupName"]).to eq(params[:groupName])
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
context "get task group with wrong id" do
|
40
|
+
it "should return 404" do
|
41
|
+
wrong_id = "a" * 36
|
42
|
+
response = DockHealthApi::Task::Group.get(wrong_id)
|
43
|
+
expect(response["status"]).to eq(500)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe "#update" do
|
49
|
+
context "update existing task group" do
|
50
|
+
it "should update existing task group" do
|
51
|
+
new_params = { grupName: "test foobar update", id: id }
|
52
|
+
response = DockHealthApi::Task::Group.update(new_params)
|
53
|
+
expect(response["groupName"]).to eq(new_params[:groupName])
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe "#delete" do
|
59
|
+
context "Delete existing task group" do
|
60
|
+
it "should delete existing task group" do
|
61
|
+
initial_count = DockHealthApi::Task::Group.list(taskListIdentifier: tasklistid).count
|
62
|
+
response = DockHealthApi::Task::Group.delete(id: id)
|
63
|
+
final_count = DockHealthApi::Task::Group.list(taskListIdentifier: tasklistid).count
|
64
|
+
expect(response["groupName"]).to eq(params[:groupName])
|
65
|
+
expect(final_count - initial_count).to eq(-1)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
data/spec/task_spec.rb
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'dock_health_api'
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
RSpec.describe DockHealthApi::Task do
|
5
|
+
|
6
|
+
let(:tasklistid) {DockHealthApi::TaskList.list.last["id"]}
|
7
|
+
let(:params) {{ description: "test foobar", taskList: { type: "DEVELOPER", id: tasklistid } }}
|
8
|
+
id = ""
|
9
|
+
|
10
|
+
describe "#create" do
|
11
|
+
context "create new task" do
|
12
|
+
it "should create new task" do
|
13
|
+
response = DockHealthApi::Task.create(params)
|
14
|
+
id = response["id"]
|
15
|
+
expect(response["description"]).to eq(params[:description])
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "#list" do
|
21
|
+
context "list task by criteria" do
|
22
|
+
it "should list all tasks by criteria" do
|
23
|
+
response = DockHealthApi::Task.list(taskListIdentifier: tasklistid)
|
24
|
+
expect(response.first.is_a?(DockHealthApi::Task))
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "#get" do
|
30
|
+
context "get a specific task" do
|
31
|
+
it "should get the correct task" do
|
32
|
+
response = DockHealthApi::Task.get(id)
|
33
|
+
expect(response["description"]).to eq(params[:description])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
context "get task with wrong id" do
|
38
|
+
it "should return 404" do
|
39
|
+
wrong_id = "a" * 36
|
40
|
+
response = DockHealthApi::Task.get(wrong_id)
|
41
|
+
expect(response["status"]).to eq(404)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe "#update" do
|
47
|
+
context "update existing task" do
|
48
|
+
it "should update existing task" do
|
49
|
+
new_params = { description: "test foobar update", id: id }
|
50
|
+
response = DockHealthApi::Task.update(new_params)
|
51
|
+
expect(response["description"]).to eq(new_params[:description])
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe "#delete" do
|
57
|
+
context "Delete existing task" do
|
58
|
+
it "should delete existing task" do
|
59
|
+
response = DockHealthApi::Task.delete(id: id)
|
60
|
+
expect(response).to eq("")
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'dock_health_api'
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
RSpec.describe DockHealthApi::TaskList do
|
5
|
+
|
6
|
+
let(:tasklist) { { listName: "testlist"} }
|
7
|
+
let(:update_tasklist) { { listName: "testlist Update"} }
|
8
|
+
id = ""
|
9
|
+
|
10
|
+
describe "#create" do
|
11
|
+
context "create a new TaskList" do
|
12
|
+
it "should create a new TaskList" do
|
13
|
+
initial_count = DockHealthApi::TaskList.list.count
|
14
|
+
response = DockHealthApi::TaskList.create(tasklist)
|
15
|
+
final_count = DockHealthApi::TaskList.list.count
|
16
|
+
id = response["id"]
|
17
|
+
expect(response["tasklist"]).to eq(tasklist["listName"])
|
18
|
+
expect(final_count - initial_count).to eq(1)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "#list" do
|
24
|
+
context "list all TaskList" do
|
25
|
+
it "should list all TaskList" do
|
26
|
+
response = DockHealthApi::TaskList.list
|
27
|
+
expect(response.first.is_a?(DockHealthApi::TaskList))
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe "#get" do
|
33
|
+
context "get a specific TaskList" do
|
34
|
+
it "should get the correct TaskList" do
|
35
|
+
response = DockHealthApi::TaskList.get(id)
|
36
|
+
expect(response["taskList"]).to eq(tasklist["listName"])
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
context "get TaskList with invalid id" do
|
41
|
+
it "should return 400" do
|
42
|
+
invalid_id = "123"
|
43
|
+
response = DockHealthApi::TaskList.get(invalid_id)
|
44
|
+
expect(response["status"]).to eq(400)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
context "get TaskList with wrong id" do
|
49
|
+
it "should return 404" do
|
50
|
+
wrong_id = "a" * 36
|
51
|
+
response = DockHealthApi::TaskList.get(wrong_id)
|
52
|
+
expect(response["status"]).to eq(404)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe "#update" do
|
58
|
+
context "update an existing TaskList" do
|
59
|
+
it "should update an exiting TaskList" do
|
60
|
+
params = update_tasklist.merge(id: id)
|
61
|
+
response = DockHealthApi::TaskList.update(params)
|
62
|
+
expect(response["taskList"]).to eq(update_tasklist["taskList"])
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
describe "#delete" do
|
68
|
+
context "delete an existing TaskList" do
|
69
|
+
it "should delete an existing TaskList" do
|
70
|
+
initial_count = DockHealthApi::TaskList.list.count
|
71
|
+
response = DockHealthApi::TaskList.delete(id: id)
|
72
|
+
final_count = DockHealthApi::TaskList.list.count
|
73
|
+
expect(response["active"]).to be false
|
74
|
+
expect(final_count - initial_count).to eq(-1)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
|
80
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'dock_health_api'
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
RSpec.describe DockHealthApi::TaskList::User do
|
5
|
+
|
6
|
+
let(:taskid) {DockHealthApi::TaskList.list.last["id"]}
|
7
|
+
let(:userid) {DockHealthApi::User.list.last["id"]}
|
8
|
+
let(:params) {{ taskList: { type: "DEVELOPER", id: taskid }, user: { type: "DEVELOPER", id: userid } }}
|
9
|
+
|
10
|
+
describe "#put" do
|
11
|
+
context "Add existing user to TaskList" do
|
12
|
+
it "should add existing user to TaskList" do
|
13
|
+
response = DockHealthApi::TaskList::User.put(params)
|
14
|
+
expect(response["listUsers"].last["user"]["id"]).to eq(userid)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context "Using bad params to add user to TaskList" do
|
19
|
+
it "should return 400" do
|
20
|
+
bad_params = { taskList: { type: "DEVELOPER", id: taskid } }
|
21
|
+
initial_count = DockHealthApi::TaskList.list.last["listUsers"].count
|
22
|
+
response = DockHealthApi::TaskList::User.put(bad_params)
|
23
|
+
final_count = DockHealthApi::TaskList.list.last["listUsers"].count
|
24
|
+
expect(response["status"]).to eq(400)
|
25
|
+
expect(final_count - initial_count).to eq(0)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context "Using wrong ids to add user to TaskList" do
|
30
|
+
it "should return 404" do
|
31
|
+
bad_params = { taskList: { type: "DEVELOPER", id: taskid }, user: { type: "DEVELOPER", id: "a" * 36 } }
|
32
|
+
initial_count = DockHealthApi::TaskList.list.last["listUsers"].count
|
33
|
+
response = DockHealthApi::TaskList::User.put(bad_params)
|
34
|
+
final_count = DockHealthApi::TaskList.list.last["listUsers"].count
|
35
|
+
expect(response["status"]).to eq(404)
|
36
|
+
expect(final_count - initial_count).to eq(0)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
describe "#update" do
|
43
|
+
context "Update role for existing user in TaskList" do
|
44
|
+
it "should update role for existing suer in TaskList" do
|
45
|
+
role = "GUEST"
|
46
|
+
params.merge!(userRole: role)
|
47
|
+
response = DockHealthApi::TaskList::User.update(params)
|
48
|
+
expect(response["userRole"]).to eq(role)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe "#delete" do
|
54
|
+
context "Delete existing user from TaskList" do
|
55
|
+
it "should delete user from TaskList" do
|
56
|
+
response = DockHealthApi::TaskList::User.delete(params)
|
57
|
+
expect(response["listUsers"].last["user"]["id"]).to eq(userid)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
data/spec/user_spec.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'dock_health_api'
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
|
5
|
+
RSpec.describe DockHealthApi::User do
|
6
|
+
|
7
|
+
let (:user) { {firstName: "John",lastName:"Doe", email: "johndoe@mail.com"}}
|
8
|
+
let (:update_user) { {firstName: "JOHN",lastName:"Doe",email: "johndoe@mail.com"}}
|
9
|
+
let (:message) {"User is still an active member of one or more organizations."}
|
10
|
+
let (:id) {{id: "3261c2b9-80b4-4e9e-9412-bf1a2482df0b"}}
|
11
|
+
|
12
|
+
describe '#list' do
|
13
|
+
context "list all users" do
|
14
|
+
it 'should list all users' do
|
15
|
+
response = DockHealthApi::User.list
|
16
|
+
expect(response.first.is_a?(DockHealthApi::User))
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
# skipping create because user cannot be deleted after but create works as expected
|
22
|
+
describe '#create' do
|
23
|
+
context "create a new user" do
|
24
|
+
xit 'should create a user' do
|
25
|
+
response = DockHealthApi::User.create(user)
|
26
|
+
expect(response["firstName"]).to eq(user[:firstName])
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe '#get' do
|
32
|
+
context "get a specfic user" do
|
33
|
+
it 'should get the user' do
|
34
|
+
response = DockHealthApi::User.get(id[:id])
|
35
|
+
expect(response["firstName"]).to eq(user[:firstName])
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe '#update' do
|
41
|
+
context "update a specific user" do
|
42
|
+
it 'should update the user first name' do
|
43
|
+
params = update_user.merge!(id)
|
44
|
+
response = DockHealthApi::User.update(params)
|
45
|
+
expect(response["firstName"]).to eq(update_user[:firstName])
|
46
|
+
revert_user = user.merge!(id)
|
47
|
+
DockHealthApi::User.update(revert_user)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe '#delete' do
|
53
|
+
context "delete a specific user" do
|
54
|
+
it 'should not delete the user due to user being active' do
|
55
|
+
response = DockHealthApi::User.delete(id)
|
56
|
+
expect(response["message"]).to eq(message)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,117 @@
|
|
1
|
+
require 'dock_health_api'
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
RSpec.describe DockHealthApi::Webhook do
|
5
|
+
|
6
|
+
params = { "url": "https://www.funbar.com",
|
7
|
+
"secret": "b" * 36,
|
8
|
+
"events": ["CREATE_TASK"]
|
9
|
+
}
|
10
|
+
id = ""
|
11
|
+
|
12
|
+
describe "#create" do
|
13
|
+
context "Add new webhook" do
|
14
|
+
it "should add new webhook" do
|
15
|
+
initial_count = DockHealthApi::Webhook.list.count
|
16
|
+
response = DockHealthApi::Webhook.create(params)
|
17
|
+
final_count = DockHealthApi::Webhook.list.count
|
18
|
+
expect(response["url"]).to eq(params[:url])
|
19
|
+
expect(final_count - initial_count).to eq(1)
|
20
|
+
id = response["id"]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
context "Add webhook with same url" do
|
25
|
+
it "should return 400" do
|
26
|
+
initial_count = DockHealthApi::Webhook.list.count
|
27
|
+
response = DockHealthApi::Webhook.create(params)
|
28
|
+
final_count = DockHealthApi::Webhook.list.count
|
29
|
+
expect(response["status"]).to eq(400)
|
30
|
+
expect(final_count - initial_count).to eq(0)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
context "Add webhook with bad params" do
|
35
|
+
it "should return 400" do
|
36
|
+
bad_params = { "url": "https://www.nofunbar.com",
|
37
|
+
"secret": "b" * 36,
|
38
|
+
"id": id
|
39
|
+
}
|
40
|
+
initial_count = DockHealthApi::Webhook.list.count
|
41
|
+
response = DockHealthApi::Webhook.create(bad_params)
|
42
|
+
final_count = DockHealthApi::Webhook.list.count
|
43
|
+
expect(response["status"]).to eq(400)
|
44
|
+
expect(final_count - initial_count).to eq(0)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
describe "#list" do
|
50
|
+
context "list all webhook" do
|
51
|
+
it "should list all webhook" do
|
52
|
+
response = DockHealthApi::Webhook.list
|
53
|
+
expect(response.first.is_a?(DockHealthApi::Webhook))
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
context "list specific webhook" do
|
58
|
+
it "should return the correct webhook" do
|
59
|
+
response = DockHealthApi::Webhook.list(url: params[:url])
|
60
|
+
expect(response.first["url"]).to eq(params[:url])
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
describe "#get" do
|
67
|
+
context "get a specific webhook" do
|
68
|
+
it "should get the correct webhook" do
|
69
|
+
response = DockHealthApi::Webhook.get(id)
|
70
|
+
expect(response["url"]).to eq(params[:url])
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
context "get webhook with invalid id" do
|
75
|
+
it "should return 400" do
|
76
|
+
invalid_id = "123"
|
77
|
+
response = DockHealthApi::Webhook.get(invalid_id)
|
78
|
+
expect(response["status"]).to eq(400)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
context "get webhook with wrong id" do
|
83
|
+
it "should return 404" do
|
84
|
+
wrong_id = "a" * 36
|
85
|
+
response = DockHealthApi::Webhook.get(wrong_id)
|
86
|
+
expect(response["status"]).to eq(404)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
describe "#update" do
|
92
|
+
context "update an existing webhook" do
|
93
|
+
it "should update an exiting webhook" do
|
94
|
+
new_params = { "url": "https://www.nofunbar.com",
|
95
|
+
"secret": "b" * 36,
|
96
|
+
"events": ["CREATE_TASK"],
|
97
|
+
"id": id
|
98
|
+
}
|
99
|
+
response = DockHealthApi::Webhook.put(new_params)
|
100
|
+
expect(response["url"]).to eq(new_params[:url])
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
describe "#delete" do
|
106
|
+
context "Delete existing webhook" do
|
107
|
+
it "should delete existing webhook" do
|
108
|
+
initial_count = DockHealthApi::Webhook.list.count
|
109
|
+
response = DockHealthApi::Webhook.delete(id: id)
|
110
|
+
final_count = DockHealthApi::Webhook.list.count
|
111
|
+
expect(response["enabled"]).to be false
|
112
|
+
expect(final_count - initial_count).to eq(-1)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
end
|
metadata
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dock_health_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Robert Magomero
|
8
|
+
- Leo Lee
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2022-08-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: oauth2
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.4'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.4'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rspec
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '3.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: ostruct
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: pry
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: dotenv
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
description:
|
85
|
+
email:
|
86
|
+
- ''
|
87
|
+
- rmagomero@mdlive.com
|
88
|
+
executables: []
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- Gemfile
|
93
|
+
- Gemfile.lock
|
94
|
+
- LICENSE
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- bin/console
|
98
|
+
- bin/setup
|
99
|
+
- dock_health_api.gemspec
|
100
|
+
- lib/dock_health_api.rb
|
101
|
+
- lib/dock_health_api/client.rb
|
102
|
+
- lib/dock_health_api/config.rb
|
103
|
+
- lib/dock_health_api/crud/create.rb
|
104
|
+
- lib/dock_health_api/crud/delete.rb
|
105
|
+
- lib/dock_health_api/crud/get.rb
|
106
|
+
- lib/dock_health_api/crud/list.rb
|
107
|
+
- lib/dock_health_api/crud/put.rb
|
108
|
+
- lib/dock_health_api/crud/update.rb
|
109
|
+
- lib/dock_health_api/object.rb
|
110
|
+
- lib/dock_health_api/resource.rb
|
111
|
+
- lib/dock_health_api/resources/customfield.rb
|
112
|
+
- lib/dock_health_api/resources/developer.rb
|
113
|
+
- lib/dock_health_api/resources/organization.rb
|
114
|
+
- lib/dock_health_api/resources/patient.rb
|
115
|
+
- lib/dock_health_api/resources/task.rb
|
116
|
+
- lib/dock_health_api/resources/tasklist.rb
|
117
|
+
- lib/dock_health_api/resources/user.rb
|
118
|
+
- lib/dock_health_api/resources/webhook.rb
|
119
|
+
- lib/dock_health_api/version.rb
|
120
|
+
- spec/client_spec.rb
|
121
|
+
- spec/customfield_spec.rb
|
122
|
+
- spec/developer_spec.rb
|
123
|
+
- spec/dock_health_api_spec.rb
|
124
|
+
- spec/organization.rb
|
125
|
+
- spec/patient_spec.rb
|
126
|
+
- spec/spec_helper.rb
|
127
|
+
- spec/task_group_spec.rb
|
128
|
+
- spec/task_spec.rb
|
129
|
+
- spec/tasklist_spec.rb
|
130
|
+
- spec/tasklist_user_spec.rb
|
131
|
+
- spec/user_spec.rb
|
132
|
+
- spec/webhook_spec.rb
|
133
|
+
homepage:
|
134
|
+
licenses:
|
135
|
+
- MIT
|
136
|
+
metadata: {}
|
137
|
+
post_install_message:
|
138
|
+
rdoc_options: []
|
139
|
+
require_paths:
|
140
|
+
- lib
|
141
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.3.0
|
146
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
requirements: []
|
152
|
+
rubygems_version: 3.1.6
|
153
|
+
signing_key:
|
154
|
+
specification_version: 4
|
155
|
+
summary: Dock Health API
|
156
|
+
test_files: []
|