avm-tools 0.114.0 → 0.114.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/avm/launcher/git/publish_base.rb +2 -0
- data/lib/avm/tools/version.rb +1 -1
- data/{lib → sub/avm/lib}/avm/launcher/errors/base.rb +0 -0
- data/{lib → sub/avm/lib}/avm/launcher/errors/non_project.rb +0 -0
- data/{lib → sub/avm/lib}/avm/launcher/paths/real.rb +0 -0
- data/{lib → sub/avm/lib}/avm/launcher/publish/check_result.rb +0 -0
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm-files/lib/avm/files/formatter/formats/generic_plain.rb +2 -2
- data/sub/avm-files/lib/avm/files/version.rb +1 -1
- data/sub/eac_cli/lib/eac_cli/speaker.rb +1 -2
- data/sub/eac_cli/lib/eac_cli/version.rb +1 -1
- data/sub/eac_fs/lib/eac_fs/cached_download.rb +2 -2
- data/sub/eac_fs/lib/eac_fs/version.rb +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb +21 -3
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_uri.rb +15 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c54ac1c77f2c1db81cb6e2fa45e97ff5bd9ffad83054e33d8baeb94ff682dea
|
|
4
|
+
data.tar.gz: 842806c80c5fa0fa93f1b6207f498831e833a94147ad9015e2717ebf9e3ec01b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d026169d9ce0ef808fb38cad55a307eabdd023f7585dd42a6d61e6aa66ca1b7cb203a75aeaa25675e24c4267564dbc4d423dba6902be83d279b3234f6514459
|
|
7
|
+
data.tar.gz: ebc64d8a3e11ab4eee57147b797b2f69fa7816be26d8621383822d1180f7f6ea8c4d9570d19ef21dbb844c25aa41ee3ef4cca0a48efcb30483114d092978810a
|
data/lib/avm/tools/version.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/sub/avm/lib/avm/version.rb
CHANGED
|
@@ -7,8 +7,8 @@ module Avm
|
|
|
7
7
|
class Formatter
|
|
8
8
|
module Formats
|
|
9
9
|
class GenericPlain < ::Avm::Files::Formatter::Formats::Base
|
|
10
|
-
VALID_BASENAMES = %w[*.bat *.css.coffee *.java *.js *.rb *.scss *.sql *.tex
|
|
11
|
-
*.yaml].freeze
|
|
10
|
+
VALID_BASENAMES = %w[*.asm *.bat *.css.coffee *.java *.js *.rb *.s *.scss *.sql *.tex
|
|
11
|
+
*.url *.yml *.yaml].freeze
|
|
12
12
|
|
|
13
13
|
VALID_TYPES = %w[plain x-shellscript].freeze
|
|
14
14
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
require 'eac_fs/patches'
|
|
4
4
|
require 'eac_ruby_utils/fs/temp'
|
|
5
5
|
|
|
6
|
-
module
|
|
6
|
+
module EacFs
|
|
7
7
|
class CachedDownload
|
|
8
8
|
attr_reader :url, :fs_cache
|
|
9
9
|
|
|
10
10
|
def initialize(url, parent_fs_cache = nil)
|
|
11
11
|
@url = url
|
|
12
|
-
@fs_cache = (parent_fs_cache || fs_cache).child(url.parameterize)
|
|
12
|
+
@fs_cache = (parent_fs_cache || fs_cache).child(url.to_s.parameterize)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def assert
|
|
@@ -1,18 +1,34 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'eac_ruby_utils/listable'
|
|
3
4
|
require 'eac_ruby_utils/simple_cache'
|
|
4
5
|
|
|
5
6
|
module EacRubyUtils
|
|
6
7
|
module Envs
|
|
7
8
|
class Executable
|
|
9
|
+
include ::EacRubyUtils::Listable
|
|
8
10
|
include ::EacRubyUtils::SimpleCache
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
lists.add_symbol :option, :check_args, :auto_validate
|
|
13
|
+
|
|
14
|
+
DEFAULT_AUTO_VALIDATE = true
|
|
15
|
+
|
|
16
|
+
attr_reader :env, :name, :options
|
|
11
17
|
|
|
12
18
|
def initialize(env, name, *check_args)
|
|
13
19
|
@env = env
|
|
14
20
|
@name = name
|
|
15
|
-
|
|
21
|
+
self.options = self.class.lists.option.hash_keys_validate!(check_args.extract_options!)
|
|
22
|
+
options[OPTION_CHECK_ARGS] = check_args unless options.key?(OPTION_CHECK_ARGS)
|
|
23
|
+
options.freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def auto_validate?
|
|
27
|
+
options.key?(OPTION_AUTO_VALIDATE) ? options[OPTION_AUTO_VALIDATE] : DEFAULT_AUTO_VALIDATE
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def check_args
|
|
31
|
+
options[OPTION_CHECK_ARGS]
|
|
16
32
|
end
|
|
17
33
|
|
|
18
34
|
def exist?
|
|
@@ -32,7 +48,7 @@ module EacRubyUtils
|
|
|
32
48
|
end
|
|
33
49
|
|
|
34
50
|
def command(*command_args)
|
|
35
|
-
validate!
|
|
51
|
+
validate! if auto_validate?
|
|
36
52
|
env.command(*executable_args, *command_args)
|
|
37
53
|
end
|
|
38
54
|
|
|
@@ -50,6 +66,8 @@ module EacRubyUtils
|
|
|
50
66
|
|
|
51
67
|
private
|
|
52
68
|
|
|
69
|
+
attr_writer :options
|
|
70
|
+
|
|
53
71
|
def exist_uncached
|
|
54
72
|
env.command(*executable_args, *check_args).execute!
|
|
55
73
|
true
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'active_support/core_ext/object/blank'
|
|
4
|
+
require 'addressable/uri'
|
|
5
|
+
|
|
6
|
+
class Object
|
|
7
|
+
# Convert +self+ to String and then to Addressable::URI. Return nil if +self+ is +blank?+.
|
|
8
|
+
#
|
|
9
|
+
# @return [Addressable::URI]
|
|
10
|
+
def to_uri
|
|
11
|
+
return self if is_a?(::Addressable::URI)
|
|
12
|
+
|
|
13
|
+
to_s.blank? ? nil : ::Addressable::URI.parse(to_s)
|
|
14
|
+
end
|
|
15
|
+
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.114.
|
|
4
|
+
version: 0.114.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: 2022-
|
|
11
|
+
date: 2022-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aranha-parsers
|
|
@@ -292,8 +292,6 @@ files:
|
|
|
292
292
|
- lib/avm/launcher/context/instance_manager/cached_instance.rb
|
|
293
293
|
- lib/avm/launcher/context/instance_manager/cached_instances.rb
|
|
294
294
|
- lib/avm/launcher/context/settings.rb
|
|
295
|
-
- lib/avm/launcher/errors/base.rb
|
|
296
|
-
- lib/avm/launcher/errors/non_project.rb
|
|
297
295
|
- lib/avm/launcher/git.rb
|
|
298
296
|
- lib/avm/launcher/git/base.rb
|
|
299
297
|
- lib/avm/launcher/git/base/class_methods.rb
|
|
@@ -315,11 +313,9 @@ files:
|
|
|
315
313
|
- lib/avm/launcher/instances/settings.rb
|
|
316
314
|
- lib/avm/launcher/paths.rb
|
|
317
315
|
- lib/avm/launcher/paths/logical.rb
|
|
318
|
-
- lib/avm/launcher/paths/real.rb
|
|
319
316
|
- lib/avm/launcher/project.rb
|
|
320
317
|
- lib/avm/launcher/publish.rb
|
|
321
318
|
- lib/avm/launcher/publish/base.rb
|
|
322
|
-
- lib/avm/launcher/publish/check_result.rb
|
|
323
319
|
- lib/avm/launcher/ruby.rb
|
|
324
320
|
- lib/avm/launcher/ruby/gem.rb
|
|
325
321
|
- lib/avm/launcher/ruby/gem/build.rb
|
|
@@ -721,6 +717,10 @@ files:
|
|
|
721
717
|
- sub/avm/lib/avm/jobs.rb
|
|
722
718
|
- sub/avm/lib/avm/jobs/base.rb
|
|
723
719
|
- sub/avm/lib/avm/jobs/variables_source.rb
|
|
720
|
+
- sub/avm/lib/avm/launcher/errors/base.rb
|
|
721
|
+
- sub/avm/lib/avm/launcher/errors/non_project.rb
|
|
722
|
+
- sub/avm/lib/avm/launcher/paths/real.rb
|
|
723
|
+
- sub/avm/lib/avm/launcher/publish/check_result.rb
|
|
724
724
|
- sub/avm/lib/avm/path_string.rb
|
|
725
725
|
- sub/avm/lib/avm/registry.rb
|
|
726
726
|
- sub/avm/lib/avm/registry/base.rb
|
|
@@ -1285,6 +1285,7 @@ files:
|
|
|
1285
1285
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
|
|
1286
1286
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
|
|
1287
1287
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb
|
|
1288
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_uri.rb
|
|
1288
1289
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb
|
|
1289
1290
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb
|
|
1290
1291
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/if_exist.rb
|