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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a93af46dd816e8ff88d28bcff6f3576854a3d20f15ea23496797bec53b4f615d
4
- data.tar.gz: a1ffd32cad9ff93ad61b2e72451cd8aa48e7e73785ac98ea4e6018d533b203ee
3
+ metadata.gz: '09a5b3a17e5af7e9896e01d5ed661f72d08d99939968b00503dfb8da9773dea2'
4
+ data.tar.gz: 2d2c2a8db4412d9d4412b507dca2951968a562d1d70e82d5e400d67ea09b4556
5
5
  SHA512:
6
- metadata.gz: 50468c878959ce6508d8470195c2c4d6f8e98bc0a9bebafaaceceb9e296d8f3bdbf194e36a00459c0c34f9174371ccb53ac1dc02b8cf1a8fccb3d6a3ee143c45
7
- data.tar.gz: 9c4c6ef0c5c70d417d5c305a311d25d292bbcea1bcd5777fdf004922178a255aa65180fb0b4455eda8f9d9a72f5f1c23ac650c2e83368c8fc5926ba6aefc0a1f
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jirametrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.25.1
4
+ version: 2.25.2pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Bowler