dock_health_api 0.5.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e13712f9ae22b6eb2596f030be20bb2c893c5f6808911e715560e10444016606
4
- data.tar.gz: 6f920ca3cba06475d053c4c8213e6a50c2112f3ae6eaa95b3475713bfb9973b3
3
+ metadata.gz: 0a9382899e5f580794246b7cf1b1bce2e6bd00bf66bb04ef0de22685dfda82d8
4
+ data.tar.gz: 1d6aaa0c748708faec3c5029ecb5be843e1887a4c5f358b1622831cea09cd07e
5
5
  SHA512:
6
- metadata.gz: 40905d8789ab5848e6903fca585678a8872318f6931e63fb1b90ddf72e03a70e063b88101bf214d2b83458fa9ce6f698b6155b74a8040c487e4ce0c18fa6e673
7
- data.tar.gz: 0f0461e6cef1b1d1941b834ffb258dfdf8918a57f453c16fb4e8d24051a021bc6c4bf48c7e9c19b63124a88756d0e7fb6d1535b2b6ba0d69db30aaf1d3c3a15c
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.0)
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.3.0)
16
- faraday-net_http (~> 2.0)
15
+ faraday (2.7.2)
16
+ faraday-net_http (>= 2.0, < 3.1)
17
17
  ruby2_keywords (>= 0.0.4)
18
- faraday-net_http (2.0.3)
19
- jwt (2.4.1)
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.10)
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, < 3)
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 (2.2.4)
34
- rspec (3.11.0)
35
- rspec-core (~> 3.11.0)
36
- rspec-expectations (~> 3.11.0)
37
- rspec-mocks (~> 3.11.0)
38
- rspec-core (3.11.0)
39
- rspec-support (~> 3.11.0)
40
- rspec-expectations (3.11.0)
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.11.0)
43
- rspec-mocks (3.11.1)
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.11.0)
46
- rspec-support (3.11.0)
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 = response.select { |list| list[p[0].to_s] == p[1] }
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
@@ -0,0 +1,9 @@
1
+ module DockHealthApi
2
+ class CustomStatus < Resource
3
+ extend DockHealthApi::Crud::List
4
+
5
+ def self.resource_url
6
+ "#{client.config.resource_url}/api/#{url_version}/configuration/status"
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module DockHealthApi
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.3"
3
3
  end
@@ -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.1
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-20 00:00:00.000000000 Z
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