gitlab_support_readiness 1.5.5 → 1.6.1

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: 22993bca49d0358860ae79151db407e4ce999bf216807d88aed91b9f7489c55e
4
- data.tar.gz: 791449c2488013598cef50bd5627fe059219658774fc9bce0eebdae5e21f1598
3
+ metadata.gz: cb6d79cd9162151ce9c25bf5f67b16d0447fbf2b0d649e18e2c7bf81c809ad6c
4
+ data.tar.gz: 8717a06b93c67c686b82769054849181b16ef0ed6fd9550bb1fde9e19775c984
5
5
  SHA512:
6
- metadata.gz: f979831ff127cd8acd0a3336a3c5182d4b112033cb509d1d67562b1784813ee045a6b8075d19b62ba8e6781c5136ec45c5c1094597de5b7515a05e2c6fb8940a
7
- data.tar.gz: c43d926583f31c54f53cec0c1ab538eae450b3c165629cc8da490e248d436d5f4272afca0beb3bf9289418009f2ad67b98abb498ddb0f34c10ac20b1586c53d4
6
+ metadata.gz: d7e5bb7edeef3b053657659b6ca566fe41d9ed27a5d7bd8c38c8bbc659dbbfa8816805a33fc46c4cf609d51cc0b0200e320fa1162ec8714d5b643c32385f63ca
7
+ data.tar.gz: fa64675a2f05f7be532a31082927425723ff74db277fdfa2875a0880a377510b646ee3fc902a8761f447b5f1f08a57d54a5a740da5a81e68d21c0a62b9a51711
@@ -349,8 +349,6 @@ module Readiness
349
349
  # @author Jason Colyer
350
350
  # @since 1.0.12
351
351
  def self.sortable?(data)
352
- return false if data['name'] == 'Subject'
353
-
354
352
  true
355
353
  end
356
354
 
@@ -60,6 +60,7 @@ module Readiness
60
60
  # @author Jason Colyer
61
61
  # @since 1.0.12
62
62
  # @param client [Object] An instance of {Readiness::Zendesk::Client}
63
+ # @param brand [Object] An optional instance of {Readiness::Zendesk::Brands} that can be used to find a specific theme
63
64
  # @return [Object]
64
65
  # @example
65
66
  # require 'support_readiness'
@@ -71,9 +72,13 @@ module Readiness
71
72
  # theme = Readiness::Zendesk::Themes.live_theme(client)
72
73
  # pp theme.id
73
74
  # # => "28a0b408-626a-4bea-88ab-2d48a8078870"
74
- def self.live_theme(client)
75
+ def self.live_theme(client, brand = nil)
75
76
  themes = Themes.list(client)
76
- themes.detect { |t| t.live }
77
+ if brand
78
+ themes.detect { |t| t.live && t.brand_id.to_i == brand.id.to_i }
79
+ else
80
+ themes.detect { |t| t.live }
81
+ end
77
82
  end
78
83
 
79
84
  ##
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.5.5
4
+ version: 1.6.1
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-10-01 00:00:00.000000000 Z
11
+ date: 2025-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport