dock_health_api 0.5.1 → 0.5.3
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +19 -19
- data/lib/dock_health_api/crud/list.rb +1 -1
- data/lib/dock_health_api/resources/customstatus.rb +9 -0
- data/lib/dock_health_api/version.rb +1 -1
- data/lib/dock_health_api.rb +1 -0
- data/spec/customstatus_spec.rb +14 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a9382899e5f580794246b7cf1b1bce2e6bd00bf66bb04ef0de22685dfda82d8
|
|
4
|
+
data.tar.gz: 1d6aaa0c748708faec3c5029ecb5be843e1887a4c5f358b1622831cea09cd07e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bd14582d8b5979b9eb4101757a394e8c42deeffb7c014fed877cab1e28225e0f4b397e3e023c92dc64506d6517cd678f9fff0b51c43e8d6af4a2e41189876f6
|
|
7
|
+
data.tar.gz: 3490c9b42d257a7fff77cbcaabbc59a501e94c5d727192a8eae5d2e6a6f2070832a53adc1012f80a7799691a9ac4c3d3175a2f9f78a225535b0e8f42831cfab2
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
dock_health_api (0.5.
|
|
4
|
+
dock_health_api (0.5.3)
|
|
5
5
|
oauth2 (~> 1.4)
|
|
6
6
|
ostruct
|
|
7
7
|
rspec (~> 3.0)
|
|
@@ -12,38 +12,38 @@ GEM
|
|
|
12
12
|
coderay (1.1.3)
|
|
13
13
|
diff-lcs (1.5.0)
|
|
14
14
|
dotenv (2.7.6)
|
|
15
|
-
faraday (2.
|
|
16
|
-
faraday-net_http (
|
|
15
|
+
faraday (2.7.2)
|
|
16
|
+
faraday-net_http (>= 2.0, < 3.1)
|
|
17
17
|
ruby2_keywords (>= 0.0.4)
|
|
18
|
-
faraday-net_http (
|
|
19
|
-
jwt (2.
|
|
18
|
+
faraday-net_http (3.0.2)
|
|
19
|
+
jwt (2.5.0)
|
|
20
20
|
method_source (1.0.0)
|
|
21
21
|
multi_json (1.15.0)
|
|
22
22
|
multi_xml (0.6.0)
|
|
23
|
-
oauth2 (1.4.
|
|
23
|
+
oauth2 (1.4.11)
|
|
24
24
|
faraday (>= 0.17.3, < 3.0)
|
|
25
25
|
jwt (>= 1.0, < 3.0)
|
|
26
26
|
multi_json (~> 1.3)
|
|
27
27
|
multi_xml (~> 0.5)
|
|
28
|
-
rack (>= 1.2, <
|
|
28
|
+
rack (>= 1.2, < 4)
|
|
29
29
|
ostruct (0.5.5)
|
|
30
30
|
pry (0.14.1)
|
|
31
31
|
coderay (~> 1.1)
|
|
32
32
|
method_source (~> 1.0)
|
|
33
|
-
rack (
|
|
34
|
-
rspec (3.
|
|
35
|
-
rspec-core (~> 3.
|
|
36
|
-
rspec-expectations (~> 3.
|
|
37
|
-
rspec-mocks (~> 3.
|
|
38
|
-
rspec-core (3.
|
|
39
|
-
rspec-support (~> 3.
|
|
40
|
-
rspec-expectations (3.
|
|
33
|
+
rack (3.0.2)
|
|
34
|
+
rspec (3.12.0)
|
|
35
|
+
rspec-core (~> 3.12.0)
|
|
36
|
+
rspec-expectations (~> 3.12.0)
|
|
37
|
+
rspec-mocks (~> 3.12.0)
|
|
38
|
+
rspec-core (3.12.0)
|
|
39
|
+
rspec-support (~> 3.12.0)
|
|
40
|
+
rspec-expectations (3.12.1)
|
|
41
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
42
|
-
rspec-support (~> 3.
|
|
43
|
-
rspec-mocks (3.
|
|
42
|
+
rspec-support (~> 3.12.0)
|
|
43
|
+
rspec-mocks (3.12.1)
|
|
44
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
45
|
-
rspec-support (~> 3.
|
|
46
|
-
rspec-support (3.
|
|
45
|
+
rspec-support (~> 3.12.0)
|
|
46
|
+
rspec-support (3.12.0)
|
|
47
47
|
ruby2_keywords (0.0.5)
|
|
48
48
|
|
|
49
49
|
PLATFORMS
|
|
@@ -6,7 +6,7 @@ module DockHealthApi
|
|
|
6
6
|
return response if client.config.debug || params.empty?
|
|
7
7
|
search_result = response
|
|
8
8
|
params.each do |p|
|
|
9
|
-
search_result =
|
|
9
|
+
search_result = search_result.select { |list| list[p[0].to_s] == p[1] }
|
|
10
10
|
end
|
|
11
11
|
return search_result
|
|
12
12
|
end
|
data/lib/dock_health_api.rb
CHANGED
|
@@ -27,6 +27,7 @@ module DockHealthApi
|
|
|
27
27
|
autoload :Developer, "dock_health_api/resources/developer"
|
|
28
28
|
autoload :Organization, "dock_health_api/resources/organization"
|
|
29
29
|
autoload :CustomField, "dock_health_api/resources/customfield"
|
|
30
|
+
autoload :CustomStatus, "dock_health_api/resources/customstatus"
|
|
30
31
|
|
|
31
32
|
@config = DockHealthApi::Config.new
|
|
32
33
|
@iframe_base_url = "https://dev.dockhealth.app/#/auth/embedded?"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require 'dock_health_api'
|
|
2
|
+
require 'spec_helper'
|
|
3
|
+
|
|
4
|
+
RSpec.describe DockHealthApi::CustomStatus do
|
|
5
|
+
|
|
6
|
+
describe "#list" do
|
|
7
|
+
context "list all customstatus" do
|
|
8
|
+
it 'should list all customstatus' do
|
|
9
|
+
response = DockHealthApi::CustomStatus.list
|
|
10
|
+
expect(response.first.is_a?(DockHealthApi::CustomStatus))
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dock_health_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Magomero
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2022-12-
|
|
12
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: oauth2
|
|
@@ -109,6 +109,7 @@ files:
|
|
|
109
109
|
- lib/dock_health_api/object.rb
|
|
110
110
|
- lib/dock_health_api/resource.rb
|
|
111
111
|
- lib/dock_health_api/resources/customfield.rb
|
|
112
|
+
- lib/dock_health_api/resources/customstatus.rb
|
|
112
113
|
- lib/dock_health_api/resources/developer.rb
|
|
113
114
|
- lib/dock_health_api/resources/organization.rb
|
|
114
115
|
- lib/dock_health_api/resources/patient.rb
|
|
@@ -119,6 +120,7 @@ files:
|
|
|
119
120
|
- lib/dock_health_api/version.rb
|
|
120
121
|
- spec/client_spec.rb
|
|
121
122
|
- spec/customfield_spec.rb
|
|
123
|
+
- spec/customstatus_spec.rb
|
|
122
124
|
- spec/developer_spec.rb
|
|
123
125
|
- spec/dock_health_api_spec.rb
|
|
124
126
|
- spec/organization.rb
|