jirametrics 2.26 → 2.26.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 +4 -4
- data/lib/jirametrics/project_config.rb +12 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 960ce78e94ec2c7e87875bd0dc6db2c16b11cee0e4c4dd5a22d8bf3bab1c893d
|
|
4
|
+
data.tar.gz: f5b2d9aac4d9059654ad7a569d477b0b689c8d22f30760867aec9e13b3f1db61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 727e2f5b3e57e937eacd05d868ff1f7a75e16210f0e46e75117a88e56287fb765238753710289d9fb2f09b38d6e940f47d0ae2689be313b1282238727ddae0eb
|
|
7
|
+
data.tar.gz: d60771157926c74a7ac45d12ea023eef1808b4ea027f8edd6fba6108a79b2f0df8bdb054bf58049cc8a3f3de44e4926dd0af0a40b95b25fb07ed1391d829418b
|
|
@@ -150,6 +150,17 @@ class ProjectConfig
|
|
|
150
150
|
@file_prefix
|
|
151
151
|
end
|
|
152
152
|
|
|
153
|
+
def validate_discard_status status_name
|
|
154
|
+
return if status_name == :backlog
|
|
155
|
+
return if possible_statuses.empty? # not yet downloaded; skip validation
|
|
156
|
+
|
|
157
|
+
found = possible_statuses.find_all_by_name status_name
|
|
158
|
+
return unless found.empty?
|
|
159
|
+
|
|
160
|
+
raise "discard_changes_before: Status #{status_name.inspect} not found. " \
|
|
161
|
+
"Possible statuses are: #{possible_statuses}"
|
|
162
|
+
end
|
|
163
|
+
|
|
153
164
|
def raise_if_prefix_already_used prefix
|
|
154
165
|
@exporter.project_configs.each do |project|
|
|
155
166
|
next unless project.get_file_prefix(raise_if_not_set: false) == prefix && project.target_path == target_path
|
|
@@ -598,15 +609,7 @@ class ProjectConfig
|
|
|
598
609
|
if status_becomes
|
|
599
610
|
status_becomes = [status_becomes] unless status_becomes.is_a? Array
|
|
600
611
|
|
|
601
|
-
status_becomes.each
|
|
602
|
-
next if status_name == :backlog
|
|
603
|
-
|
|
604
|
-
found = possible_statuses.find_all_by_name status_name
|
|
605
|
-
if found.empty?
|
|
606
|
-
raise "discard_changes_before: Status #{status_name.inspect} not found. " \
|
|
607
|
-
"Possible statuses are: #{possible_statuses}"
|
|
608
|
-
end
|
|
609
|
-
end
|
|
612
|
+
status_becomes.each { |status_name| validate_discard_status status_name }
|
|
610
613
|
|
|
611
614
|
block = lambda do |issue|
|
|
612
615
|
trigger_statuses = status_becomes.collect do |status_name|
|