gitlab_support_readiness 1.1.2 → 1.1.4

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: 78cf73f32d6c286328ed512c1fcb659cc599cdbb1cdc0c8a9bd72d914cebf021
4
- data.tar.gz: bd1a8d8d5d9affe6ff58fafa42925e94cb7df0d54700705a02a485a2f31c33c7
3
+ metadata.gz: 2023c6d3a8a6a8325224ceb2f0a9ead24d87cc0db95de3f11f2895e619dc7f7c
4
+ data.tar.gz: 2634844f7106035d0cf405e620a85d7c7b31ea75b01fd02565bff4c317f830d5
5
5
  SHA512:
6
- metadata.gz: fecb8708ce574a5c11b37b9516a81428357f564fee5cd976161ae9413c99f1265d32cb31f5865b98a53f72a9a993abe8ded869df830a49df65bcc0424ceb6b10
7
- data.tar.gz: c42a200ec5765c7947850208cc1dd262e9797e585880bc84e1351f8a8768db970c4c8d13010cdb48b77ae24d858889d0c39dcf86c6fa96172a52a4fea2ae5f20
6
+ metadata.gz: 912471efca5e07ec7ba150a1493627246add97a001396abec3c3b3937b2ad290570463f982a3c13d446678fe12ebd504fdbf4f234320547a9b55899aa536e911
7
+ data.tar.gz: 6a33f24da0005ac0f0e472257bc175b8ea8eb78996ff585ea7754ddee88c06ea59b8693b7bb36d5799d23742d9ed5fe58ada3de0a40eee2a37e3bcc6f71c8f4b
@@ -272,10 +272,16 @@ module Readiness
272
272
  sub_types.push('sub_community_other') if charge_names.any? { |x| SubscriptionDefinitions.community_other.include?(x) }
273
273
  sub_types.push('sub_ss_growth') if charge_names.any? { |x| SubscriptionDefinitions.ss_success_advanced.include?(x) }
274
274
  sub_types.push('sub_ss_enterprise') if charge_names.any? { |x| SubscriptionDefinitions.ss_success_signature.include?(x) }
275
+ sub_types.push('sub_ss_ase') if charge_names.any? { |x| SubscriptionDefinitions.ss_success_signature.include?(x) }
275
276
  sub_types.push('sub_ss_enterprise') if account.Account_ID_18__c == '00161000010fYlBAAU' && charge_names.select { |x| x =~ /Success\ Plan\ Services/ }
276
277
  sub_types.push('sub_ss_enterprise') if account.Account_ID_18__c == '001PL00000S7nT3YAJ' && charge_names.select { |x| x =~ /Success\ Plan\ Services/ }
277
278
  sub_types.push('sub_ss_enterprise') if account.Account_ID_18__c == '0016100000K8R8fAAF' && charge_names.select { |x| x =~ /Success\ Plan\ Services/ }
278
279
  sub_types.push('sub_ss_enterprise') if account.Account_ID_18__c == '0014M00001lcEpNQAU' && charge_names.select { |x| x =~ /Success\ Plan\ Services/ }
280
+ if account.Account_ID_18__c == '0016100000SEhkLAAT'
281
+ sub_types.push('sub_ss_enterprise') if (Date.parse('2025-04-29')..Date.parse('2026-04-28')).cover?(Date.today)
282
+ sub_types.push('sub_ss_ase') if (Date.parse('2025-04-29')..Date.parse('2026-04-28')).cover?(Date.today)
283
+ sub_types.push('sub_ss_growth') if (Date.parse('2026-04-29')..Date.parse('2027-04-28')).cover?(Date.today)
284
+ end
279
285
  if account.Support_Instance__c != 'federal-support'
280
286
  has_12x5 = charge_names.any? { |x| SubscriptionDefinitions.usgov_12x5.include?(x) }
281
287
  has_24x7 = charge_names.any? { |x| SubscriptionDefinitions.usgov_24x7.include?(x) }
@@ -397,10 +403,16 @@ module Readiness
397
403
  # @author Jason Colyer
398
404
  # @since 1.0.26
399
405
  def self.account_region(account)
400
- return nil if account.Account_Demographics_Geo__c.nil?
401
- return nil unless %w[amer apac emea latam ncsa noram].include? account.Account_Demographics_Geo__c.to_s.downcase
406
+ return 'org_region_amer' if account.Account_Demographics_Geo__c == 'AMER'
407
+ return 'org_region_apac' if account.Account_Demographics_Geo__c == 'APJ'
408
+ return 'org_region_emea' if account.Account_Demographics_Geo__c == 'EMEA'
409
+ if account.Account_Demographics_Geo__c == 'SMB'
410
+ return 'org_region_amer' if account.Account_Demographics_Region__c == 'AMER'
411
+ return 'org_region_apac' if account.Account_Demographics_Region__c == 'APJ'
412
+ return 'org_region_emea' if account.Account_Demographics_Region__c == 'EMEA'
413
+ end
402
414
 
403
- "org_region_#{account.Account_Demographics_Geo__c.to_s.downcase}"
415
+ nil
404
416
  end
405
417
 
406
418
  ##
@@ -583,6 +595,7 @@ module Readiness
583
595
  Restricted_Account__c,
584
596
  Solutions_Architect_Lookup__r.Name,
585
597
  Account_Demographics_Geo__c,
598
+ Account_Demographics_Region__c,
586
599
  Latest_Sold_To_Contact__r.Email,
587
600
  Latest_Sold_To_Contact__r.Name,
588
601
  Partner_Track__c,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_support_readiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-12 00:00:00.000000000 Z
11
+ date: 2025-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport