jirametrics 1.1 → 1.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: b364ac3658693ddcb9687bf2bb9efb47bdff52759de9138a06042637696eea82
4
- data.tar.gz: 73d53b6f4bbe31bc8ad16df13a2216e665ed8739c91ddbf0e637566da96068b9
3
+ metadata.gz: 764cb202d312568aa9677798e2ced203b1c8a27578c5dead600cda5401970693
4
+ data.tar.gz: 159da0c95a7377ba3fd0320efa89f685792e8b4da2e06396fe48737f9dc5ec6c
5
5
  SHA512:
6
- metadata.gz: 2440c600218f8444c2441c48e6e31a2fa85be04a874050506e835b7d57ed2c778cdfc407055201b5b9bc0273e41815e409a8e169c6a18e0900a025c1ea54f41a
7
- data.tar.gz: 1374993eb3adf9d993bd25f0e8265d234680fe9daf69d14c8f55ad17d0e2b62d29884306c535c9cb98d5558a6cf2c9c6c234d825397d5d019dc8ad2c7718b9d3
6
+ metadata.gz: 6b315ccf74df5fc323fe82e09f581d055145540af51236cd22ca49bf8e77e3ec7394a0effe67f9a8ec83ed5ca87b2ad580234559f4fbfc18e23b5822af323d83
7
+ data.tar.gz: 4eedc85ec84f589f1a485d8e67f954c69d5c43b0e9bf457bf969107eff4a0a68466a30cad26bf7836bb5d2377503e3eb76fa9562a5466f3e923487c85173f389
@@ -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
@@ -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'
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-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: random-word