jirametrics 2.25.1 → 2.25.2pre1
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/html_generator.rb +1 -0
- data/lib/jirametrics/project_config.rb +10 -0
- 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: '09a5b3a17e5af7e9896e01d5ed661f72d08d99939968b00503dfb8da9773dea2'
|
|
4
|
+
data.tar.gz: 2d2c2a8db4412d9d4412b507dca2951968a562d1d70e82d5e400d67ea09b4556
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c08239469e00f99f48f3c8e461a9e3e0bd18a2eee56cc3b8546203c747a30aeb1bf8df30256f83d76ee1c777a198c22a02850eca0bd316cb990d958adc1dd89c
|
|
7
|
+
data.tar.gz: ecffbbf4c385d0971ab50e3c8d56b45a8a59504b89e33cdf161fdab85946de241f96a2547bd51eb43dbb89c2af9a0a6b2d18870e954e26b20b55477f5ea435d9
|
|
@@ -5,6 +5,7 @@ class HtmlGenerator
|
|
|
5
5
|
|
|
6
6
|
def create_html output_filename:, settings:, project_name: ''
|
|
7
7
|
@settings = settings
|
|
8
|
+
project_name = project_name.to_s
|
|
8
9
|
html_directory = "#{Pathname.new(File.realpath(__FILE__)).dirname}/html"
|
|
9
10
|
css = load_css html_directory: html_directory
|
|
10
11
|
javascript = file_system.load(File.join(html_directory, 'index.js'))
|
|
@@ -598,6 +598,16 @@ class ProjectConfig
|
|
|
598
598
|
if status_becomes
|
|
599
599
|
status_becomes = [status_becomes] unless status_becomes.is_a? Array
|
|
600
600
|
|
|
601
|
+
status_becomes.each do |status_name|
|
|
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
|
|
610
|
+
|
|
601
611
|
block = lambda do |issue|
|
|
602
612
|
trigger_statuses = status_becomes.collect do |status_name|
|
|
603
613
|
if status_name == :backlog
|