avm-eac_redmine_plugin_base0 0.2.0 → 0.3.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: 83ea1b41b929257ca935650c3ae11ab389ed39d4efb34d33f5fd70135ad159fd
4
- data.tar.gz: bedd18afb6728cf1b4490683d0bbfb59db74e9614dedc9cb666a18c526784b98
3
+ metadata.gz: 7f5c50c6e4704163ac121ef8ba781eca799a276fdd55b5a47029bce5da618d2f
4
+ data.tar.gz: dd77234bec3d0864f3748266f45389faf189726b375541e040477b7bc44f5a6a
5
5
  SHA512:
6
- metadata.gz: ef389c486def4ff4819468db944c1569ed84a0201e27291a31213f004a154d556ce6c6ce97aa5579264f16726552a082c4f025367eca2b2e9819fa7916ac9541
7
- data.tar.gz: 492b1499186697b3b71d1e6aa20b2a4aa6ce179f18d40c87ff5ae3c18e4b5debcd208e7d7cc8d4416136747e948593f4a6ac01a95adc4e0c4cde6240aef7bedf
6
+ metadata.gz: 000205d7dc950397a4769ee7a1a1b24e7abdde6ab1b1090c118b0bc8a3d1bbdf8aca0dc8eef18522065c52cad09faff711388b0ee2b597f5a9dd8efbfebdfb98
7
+ data.tar.gz: 1ccad3cf7cfb93aaf11294e87b679a54b38c3183814d8387d34db3892a5bf395a62ade180cd20f19e2fd0b6e5aafb63a2143fb86225fa576764793d0a7b5ef7d
@@ -8,6 +8,7 @@ module Avm
8
8
  module Sources
9
9
  class Base < ::Avm::EacRubyBase1::Sources::Base
10
10
  DEFAULT_GEMFILE_PATH = 'SelfGemfile'
11
+ RUBOCOP_GEM_NAME = 'rubocop'
11
12
  RUBOCOP_TEST_NAME = 'rubocop'
12
13
  PARENT_RAKE_TASK_TEST_NAME = 'parent_rake_task'
13
14
  INIT_SUBPATH = 'init.rb'
@@ -19,10 +20,10 @@ module Avm
19
20
 
20
21
  # @return [Hash<String, EacRubyUtils::Envs::Command>]
21
22
  def default_test_commands
22
- {
23
- PARENT_RAKE_TASK_TEST_NAME => parent_rake_test_command,
24
- RUBOCOP_TEST_NAME => rubocop_test_command
25
- }
23
+ r = {}
24
+ r[PARENT_RAKE_TASK_TEST_NAME] = parent_rake_test_command if parent_rake_test_command?
25
+ r[RUBOCOP_TEST_NAME] = rubocop_test_command if rubocop_test_command?
26
+ r
26
27
  end
27
28
 
28
29
  # @return [String]
@@ -35,6 +36,11 @@ module Avm
35
36
  [gem_name, 'test'].map(&:variableize).join(':')
36
37
  end
37
38
 
39
+ # @return [Boolean]
40
+ def parent_rake_test_command?
41
+ ruby_parent.rake_task?(parent_rake_test_task_name)
42
+ end
43
+
38
44
  # @return [EacRubyUtils::Envs::Command]
39
45
  def parent_rake_test_command
40
46
  ruby_parent.rake(parent_rake_test_task_name).chdir_root.envvar('RAILS_ENV', 'test')
@@ -47,6 +53,11 @@ module Avm
47
53
  .chdir_root
48
54
  end
49
55
 
56
+ # @return [Boolean]
57
+ def rubocop_test_command?
58
+ gemfile_path.exist? && gemfile_lock_gem_version(RUBOCOP_GEM_NAME).present?
59
+ end
60
+
50
61
  # @return [Boolean]
51
62
  def valid?
52
63
  init_path.exist?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRedminePluginBase0
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-eac_redmine_plugin_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-20 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-eac_ruby_base1
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: '0.11'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.10'
26
+ version: '0.11'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: eac_ruby_utils
29
29
  requirement: !ruby/object:Gem::Requirement