peoplegroup-connectors 0.1.60 → 0.1.64

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: fc878e73011504cb931512a2225cdf9108fde351aeb2f867e1ab0cc6bcb73fcf
4
- data.tar.gz: f21a0b7414aeac5aab5b4a7eb279825f03afd43941a70de4ee14f72236bdb81b
3
+ metadata.gz: 33568d5fc3c5499853aad5b9276ba6fa655c7448a44c7a50241039adfad65669
4
+ data.tar.gz: 18bfaaf61e256ed131cb258e4bcb1dc95553729c1c6f7f7908b84ac5a285a93b
5
5
  SHA512:
6
- metadata.gz: '092b87c509e036c2e6ed4265a5ed9d241eb2db8b3d487af47b7269ce558503b2ba73210ff9b2e9317faa6ce91010120e0613afbadca69568268438d51f7e9f58'
7
- data.tar.gz: db55d1f53d323110f108ff9915d7361c29a8d1f9a57e43f3d25c062d82edf11fc48e4308847f9816ebf587f1843d059d9bea94fcba3cfc111e7749316de0f740
6
+ metadata.gz: 4ca93220ae677cc79749220ee58f610d1e7ada8a8bc9327046d5ecc4d3c86badfff84d52d336251a9fa0fad89ddc0bda095b3305062f3ffab30bbcca5382e1aa
7
+ data.tar.gz: 6b5fd69dbf82e4ae09cba248dba10be164321a5302a09dd7be84901f355afb428ef57393904ec3a074fabdefacc0c64446f88cc4769ebb1d9956ddb793263c9d
@@ -187,6 +187,10 @@ module PeopleGroup
187
187
  meta_fields.detect { |res| res['name'] == 'Division' }.dig('options').each_with_object([]) { |option, array| array << option['name'] if option['archived'] == 'no' } || []
188
188
  end
189
189
 
190
+ def locations
191
+ meta_fields.detect { |res| res['name'] == 'Location' }.dig('options').each_with_object([]) { |option, array| array << option['name'] if option['archived'] == 'no' } || []
192
+ end
193
+
190
194
  def fields
191
195
  return @fields if @fields
192
196
 
@@ -257,7 +261,7 @@ module PeopleGroup
257
261
  end
258
262
 
259
263
  def time_off_adjustment(employee_id, options)
260
- @client.employee.time_off_balance_adjustment('42043', options)
264
+ @client.employee.time_off_balance_adjustment(employee_id, options)
261
265
  end
262
266
 
263
267
  def accrued_days(employee_id)
@@ -72,8 +72,8 @@ module PeopleGroup
72
72
  epic || retry_on_error { @client.create_epic(group_id, title, options) }
73
73
  end
74
74
 
75
- def commit_new_files_to_new_merge_request(project_id, branch_name, new_files, commit_message, description = nil)
76
- retry_on_error { @client.create_branch(project_id, branch_name, 'master') }
75
+ def commit_new_files_to_new_merge_request(project_id, branch_name, new_files, commit_message, description = nil, target_branch: 'master')
76
+ retry_on_error { @client.create_branch(project_id, branch_name, target_branch) }
77
77
  actions = []
78
78
  new_files.each do |file|
79
79
  actions << {
@@ -85,7 +85,7 @@ module PeopleGroup
85
85
 
86
86
  retry_on_error { @client.create_commit(project_id, branch_name, commit_message, actions) }
87
87
 
88
- options = { source_branch: branch_name, target_branch: 'master', remove_source_branch: true }
88
+ options = { source_branch: branch_name, target_branch: target_branch, remove_source_branch: true }
89
89
  options[:description] = description if description
90
90
  retry_on_error { @client.create_merge_request(project_id, commit_message, options) }
91
91
  end
@@ -120,8 +120,8 @@ module PeopleGroup
120
120
  retry_on_error { @client.create_merge_request(project_id, commit_message, options) }
121
121
  end
122
122
 
123
- def commit_change_to_new_merge_request(project_id, branch_name, file_path, file_with_change, commit_message, description = nil)
124
- retry_on_error { @client.create_branch(project_id, branch_name, 'master') }
123
+ def commit_change_to_new_merge_request(project_id, branch_name, file_path, file_with_change, commit_message, description = nil, target_branch: 'master')
124
+ retry_on_error { @client.create_branch(project_id, branch_name, target_branch) }
125
125
  actions = [
126
126
  {
127
127
  action: 'update',
@@ -131,7 +131,7 @@ module PeopleGroup
131
131
  ]
132
132
  retry_on_error { @client.create_commit(project_id, branch_name, commit_message, actions) }
133
133
 
134
- options = { source_branch: branch_name, target_branch: 'master', remove_source_branch: true }
134
+ options = { source_branch: branch_name, target_branch: target_branch, remove_source_branch: true }
135
135
  options[:description] = description if description
136
136
  retry_on_error { @client.create_merge_request(project_id, commit_message, options) }
137
137
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- VERSION = '0.1.60'
5
+ VERSION = '0.1.64'
6
6
  end
7
7
  end
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: 0.1.60
4
+ version: 0.1.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - lien van den steen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-24 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab
@@ -190,7 +190,7 @@ metadata:
190
190
  homepage_uri: https://gitlab.com/gitlab-com/people-group/peopleops-eng/connectors-gem
191
191
  source_code_uri: https://gitlab.com/gitlab-com/people-group/peopleops-eng/connectors-gem
192
192
  changelog_uri: https://gitlab.com/gitlab-com/people-group/peopleops-eng/connectors-gem
193
- post_install_message:
193
+ post_install_message:
194
194
  rdoc_options: []
195
195
  require_paths:
196
196
  - lib
@@ -205,8 +205,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.1.4
209
- signing_key:
208
+ rubygems_version: 3.2.3
209
+ signing_key:
210
210
  specification_version: 4
211
211
  summary: Library for our shared connectors.
212
212
  test_files: []