eac_tools 0.36.0 → 0.37.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -0
- data/Gemfile.lock +14 -13
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/lib/avm/launcher/paths/logical.rb +2 -1
- data/sub/avm/lib/avm/launcher/publish/base.rb +0 -2
- data/sub/{avm-tools/lib/avm/projects → avm/lib/avm/launcher}/stereotype.rb +1 -1
- data/sub/avm/lib/avm/launcher_stereotypes.rb +9 -0
- data/sub/avm/lib/avm/registry/launcher_stereotypes.rb +11 -0
- data/sub/avm/lib/avm/registry.rb +2 -2
- data/sub/avm/lib/avm/rspec/setup.rb +2 -0
- data/sub/avm/lib/avm/rspec/source_generator.rb +16 -0
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +1 -1
- data/sub/{avm-tools/lib/avm/launcher/ruby → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher}/gem/build.rb +4 -4
- data/sub/{avm-tools/lib/avm/launcher/ruby → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher}/gem/specification.rb +2 -2
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb +13 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb +11 -0
- data/sub/{avm-tools/lib/avm/projects/stereotypes/ruby_gem → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base}/local_project_mixin.rb +3 -3
- data/sub/{avm-tools/lib/avm/projects/stereotypes/ruby_gem → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base}/publish.rb +6 -6
- data/sub/{avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb → avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base.rb} +7 -7
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb +9 -0
- data/sub/avm-eac_ruby_base1/spec/spec_helper.rb +4 -0
- data/sub/avm-git/avm-git.gemspec +2 -1
- data/sub/avm-git/lib/avm/git/issue/complete.rb +1 -1
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/class_methods.rb +3 -3
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/dirty_files.rb +2 -2
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/remotes.rb +5 -5
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/subrepo.rb +2 -2
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/underlying.rb +2 -2
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base.rb +9 -9
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/error.rb +5 -3
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/mirror_update.rb +5 -5
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/publish_base.rb +4 -4
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/remote.rb +2 -2
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/sub_warp_base.rb +4 -4
- data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/warp_base.rb +8 -8
- data/sub/avm-git/lib/avm/git/launcher.rb +7 -0
- data/sub/{avm-tools/lib/avm/projects/stereotypes → avm-git/lib/avm/git/launcher_stereotypes}/git/local_project_mixin.rb +2 -2
- data/sub/{avm-tools/lib/avm/projects/stereotypes → avm-git/lib/avm/git/launcher_stereotypes}/git/publish.rb +4 -4
- data/sub/{avm-tools/lib/avm/projects/stereotypes → avm-git/lib/avm/git/launcher_stereotypes}/git/warp.rb +5 -5
- data/sub/{avm-tools/lib/avm/projects/stereotypes → avm-git/lib/avm/git/launcher_stereotypes}/git.rb +4 -4
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb +14 -0
- data/sub/{avm-tools/lib/avm/projects/stereotypes → avm-git/lib/avm/git/launcher_stereotypes}/git_subrepo/warp.rb +9 -9
- data/sub/{avm-tools/lib/avm/projects/stereotypes → avm-git/lib/avm/git/launcher_stereotypes}/git_subrepo.rb +6 -6
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subtree/publish.rb +14 -0
- data/sub/{avm-tools/lib/avm/projects/stereotypes → avm-git/lib/avm/git/launcher_stereotypes}/git_subtree/warp.rb +6 -6
- data/sub/{avm-tools/lib/avm/projects/stereotypes → avm-git/lib/avm/git/launcher_stereotypes}/git_subtree.rb +9 -9
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/provider.rb +22 -0
- data/sub/avm-git/lib/avm/git/launcher_stereotypes.rb +11 -0
- data/sub/avm-git/lib/avm/git/organize/repository.rb +1 -0
- data/sub/avm-git/lib/avm/git/version.rb +1 -1
- data/sub/{avm-tools/spec/lib/avm/launcher/git → avm-git/spec/lib/avm/git/launcher}/base_spec.rb +7 -7
- data/sub/avm-tools/avm-tools.gemspec +3 -3
- data/sub/avm-tools/lib/avm/projects/stereotypes.rb +4 -0
- data/sub/avm-tools/lib/avm/tools/runner/files/format.rb +2 -2
- data/sub/avm-tools/lib/avm/tools/runner/git/commit.rb +2 -2
- data/sub/avm-tools/lib/avm/tools/runner/git/deploy.rb +2 -2
- data/sub/avm-tools/lib/avm/tools/runner/git.rb +2 -2
- data/sub/avm-tools/lib/avm/tools/runner/launcher_stereotypes/list.rb +42 -0
- data/sub/avm-tools/lib/avm/tools/runner/launcher_stereotypes.rb +16 -0
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/avm-tools/spec/lib/avm/{launcher/ruby → eac_ruby_base1/launcher}/gem/build_spec.rb +4 -4
- data/sub/avm-tools/spec/lib/avm/{launcher/ruby → eac_ruby_base1/launcher}/gem/specification_spec.rb +3 -3
- data/sub/avm-tools/spec/lib/avm/{projects/stereotypes/ruby_gem → eac_ruby_base1/launcher_stereotypes/base}/publish_spec.rb +4 -4
- data/sub/avm-tools/spec/lib/avm/{projects/stereotypes/ruby_gem_spec.rb → eac_ruby_base1/launcher_stereotypes/base_spec.rb} +5 -5
- data/sub/avm-tools/spec/lib/avm/launcher/context_spec.rb +51 -37
- data/sub/avm-tools/spec/lib/avm/projects/stereotypes/git_subrepo/publish_spec.rb +3 -3
- data/sub/avm-tools/spec/lib/avm/projects/stereotypes/git_subrepo/warp_spec.rb +4 -4
- data/sub/avm-tools/spec/lib/avm/tools/runner/launcher_stereotypes/list_spec.rb +17 -0
- data/sub/avm-tools/spec/lib/avm/tools/runner/source/issue/complete_spec.rb +2 -2
- data/sub/avm-tools/spec/spec_helper/eac_launcher.rb +4 -4
- metadata +53 -44
- data/sub/avm-tools/lib/avm/launcher/git.rb +0 -7
- data/sub/avm-tools/lib/avm/launcher/ruby/gem.rb +0 -4
- data/sub/avm-tools/lib/avm/launcher/ruby.rb +0 -3
- data/sub/avm-tools/lib/avm/projects/stereotypes/git_subrepo/publish.rb +0 -14
- data/sub/avm-tools/lib/avm/projects/stereotypes/git_subtree/publish.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c51afc6cc47066279aecae0a111a60358d765c6cb42bd50b028aa1d01972e051
|
4
|
+
data.tar.gz: 370f9cf00a71393edc5345948f95dc96e438cf00ea3672b6c2f23e7f8d5da285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8114f6308cee0ee687085eb7b2e87419bb55876e9bc4cad9ddee448b6d5e325ac162196ca06eb48af92b72b391b106cb6ee4bce51a5260e28f1e6a611349a8d
|
7
|
+
data.tar.gz: 738c6a8e0a54ead97d5af98a37fb48c95d9befda1743b4de35e50e894868396c9bee734cbf41e56d7421dd84eff60064a1d7fc2ea57c44650d6c9347aaaaf957
|
data/Gemfile
CHANGED
@@ -5,5 +5,10 @@ source 'https://rubygems.org'
|
|
5
5
|
gemspec
|
6
6
|
|
7
7
|
::Dir["#{::File.join(__dir__, 'sub')}/*"].each do |dir|
|
8
|
+
next unless ::File.exist?(::File.join(dir, "#{::File.basename(dir)}.gemspec"))
|
9
|
+
|
8
10
|
gem ::File.basename(dir), path: dir, require: false
|
9
11
|
end
|
12
|
+
|
13
|
+
local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
|
14
|
+
eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.
|
5
|
-
avm (~> 0.
|
4
|
+
eac_tools (0.37.0)
|
5
|
+
avm (~> 0.49)
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.7, >= 0.7.1)
|
7
7
|
avm-eac_generic_base0 (~> 0.5)
|
8
8
|
avm-eac_latex_base0 (~> 0.2, >= 0.2.1)
|
@@ -11,10 +11,10 @@ PATH
|
|
11
11
|
avm-eac_rails_base1 (~> 0.7)
|
12
12
|
avm-eac_redmine_base0 (~> 0.16)
|
13
13
|
avm-eac_redmine_plugin_base0 (~> 0.3)
|
14
|
-
avm-eac_ruby_base1 (~> 0.
|
14
|
+
avm-eac_ruby_base1 (~> 0.24)
|
15
15
|
avm-eac_webapp_base0 (~> 0.9, >= 0.9.2)
|
16
16
|
avm-eac_wordpress_base0 (~> 0.2, >= 0.2.1)
|
17
|
-
avm-tools (~> 0.
|
17
|
+
avm-tools (~> 0.142)
|
18
18
|
eac_ruby_utils (~> 0.104)
|
19
19
|
|
20
20
|
PATH
|
@@ -87,8 +87,8 @@ PATH
|
|
87
87
|
PATH
|
88
88
|
remote: sub/avm-eac_ruby_base1
|
89
89
|
specs:
|
90
|
-
avm-eac_ruby_base1 (0.
|
91
|
-
avm (~> 0.
|
90
|
+
avm-eac_ruby_base1 (0.24.0)
|
91
|
+
avm (~> 0.49)
|
92
92
|
avm-eac_generic_base0 (~> 0.5)
|
93
93
|
eac_ruby_utils (~> 0.104)
|
94
94
|
|
@@ -123,22 +123,23 @@ PATH
|
|
123
123
|
PATH
|
124
124
|
remote: sub/avm-git
|
125
125
|
specs:
|
126
|
-
avm-git (0.
|
127
|
-
avm (~> 0.
|
126
|
+
avm-git (0.7.0)
|
127
|
+
avm (~> 0.49)
|
128
128
|
avm-files (~> 0.4, >= 0.4.1)
|
129
129
|
eac_git (~> 0.12, >= 0.12.3)
|
130
130
|
eac_ruby_utils (~> 0.104)
|
131
|
+
git (~> 1.12)
|
131
132
|
|
132
133
|
PATH
|
133
134
|
remote: sub/avm-tools
|
134
135
|
specs:
|
135
|
-
avm-tools (0.
|
136
|
+
avm-tools (0.142.0)
|
136
137
|
aranha-parsers (~> 0.14, >= 0.14.3)
|
137
|
-
avm (~> 0.
|
138
|
-
avm-eac_ruby_base1 (~> 0.
|
138
|
+
avm (~> 0.49)
|
139
|
+
avm-eac_ruby_base1 (~> 0.24)
|
139
140
|
avm-eac_ubuntu_base0 (~> 0.3)
|
140
141
|
avm-files (~> 0.4, >= 0.4.1)
|
141
|
-
avm-git (~> 0.
|
142
|
+
avm-git (~> 0.7)
|
142
143
|
clipboard (~> 1.3, >= 1.3.6)
|
143
144
|
curb (~> 0.9, >= 0.9.11)
|
144
145
|
eac_git (~> 0.12, >= 0.12.3)
|
@@ -150,7 +151,7 @@ PATH
|
|
150
151
|
PATH
|
151
152
|
remote: sub/avm
|
152
153
|
specs:
|
153
|
-
avm (0.
|
154
|
+
avm (0.49.0)
|
154
155
|
eac_cli (~> 0.28)
|
155
156
|
eac_config (~> 0.11, >= 0.11.1)
|
156
157
|
eac_docker (~> 0.5)
|
data/lib/eac_tools/version.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'avm/projects/stereotypes'
|
4
4
|
require 'avm/launcher/paths/real'
|
5
|
+
require 'avm/launcher/stereotype'
|
5
6
|
|
6
7
|
module Avm
|
7
8
|
module Launcher
|
@@ -61,7 +62,7 @@ module Avm
|
|
61
62
|
private
|
62
63
|
|
63
64
|
def stereotypes_uncached
|
64
|
-
::Avm::
|
65
|
+
::Avm::Launcher::Stereotype.stereotypes.select { |s| s.match?(self) }
|
65
66
|
end
|
66
67
|
|
67
68
|
def build_child(name)
|
@@ -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/sub/avm/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
|
@@ -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/sub/avm/lib/avm/version.rb
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib,locale,template}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'avm', '~> 0.
|
15
|
+
s.add_dependency 'avm', '~> 0.49'
|
16
16
|
s.add_dependency 'avm-eac_generic_base0', '~> 0.5'
|
17
17
|
s.add_dependency 'eac_ruby_utils', '~> 0.104'
|
18
18
|
|
@@ -3,11 +3,11 @@
|
|
3
3
|
require 'tmpdir'
|
4
4
|
require 'eac_cli/speaker'
|
5
5
|
require 'eac_ruby_utils/envs'
|
6
|
-
require 'avm/launcher/
|
6
|
+
require 'avm/eac_ruby_base1/launcher/gem/specification'
|
7
7
|
|
8
8
|
module Avm
|
9
|
-
module
|
10
|
-
module
|
9
|
+
module EacRubyBase1
|
10
|
+
module Launcher
|
11
11
|
module Gem
|
12
12
|
class Build
|
13
13
|
enable_speaker
|
@@ -88,7 +88,7 @@ module Avm
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def check_gem_version
|
91
|
-
spec = ::Avm::Launcher::
|
91
|
+
spec = ::Avm::EacRubyBase1::Launcher::Gem::Specification.new(gemspec_file)
|
92
92
|
return if ::File.basename(output_file, '.gem') == spec.full_name
|
93
93
|
|
94
94
|
raise("Builded gem is not the same version of gemspec (#{spec}, #{output_file})")
|
@@ -5,9 +5,9 @@ require 'avm/version_number'
|
|
5
5
|
require 'eac_ruby_utils/core_ext'
|
6
6
|
|
7
7
|
module Avm
|
8
|
-
module
|
9
|
-
module
|
10
|
-
class
|
8
|
+
module EacRubyBase1
|
9
|
+
module LauncherStereotypes
|
10
|
+
class Base
|
11
11
|
module LocalProjectMixin
|
12
12
|
# @return [Avm::EacRubyBase1::Sources::Base]
|
13
13
|
def ruby_gem
|
@@ -7,12 +7,12 @@ require 'rubygems'
|
|
7
7
|
require 'eac_cli/speaker'
|
8
8
|
require 'avm/launcher/publish/base'
|
9
9
|
require 'avm/launcher/publish/check_result'
|
10
|
-
require 'avm/launcher/
|
10
|
+
require 'avm/eac_ruby_base1/launcher/gem'
|
11
11
|
|
12
12
|
module Avm
|
13
|
-
module
|
14
|
-
module
|
15
|
-
class
|
13
|
+
module EacRubyBase1
|
14
|
+
module LauncherStereotypes
|
15
|
+
class Base
|
16
16
|
class Publish < ::Avm::Launcher::Publish::Base
|
17
17
|
include ::EacRubyUtils::SimpleCache
|
18
18
|
enable_speaker
|
@@ -67,11 +67,11 @@ module Avm
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def gem_spec_uncached
|
70
|
-
::Avm::
|
70
|
+
::Avm::EacRubyBase1::LauncherStereotypes::Base.load_gemspec(gemspec)
|
71
71
|
end
|
72
72
|
|
73
73
|
def gem_build_uncached
|
74
|
-
::Avm::Launcher::
|
74
|
+
::Avm::EacRubyBase1::Launcher::Gem::Build.new(source)
|
75
75
|
end
|
76
76
|
|
77
77
|
def publish
|
@@ -1,15 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/
|
4
|
-
require 'avm/launcher/
|
3
|
+
require 'avm/launcher/stereotype'
|
4
|
+
require 'avm/eac_ruby_base1/launcher/gem/specification'
|
5
5
|
require 'eac_ruby_utils/core_ext'
|
6
6
|
|
7
7
|
module Avm
|
8
|
-
module
|
9
|
-
module
|
10
|
-
class
|
8
|
+
module EacRubyBase1
|
9
|
+
module LauncherStereotypes
|
10
|
+
class Base
|
11
11
|
require_sub __FILE__
|
12
|
-
include Avm::
|
12
|
+
include ::Avm::Launcher::Stereotype
|
13
13
|
|
14
14
|
class << self
|
15
15
|
def match?(path)
|
@@ -21,7 +21,7 @@ module Avm
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def load_gemspec(gemspec_file)
|
24
|
-
::Avm::Launcher::
|
24
|
+
::Avm::EacRubyBase1::Launcher::Gem::Specification.new(gemspec_file)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -1,7 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'avm/eac_ruby_base1/sources/base'
|
4
|
+
require 'avm/version_number'
|
4
5
|
|
5
6
|
::RSpec.describe ::Avm::EacRubyBase1::Sources::Base do
|
7
|
+
let(:instance) { avm_source('EacRubyBase1') }
|
8
|
+
|
6
9
|
include_examples 'in_avm_registry', 'sources'
|
10
|
+
|
11
|
+
it { expect(instance).to be_a(described_class) }
|
12
|
+
|
13
|
+
it do
|
14
|
+
expect(instance.version).to eq(::Avm::VersionNumber.new('0.0.0'))
|
15
|
+
end
|
7
16
|
end
|
@@ -2,3 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'eac_ruby_utils/rspec/default_setup'
|
4
4
|
::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
|
5
|
+
|
6
|
+
require 'eac_ruby_utils/speaker'
|
7
|
+
require 'eac_ruby_utils/rspec/stub_speaker'
|
8
|
+
::EacRubyUtils::Speaker.context.push(::EacRubyUtils::Rspec::StubSpeaker.new)
|
data/sub/avm-git/avm-git.gemspec
CHANGED
@@ -12,10 +12,11 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'avm', '~> 0.
|
15
|
+
s.add_dependency 'avm', '~> 0.49'
|
16
16
|
s.add_dependency 'avm-files', '~> 0.4', '>= 0.4.1'
|
17
17
|
s.add_dependency 'eac_git', '~> 0.12', '>= 0.12.3'
|
18
18
|
s.add_dependency 'eac_ruby_utils', '~> 0.104'
|
19
|
+
s.add_dependency 'git', '~> 1.12'
|
19
20
|
|
20
21
|
s.add_development_dependency 'aranha-parsers', '~> 0.8', '>= 0.8.5'
|
21
22
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
|
data/sub/{avm-tools/lib/avm/launcher/git → avm-git/lib/avm/git/launcher}/base/class_methods.rb
RENAMED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Avm
|
4
|
-
module
|
5
|
-
module
|
4
|
+
module Git
|
5
|
+
module Launcher
|
6
6
|
class Base < ::Avm::Launcher::Paths::Real
|
7
7
|
module ClassMethods
|
8
|
-
# @return [Avm::Launcher::
|
8
|
+
# @return [Avm::Git::Launcher::Base]
|
9
9
|
def by_root(search_base_path)
|
10
10
|
new(find_root(search_base_path).to_path)
|
11
11
|
end
|
@@ -1,16 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'eac_ruby_utils/core_ext'
|
4
|
-
require 'avm/launcher/
|
4
|
+
require 'avm/git/launcher/remote'
|
5
5
|
|
6
6
|
module Avm
|
7
|
-
module
|
8
|
-
module
|
7
|
+
module Git
|
8
|
+
module Launcher
|
9
9
|
class Base < ::Avm::Launcher::Paths::Real
|
10
10
|
module Remotes
|
11
|
-
# @return [Avm::Launcher::
|
11
|
+
# @return [Avm::Git::Launcher::Remote]
|
12
12
|
def remote(name)
|
13
|
-
::Avm::Launcher::
|
13
|
+
::Avm::Git::Launcher::Remote.new(self, name)
|
14
14
|
end
|
15
15
|
|
16
16
|
def remote_hashs(remote_name)
|
@@ -4,19 +4,19 @@ require 'eac_git/local'
|
|
4
4
|
require 'eac_ruby_utils/core_ext'
|
5
5
|
require 'eac_ruby_utils/envs'
|
6
6
|
require 'avm/launcher/paths/real'
|
7
|
-
require 'avm/launcher/
|
7
|
+
require 'avm/git/launcher/error'
|
8
8
|
|
9
9
|
module Avm
|
10
|
-
module
|
11
|
-
module
|
10
|
+
module Git
|
11
|
+
module Launcher
|
12
12
|
class Base < ::Avm::Launcher::Paths::Real
|
13
13
|
require_sub __FILE__
|
14
14
|
enable_simple_cache
|
15
|
-
extend ::Avm::Launcher::
|
16
|
-
include ::Avm::Launcher::
|
17
|
-
include ::Avm::Launcher::
|
18
|
-
include ::Avm::Launcher::
|
19
|
-
include ::Avm::Launcher::
|
15
|
+
extend ::Avm::Git::Launcher::Base::ClassMethods
|
16
|
+
include ::Avm::Git::Launcher::Base::DirtyFiles
|
17
|
+
include ::Avm::Git::Launcher::Base::Remotes
|
18
|
+
include ::Avm::Git::Launcher::Base::Subrepo
|
19
|
+
include ::Avm::Git::Launcher::Base::Underlying
|
20
20
|
|
21
21
|
attr_reader :eac_git
|
22
22
|
delegate :descendant?, :merge_base, :rev_parse, to: :eac_git
|
@@ -78,7 +78,7 @@ module Avm
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def raise(message)
|
81
|
-
::Kernel.raise Avm::Launcher::
|
81
|
+
::Kernel.raise Avm::Git::Launcher::Error.new(self, message)
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
@@ -1,9 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'avm/launcher/errors/base'
|
4
|
+
|
3
5
|
module Avm
|
4
|
-
module
|
5
|
-
module
|
6
|
-
class Error <
|
6
|
+
module Git
|
7
|
+
module Launcher
|
8
|
+
class Error < ::Avm::Launcher::Errors::Base
|
7
9
|
def initialize(git_instance, message)
|
8
10
|
super("#{message} (Repository: #{git_instance})")
|
9
11
|
end
|
@@ -1,17 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/launcher/
|
3
|
+
require 'avm/git/launcher/base'
|
4
4
|
|
5
5
|
module Avm
|
6
|
-
module
|
7
|
-
module
|
6
|
+
module Git
|
7
|
+
module Launcher
|
8
8
|
class MirrorUpdate < ::Avm::Launcher::Paths::Real
|
9
9
|
include ::EacRubyUtils::SimpleCache
|
10
10
|
|
11
11
|
def initialize(target_path, source_path, source_rev)
|
12
12
|
super(target_path)
|
13
|
-
@target_git = ::Avm::Launcher::
|
14
|
-
@source_git = ::Avm::Launcher::
|
13
|
+
@target_git = ::Avm::Git::Launcher::Base.new(self)
|
14
|
+
@source_git = ::Avm::Git::Launcher::Base.new(source_path)
|
15
15
|
@source_rev = source_rev
|
16
16
|
run
|
17
17
|
end
|
@@ -6,8 +6,8 @@ require 'avm/launcher/publish/base'
|
|
6
6
|
require 'avm/launcher/publish/check_result'
|
7
7
|
|
8
8
|
module Avm
|
9
|
-
module
|
10
|
-
module
|
9
|
+
module Git
|
10
|
+
module Launcher
|
11
11
|
class PublishBase < ::Avm::Launcher::Publish::Base
|
12
12
|
include ::EacRubyUtils::SimpleCache
|
13
13
|
enable_speaker
|
@@ -92,7 +92,7 @@ module Avm
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def sgit_uncached
|
95
|
-
::Avm::Launcher::
|
95
|
+
::Avm::Git::Launcher::Base.new(instance.warped)
|
96
96
|
end
|
97
97
|
|
98
98
|
def publish
|
@@ -117,7 +117,7 @@ module Avm
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def remote_name
|
120
|
-
::Avm::Launcher::
|
120
|
+
::Avm::Git::Launcher::WarpBase::TARGET_REMOTE
|
121
121
|
end
|
122
122
|
end
|
123
123
|
end
|