jirametrics 2.7.1 → 2.7.2
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 +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b747372b77be9d3ec514c09b57f479741a47688dd6e634e6823aa9feefe3154e
|
4
|
+
data.tar.gz: df7b9bdc06211d7d2fd89df18af5aa8ab4b780aa58f798c29c45ca8033c1986f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
11
|
+
date: 2024-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: random-word
|