eac_launcher 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/eac_launcher.rb +4 -4
- data/lib/eac_launcher/git/mirror_update.rb +1 -0
- data/lib/eac_launcher/git/publish_base.rb +4 -4
- data/lib/eac_launcher/git/{transpose_base.rb → warp_base.rb} +1 -1
- data/lib/eac_launcher/instances/base.rb +1 -1
- data/lib/eac_launcher/stereotype.rb +2 -2
- data/lib/eac_launcher/stereotypes/git/{transpose.rb → warp.rb} +1 -1
- data/lib/eac_launcher/stereotypes/git_subrepo/{transpose.rb → warp.rb} +2 -2
- data/lib/eac_launcher/stereotypes/git_subtree/{transpose.rb → warp.rb} +1 -1
- data/lib/eac_launcher/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e9ff82ac616d8fb986ed961ee37644fc827793c
|
4
|
+
data.tar.gz: 13e65c373477951a63517b9fcf20d18b7ff967b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 017e0069bfec451f2f5d67954ab7dfc04a76f72b4ab93fa7b7366e6f8bcadaa7e189e82e6ccce695f3cdbcdc463c53921b091894fc0291a890def98fbab78d74
|
7
|
+
data.tar.gz: 5573b83ff8908b16e842da73ecf7cf43ca0aeab90612530532a809287ea82c083129051a188ddaf46cd49eb7decbe412fbec62989a7c93328986223a8a5eb324
|
data/lib/eac_launcher.rb
CHANGED
@@ -21,7 +21,7 @@ module EacLauncher
|
|
21
21
|
require 'eac_launcher/git/base'
|
22
22
|
require 'eac_launcher/git/mirror_update'
|
23
23
|
require 'eac_launcher/git/publish_base'
|
24
|
-
require 'eac_launcher/git/
|
24
|
+
require 'eac_launcher/git/warp_base'
|
25
25
|
require 'eac_launcher/instances/base'
|
26
26
|
require 'eac_launcher/instances/runner_helper'
|
27
27
|
require 'eac_launcher/instances/settings'
|
@@ -34,11 +34,11 @@ module EacLauncher
|
|
34
34
|
require 'eac_launcher/stereotypes/redmine_plugin'
|
35
35
|
require 'eac_launcher/stereotypes/ruby_gem'
|
36
36
|
require 'eac_launcher/stereotypes/git/publish'
|
37
|
-
require 'eac_launcher/stereotypes/git/
|
37
|
+
require 'eac_launcher/stereotypes/git/warp'
|
38
38
|
require 'eac_launcher/stereotypes/git_subrepo/publish'
|
39
|
-
require 'eac_launcher/stereotypes/git_subrepo/
|
39
|
+
require 'eac_launcher/stereotypes/git_subrepo/warp'
|
40
40
|
require 'eac_launcher/stereotypes/git_subtree/publish'
|
41
|
-
require 'eac_launcher/stereotypes/git_subtree/
|
41
|
+
require 'eac_launcher/stereotypes/git_subtree/warp'
|
42
42
|
require 'eac_launcher/stereotypes/ruby_gem/publish'
|
43
43
|
require 'eac_launcher/vendor/github'
|
44
44
|
end
|
@@ -31,7 +31,7 @@ module EacLauncher
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def publish_remote_no_exist?
|
34
|
-
!sgit.remote_exist?(::EacLauncher::Git::
|
34
|
+
!sgit.remote_exist?(::EacLauncher::Git::WarpBase::TARGET_REMOTE)
|
35
35
|
end
|
36
36
|
|
37
37
|
def sgit_uncached
|
@@ -40,7 +40,7 @@ module EacLauncher
|
|
40
40
|
|
41
41
|
def publish
|
42
42
|
info 'Pushing...'
|
43
|
-
sgit.push(::EacLauncher::Git::
|
43
|
+
sgit.push(::EacLauncher::Git::WarpBase::TARGET_REMOTE, 'HEAD:master',
|
44
44
|
dryrun: !::EacLauncher::Context.current.publish_options[:confirm])
|
45
45
|
info 'Pushed!'
|
46
46
|
end
|
@@ -60,8 +60,8 @@ module EacLauncher
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def remote_sha_uncached
|
63
|
-
sgit.fetch(::EacLauncher::Git::
|
64
|
-
b = sgit.git.branches["#{::EacLauncher::Git::
|
63
|
+
sgit.fetch(::EacLauncher::Git::WarpBase::TARGET_REMOTE)
|
64
|
+
b = sgit.git.branches["#{::EacLauncher::Git::WarpBase::TARGET_REMOTE}/master"]
|
65
65
|
b ? b.gcommit.sha : nil
|
66
66
|
end
|
67
67
|
end
|
@@ -61,7 +61,7 @@ module EacLauncher
|
|
61
61
|
|
62
62
|
def current_cache
|
63
63
|
stereotypes.each do |s|
|
64
|
-
return s.
|
64
|
+
return s.warp_class.new(self) if s.warp_class
|
65
65
|
end
|
66
66
|
raise "None stereotype of \"#{to_root_path}\" has subclass \"CurrentCache\" " \
|
67
67
|
"(#{stereotypes.join(', ')})"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module EacLauncher
|
2
2
|
module Stereotypes
|
3
3
|
class GitSubrepo
|
4
|
-
class
|
4
|
+
class Warp < ::EacLauncher::Path
|
5
5
|
include ::Eac::SimpleCache
|
6
6
|
|
7
7
|
attr_reader :instance
|
@@ -72,7 +72,7 @@ module EacLauncher
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def assert_target_remote
|
75
|
-
cache_git.assert_remote_url(::EacLauncher::Git::
|
75
|
+
cache_git.assert_remote_url(::EacLauncher::Git::WarpBase::TARGET_REMOTE,
|
76
76
|
target_remote_url)
|
77
77
|
end
|
78
78
|
|
data/lib/eac_launcher/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_launcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -142,7 +142,7 @@ files:
|
|
142
142
|
- lib/eac_launcher/git/base/underlying.rb
|
143
143
|
- lib/eac_launcher/git/mirror_update.rb
|
144
144
|
- lib/eac_launcher/git/publish_base.rb
|
145
|
-
- lib/eac_launcher/git/
|
145
|
+
- lib/eac_launcher/git/warp_base.rb
|
146
146
|
- lib/eac_launcher/instances/base.rb
|
147
147
|
- lib/eac_launcher/instances/base/cache.rb
|
148
148
|
- lib/eac_launcher/instances/runner_helper.rb
|
@@ -154,13 +154,13 @@ files:
|
|
154
154
|
- lib/eac_launcher/stereotype.rb
|
155
155
|
- lib/eac_launcher/stereotypes/git.rb
|
156
156
|
- lib/eac_launcher/stereotypes/git/publish.rb
|
157
|
-
- lib/eac_launcher/stereotypes/git/
|
157
|
+
- lib/eac_launcher/stereotypes/git/warp.rb
|
158
158
|
- lib/eac_launcher/stereotypes/git_subrepo.rb
|
159
159
|
- lib/eac_launcher/stereotypes/git_subrepo/publish.rb
|
160
|
-
- lib/eac_launcher/stereotypes/git_subrepo/
|
160
|
+
- lib/eac_launcher/stereotypes/git_subrepo/warp.rb
|
161
161
|
- lib/eac_launcher/stereotypes/git_subtree.rb
|
162
162
|
- lib/eac_launcher/stereotypes/git_subtree/publish.rb
|
163
|
-
- lib/eac_launcher/stereotypes/git_subtree/
|
163
|
+
- lib/eac_launcher/stereotypes/git_subtree/warp.rb
|
164
164
|
- lib/eac_launcher/stereotypes/rails.rb
|
165
165
|
- lib/eac_launcher/stereotypes/redmine_plugin.rb
|
166
166
|
- lib/eac_launcher/stereotypes/ruby_gem.rb
|