peoplegroup-connectors 1.0.0 → 1.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a4910da9b8d9744846d797af59b88dc9be12a946b9280de8bc3f41fe029d92
|
4
|
+
data.tar.gz: ff003453bd1f2c3ef3c56f4f39cbd9961433f8a88cdc566012bdc159bcdc2522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b30e1205b9cfb517ae681cc18e0d56fa1da94ca0cbbf3de62fd1ba0ae80d9af0703f3267489c88231d99ee022c380a9eaaad240b36550135547f09926f91fff2
|
7
|
+
data.tar.gz: 18358e233698b4268b1685707ca3e28220c444b7654d48e5f267ee7fe67bbfbaa8a683d5e6e10c5fa25a28aef40546567c3975eb6fa937045d9b44e3937f8015
|
@@ -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.
|
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,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.
|
4
|
+
version: 1.0.1
|
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
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bamboozled-gitlab
|