redmine_avm 0.3.5 → 0.3.8

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: c611ccdb290c5400ffe14b402918a288296818e05827ffe4b0166a2180e41bd0
4
- data.tar.gz: e68b1cee7f6c42fb502cc1962a6105620a1d08a3069f40b274970f1b1063f528
3
+ metadata.gz: 5ebce22ac2e88f3391f2bf313294d6b4873b68d6d81350294d77638aa616ddec
4
+ data.tar.gz: fb8c7ac3ad2a87339ef9649d8de6094ace1ed5bad6fd3a9260d10a879688790d
5
5
  SHA512:
6
- metadata.gz: 52bce40d1534e550ad88eab0dea80b99d9d621393cab1d11b199a4938287981655857da9888c5adf48b1e6211d93171f14ffc85b5c7e30b0ab8f0730a71b099b
7
- data.tar.gz: 198b1d10b717866d126fc190bf5b9a9beb22a55d50971cc5c579e08ceedf298d091033808e3b93752470e5b110da6a90d516074d4557ea9c4d20c98d646d42c5
6
+ metadata.gz: 4836c326ec66a8c5612aaefab8cb1b0346795346cf6380bc94803e03f615d21bc88c94b1bcdc6384857bef07c37f961e55dd28b990e010e93de8ca8f033ccdd4
7
+ data.tar.gz: 015d0910b0efe81c6cd1d78613fe20b4edb080cacda3a5fea3026147700a9302ef26f2d6d7e003c2a23b73052b7af2578560b6ce06ece8ffcc2c42fdb1b5ef98
@@ -2,5 +2,5 @@
2
2
 
3
3
  Redmine::Plugin.post_register :redmine_avm do
4
4
  # Source: https://github.com/esquilo-azul/redmine_events_manager
5
- requires_redmine_plugin(:redmine_events_manager, version_or_higher: '0.4.2')
5
+ requires_redmine_plugin(:redmine_events_manager, version_or_higher: '0.4.12')
6
6
  end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'redmine_avm/patches/issue_patch'
4
+ require 'redmine_avm/patches/test_case_patch'
@@ -2,14 +2,11 @@
2
2
 
3
3
  default_value = {
4
4
  dependencies_section_title: 'Dependencies',
5
- no_dependencies_section_message: <<MESSAGE.strip_heredoc,
6
- Dependencies section not found.
7
- Customize this message in plugin AVM's configuration.
8
- MESSAGE
9
- dependencies_section_missing_dependencies_message: <<MESSAGE.strip_heredoc,
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
- resources(:issue_status_assigns) { as_routes }
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 < ActiveRecord::Migration
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 < ActiveRecord::Migration
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
@@ -2,9 +2,6 @@
2
2
 
3
3
  require 'redmine'
4
4
 
5
- require 'avm/patches/issue_patch'
6
- require 'avm/patches/test_case_patch'
7
-
8
5
  Redmine::Plugin.register :redmine_avm do
9
6
  name 'Redmine\'s AVM plugin'
10
7
  author ::RedmineNonprojectModules::AUTHOR
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Avm
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? ::Avm::Patches::IssuePatch
73
- ::Issue.send(:include, ::Avm::Patches::IssuePatch)
72
+ unless ::Issue.included_modules.include? ::RedmineAvm::Patches::IssuePatch
73
+ ::Issue.include ::RedmineAvm::Patches::IssuePatch
74
74
  end
@@ -0,0 +1,16 @@
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
+ !(::ActiveSupport::TestCase.included_modules.include? ::RedmineAvm::Patches::TestCasePatch)
15
+ ::ActiveSupport::TestCase.include ::RedmineAvm::Patches::TestCasePatch
16
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RedmineAvm
2
4
  class TestConfig
3
5
  def before_each
@@ -4,5 +4,5 @@ module RedmineAvm
4
4
  AUTHOR = 'Eduardo Henrique Bogoni'
5
5
  HOMEPAGE = 'https://github.com/esquilo-azul/redmine_avm'
6
6
  SUMMARY = 'AVM support for Redmine.'
7
- VERSION = '0.3.5'
7
+ VERSION = '0.3.8'
8
8
  end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'rake/testtask'
4
+
3
5
  namespace :redmine_avm do
4
6
  Rake::TestTask.new(test: 'db:test:prepare') do |t|
5
7
  plugin_root = ::File.dirname(::File.dirname(__dir__))
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.5
4
+ version: 0.3.8
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: 2020-08-08 00:00:00.000000000 Z
11
+ date: 2022-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -16,14 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.14'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.14.1
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.4'
29
+ version: '0.14'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.14.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: eac_ruby_gem_support
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.5.1
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.5.1
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,10 @@ 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
66
87
  - lib/redmine_avm/test_config.rb
67
88
  - lib/redmine_avm/version.rb
68
89
  - lib/tasks/issue.rake
@@ -85,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
106
  - !ruby/object:Gem::Version
86
107
  version: '0'
87
108
  requirements: []
88
- rubygems_version: 3.0.8
109
+ rubygems_version: 3.1.6
89
110
  signing_key:
90
111
  specification_version: 4
91
112
  summary: AVM support for Redmine.
@@ -1,17 +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 { ::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? Avm::Patches::TestCasePatch
15
- ::ActiveSupport::TestCase.send(:include, Avm::Patches::TestCasePatch)
16
- end
17
- end