eac_redmine_usability 0.4.1 → 0.4.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/config/initializers/001_patches.rb +2 -2
- data/init.rb +5 -5
- data/lib/eac_redmine_usability/hooks/done_ratio_alternative_input.rb +5 -5
- data/lib/eac_redmine_usability/patches/test_case.rb +3 -3
- data/lib/eac_redmine_usability/undeletable.rb +1 -1
- data/lib/eac_redmine_usability/version.rb +1 -1
- data/lib/tasks/eac_redmine_usability.rake +1 -1
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6833b8dae8d28e9a76f016df3245322348d01a316f022bcf054512f96e4085fd
|
4
|
+
data.tar.gz: 5ddfc822d8da3c440d72f9f1510158be622ede40644410ff269eb8261704ac98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a5d0cf5661b5b35b37be83ad6d3e57e5616337da8ad7733c875149d31562de710d8fe346ea61302d88cd992f688a4e2ffcd8e665e29cd666bdaef98c582619c
|
7
|
+
data.tar.gz: 92b6e6cd722ab8478262ce19656b4394bc262d496ec8811352342227e2cb26965bd8e5d870b0aa8dc08ed1b9c631692dd6048f7af54fd4b36485e0ea5fa914f4
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
source =
|
4
|
-
[
|
3
|
+
source = EacRedmineUsability::Undeletable
|
4
|
+
[Issue, Project, User, Wiki, WikiPage].each do |target|
|
5
5
|
target.send(:include, source) unless target.included_modules.include? source
|
6
6
|
end
|
7
7
|
require 'eac_redmine_usability/patches/test_case'
|
data/init.rb
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
require 'redmine'
|
4
4
|
require 'eac_redmine_usability/version'
|
5
5
|
|
6
|
-
Redmine::Plugin.register
|
7
|
-
name
|
8
|
-
author
|
9
|
-
description
|
10
|
-
version
|
6
|
+
Redmine::Plugin.register EacRedmineUsability::SLUG.to_sym do
|
7
|
+
name EacRedmineUsability::NAME
|
8
|
+
author EacRedmineUsability::AUTHOR
|
9
|
+
description EacRedmineUsability::SUMMARY
|
10
|
+
version EacRedmineUsability::VERSION
|
11
11
|
end
|
@@ -6,9 +6,9 @@ module EacRedmineUsability
|
|
6
6
|
attr_accessor :output_buffer
|
7
7
|
|
8
8
|
ORIGINAL_INPUT_ID = 'issue_done_ratio'
|
9
|
-
ALTERNATIVE_INPUT_ID = ORIGINAL_INPUT_ID
|
10
|
-
CHANGER_CONTROL_ID = ORIGINAL_INPUT_ID
|
11
|
-
HIDDEN_CONTENT_ID = ORIGINAL_INPUT_ID
|
9
|
+
ALTERNATIVE_INPUT_ID = "#{ORIGINAL_INPUT_ID}_alternative"
|
10
|
+
CHANGER_CONTROL_ID = "#{ORIGINAL_INPUT_ID}_changer"
|
11
|
+
HIDDEN_CONTENT_ID = "#{ORIGINAL_INPUT_ID}_hidden_content"
|
12
12
|
ELEMENTS_IDS = [ORIGINAL_INPUT_ID, ALTERNATIVE_INPUT_ID, CHANGER_CONTROL_ID,
|
13
13
|
HIDDEN_CONTENT_ID].freeze
|
14
14
|
|
@@ -25,8 +25,8 @@ module EacRedmineUsability
|
|
25
25
|
|
26
26
|
# return [ActiveSupport::SafeBuffer]
|
27
27
|
def alternative_input(issue)
|
28
|
-
tag(
|
29
|
-
|
28
|
+
tag.input(id: ALTERNATIVE_INPUT_ID, type: 'number', value: issue.done_ratio,
|
29
|
+
min: MINIMUM_VALUE, max: MAXIMUM_VALUE)
|
30
30
|
end
|
31
31
|
|
32
32
|
# return [ActiveSupport::SafeBuffer]
|
@@ -18,8 +18,8 @@ module EacRedmineUsability
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
if
|
22
|
-
patch =
|
23
|
-
target =
|
21
|
+
if Rails.env.test?
|
22
|
+
patch = EacRedmineUsability::Patches::TestCase
|
23
|
+
target = ActiveSupport::TestCase
|
24
24
|
target.send(:include, patch) unless target.included_modules.include?(patch)
|
25
25
|
end
|
@@ -28,7 +28,7 @@ module EacRedmineUsability
|
|
28
28
|
return if ::EacRedmineUsability::Undeletable.allow_destroy
|
29
29
|
|
30
30
|
errors.add :base, 'Este registro não pode ser removido. Em vez disso tente associá-lo a ' \
|
31
|
-
|
31
|
+
'um status como "Rejeitado" ou "Depreciado".'
|
32
32
|
|
33
33
|
throw(:abort)
|
34
34
|
end
|
@@ -6,7 +6,7 @@ RedminePluginsHelper::TestTasks::Auto.register(:eac_redmine_usability)
|
|
6
6
|
namespace :eac_redmine_usability do
|
7
7
|
desc 'Close projects no longer used.'
|
8
8
|
task :close_unused_projects, %i[expire_days confirm] => :environment do |_t, args|
|
9
|
-
|
9
|
+
EacRedmineUsability::CloseUnusedProjects.new(
|
10
10
|
args.expire_days.to_i,
|
11
11
|
args.confirm.present?
|
12
12
|
).run
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_redmine_usability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
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:
|
11
|
+
date: 2025-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_ruby_utils
|
@@ -16,28 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.128'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.128.3
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
29
|
+
version: '0.128'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.128.3
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
34
|
+
name: eac_rails_gem_support
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
39
|
+
version: '0.11'
|
34
40
|
type: :development
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
46
|
+
version: '0.11'
|
41
47
|
description:
|
42
48
|
email:
|
43
49
|
executables: []
|
@@ -71,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
77
|
requirements:
|
72
78
|
- - ">="
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
80
|
+
version: '2.7'
|
75
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
82
|
requirements:
|
77
83
|
- - ">="
|