eac_tools 0.5.0 → 0.6.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: 6e96780cde14c4b87945f466bcedbb9344b12aa87a9b9832fc520d5ab681fa13
4
- data.tar.gz: '028b3f2c1c65d20cf6c0a1b65470806c49d6368e688bb962161674472e7b7b84'
3
+ metadata.gz: ccf0291272ccc68e5bc61d5245c96b17081d42319907a8dd2b242fe0dc0940ba
4
+ data.tar.gz: ced016860d0c5583ce85f9ffbe96ad52bbb5fb922dc8297adaa05f809a3c902f
5
5
  SHA512:
6
- metadata.gz: 68acf9dcd522d222060f070a7400834e2baabdfa3a5cd8a268077b6b8863abf5470588d8dd040aea08b9542144b57f983434511b1b44c6d4d10d83b8581eed42
7
- data.tar.gz: cdf796ff102923bd500a1c427d6598ae6d1026f4146d80ddff2ffd212ff13c596c9309445c43b1b6e76b9c8015865fadf8927570986afd0fb1ac3945b778a23f
6
+ metadata.gz: 19a09c17f37b1383f86694deb0c9a465bb952fd6496ab1533fe5888f91f4c009b3c8cabde44d40b7edabdff1b1dfb6540d961e0cd08c9383cb1b75b83bc309dd
7
+ data.tar.gz: 1572dd79fde46ab7a10482bae41888bcfae0260a71db83e42ab0b00b14f6d4f290842d32b17de4ddbe53a96ae7bef7b210ece980ba870a53abf05c66ce27e623
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.5.0)
4
+ eac_tools (0.6.0)
5
5
  avm-eac_generic_base0 (~> 0.3)
6
6
  avm-eac_rails_base0 (~> 0.5)
7
- avm-eac_rails_base1 (~> 0.4)
8
- avm-eac_redmine_base0 (~> 0.8)
7
+ avm-eac_rails_base1 (~> 0.4, >= 0.4.1)
8
+ avm-eac_redmine_base0 (~> 0.9)
9
9
  avm-eac_redmine_plugin_base0 (~> 0.1, >= 0.1.1)
10
10
  avm-eac_ruby_base1 (~> 0.9)
11
11
  avm-tools (~> 0.121)
@@ -28,21 +28,21 @@ PATH
28
28
  PATH
29
29
  remote: sub/avm-eac_rails_base1
30
30
  specs:
31
- avm-eac_rails_base1 (0.4.0)
32
- avm-eac_ruby_base1 (~> 0.9)
31
+ avm-eac_rails_base1 (0.4.1)
32
+ avm-eac_ruby_base1 (~> 0.9, >= 0.9.1)
33
33
  avm-eac_webapp_base0 (~> 0.3)
34
34
  eac_ruby_utils (~> 0.95, >= 0.95.2)
35
35
 
36
36
  PATH
37
37
  remote: sub/avm-eac_redmine_base0
38
38
  specs:
39
- avm-eac_redmine_base0 (0.8.0)
40
- avm-eac_rails_base1 (~> 0.3)
41
- avm-eac_ubuntu_base0 (~> 0.2)
42
- curb (~> 0.9.10)
43
- eac_fs (~> 0.4)
44
- eac_rest (~> 0.4)
45
- eac_ruby_utils (~> 0.68)
39
+ avm-eac_redmine_base0 (0.9.0)
40
+ avm-eac_rails_base1 (~> 0.4, >= 0.4.1)
41
+ avm-eac_ubuntu_base0 (~> 0.3)
42
+ curb (~> 0.9.11)
43
+ eac_fs (~> 0.12, >= 0.12.2)
44
+ eac_rest (~> 0.6, >= 0.6.1)
45
+ eac_ruby_utils (~> 0.95, >= 0.95.2)
46
46
 
47
47
  PATH
48
48
  remote: sub/avm-eac_redmine_plugin_base0
@@ -54,7 +54,7 @@ PATH
54
54
  PATH
55
55
  remote: sub/avm-eac_ruby_base1
56
56
  specs:
57
- avm-eac_ruby_base1 (0.9.0)
57
+ avm-eac_ruby_base1 (0.9.1)
58
58
  avm (~> 0.23)
59
59
  avm-eac_generic_base0 (~> 0.2)
60
60
  eac_ruby_utils (~> 0.95, >= 0.95.1)
@@ -81,7 +81,7 @@ PATH
81
81
  PATH
82
82
  remote: sub/avm
83
83
  specs:
84
- avm (0.24.0)
84
+ avm (0.25.0)
85
85
  eac_cli (~> 0.27, >= 0.27.6)
86
86
  eac_docker (~> 0.3)
87
87
  eac_git (~> 0.6)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.5.0'
4
+ VERSION = '0.6.0'
5
5
  end
@@ -8,6 +8,8 @@ module Avm
8
8
  module Sources
9
9
  module Tests
10
10
  class Builder
11
+ NO_TEST_TEST_NAME = 'no_test'
12
+
11
13
  require_sub __FILE__
