avm-tools 0.109.0 → 0.109.1

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: 6d1323f1184dc14780cfebc69d39fc495d7a1e38b7097fbc33259b076decacf9
4
- data.tar.gz: 8ee9accc32035421261372235b215e04962a4cc6ae13fb04b70f52702ba947b9
3
+ metadata.gz: 4fb253fe8f448ec59893d5aedcd818661142dd53efc0043d934da9e57e841dab
4
+ data.tar.gz: 5c6bcf1c7ba068dc25ce894a43b893facc3a4304632d2b8df84266d99cd5bc36
5
5
  SHA512:
6
- metadata.gz: a7a0c52c5243b5b761b283e6a5fcec27e6ae5cd9937cb23c4c57889cf37d7808cac60606809cbe01aa24467a5cc5a6c3b818ca63bc088f9f72bdc350cffa926c
7
- data.tar.gz: da9d2f826df7d74debc75592028919fd04ac6307f813b7e0b165643c97a65c6451c14150ff33f3be14360afc16d261e3a842fa9accbc204f0d63045c85db293a
6
+ metadata.gz: 8b50d5638c8e3c660da897cb51ff08d79b56be1f0ba3c0543b4da887143777c369175c81d13efef2011187e53ed4f102e96854217458a517ca8e068248c1ffcb
7
+ data.tar.gz: fa9d2274713b503ffe149eff0c259a27c6ec725d47f48ddb56ea749525a1719e50ca42c61166d37f8637cf7c7202609ed76310bec62a1d86a9f6cd09fbfbf933
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/self/root'
4
+ require 'i18n'
5
+
6
+ module Avm
7
+ module Patches
8
+ module I18n
9
+ class << self
10
+ def setup_i18n
11
+ ::I18n.load_path += locale_files_paths.map(&:to_path)
12
+ end
13
+
14
+ def locale_files_paths
15
+ ::Avm::Self.root.join('locale').glob('*.yml')
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+
22
+ ::Avm::Patches::I18n.setup_i18n
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/patches/object/i18n'
3
+ require 'avm/patches/i18n'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module Avm
@@ -47,7 +47,7 @@ module Avm
47
47
  end
48
48
 
49
49
  def git_commit_message
50
- translate(__method__, version: target_version, __locale: instance.locale)
50
+ i18n_translate(__method__, version: target_version, __locale: instance.locale)
51
51
  end
52
52
 
53
53
  def changing_files
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.109.0'
5
+ VERSION = '0.109.1'
6
6
  end
7
7
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/jobs/variables_source'
4
+ require 'avm/result'
4
5
  require 'eac_cli/core_ext'
5
6
 
6
7
  module Avm
@@ -5,10 +5,12 @@ require 'eac_fs/patches/module/fs_cache'
5
5
  class Object
6
6
  # @return [EacFs::Cache]
7
7
  def fs_cache
8
- self.class.fs_cache.child(fs_cache_object_id)
8
+ oid = fs_cache_object_id
9
+ oid = [oid.to_s] unless oid.is_a?(::Enumerable)
10
+ oid.inject(self.class.fs_cache) { |a, e| a.child(e.to_s) }
9
11
  end
10
12
 
11
- # @return [String]
13
+ # @return [String, Array<String>]
12
14
  def fs_cache_object_id
13
15
  raise 'Abstract method hit'
14
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacFs
4
- VERSION = '0.5.0'
4
+ VERSION = '0.6.0'
5
5
  end
@@ -57,6 +57,10 @@ module EacRubyUtils
57
57
  gemspec.name.gsub('-', '/') + '/' + registry.module_suffix.underscore
58
58
  end
59
59
 
60
+ def to_s
61
+ "#{self.class.name}[#{gemspec.name}]"
62
+ end
63
+
60
64
  private
61
65
 
62
66
  def dependencies_uncached
@@ -21,7 +21,7 @@ module EacRubyUtils
21
21
 
22
22
  # @return [Array<EacRubyUtils::GemsRegistry::Gem>]
23
23
  def registered
24
- @registered ||= all_gems.select(&:found?)
24
+ @registered ||= all_gems.select(&:found?).sort
25
25
  end
26
26
 
27
27
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.77.0'
4
+ VERSION = '0.77.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.109.0
4
+ version: 0.109.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: 2021-10-13 00:00:00.000000000 Z
11
+ date: 2021-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -52,6 +52,68 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: avm-eac_redmine_base0
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.2'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 0.2.2
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '0.2'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 0.2.2
75
+ - !ruby/object:Gem::Dependency
76
+ name: avm-eac_ruby_base1
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.1'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '0.1'
89
+ - !ruby/object:Gem::Dependency
90
+ name: avm-files
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '0.1'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '0.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: avm-git
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '0.1'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '0.1'
55
117
  - !ruby/object:Gem::Dependency
56
118
  name: clipboard
57
119
  requirement: !ruby/object:Gem::Requirement
@@ -275,6 +337,7 @@ files:
275
337
  - lib/avm/patches.rb
276
338
  - lib/avm/patches/eac_ruby_gems_utils.rb
277
339
  - lib/avm/patches/eac_ruby_gems_utils/gem.rb
340
+ - lib/avm/patches/i18n.rb
278
341
  - lib/avm/patches/object.rb
279
342
  - lib/avm/patches/object/template.rb
280
343
  - lib/avm/postgresql.rb