gitlab_support_readiness 1.0.48 → 1.0.50

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: 01a9ce45c00afe5f92aeafde1dc8c71842c43d002767d51745e8529716765621
4
- data.tar.gz: d5537f7f155774d75ef27896a7d529c21347f055a18e1aed658464e8d7ae4f88
3
+ metadata.gz: 245c5e90798a0488cf2c2bb7681eb48b278e9d59ecdb0e72dee8244b9298c1d7
4
+ data.tar.gz: 188b6ff03d707dbbecc18acb7ce5e8d6dc6b61be9b2d09971f54b2748fc127ee
5
5
  SHA512:
6
- metadata.gz: 97ef27b317754de1305257c0aec160f54f950caed5d894e33e74daa06ba7825114b9270f8d0e89353e06dd2b735a26190b2fd3adf48c6372adcf414ae4ebb5cb
7
- data.tar.gz: d1c7d967a5c3e44e8b09d964a8beeedab0bd762c314b19a97e4f50b599ecdadde2575d3fac99a762360011b1b79da0a201f45337e4987a71aceac69970d1c9b6
6
+ metadata.gz: bba24c97145efe1c6a892ab9a2c40c008793e100534b9f187be7ebe8b3a954b47f0040da9701d3075b3f075e2c3ce62e93892466f4811a3b621d55cf41baa327
7
+ data.tar.gz: f571e32219c91932074d1e8d0b850d677342df01ad8b2448fe3887801c2a4bf046ed9d1448cf3fcc2c01532be628e0f368623d7b841176d2b61f4ec513c27a1a
@@ -91,8 +91,8 @@ module Readiness
91
91
  # @author Jason Colyer
92
92
  # @since 1.0.42
93
93
  def self.determine_manager
94
- user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
95
- found_user = user_search.detect { |u| u.email.downcase == email.downcase }
94
+ user_search = Readiness::GitLab::Users.search_by_username(@gitlab_admin_client, manager_handle)
95
+ found_user = user_search.detect { |u| u.email.downcase == manager_handle.downcase }
96
96
  return nil if found_user.nil?
97
97
 
98
98
  found_user
@@ -195,8 +195,8 @@ module Readiness
195
195
  # @author Jason Colyer
196
196
  # @since 1.0.42
197
197
  def self.determine_manager
198
- user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
199
- found_user = user_search.detect { |u| u.email.downcase == email.downcase }
198
+ user_search = Readiness::GitLab::Users.search_by_username(@gitlab_admin_client, manager_handle)
199
+ found_user = user_search.detect { |u| u.email.downcase == manager_handle.downcase }
200
200
  return nil if found_user.nil?
201
201
 
202
202
  found_user
@@ -162,8 +162,8 @@ module Readiness
162
162
  # @author Jason Colyer
163
163
  # @since 1.0.42
164
164
  def self.determine_manager
165
- user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
166
- found_user = user_search.detect { |u| u.email.downcase == email.downcase }
165
+ user_search = Readiness::GitLab::Users.search_by_username(@gitlab_admin_client, manager_handle)
166
+ found_user = user_search.detect { |u| u.email.downcase == manager_handle.downcase }
167
167
  return nil if found_user.nil?
168
168
 
169
169
  found_user
@@ -146,8 +146,8 @@ module Readiness
146
146
  # @author Jason Colyer
147
147
  # @since 1.0.42
148
148
  def self.determine_manager
149
- user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
150
- found_user = user_search.detect { |u| u.email.downcase == email.downcase }
149
+ user_search = Readiness::GitLab::Users.search_by_username(@gitlab_admin_client, manager_handle)
150
+ found_user = user_search.detect { |u| u.email.downcase == manager_handle.downcase }
151
151
  return nil if found_user.nil?
152
152
 
153
153
  found_user
@@ -195,8 +195,8 @@ module Readiness
195
195
  # @author Jason Colyer
196
196
  # @since 1.0.42
197
197
  def self.determine_manager
198
- user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
199
- found_user = user_search.detect { |u| u.email.downcase == email.downcase }
198
+ user_search = Readiness::GitLab::Users.search_by_username(@gitlab_admin_client, manager_handle)
199
+ found_user = user_search.detect { |u| u.email.downcase == manager_handle.downcase }
200
200
  return nil if found_user.nil?
201
201
 
202
202
  found_user
@@ -204,8 +204,8 @@ module Readiness
204
204
  # @author Jason Colyer
205
205
  # @since 1.0.42
206
206
  def self.determine_manager
207
- user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
208
- found_user = user_search.detect { |u| u.email.downcase == email.downcase }
207
+ user_search = Readiness::GitLab::Users.search_by_username(@gitlab_admin_client, manager_handle)
208
+ found_user = user_search.detect { |u| u.email.downcase == manager_handle.downcase }
209
209
  return nil if found_user.nil?
210
210
 
211
211
  found_user
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -205,7 +207,7 @@ module Readiness
205
207
  What is expected from Support?
206
208
  </p>
207
209
  <pre>
208
- <%= @expectations %>
210
+ #{expectations}
209
211
  </pre>
210
212
  STRING
211
213
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_support_readiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.48
4
+ version: 1.0.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer