avm-eac_generic_base0 0.2.2 → 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: 19eb8fc5615a440793c9b2df1fa3befa7f60157f217d04ee345d22bd571e0b3d
4
- data.tar.gz: d05fa9a0698840466e1dd815f20d81051dd0b6461a52abb2da928d4ce991ccd3
3
+ metadata.gz: 755fbb955c1b271bcd8bb889b29114402ad0d1914b1a24b53b1e3230f155f804
4
+ data.tar.gz: d16e42b5d16154472bebe510de9a228993f419da9671f3a1d0b97a9e9e6910fc
5
5
  SHA512:
6
- metadata.gz: ed2c301bdef7b3a7694340f899d951edf664ab9b03cd0fc9d9448011467fe280cc76d825a7fe6ba70f60897703242d1828b42b4f6caef5e09b5c643a74dd8446
7
- data.tar.gz: af3f2e843f402be7bb7db7bead1e8f592c88eaf4e8cbcf9766d7c808b0293bd1614fb4d71c5f4bd5031c647a9daf2260d3fcb8217cc71dbfba43e10fda02701e
6
+ metadata.gz: 40554f4cc836d4e0bb3a8d0b8afa0c1deb0248e59c0074b2c74d95510b6dd268ad5c26b183185506d5440963a2e9e762fa6261e8f14059b6d9f85171734ca402
7
+ data.tar.gz: ecfdd62415aeeed0386d00be47c2034a904a963696db8b0e9d34e93f293b8ae2cc2d5e6ac857d308acaa4e606c77af9bbcaf8fbd31ac4af5388c1a3748cd25ec
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/eac_generic_base0/sources/tester'
4
3
  require 'avm/sources/base'
5
4
  require 'eac_ruby_utils/core_ext'
6
5
 
@@ -11,11 +10,6 @@ module Avm
11
10
  require_sub __FILE__, include_modules: true
12
11
  enable_abstract_methods
13
12
 
14
- # @return [Avm::EacGenericBase0::Sources::Tester]
15
- def tester_class
16
- Avm::EacGenericBase0::Sources::Tester
17
- end
18
-
19
13
  def valid?
20
14
  ::Avm::Registry.scms.detect_optional(path).present?
21
15
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacGenericBase0
5
- VERSION = '0.2.2'
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_generic_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-15 00:00:00.000000000 Z
11
+ date: 2022-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -16,42 +16,48 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.19'
19
+ version: '0.24'
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.19'
26
+ version: '0.24'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: eac_ruby_utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.80'
33
+ version: '0.05'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 0.95.2
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - "~>"
39
42
  - !ruby/object:Gem::Version
40
- version: '0.80'
43
+ version: '0.05'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.95.2
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: eac_ruby_gem_support
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '0.4'
53
+ version: 0.5.1
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: '0.4'
60
+ version: 0.5.1
55
61
  description:
56
62
  email:
57
63
  executables: []
@@ -62,7 +68,6 @@ files:
62
68
  - lib/avm/eac_generic_base0/sources.rb
63
69
  - lib/avm/eac_generic_base0/sources/base.rb
64
70
  - lib/avm/eac_generic_base0/sources/base/version_bump.rb
65
- - lib/avm/eac_generic_base0/sources/tester.rb
66
71
  - lib/avm/eac_generic_base0/version.rb
67
72
  - locale/en.yml
68
73
  - locale/pt-BR.yml
@@ -1,56 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/sources/tester'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- module Avm
7
- module EacGenericBase0
8
- module Sources
9
- class Tester < ::Avm::Sources::Tester
10
- TEST_COMMAND_CONFIGURATION_KEY = :test_command
11
-
12
- enable_simple_cache
13
-
14
- # @return [EacRubyUtils::Envs::Command, nil]
15
- def test_command
16
- source.read_configuration_as_shell_words(TEST_COMMAND_CONFIGURATION_KEY)
17
- .if_present do |args|
18
- ::EacRubyUtils::Envs.local.command(args).chdir(source.path)
19
- end
20
- end
21
-
22
- # @return [EacFs::Logs]
23
- def logs
24
- @logs ||= ::EacFs::Logs.new.add(:stdout).add(:stderr)
25
- end
26
-
27
- # @return [Avm::Sources::Tests::Result]
28
- def result
29
- @result ||= begin
30
- if test_command.blank?
31
- ::Avm::Sources::Tests::Result::NONEXISTENT
32
- elsif run_test_command
33
- ::Avm::Sources::Tests::Result::SUCESSFUL
34
- else
35
- ::Avm::Sources::Tests::Result::FAILED
36
- end
37
- end
38
- end
39
-
40
- protected
41
-
42
- def run_test_command
43
- execute_command_and_log(test_command)
44
- end
45
-
46
- # @return [true, false]
47
- def execute_command_and_log(command)
48
- r = command.execute
49
- logs[:stdout].write(r[:stdout])
50
- logs[:stderr].write(r[:stderr])
51
- r[:exit_code].zero?
52
- end
53
- end
54
- end
55
- end
56
- end