peoplegroup-connectors 1.0.0 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d996feff7137d07264509fcfe7f8bc3dcbd71eefd5d50fe87f09529c23eabba
4
- data.tar.gz: bf3a847a3ecb13956246090be029241ba8965d3b69765a00afdf2cf6c8ba6172
3
+ metadata.gz: 4ea5fd720c15234b7d40798eed97b7829058b6e5db6dd8b67589d8f34ebfc9fa
4
+ data.tar.gz: 02d98675585749b311e2b699e264dbe1b6d3e207cbe17c064b3e84e86cf8cc07
5
5
  SHA512:
6
- metadata.gz: 7e53ab3a7d2ac8609dbcfe770fb2a797c23053412dcacb52770c0a5ef177b1540543a5566e7ab7b75c83508b20e996b8b606a963ee56ac5700b64aaf1f3c8946
7
- data.tar.gz: a1acda40d3c83d4428d146ea6e670aa2fd6cc0be663c87b2717cb806589cd9397a440e3aa98f5203516869eb8c01dbe0e0a8050d9f7af6d60f3037e10b6dad71
6
+ metadata.gz: e5be3686407780d374afe57be46dfe8101b6c4113874939227528dcf11a95213e5c3f7f0327cc464998fd29dcb6b17a51f8d51607568b8f6baec2b78f31b59be
7
+ data.tar.gz: ede8d6676c7e3c98861892de8d5720474b257f50c7781f5c77e15eb716ecfbc2ea49befc1a134720a8ecffa27de9a5285d9dc8caaf6294f0f016afe59ae42348
@@ -7,12 +7,15 @@ module PeopleGroup
7
7
  EmployeeNotFoundError = Class.new(StandardError)
8
8
 
9
9
  def initialize
10
- @workday = Workday::Client.new
10
+ @workday = Workday::Client.new unless ENV.fetch('WORKDAY_SERVICE_URL', nil).nil?
11
11
  @bamboo = Bamboo.new
12
12
  end
13
13
 
14
14
  def employees
15
- @employees ||= Workday.workers
15
+ @employees ||= Workday::Report.call(
16
+ url: ENV.fetch('WORKDAY_WORKERS_REPORT', nil),
17
+ password: ENV.fetch('WORKDAY_ISU_PASSWORD', nil)
18
+ )
16
19
  end
17
20
  alias_method :team_members, :employees
18
21
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.2'
6
6
  end
7
7
  end
@@ -78,10 +78,10 @@ module PeopleGroup
78
78
 
79
79
  # Combine the url and extra input parameters in an encoded format.
80
80
  # @param [Hash] prompts The report prompts/parameters.
81
- # @return [String] The @url (report url) combined with report type `?type='json'` and any extra parameters.
81
+ # @return [String] The @url (report url) combined with report format `?format='json'` and any extra parameters.
82
82
  def report_url(prompts = {})
83
83
  uri = @uri.clone # copy the URI object
84
- params = prompts.merge!({ type: :json }) # ensure report format is always JSON
84
+ params = prompts.merge!({ format: :json }) # ensure report format is always JSON
85
85
  uri.query = URI.encode_www_form(params)
86
86
  uri.to_s
87
87
  end
@@ -2,14 +2,7 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- module Workday
6
- def workers(url: nil, password: nil)
7
- Report.call(
8
- url: ENV.fetch('WORKDAY_WORKERS_REPORT', url),
9
- password: ENV.fetch('WORKDAY_ISU_PASSWORD', password)
10
- )
11
- end
12
- end
5
+ module Workday; end
13
6
  end
14
7
  end
15
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peoplegroup-connectors
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lien van den steen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-30 00:00:00.000000000 Z
11
+ date: 2023-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bamboozled-gitlab