avm-tools 0.114.0 → 0.114.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: ab94e9f5fae951a039dc33fadb807fa8331899a843526fa957beeb05193a8419
4
- data.tar.gz: ebb72038ffaa5b8c9c37d20e8b7a6de6b6303886665940474c36318804cdc600
3
+ metadata.gz: 2c54ac1c77f2c1db81cb6e2fa45e97ff5bd9ffad83054e33d8baeb94ff682dea
4
+ data.tar.gz: 842806c80c5fa0fa93f1b6207f498831e833a94147ad9015e2717ebf9e3ec01b
5
5
  SHA512:
6
- metadata.gz: b25329ca5da5c3aeda2bd26b9f2cf91edadfe965e3eba3e891eb590a3b7a9483870b80e45b2e804eb44d56877445c1da00a98b75b9c8feac81fb44165020e21a
7
- data.tar.gz: bf211cebb15418b176c681020f825e64ba8d12cecd3d2022b3026326fcc3d062e846c763143b75cf17a2d38f7c71b244b4748166deb3cc873fe61eac319afc3b
6
+ metadata.gz: 7d026169d9ce0ef808fb38cad55a307eabdd023f7585dd42a6d61e6aa66ca1b7cb203a75aeaa25675e24c4267564dbc4d423dba6902be83d279b3234f6514459
7
+ data.tar.gz: ebc64d8a3e11ab4eee57147b797b2f69fa7816be26d8621383822d1180f7f6ea8c4d9570d19ef21dbb844c25aa41ee3ef4cca0a48efcb30483114d092978810a
@@ -86,6 +86,8 @@ module Avm
86
86
  end
87
87
 
88
88
  def local_following_check_result
89
+ return nil unless local_following?
90
+
89
91
  ::Avm::Launcher::Publish::CheckResult.pending('Local following')
90
92
  end
91
93
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.114.0'
5
+ VERSION = '0.114.1'
6
6
  end
7
7
  end
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.14.0'
4
+ VERSION = '0.15.0'
5
5
  end
@@ -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 *.url *.yml
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Files
5
- VERSION = '0.2.1'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
@@ -23,9 +23,8 @@ module EacCli
23
23
  out_out.write(string.to_s)
24
24
  end
25
25
 
26
- def fatal_error(string)
26
+ def error(string)
27
27
  puts "ERROR: #{string}".white.on_red
28
- Kernel.exit 1
29
28
  end
30
29
 
31
30
  def title(string)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacCli
4
- VERSION = '0.26.1'
4
+ VERSION = '0.26.2'
5
5
  end
@@ -3,13 +3,13 @@
3
3
  require 'eac_fs/patches'
4
4
  require 'eac_ruby_utils/fs/temp'
5
5
 
6
- module Avm
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,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacFs
4
- VERSION = '0.11.0'
4
+ VERSION = '0.11.1'
5
5
  end
@@ -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
- attr_reader :env, :name, :check_args
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
- @check_args = check_args
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.85.0'
4
+ VERSION = '0.87.0'
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.114.0
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-01-24 00:00:00.000000000 Z
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