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 +4 -4
- data/lib/avm/tools/runner/source/issue/complete.rb +13 -7
- data/lib/avm/tools/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1b154f50057111e84c1d82da312b7112d9ab8bb5e0edfd5e30d978e6c131d5c
|
4
|
+
data.tar.gz: 98d34402b51f7e4067f47474c6a1871d94b03b54aaea7b527bf2891696467892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
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
|
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
|
-
|
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
|
55
|
-
{
|
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
|
-
|
66
|
+
complete.validation_keys.map { |k| " * #{k}" }.join("\n")
|
61
67
|
end
|
62
68
|
|
63
69
|
def uncomplete_unfail?
|
data/lib/avm/tools/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
102
|
+
version: '0.16'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: clipboard
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|