redmine_remotes 0.11.1 → 0.12.0

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: e499a582893530c8e53c6174e5bbe89dbff261899ce3c48ff5002176c07fd051
4
- data.tar.gz: 923f63c7df6752559d627378db5db04e1abfb5d943701359e12ab5ce6adde310
3
+ metadata.gz: 70c4977d8154fa08f7d03093a35dc948c5bd78639a2a2ce42352e58c5d737050
4
+ data.tar.gz: 8c56794c3633be3b5e731800025a61a73a8df6e17c50776a87790659e0b3235d
5
5
  SHA512:
6
- metadata.gz: 21f2d90dea92f674f3ae6c9eccbfcc79af983ea24c77f30b7e9dffb7be035eb68057c54f6480b7e64da023794510828d1ec4c37d03b6473dbc6a5f6cb5c5f1b9
7
- data.tar.gz: 05acaabae871c31d996a739d1875aa2896cb4ae1d53199ea93b0bfa645fb6e1f7bd351de295416030db25100e74a0dd26bc4ea9b79675d48ee587a1e8982fcb3
6
+ metadata.gz: 546876674ce5856dacf18ed183ddca546dcbdbe2ae17ede908b2512e18af12512f9fd8449d829a82105c654994f62a6a01589c42a2b7e055f5e94a64a182cec2
7
+ data.tar.gz: 2e821818b0294b9e8b889612666a7a10c0eb494abe661743bc8f9122ca741285364aea93e679bb30068b73c9aec7f53aa25f1c1e96b95a0ba2d887199509c280
@@ -59,7 +59,13 @@ module RedmineRemotes
59
59
  end
60
60
 
61
61
  def local_issue_description
62
- provider_issue.description
62
+ <<~DESCRIPTION
63
+ #{provider_issue.description}
64
+
65
+ ----
66
+
67
+ _Demanda remota importada de #{provider_issue.human_view_url}._
68
+ DESCRIPTION
63
69
  end
64
70
  end
65
71
  end
@@ -6,6 +6,10 @@ module RedmineRemotes
6
6
  module Esosti
7
7
  module Entities
8
8
  class Issue < ::Avmtrf1::Esosti::Entities::Issue
9
+ def human_view_url
10
+ instance.issue_human_view_url(uid)
11
+ end
12
+
9
13
  def author_login
10
14
  attributes.fetch('CREATEDBY').if_present { |v| v.gsub(/@[^@]+\z/, '') }
11
15
  end
@@ -39,6 +43,10 @@ module RedmineRemotes
39
43
  def subject
40
44
  attributes.fetch('DESCRIPTION')
41
45
  end
46
+
47
+ def uid
48
+ attributes.fetch('TICKETUID').fetch('content')
49
+ end
42
50
  end
43
51
  end
44
52
  end
@@ -21,6 +21,10 @@ module RedmineRemotes
21
21
  def issue_get_url_suffix(provider_issue_id)
22
22
  "/os/MS_RMTICKET/?ticketid=#{provider_issue_id}"
23
23
  end
24
+
25
+ def issue_human_view_url(ticket_uid)
26
+ "#{root_url}/itsm/ui/maximo.jsp?event=loadapp&value=ms_viewsr&uniqueid=#{ticket_uid}"
27
+ end
24
28
  end
25
29
  end
26
30
  end
@@ -6,6 +6,10 @@ module RedmineRemotes
6
6
  module Jira
7
7
  module Entities
8
8
  class Issue < ::Avmtrf1::RestProvider::Entity
9
+ def human_view_url
10
+ instance.issue_human_view_url(code)
11
+ end
12
+
9
13
  def code
10
14
  data.fetch('key')
11
15
  end
@@ -29,6 +29,10 @@ module RedmineRemotes
29
29
  def issue_get_url_suffix(provider_issue_id)
30
30
  "/issue/#{provider_issue_id}"
31
31
  end
32
+
33
+ def issue_human_view_url(issue_code)
34
+ "#{root_url}/browse/#{issue_code.to_s.upcase}"
35
+ end
32
36
  end
33
37
  end
34
38
  end
@@ -3,7 +3,7 @@
3
3
  module RedmineRemotes
4
4
  SLUG = 'redmine_remotes'
5
5
  NAME = 'Redmine Remotes'
6
- VERSION = '0.11.1'
6
+ VERSION = '0.12.0'
7
7
  AUTHOR = 'Eduardo Henrique Bogoni'
8
8
  SUMMARY = 'Integração do Redmine com trackers diversos.'
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_remotes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Henrique Bogoni