avm 0.48.0 → 0.49.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/launcher/publish/base.rb +0 -2
- data/lib/avm/launcher_stereotypes.rb +9 -0
- data/lib/avm/registry/launcher_stereotypes.rb +11 -0
- data/lib/avm/registry.rb +2 -2
- data/lib/avm/rspec/setup.rb +2 -0
- data/lib/avm/rspec/source_generator.rb +16 -0
- data/lib/avm/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45c9b97e84c6bc931f5c39f0b4504f2ff0bb54777eefec60a11ca75f0f78d7ac
|
4
|
+
data.tar.gz: 8056ef32f78b0dd4e0dd3befb96b76215e427dee54439150bddc8ca55b6f79f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 645d93964df7e611a16976cebaad4a49cffb661b0e44b3d499a3c09f92c3ddf2376de919ee864759e2cd0fb1d63b942a934ce47a1c524bcd62c6e10400858fa1
|
7
|
+
data.tar.gz: 47dd65cb91878b663412a94e47da514d31b39bcb37f87d20796abaffe4877537885207ef2d291f78d511bbe9389333de66be73de053ae484aabfff314e566cde
|
@@ -35,8 +35,6 @@ module Avm
|
|
35
35
|
internal_check
|
36
36
|
rescue ::Avm::Launcher::Errors::Base => e
|
37
37
|
::Avm::Launcher::Publish::CheckResult.blocked("Error: #{e}")
|
38
|
-
rescue ::Avm::Launcher::Git::Error => e
|
39
|
-
::Avm::Launcher::Publish::CheckResult.blocked("Git error: #{e}")
|
40
38
|
end
|
41
39
|
end
|
42
40
|
end
|
data/lib/avm/registry.rb
CHANGED
@@ -7,8 +7,8 @@ module Avm
|
|
7
7
|
module Registry
|
8
8
|
require_sub __FILE__
|
9
9
|
enable_listable
|
10
|
-
lists.add_symbol :category, :application_stereotypes, :instances, :
|
11
|
-
:source_generators, :sources
|
10
|
+
lists.add_symbol :category, :application_stereotypes, :instances, :launcher_stereotypes,
|
11
|
+
:runners, :scms, :source_generators, :sources
|
12
12
|
|
13
13
|
class << self
|
14
14
|
enable_simple_cache
|
data/lib/avm/rspec/setup.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'avm/rspec/source_generator'
|
3
4
|
require 'eac_ruby_utils/core_ext'
|
4
5
|
|
5
6
|
module Avm
|
@@ -9,6 +10,7 @@ module Avm
|
|
9
10
|
|
10
11
|
def self.extended(obj)
|
11
12
|
obj.setup_examples
|
13
|
+
obj.rspec_config.include(::Avm::Rspec::SourceGenerator)
|
12
14
|
end
|
13
15
|
|
14
16
|
def setup_examples
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Rspec
|
7
|
+
module SourceGenerator
|
8
|
+
# @return [Avm::Sources::Base]
|
9
|
+
def avm_source(stereotype_name, target_path = nil)
|
10
|
+
target_path ||= temp_dir.join('generated_app')
|
11
|
+
::Avm::Registry.source_generators.detect(stereotype_name, target_path).perform
|
12
|
+
::Avm::Registry.sources.detect(target_path)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/avm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.49.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-10-
|
11
|
+
date: 2022-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_cli
|
@@ -283,6 +283,7 @@ files:
|
|
283
283
|
- lib/avm/launcher/publish/base.rb
|
284
284
|
- lib/avm/launcher/publish/check_result.rb
|
285
285
|
- lib/avm/launcher/stereotype.rb
|
286
|
+
- lib/avm/launcher_stereotypes.rb
|
286
287
|
- lib/avm/path_string.rb
|
287
288
|
- lib/avm/registry.rb
|
288
289
|
- lib/avm/registry/application_stereotypes.rb
|
@@ -290,6 +291,7 @@ files:
|
|
290
291
|
- lib/avm/registry/application_stereotypes/stereotype_builder.rb
|
291
292
|
- lib/avm/registry/from_gems.rb
|
292
293
|
- lib/avm/registry/instances.rb
|
294
|
+
- lib/avm/registry/launcher_stereotypes.rb
|
293
295
|
- lib/avm/registry/runners.rb
|
294
296
|
- lib/avm/registry/scms.rb
|
295
297
|
- lib/avm/registry/source_generators.rb
|
@@ -302,6 +304,7 @@ files:
|
|
302
304
|
- lib/avm/rspec/shared_examples/entries_values.rb
|
303
305
|
- lib/avm/rspec/shared_examples/in_avm_registry.rb
|
304
306
|
- lib/avm/rspec/shared_examples/not_in_avm_registry.rb
|
307
|
+
- lib/avm/rspec/source_generator.rb
|
305
308
|
- lib/avm/runners/base.rb
|
306
309
|
- lib/avm/scms/base.rb
|
307
310
|
- lib/avm/scms/commit.rb
|