eac_tools 0.55.5 → 0.55.6

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: 3253c050b8f81f650cfd1ec944cc11f7af824f4510cd3675780abd8dcce14a3d
4
- data.tar.gz: a56630daf972f0a82ecadb8b714bdcd0cde14e0d8c9e705d7a795b0e922c7267
3
+ metadata.gz: e176be2d8f0c9e29fbc9ba3503447a80c898236928ee978f1f8e76654d9e9a72
4
+ data.tar.gz: 1dac337bac73121e65ac2860f120188db5346e432d482e1ee14bfe4fffb1f815
5
5
  SHA512:
6
- metadata.gz: 4f2f8c718124fb9bb75cac9cc7b80b8d6bee231feb584cb48679a04a36fa43b165388826905178d98c4480a3159329936e278ae4498c3f1cf77d35b8f3cd6c64
7
- data.tar.gz: a0610099510bfeb32c86dcec8024441c13a91cdcab4609dd86b24d94fb2df6e0ae9d07d7d8cb6100ba8151543218b0dd3a3f6f8f098c9c8fd1f15825fc337306
6
+ metadata.gz: 56d88118b427b4287d6927928c4ad0c8b86f1c237630509ded2447e31cbd591333e32fb30093eb48f3f492070d124fae570b91644bff53dbf23611c1fefdc8c5
7
+ data.tar.gz: 516158a86f663a07d2ed65915ca4f8434e823a7bbfbd429f83c515cb1a3a3052d10549693c50c92d78862b0ce63af8425adde0c1efab0f214e9709171d21d1bd
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.55.5)
5
- avm (~> 0.64, >= 0.64.1)
4
+ eac_tools (0.55.6)
5
+ avm (~> 0.64, >= 0.64.2)
6
6
  avm-eac_asciidoctor_base0 (~> 0.15)
7
7
  avm-eac_generic_base0 (~> 0.11)
8
8
  avm-eac_latex_base0 (~> 0.3)
@@ -16,7 +16,7 @@ PATH
16
16
  avm-eac_ruby_base1 (~> 0.29, >= 0.29.2)
17
17
  avm-eac_webapp_base0 (~> 0.13, >= 0.13.1)
18
18
  avm-eac_wordpress_base0 (~> 0.3)
19
- avm-git (~> 0.13)
19
+ avm-git (~> 0.13, >= 0.13.1)
20
20
  avm-tools (~> 0.145, >= 0.145.1)
21
21
  eac_ruby_utils (~> 0.112)
22
22
 
@@ -166,12 +166,12 @@ PATH
166
166
  PATH
167
167
  remote: sub/avm-git
168
168
  specs:
169
- avm-git (0.13.0)
170
- avm (~> 0.64)
169
+ avm-git (0.13.1)
170
+ avm (~> 0.64, >= 0.64.2)
171
171
  avm-files (~> 0.6)
172
172
  eac_git (~> 0.14, >= 0.14.1)
173
173
  eac_ruby_utils (~> 0.112)
174
- git (~> 1.17, >= 1.17.2)
174
+ git (~> 1.18)
175
175
 
176
176
  PATH
177
177
  remote: sub/avm-tools
@@ -194,7 +194,7 @@ PATH
194
194
  PATH
195
195
  remote: sub/avm
196
196
  specs:
197
- avm (0.64.1)
197
+ avm (0.64.2)
198
198
  aranha-parsers (~> 0.17)
199
199
  eac_cli (~> 0.30, >= 0.30.1)
200
200
  eac_config (~> 0.12)
@@ -283,17 +283,15 @@ GEM
283
283
  parslet (~> 2.0)
284
284
  curb (0.9.11)
285
285
  diff-lcs (1.5.0)
286
- eac_envs-http (0.1.0)
286
+ eac_envs-http (0.2.0)
287
287
  eac_fs (~> 0.16)
288
288
  eac_ruby_utils (~> 0.112)
289
289
  faraday (~> 2.7, >= 2.7.4)
290
290
  faraday-multipart (~> 1.0, >= 1.0.4)
291
- eac_rest (0.7.2)
292
- eac_envs-http (~> 0.1)
291
+ eac_rest (0.7.3)
292
+ eac_envs-http (~> 0.2)
293
293
  eac_fs (~> 0.16)
294
294
  eac_ruby_utils (~> 0.112)
295
- faraday (~> 2.7, >= 2.7.4)
296
- faraday-multipart (~> 1.0, >= 1.0.4)
297
295
  eac_ruby_gem_support (0.5.1)
298
296
  eac_ruby_utils (~> 0.74)
299
297
  rspec (~> 3.9)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.55.5'
4
+ VERSION = '0.55.6'
5
5
  end
@@ -2,13 +2,13 @@
2
2
 
3
3
  require 'avm/launcher/paths/real'
4
4
  require 'avm/launcher/stereotype'
5
+ require 'eac_ruby_utils/core_ext'
5
6
 
6
7
  module Avm
7
8
  module Launcher
8
9
  module Paths
9
10
  class Logical
10
- include ::Comparable
11
- include ::EacRubyUtils::SimpleCache
11
+ enable_simple_cache
12
12
 
13
13
  class << self
14
14
  def from_h(context, hash)
@@ -17,18 +17,11 @@ module Avm
17
17
  end
18
18
  end
19
19
 
