avm-tools 0.160.1 → 0.160.2

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: 482fbfe2912b8d96e4c7897ee1e5c43ac8a449edf4999c0322c78d8bc26e8d97
4
- data.tar.gz: 7c385ae14cb974ad6a172a87c14f0e95dd9cd9b9d9684792cfbe6a8434572e42
3
+ metadata.gz: c1b154f50057111e84c1d82da312b7112d9ab8bb5e0edfd5e30d978e6c131d5c
4
+ data.tar.gz: 98d34402b51f7e4067f47474c6a1871d94b03b54aaea7b527bf2891696467892
5
5
  SHA512:
6
- metadata.gz: 2dff0ce689c7ff6e54f9c9d32b65fe55122d30d911db558669110e983ba43855d3603b9b22e77ae16af87801500eca853609908215a95c703a14582d3e8294d0
7
- data.tar.gz: 06b97cce7219438f0471da5c636c4cc0900bb9cca430aadbdc9f2afd9e2ac1203f88f650e72b4c00113e66dc48ce572a9601e71233b32da2e3b0636c8dc2e9c8
6
+ metadata.gz: '092a678bd40b041317079126e5a5522c79e31b78019974f0e44b16700bb700ba91a8198d0e94814e66037750ec970a52724a010d215a043e69b3303451c53cdc'
7
+ data.tar.gz: eaa62db1a42bca9180b09ce0c8ba08c5c591cbbe2e55a1d86ae1cfd44d7f6b0fae35eb36ac2007c235329f60526c4cde94b8020c630accae5bc5414847bc20ff
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/tools/core_ext'
4
- require 'avm/git/issue/complete'
4
+ require 'clipboard'
5
5
 
6
6
  module Avm
7
7
  module Tools
@@ -10,7 +10,7 @@ module Avm
10
10
  class Issue
11
11
  class Complete
12
12
  runner_with :confirmation, :help do
13
- desc 'Closes a issue in a Git repository.'
13
+ desc 'Closes a issue in a remote repository.'
14
14
  bool_opt '-f', '--uncomplete-unfail', 'Do not exit with error if issue is not ' \
15
15
  'completed or is invalid.'
16
16
  arg_opt '-s', '--skip-validations', 'Does not validate conditions on <validations> ' \
@@ -21,6 +21,8 @@ module Avm
21
21
  return unless run_validate
22
22
  return unless run_complete
23
23
 
24
+ clipboard_copy_tracker_message
25
+
24
26
  success('Done!')
25
27
  end
26
28
 
@@ -43,21 +45,25 @@ module Avm
43
45
 
44
46
  private
45
47
 
48
+ def clipboard_copy_tracker_message
49
+ ::Clipboard.copy(complete.textile_tracker_message)
50
+ infov 'Copied to clipboard', complete.textile_tracker_message
51
+ end
52
+
46
53
  def complete_uncached
47
- ::Avm::Git::Issue::Complete.new(git_complete_issue_options)
54
+ runner_context.call(:subject).completer(complete_issue_options)
48
55
  end
49
56
 
50
57
  def skip_validations
51
58
  parsed.skip_validations.to_s.split(',').map(&:strip).compact_blank
52
59
  end
53
60
 
54
- def git_complete_issue_options
55
- { dir: runner_context.call(:subject).path.to_path,
56
- skip_validations: skip_validations }
61
+ def complete_issue_options
62
+ { skip_validations: skip_validations }
57
63
  end
58
64
 
59
65
  def doc_validations_list
60
- ::Avm::Git::Issue::Complete::VALIDATIONS.keys.map { |k| " * #{k}" }.join("\n")
66
+ complete.validation_keys.map { |k| " * #{k}" }.join("\n")
61
67
  end
62
68
 
63
69
  def uncomplete_unfail?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.160.1'
5
+ VERSION = '0.160.2'
6
6
  end
7
7
  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.160.1
4
+ version: 0.160.2
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: 2024-02-18 00:00:00.000000000 Z
11
+ date: 2024-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.85'
33
+ version: '0.86'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.85'
40
+ version: '0.86'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: avm-eac_ruby_base1
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '0.15'
95
+ version: '0.16'
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '0.15'
102
+ version: '0.16'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: clipboard
105
105
  requirement: !ruby/object:Gem::Requirement