avm 0.62.0 → 0.64.0

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: dbbec67d9fc5bb02ab4df825b7ab2d7a41d8f8beceb6d9615e4d24e60f6add09
4
- data.tar.gz: 7201af31fe31837eb6723183b610f846f2e315226e5a3d3ccf5766f52519a0f6
3
+ metadata.gz: ba854f4987d1cd9c3b119ded50683d1c4f0516ad48a1880f06b9851e803cedae
4
+ data.tar.gz: d3ce9d2097a7a585b5bd6f9865c48d12a1022941f946581d0631005119a2dfaa
5
5
  SHA512:
6
- metadata.gz: dbacefed0fe370148ac0e51e4d268fe135c1011c2645923acce1eec543140deec81933d1fb6b3464d62edc17349b0069e3dc14a023b3f141e620122a91b1d349
7
- data.tar.gz: d9fce3973197919cc053f1b30cf26d1b98a407d43e290c2f0b3ac852ffab57359b9570839c188d73587a8721ae48b561a7fa5f43a2ba53eb3dc822c5ff1de2da
6
+ metadata.gz: dc4864f06bdea6f1e65fa29dad2f78ac08ca18a9cc4cbb0d74b4e0b95912a502c728949113d62e150d70e6660f5a005e4a9894f840117d09eba52d6a0bb1ef20
7
+ data.tar.gz: 9788c85abb180b1a474d18412b2512d356a880b297a8a3c1bbb1cad49e3f303f5ee3e6d8d61d0fa6acb10c6ce928b449b50f6a06b1352b6db9803f2ce7ade568
data/lib/avm/scms/base.rb CHANGED
@@ -29,6 +29,13 @@ module Avm
29
29
  self.class.name.demodulize
30
30
  end
31
31
 
32
+ # @return [Pathname]
33
+ def relative_path_from_parent_scm
34
+ parent_scm.if_present(nil) do |v|
35
+ path.relative_path_from(v.path)
36
+ end
37
+ end
38
+
32
39
  # @return [Enumerable<Avm::Scms::Base>]
33
40
  def subs
34
41
  raise_abstract_method __method__
@@ -33,10 +33,6 @@ module Avm
33
33
  def update_self_commit_message
34
34
  i18n_translate(__method__)
35
35
  end
36
-
37
- def update_subs
38
- subs.each { |sub| update_sub(sub) }
39
- end
40
36
  end
41
37
  end
42
38
  end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Sources
7
+ class Base
8
+ class UpdateSubs
9
+ enable_method_class
10
+
11
+ common_constructor :source
12
+
13
+ def result
14
+ source.subs.each { |sub| source.update_sub(sub) }
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Avm
4
+ module Sources
5
+ class UpdateError < ::RuntimeError
6
+ end
7
+ end
8
+ end
data/lib/avm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.62.0'
4
+ VERSION = '0.64.0'
5
5
  end
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.62.0
4
+ version: 0.64.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: 2023-01-20 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.14'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.14.4
19
+ version: '0.16'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.14'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.14.4
26
+ version: '0.16'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: eac_cli
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -37,6 +31,9 @@ dependencies:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
33
  version: '0.30'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 0.30.1
40
37
  type: :runtime
41
38
  prerelease: false
42
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,6 +41,9 @@ dependencies:
44
41
  - - "~>"
45
42
  - !ruby/object:Gem::Version
46
43
  version: '0.30'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.30.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: eac_config
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.5'
67
+ version: '0.6'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0.5'
74
+ version: '0.6'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: eac_fs
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -93,6 +93,9 @@ dependencies:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0.14'
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 0.14.1
96
99
  type: :runtime
97
100
  prerelease: false
98
101
  version_requirements: !ruby/object:Gem::Requirement
@@ -100,20 +103,23 @@ dependencies:
100
103
  - - "~>"
101
104
  - !ruby/object:Gem::Version
102
105
  version: '0.14'
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: 0.14.1
103
109
  - !ruby/object:Gem::Dependency
104
110
  name: eac_ruby_utils
105
111
  requirement: !ruby/object:Gem::Requirement
106
112
  requirements:
107
113
  - - "~>"
108
114
  - !ruby/object:Gem::Version
109
- version: '0.111'
115
+ version: '0.112'
110
116
  type: :runtime
111
117
  prerelease: false
112
118
  version_requirements: !ruby/object:Gem::Requirement
113
119
  requirements:
114
120
  - - "~>"
115
121
  - !ruby/object:Gem::Version
116
- version: '0.111'
122
+ version: '0.112'
117
123
  - !ruby/object:Gem::Dependency
118
124
  name: eac_templates
119
125
  requirement: !ruby/object:Gem::Requirement
@@ -182,26 +188,6 @@ dependencies:
182
188
  - - "~>"
183
189
  - !ruby/object:Gem::Version
184
190
  version: '0.9'
185
- - !ruby/object:Gem::Dependency
186
- name: aranha-parsers
187
- requirement: !ruby/object:Gem::Requirement
188
- requirements:
189
- - - "~>"
190
- - !ruby/object:Gem::Version
191
- version: '0.14'
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: 0.14.1
195
- type: :development
196
- prerelease: false
197
- version_requirements: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: '0.14'
202
- - - "~>"
203
- - !ruby/object:Gem::Version
204
- version: 0.14.1
205
191
  - !ruby/object:Gem::Dependency
206
192
  name: avm-eac_ruby_base1
207
193
  requirement: !ruby/object:Gem::Requirement
@@ -415,6 +401,7 @@ files:
415
401
  - lib/avm/sources/base/testing.rb
416
402
  - lib/avm/sources/base/update.rb
417
403
  - lib/avm/sources/base/update_sub.rb
404
+ - lib/avm/sources/base/update_subs.rb
418
405
  - lib/avm/sources/base/version_bump.rb
419
406
  - lib/avm/sources/configuration.rb
420
407
  - lib/avm/sources/configuration/rubocop.rb
@@ -424,6 +411,7 @@ files:
424
411
  - lib/avm/sources/tests/performer.rb
425
412
  - lib/avm/sources/tests/result.rb
426
413
  - lib/avm/sources/tests/single.rb
414
+ - lib/avm/sources/update_error.rb
427
415
  - lib/avm/sync.rb
428
416
  - lib/avm/version.rb
429
417
  - lib/avm/version_number.rb