jirametrics 1.1 → 1.2.1

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: b364ac3658693ddcb9687bf2bb9efb47bdff52759de9138a06042637696eea82
4
- data.tar.gz: 73d53b6f4bbe31bc8ad16df13a2216e665ed8739c91ddbf0e637566da96068b9
3
+ metadata.gz: e97ffb4b2217f2b52ad32442b150243308aed066d4d4cedea4e9ab00a54e2f60
4
+ data.tar.gz: 4d722736c3494db4977ce2504afe69ba5dad00982b25069a5dea70ff2b7141bc
5
5
  SHA512:
6
- metadata.gz: 2440c600218f8444c2441c48e6e31a2fa85be04a874050506e835b7d57ed2c778cdfc407055201b5b9bc0273e41815e409a8e169c6a18e0900a025c1ea54f41a
7
- data.tar.gz: 1374993eb3adf9d993bd25f0e8265d234680fe9daf69d14c8f55ad17d0e2b62d29884306c535c9cb98d5558a6cf2c9c6c234d825397d5d019dc8ad2c7718b9d3
6
+ metadata.gz: bec679ade15523af3929183d52603d200a4dc42ca1cb34debbde314970d2883f93b40f1f05789497d16ba467b812fc9f9df90cfe34cd1dff81ad7f04b7cf9b35
7
+ data.tar.gz: 578a6ef7ba619bfd63e3ff5c2653fddca52500ad3f03117b043c80eed039c0b437eae7536f6970f9b8bfa1b03a2fd78b706abe015167350a506d0844313200af
@@ -17,9 +17,7 @@ class AgingWorkBarChart < ChartBase
17
17
  <p>
18
18
  There are potentially three bars for each issue, although a bar may be missing if the issue has no
19
19
  information relevant to that. Hovering over any of the bars will provide more details.
20
- <ol><li>The top bar tells you what status the issue is in at any time. Any statuses in the status
21
- category of "To Do" will be in blue. Any in the category of "In Progress" will be in a
22
- yellow and any in "Done" will be green.</li>
20
+ <ol><li>The top bar tells you what status the issue is in at any time.</li>
23
21
  <li>The middle bar indicates blocked and stalled states. A lighter orange is stalled and a darker,
24
22
  reddish colour is blocked.</li>
25
23
  <li>The bottom bar indicated an expedited state.</li></ol>
@@ -39,11 +39,15 @@ class Board
39
39
  end.compact
40
40
  end
41
41
 
42
+ def server_url_prefix
43
+ raise "Cannot parse self: #{@raw['self'].inspect}" unless @raw['self'] =~ /^(https?:\/\/.+)\/rest\//
44
+
45
+ $1
46
+ end
47
+
42
48
  def url
43
49
  # Strangely, the URL isn't anywhere in the returned data so we have to fabricate it.
44
- raise "Cannot parse self: #{@raw['self']}" unless @raw['self'] =~ /^(https?:\/\/[^\/]+)\//
45
-
46
- "#{$1}/secure/RapidBoard.jspa?rapidView=#{id}"
50
+ "#{server_url_prefix}/secure/RapidBoard.jspa?rapidView=#{id}"
47
51
  end
48
52
 
49
53
  def status_ids_from_column column
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'cgi'
4
4
  require 'json'
5
- require 'english'
5
+ require 'English'
6
6
 
7
7
  class Downloader
8
8
  CURRENT_METADATA_VERSION = 4
@@ -75,7 +75,7 @@ class Issue
75
75
 
76
76
  def url
77
77
  # Strangely, the URL isn't anywhere in the returned data so we have to fabricate it.
78
- "#{$1}/browse/#{key}" if @raw['self'] =~ /^(https?:\/\/[^\/]+)\//
78
+ "#{@board.server_url_prefix}/browse/#{key}"
79
79
  end
80
80
 
81
81
  def key_as_i
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: '1.1'
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Bowler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-22 00:00:00.000000000 Z
11
+ date: 2023-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: random-word