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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddd299ffda328fc28afcf975e6f4c5cf1044fc62
4
- data.tar.gz: deb8b2a8a31144cfcc8a2c3603eac3b0f4fc7cc2
3
+ metadata.gz: 9e9ff82ac616d8fb986ed961ee37644fc827793c
4
+ data.tar.gz: 13e65c373477951a63517b9fcf20d18b7ff967b6
5
5
  SHA512:
6
- metadata.gz: 2365a2c18cc5d3d9b22748a32b41f65e76e85767848314f08bdea10f30d49f0c0e40c47caa49393d0f973360f2d7a5cc600b16dd944fecbee266d0dc3c16f7d2
7
- data.tar.gz: 97e6e6f63eb094a7151f732aefb20cf35de0a92d1e23132b0308a52c230cbd09aa6d109107dfa56ad347e43cce896b1f73d0d0ff24c2fe2806986ceaffc5956a
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/transpose_base'
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/transpose'
37
+ require 'eac_launcher/stereotypes/git/warp'
38
38
  require 'eac_launcher/stereotypes/git_subrepo/publish'
39
- require 'eac_launcher/stereotypes/git_subrepo/transpose'
39
+ require 'eac_launcher/stereotypes/git_subrepo/warp'
40
40
  require 'eac_launcher/stereotypes/git_subtree/publish'
41
- require 'eac_launcher/stereotypes/git_subtree/transpose'
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
@@ -19,6 +19,7 @@ module EacLauncher
19
19
  end
20
20
 
21
21
  def fetch_remote_source
22
+ @target_git.git
22
23
  @target_git.fetch("file://#{@source_git}", tags: true)
23
24
  end
24
25
 
@@ -31,7 +31,7 @@ module EacLauncher
31
31
  end
32
32
 
33
33
  def publish_remote_no_exist?
34
- !sgit.remote_exist?(::EacLauncher::Git::TransposeBase::TARGET_REMOTE)
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::TransposeBase::TARGET_REMOTE, 'HEAD:master',
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::TransposeBase::TARGET_REMOTE)
64
- b = sgit.git.branches["#{::EacLauncher::Git::TransposeBase::TARGET_REMOTE}/master"]
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
@@ -4,7 +4,7 @@ module EacLauncher
4
4
  # * source_instance
5
5
  # * source_remote_name
6
6
  # * current_ref
7
- class TransposeBase < ::EacLauncher::Path
7
+ class WarpBase < ::EacLauncher::Path
8
8
  include ::Eac::SimpleCache
9
9
 
10
10
  TARGET_REMOTE = 'target'.freeze
@@ -61,7 +61,7 @@ module EacLauncher
61
61
 
62
62
  def current_cache
63
63
  stereotypes.each do |s|
64
- return s.transpose_class.new(self) if s.transpose_class
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(', ')})"
@@ -27,8 +27,8 @@ module EacLauncher
27
27
  sub_class('Publish')
28
28
  end
29
29
 
30
- def transpose_class
31
- sub_class('Transpose')
30
+ def warp_class
31
+ sub_class('Warp')
32
32
  end
33
33
 
34
34
  private
@@ -1,7 +1,7 @@
1
1
  module EacLauncher
2
2
  module Stereotypes
3
3
  class Git
4
- class Transpose < ::EacLauncher::Git::TransposeBase
4
+ class Warp < ::EacLauncher::Git::WarpBase
5
5
  private
6
6
 
7
7
  def current_ref
@@ -1,7 +1,7 @@
1
1
  module EacLauncher
2
2
  module Stereotypes
3
3
  class GitSubrepo
4
- class Transpose < ::EacLauncher::Path
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::TransposeBase::TARGET_REMOTE,
75
+ cache_git.assert_remote_url(::EacLauncher::Git::WarpBase::TARGET_REMOTE,
76
76
  target_remote_url)
77
77
  end
78
78
 
@@ -1,7 +1,7 @@
1
1
  module EacLauncher
2
2
  module Stereotypes
3
3
  class GitSubtree
4
- class Transpose < ::EacLauncher::Git::TransposeBase
4
+ class Warp < ::EacLauncher::Git::WarpBase
5
5
  private
6
6
 
7
7
  def current_ref
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacLauncher
4
- VERSION = '0.1.0'.freeze
4
+ VERSION = '0.1.1'.freeze
5
5
  end
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.0
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-05 00:00:00.000000000 Z
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/transpose_base.rb
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/transpose.rb
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/transpose.rb
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/transpose.rb
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