redmine_avm 0.3.4 → 0.3.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 897753a66a700c895ae2ee330aeea9cc4913ed417222369932ba25b721ae999e
4
- data.tar.gz: ba8e437f208e38d249500fa11033ac16a7963fd9994078c61df60de589a2cdb6
3
+ metadata.gz: c611ccdb290c5400ffe14b402918a288296818e05827ffe4b0166a2180e41bd0
4
+ data.tar.gz: e68b1cee7f6c42fb502cc1962a6105620a1d08a3069f40b274970f1b1063f528
5
5
  SHA512:
6
- metadata.gz: 9f7944a36b7ec6a19138ccd1097c2171c5f64ec68b015fc07d5cee645d078b1d87bc1c04ab16d458bfa24ef861d71bad767fc73394e07a7c1c8d38d6a42ed764
7
- data.tar.gz: 2816b0feb52520c2e1cecf9362b64badaf975522495cab1bbbc405aaef568f486b237bf9e9cc5bfbf6725c05e55680e11f579c902138bdfaf6560713e55f10fc
6
+ metadata.gz: 52bce40d1534e550ad88eab0dea80b99d9d621393cab1d11b199a4938287981655857da9888c5adf48b1e6211d93171f14ffc85b5c7e30b0ab8f0730a71b099b
7
+ data.tar.gz: 198b1d10b717866d126fc190bf5b9a9beb22a55d50971cc5c579e08ceedf298d091033808e3b93752470e5b110da6a90d516074d4557ea9c4d20c98d646d42c5
@@ -4,22 +4,13 @@ module Avm
4
4
  module Patches
5
5
  module TestCasePatch
6
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
7
+ base.setup { ::RedmineAvm::TestConfig.new.before_each }
16
8
  end
17
9
  end
18
10
  end
19
11
  end
20
12
 
21
13
  if Rails.env.test?
22
- require Rails.root.join('test', 'test_helper.rb')
23
14
  unless ::ActiveSupport::TestCase.included_modules.include? Avm::Patches::TestCasePatch
24
15
  ::ActiveSupport::TestCase.send(:include, Avm::Patches::TestCasePatch)
25
16
  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
@@ -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.4'
7
+ VERSION = '0.3.5'
8
8
  end
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
4
+ version: 0.3.5
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-04-30 00:00:00.000000000 Z
11
+ date: 2020-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -63,6 +63,7 @@ files:
63
63
  - lib/avm/patches/test_case_patch.rb
64
64
  - lib/avm/settings.rb
65
65
  - lib/redmine_avm.rb
66
+ - lib/redmine_avm/test_config.rb
66
67
  - lib/redmine_avm/version.rb
67
68
  - lib/tasks/issue.rake
68
69
  - lib/tasks/redmine_avm.rake
@@ -84,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  - !ruby/object:Gem::Version
85
86
  version: '0'
86
87
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 2.7.7
88
+ rubygems_version: 3.0.8
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: AVM support for Redmine.