jirametrics 2.7.1 → 2.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5bb71d8f3c6ab4cf1fa17ad93ad1c00ba1b8381c196bc15a054095a5a91917a
4
- data.tar.gz: 790abb0404719d6b55d833ad76d34121875997f3ec3967f69f5d467fae203752
3
+ metadata.gz: b747372b77be9d3ec514c09b57f479741a47688dd6e634e6823aa9feefe3154e
4
+ data.tar.gz: df7b9bdc06211d7d2fd89df18af5aa8ab4b780aa58f798c29c45ca8033c1986f
5
5
  SHA512:
6
- metadata.gz: f71c2ae123a13435a1147ceaadf7f10364a6cdf1421b4f8491633936189e3744e58da4d99be6c43c6e8034d5f27afc470498532157ac15a7d4459a0399f6fc12
7
- data.tar.gz: f33eb0ea450d6002b09d84311823fc20847327bb78dca5fa218c3f724a23f02d49f4ef0183e9dc02499e0eea1f5916147396538751192974926e1c197f4f0bb5
6
+ metadata.gz: 7f4873e816019b7b2903b7b2a5c905484a6e1ef5d2601f9bb8dd0cec78a306646a4d145a6bb76981a4bd3ce46d884e5e7b8e8e3ccef4f179a2a7067e26b58a43
7
+ data.tar.gz: 40790878004dd12d1aa362cbe72988a2c6ed13152066b48ab1f38855a74bf89f8aae926d13d3e721990ca568c20f5adbd1c99d0ce5b81aaece19d04701b8eddd
@@ -31,6 +31,10 @@ class ProjectConfig
31
31
  instance_eval(&@block) if @block
32
32
  end
33
33
 
34
+ def data_downloaded?
35
+ File.exist? File.join(@target_path, "#{file_prefix}_meta.json")
36
+ end
37
+
34
38
  def load_data
35
39
  return if @has_loaded_data
36
40
 
@@ -43,6 +47,8 @@ class ProjectConfig
43
47
  end
44
48
 
45
49
  def run load_only: false
50
+ return if @exporter.downloading?
51
+
46
52
  load_data unless aggregated_project?
47
53
  anonymize_data if @anonymizer_needed
48
54
 
@@ -304,6 +310,10 @@ class ProjectConfig
304
310
  raise 'This is an aggregated project and issues should have been included with the include_issues_from ' \
305
311
  'declaration but none are here. Check your config.'
306
312
  end
313
+
314
+ return @issues = [] if @exporter.downloading?
315
+ raise 'No data found. Must do a download before an export' unless data_downloaded?
316
+
307
317
  load_data if all_boards.empty?
308
318
 
309
319
  timezone_offset = exporter.timezone_offset
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jirametrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Bowler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: random-word