12
14
  enable_immutable
13
15
 
@@ -44,9 +46,18 @@ module Avm
44
46
  create_units(main_source.subs)
45
47
  end
46
48
 
49
+ # @return [Avm::Sources::Tests::Single]
50
+ def create_source_no_test_unit(source)
51
+ ::Avm::Sources::Tests::Single.new(self, source, NO_TEST_TEST_NAME,
52
+ source.env.command('true'))
53
+ end
54
+
47
55
  # @return [Array<Avm::Sources::Tests::Single>]
48
56
  def create_source_units(source)
49
- source.test_commands.map do |test_name, test_command|
57
+ tests = source.test_commands
58
+ return create_source_no_test_unit(source) unless tests.any?
59
+
60
+ tests.map do |test_name, test_command|
50
61
  ::Avm::Sources::Tests::Single.new(self, source, test_name, test_command)
51
62
  end
52
63
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.24.0'
4
+ VERSION = '0.25.0'
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
14
 
15
- s.add_dependency 'avm-eac_ruby_base1', '~> 0.9'
15
+ s.add_dependency 'avm-eac_ruby_base1', '~> 0.9', '>= 0.9.1'
16
16
  s.add_dependency 'avm-eac_webapp_base0', '~> 0.3'
17
17
  s.add_dependency 'eac_ruby_utils', '~> 0.95', '>= 0.95.2'
18
18
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRailsBase1
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.1'
6
6
  end
7
7
  end
@@ -3,3 +3,6 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
+
7
+ local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
+ eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
@@ -12,12 +12,12 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,locale,template}/**/*']
14
14
 
15
- s.add_dependency 'avm-eac_rails_base1', '~> 0.3'
16
- s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.2'
17
- s.add_dependency 'curb', '~> 0.9.10'
18
- s.add_dependency 'eac_fs', '~> 0.4'
19
- s.add_dependency 'eac_rest', '~> 0.4'
20
- s.add_dependency 'eac_ruby_utils', '~> 0.68'
15
+ s.add_dependency 'avm-eac_rails_base1', '~> 0.4', '>= 0.4.1'
16
+ s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
17
+ s.add_dependency 'curb', '~> 0.9.11'
18
+ s.add_dependency 'eac_fs', '~> 0.12', '>= 0.12.2'
19
+ s.add_dependency 'eac_rest', '~> 0.6', '>= 0.6.1'
20
+ s.add_dependency 'eac_ruby_utils', '~> 0.95', '>= 0.95.2'
21
21
 
22
22
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
23
23
  end
@@ -8,9 +8,17 @@ module Avm
8
8
  module EacRedmineBase0
9
9
  module Sources
10
10
  class Base < ::Avm::EacRailsBase1::Sources::Base
11
+ DEFAULT_TEST_COMMANDS = {}.freeze
11
12
  REDMINE_LIB_SUBPATH = 'lib/redmine.rb'
12
13
  SUBS_INCLUDE_PATHS_DEFAULT = ['plugins/*'].freeze
13
14
 
15
+ # Return a empty hash (No tests).
16
+ #
17
+ # @return [Hash<String, EacRubyUtils::Envs::Command].
18
+ def default_test_commands
19
+ DEFAULT_TEST_COMMANDS
20
+ end
21
+
14
22
  def redmine_lib_path
15
23
  path.join(REDMINE_LIB_SUBPATH)
16
24
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRedmineBase0
5
- VERSION = '0.8.0'
5
+ VERSION = '0.9.0'
6
6
  end
7
7
  end
@@ -15,10 +15,6 @@ module Avm
15
15
 
16
16
  require_sub __FILE__, include_modules: :prepend
17
17
 
18
- # To-do: dismiss this method at Avm::EacRailsBase1::Instance and remove.
19
- # @return [EacRubyUtils::Envs::BaseEnv]
20
- attr_reader :env
21
-
22
18
  # @return [Hash<String, EacRubyUtils::Envs::Command>]
23
19
  def default_test_commands
24
20
  {
@@ -26,6 +22,12 @@ module Avm
26
22
  }
27
23
  end
28
24
 
25
+ # To-do: dismiss this method at Avm::EacRailsBase1::Instance and remove.
26
+ # @return [EacRubyUtils::Envs::BaseEnv]
27
+ def env
28
+ @env.presence || super
29
+ end
30
+
29
31
  # To-do: dismiss this method at Avm::EacRailsBase1::Instance and remove.
30
32
  # @return [Avm::EacRubyBase1::Sources::Base]
31
33
  def env_set(env)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRubyBase1
5
- VERSION = '0.9.0'
5
+ VERSION = '0.9.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
@@ -45,6 +45,9 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.4'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.4.1
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,20 +55,23 @@ dependencies:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
57
  version: '0.4'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.4.1
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: avm-eac_redmine_base0
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: '0.8'
67
+ version: '0.9'
62
68
  type: :runtime
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
72
  - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: '0.8'
74
+ version: '0.9'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: avm-eac_redmine_plugin_base0
71
77
  requirement: !ruby/object:Gem::Requirement