redmine_remotes 0.15.5 → 0.16.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: 67c1e068d64cc326ac7e91e6671c1119e9eba78e7b4f6e94fa24b668087fc8ae
4
- data.tar.gz: 6fed8dde840f7671c78dd7d407e0246eaf6c87b431dca3d930074597e7ae1842
3
+ metadata.gz: f974e7b689f90b6250957c0a0356f22fa78fbd9e84705a18abbd5667df745da0
4
+ data.tar.gz: eb073a99fd7ee11795b341d132f943e820f78103928baa66983ccbebef2531a2
5
5
  SHA512:
6
- metadata.gz: e3e6bb227b50856865c4c563c74be4994746d11e8b6248a483e6105e1b34f1957398a744c1309f83b090fef58548bb38fc42956cf76a65e9713f25b99521c23a
7
- data.tar.gz: d61bd4b29a09a82277a6299999068724fd1b870f1d074e6ddd33f31830ae15e851fe5f94d064e8e74471ce10a1c955f4930b4d9dece81b0f59f300e011a2457e
6
+ metadata.gz: 74953344c1a68f1ce612e808341767fbdc0a4e359f145d55273cd29c7b5160da9b2fc149dc4bb1b536a1ea96d0a2ef95a0e690f4c6f0f20019a143414ee01f7c
7
+ data.tar.gz: cd80adf88f456deedeb3a440626877fa7e5c50bc9d84b8a9311531459e5ad731e9e69422b7b169c306e1630eca4f97a90a126233725dbce9446738b4d751d5b1
@@ -8,9 +8,22 @@ class RemoteIssueStatusesController < ApplicationController
8
8
  layout 'nonproject_modules'
9
9
  require_permission PERMISSIONS
10
10
 
11
+ SEARCH_COLUMNS = %i[remote_name local_issue_status local_tracker remote_tracker].freeze
12
+ before_action :localize_options
13
+
11
14
  active_scaffold :remote_issue_status do |conf|
12
- %i[remote_tracker local_tracker local_issue_status].each do |column|
15
+ conf.actions.swap :search, :field_search
16
+ SEARCH_COLUMNS.each do |column|
13
17
  conf.columns[column].form_ui = :select
14
18
  end
19
+ conf.field_search.columns = SEARCH_COLUMNS
20
+ end
21
+
22
+ private
23
+
24
+ def localize_options
25
+ active_scaffold_config.columns[:remote_name].options = {
26
+ options: ::RemoteIssueStatus.remote_name_options
27
+ }
15
28
  end
16
29
  end
@@ -13,4 +13,10 @@ class RemoteIssueStatus < ActiveRecord::Base
13
13
  validates :remote_tracker, presence: true
14
14
  validates :local_tracker, presence: true
15
15
  validates :local_issue_status, presence: true
16
+
17
+ class << self
18
+ def remote_name_options
19
+ all.pluck(:remote_name).map { |v| [v.upcase, v] }
20
+ end
21
+ end
16
22
  end
@@ -1,4 +1,9 @@
1
1
  en:
2
+ activerecord:
3
+ models:
4
+ remote_issue_status:
5
+ one: Remote issue status
6
+ other: Remote issue statuses
2
7
  eac_ruby_utils:
3
8
  listable:
4
9
  remote_tracker:
@@ -13,8 +18,10 @@ en:
13
18
  label: Alternative "description" field
14
19
  field_issue_remote_code: Remote issue's code
15
20
  field_local_issue: Local issue
21
+ field_local_issue_status: Local issue status
16
22
  field_local_tracker: Local tracker
17
23
  field_remote_code: Remote code
24
+ field_remote_name: Local issue status's name
18
25
  field_remote_tracker: Remote tracker
19
26
  label_remote_issues: Remote issues
20
27
  label_remote_trackers: Remote trackers
@@ -1,4 +1,9 @@
1
1
  pt-BR:
2
+ activerecord:
3
+ models:
4
+ remote_issue_status:
5
+ one: Situação de demanda remota
6
+ other: Situações de demandas remotas
2
7
  eac_ruby_utils:
3
8
  listable:
4
9
  remote_tracker:
@@ -13,8 +18,10 @@ pt-BR:
13
18
  label: Campo "descrição" alternativo
14
19
  field_issue_remote_code: Código da demanda remota
15
20
  field_local_issue: Demanda local
16
- field_local_tracker: Tipo de tarefa local
21
+ field_local_issue_status: Situação de demanda local
22
+ field_local_tracker: Tipo de demanda local
17
23
  field_remote_code: Código remoto
24
+ field_remote_name: Nome da situação de demanda remota
18
25
  field_remote_tracker: Tracker remoto
19
26
  label_remote_issues: Demandas remotas
20
27
  label_remote_trackers: Trackers remotos
@@ -3,7 +3,7 @@
3
3
  module RedmineRemotes
4
4
  SLUG = 'redmine_remotes'
5
5
  NAME = 'Redmine Remotes'
6
- VERSION = '0.15.5'
6
+ VERSION = '0.16.0'
7
7
  AUTHOR = 'Eduardo Henrique Bogoni'
8
8
  SUMMARY = 'Integração do Redmine com trackers diversos.'
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_remotes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.5
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Henrique Bogoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-12 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers