redmine_avm 0.3.4 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/001_patches.rb +4 -0
- data/config/initializers/redmine_plugins_helper.rb +5 -8
- data/config/routes.rb +2 -1
- data/db/migrate/20160516164053_create_issue_status_assigns.rb +4 -2
- data/db/migrate/20180711164719_rename_plugin_avm_to_redmine_avm.rb +3 -1
- data/init.rb +0 -3
- data/lib/{avm → redmine_avm}/patches/issue_patch.rb +3 -3
- data/lib/redmine_avm/patches/test_case_patch.rb +17 -0
- data/lib/redmine_avm/test_config.rb +13 -0
- data/lib/redmine_avm/version.rb +1 -1
- data/lib/tasks/redmine_avm.rake +2 -0
- metadata +27 -6
- data/lib/avm/patches/test_case_patch.rb +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5f72c88e987aca8d4c9062b5a5a806608fd7afec002d10713907ccf241dcf06
|
4
|
+
data.tar.gz: a385db6797824d2247bb865804a374e2595bfb1f3fc0dd88518f51283ef45335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b5055df121cf3761758647715444f00194e8b83ca1c7420b2b34a404897e31603bbc9b2a7a3edfd426fa92e2666f35674402aa1069dd391f34d869ecf275b54
|
7
|
+
data.tar.gz: e22f44a31664178eccf60baa230dd56a97ca80368ead13aa663c76a9f27c24df5cb089734595a4c633a770437f84d319b9f502e0ab9af3441f208e214b8983de
|
@@ -2,14 +2,11 @@
|
|
2
2
|
|
3
3
|
default_value = {
|
4
4
|
dependencies_section_title: 'Dependencies',
|
5
|
-
no_dependencies_section_message:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
Missing dependencies found dependencies section: %{ids}.
|
11
|
-
Customize this message in plugin AVM's configuration.
|
12
|
-
MESSAGE
|
5
|
+
no_dependencies_section_message: "Dependencies section not found.\n" \
|
6
|
+
"Customize this message in plugin AVM's configuration.",
|
7
|
+
dependencies_section_missing_dependencies_message:
|
8
|
+
"Missing dependencies found dependencies section: %{ids}.\n" + # rubocop:disable Style/FormatStringToken
|
9
|
+
"Customize this message in plugin AVM's configuration.",
|
13
10
|
motivation_section_title: 'Motivation',
|
14
11
|
unmotivated_message: 'This issue is not motivated.'
|
15
12
|
}
|
data/config/routes.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
RedmineApp::Application.routes.draw do
|
4
|
-
|
4
|
+
concern :active_scaffold, ActiveScaffold::Routing::Basic.new(association: true)
|
5
|
+
resources(:issue_status_assigns, concerns: :active_scaffold)
|
5
6
|
end
|
@@ -1,8 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class CreateIssueStatusAssigns <
|
3
|
+
class CreateIssueStatusAssigns < (
|
4
|
+
Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
def change
|
5
|
-
create_table :issue_status_assigns do |t|
|
7
|
+
create_table :issue_status_assigns do |t| # rubocop:disable Rails/CreateTableWithTimestamps
|
6
8
|
t.references :issue_status
|
7
9
|
t.references :issue_field
|
8
10
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class RenamePluginAvmToRedmineAvm <
|
3
|
+
class RenamePluginAvmToRedmineAvm < (
|
4
|
+
Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
class Settings < ActiveRecord::Base
|
5
7
|
end
|
6
8
|
|
data/init.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
module
|
3
|
+
module RedmineAvm
|
4
4
|
module Patches
|
5
5
|
module IssuePatch
|
6
6
|
def self.included(base)
|
@@ -69,6 +69,6 @@ module Avm
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
unless ::Issue.included_modules.include? ::
|
73
|
-
::Issue.
|
72
|
+
unless ::Issue.included_modules.include? ::RedmineAvm::Patches::IssuePatch
|
73
|
+
::Issue.include ::RedmineAvm::Patches::IssuePatch
|
74
74
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RedmineAvm
|
4
|
+
module Patches
|
5
|
+
module TestCasePatch
|
6
|
+
def self.included(base)
|
7
|
+
base.setup { ::RedmineAvm::TestConfig.new.before_each }
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
if Rails.env.test?
|
14
|
+
unless ::ActiveSupport::TestCase.included_modules.include? ::RedmineAvm::Patches::TestCasePatch
|
15
|
+
::ActiveSupport::TestCase.include ::RedmineAvm::Patches::TestCasePatch
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module RedmineAvm
|
2
|
+
class TestConfig
|
3
|
+
def before_each
|
4
|
+
s = ::Setting.plugin_redmine_avm.dup || {}
|
5
|
+
s['issue_status_undefined_id'] = 1
|
6
|
+
s['issue_status_blocked_id'] = 4
|
7
|
+
s['issue_status_unblocked_id'] = 2
|
8
|
+
s['admin_user_id'] = 1
|
9
|
+
::Setting.plugin_redmine_avm = s
|
10
|
+
::ListenerOption.listener_enable('Avm::Listeners::IssueMotivationCheck', false)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/redmine_avm/version.rb
CHANGED
data/lib/tasks/redmine_avm.rake
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_avm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
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: 2022-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -24,6 +24,26 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: eac_ruby_gem_support
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.1'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 0.1.2
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.1'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.1.2
|
27
47
|
description:
|
28
48
|
email:
|
29
49
|
executables: []
|
@@ -35,6 +55,7 @@ files:
|
|
35
55
|
- app/models/issue_status_assign.rb
|
36
56
|
- app/views/settings/_avm.html.erb
|
37
57
|
- config/initializers/000_dependencies.rb
|
58
|
+
- config/initializers/001_patches.rb
|
38
59
|
- config/initializers/events_manager.rb
|
39
60
|
- config/initializers/redmine_plugins_helper.rb
|
40
61
|
- config/locales/en.yml
|
@@ -59,10 +80,11 @@ files:
|
|
59
80
|
- lib/avm/listeners/issue_auto_undefine/issue_update.rb
|
60
81
|
- lib/avm/listeners/issue_dependencies_section_check.rb
|
61
82
|
- lib/avm/listeners/issue_motivation_check.rb
|
62
|
-
- lib/avm/patches/issue_patch.rb
|
63
|
-
- lib/avm/patches/test_case_patch.rb
|
64
83
|
- lib/avm/settings.rb
|
65
84
|
- lib/redmine_avm.rb
|
85
|
+
- lib/redmine_avm/patches/issue_patch.rb
|
86
|
+
- lib/redmine_avm/patches/test_case_patch.rb
|
87
|
+
- lib/redmine_avm/test_config.rb
|
66
88
|
- lib/redmine_avm/version.rb
|
67
89
|
- lib/tasks/issue.rake
|
68
90
|
- lib/tasks/redmine_avm.rake
|
@@ -84,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
106
|
- !ruby/object:Gem::Version
|
85
107
|
version: '0'
|
86
108
|
requirements: []
|
87
|
-
|
88
|
-
rubygems_version: 2.7.7
|
109
|
+
rubygems_version: 3.1.6
|
89
110
|
signing_key:
|
90
111
|
specification_version: 4
|
91
112
|
summary: AVM support for Redmine.
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Avm
|
4
|
-
module Patches
|
5
|
-
module TestCasePatch
|
6
|
-
def self.included(base)
|
7
|
-
base.setup do
|
8
|
-
s = ::Setting.plugin_redmine_avm.dup || {}
|
9
|
-
s['issue_status_undefined_id'] = 1
|
10
|
-
s['issue_status_blocked_id'] = 4
|
11
|
-
s['issue_status_unblocked_id'] = 2
|
12
|
-
s['admin_user_id'] = 1
|
13
|
-
::Setting.plugin_redmine_avm = s
|
14
|
-
::ListenerOption.listener_enable('Avm::Listeners::IssueMotivationCheck', false)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
if Rails.env.test?
|
22
|
-
require Rails.root.join('test', 'test_helper.rb')
|
23
|
-
unless ::ActiveSupport::TestCase.included_modules.include? Avm::Patches::TestCasePatch
|
24
|
-
::ActiveSupport::TestCase.send(:include, Avm::Patches::TestCasePatch)
|
25
|
-
end
|
26
|
-
end
|