20
- attr_reader :context, :real, :logical, :parent_path
21
-
22
- def initialize(context, parent_path, real, logical)
23
- @context = context
24
- @parent_path = parent_path
25
- @real = ::Avm::Launcher::Paths::Real.new(real)
26
- @logical = logical
20
+ common_constructor :context, :parent_path, :real, :logical do
21
+ self.real = ::Avm::Launcher::Paths::Real.new(real)
27
22
  end
28
23
 
29
- def <=>(other)
30
- [logical, real] <=> [other.logical, other.real]
31
- end
24
+ compare_by :logical, :real
32
25
 
33
26
  def to_s
34
27
  logical
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.64.1'
4
+ VERSION = '0.64.2'
5
5
  end
@@ -12,11 +12,11 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,locale}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.64'
15
+ s.add_dependency 'avm', '~> 0.64', '>= 0.64.2'
16
16
  s.add_dependency 'avm-files', '~> 0.6'
17
17
  s.add_dependency 'eac_git', '~> 0.14', '>= 0.14.1'
18
18
  s.add_dependency 'eac_ruby_utils', '~> 0.112'
19
- s.add_dependency 'git', '~> 1.17', '>= 1.17.2'
19
+ s.add_dependency 'git', '~> 1.18'
20
20
 
21
21
  s.add_development_dependency 'aranha-parsers', '~> 0.8', '>= 0.8.5'
22
22
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
@@ -15,6 +15,8 @@ module Avm
15
15
  CHECKERS = %w[remote_url remote_fetch publish_remote_no_exist remote_equal remote_following
16
16
  local_following].freeze
17
17
 
18
+ DEFAULT_REMOTE_REF = 'master'
19
+
18
20
  REMOTE_UNAVAILABLE_MESSAGES = ['could not resolve host', 'connection timed out',
19
21
  'no route to host'].map(&:downcase).freeze
20
22
 
@@ -108,7 +110,7 @@ module Avm
108
110
 
109
111
  def remote_sha_uncached
110
112
  remote_fetch
111
- b = sgit.git.branches["#{remote_name}/master"]
113
+ b = sgit.git.branches["#{remote_name}/#{remote_ref}"]
112
114
  b ? b.gcommit.sha : nil
113
115
  end
114
116
 
@@ -119,6 +121,11 @@ module Avm
119
121
  def remote_name
120
122
  ::Avm::Git::Launcher::WarpBase::TARGET_REMOTE
121
123
  end
124
+
125
+ # @return [String]
126
+ def remote_ref
127
+ DEFAULT_REMOTE_REF
128
+ end
122
129
  end
123
130
  end
124
131
  end
@@ -7,6 +7,23 @@ module Avm
7
7
  module LauncherStereotypes
8
8
  class GitSubrepo
9
9
  class Publish < ::Avm::Git::Launcher::PublishBase
10
+ # @return [Pathname]
11
+ def config_path
12
+ instance.parent.warped.to_pathname.join(
13
+ "./#{instance.to_parent_path}",
14
+ ::Avm::Git::LauncherStereotypes::GitSubrepo::CONFIG_SUBPATH
15
+ )
16
+ end
17
+
18
+ # @return [EacGit::Local::Subrepo::Config]
19
+ def config
20
+ ::EacGit::Local::Subrepo::Config.from_file(config_path)
21
+ end
22
+
23
+ # @return [String]
24
+ def remote_ref
25
+ config.remote_branch || super
26
+ end
10
27
  end
11
28
  end
12
29
  end
@@ -11,9 +11,11 @@ module Avm
11
11
  require_sub __FILE__
12
12
  include Avm::Launcher::Stereotype
13
13
 
14
+ CONFIG_SUBPATH = '.gitrepo'
15
+
14
16
  class << self
15
17
  def match?(path)
16
- File.exist?(path.real.subpath('.gitrepo')) && subrepo_url(path.real) != 'none'
18
+ File.exist?(path.real.subpath(CONFIG_SUBPATH)) && subrepo_url(path.real) != 'none'
17
19
  end
18
20
 
19
21
  def color
@@ -21,7 +23,7 @@ module Avm
21
23
  end
22
24
 
23
25
  def subrepo_url(path)
24
- File.read(path.subpath('.gitrepo')).each_line do |l|
26
+ File.read(path.subpath(CONFIG_SUBPATH)).each_line do |l|
25
27
  m = /remote\s*=\s(.+)/.match(l)
26
28
  return m[1] if m
27
29
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Git
5
- VERSION = '0.13.0'
5
+ VERSION = '0.13.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.55.5
4
+ version: 0.55.6
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: 2023-03-28 00:00:00.000000000 Z
11
+ date: 2023-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.64'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.64.1
22
+ version: 0.64.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.64'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.64.1
32
+ version: 0.64.2
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: avm-eac_asciidoctor_base0
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -255,6 +255,9 @@ dependencies:
255
255
  - - "~>"
256
256
  - !ruby/object:Gem::Version
257
257
  version: '0.13'
258
+ - - ">="
259
+ - !ruby/object:Gem::Version
260
+ version: 0.13.1
258
261
  type: :runtime
259
262
  prerelease: false
260
263
  version_requirements: !ruby/object:Gem::Requirement
@@ -262,6 +265,9 @@ dependencies:
262
265
  - - "~>"
263
266
  - !ruby/object:Gem::Version
264
267
  version: '0.13'
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ version: 0.13.1
265
271
  - !ruby/object:Gem::Dependency
266
272
  name: avm-tools
267
273
  requirement: !ruby/object:Gem::Requirement