avm-git 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/git/issue/complete/tracker.rb +0 -7
- data/lib/avm/git/issue/complete.rb +9 -6
- data/lib/avm/git/scms/git.rb +7 -0
- data/lib/avm/git/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3a1afddf99ac275f4fefaa59f5214ef2fa6658c8de08f9cdf0084ac3595fef4
|
4
|
+
data.tar.gz: 4a05f201ba0f62f69690dd40d4bd3327b4a63bd466beefdbc207f439753a0c6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31447cd67d5af7667435e88a5a0c568813f6267a5da4a6a6f340fa79270d744d9cf6cb04aac72f8d514b56df9e235b54004edfd6d3e095fceaf36f557a474d79
|
7
|
+
data.tar.gz: 2ce2db890f802d7029714bdd9f3e4419605ac8b3d45eb09b3e91799409d2ed9c47d51994273358585c95aaacb0cb515ff37ed39059839dc948a1ef8ae71c73df
|
@@ -1,17 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'clipboard'
|
4
|
-
|
5
3
|
module Avm
|
6
4
|
module Git
|
7
5
|
module Issue
|
8
6
|
class Complete
|
9
7
|
module Tracker
|
10
|
-
def clipboard_copy_tracker_message
|
11
|
-
::Clipboard.copy(textile_tracker_message)
|
12
|
-
infov 'Copied to clipboard', textile_tracker_message
|
13
|
-
end
|
14
|
-
|
15
8
|
private
|
16
9
|
|
17
10
|
def textile_tracker_message_uncached
|
@@ -11,17 +11,21 @@ module Avm
|
|
11
11
|
enable_simple_cache
|
12
12
|
enable_speaker
|
13
13
|
|
14
|
-
|
14
|
+
attr_reader :scm, :skip_validations
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
def initialize(options)
|
16
|
+
def initialize(scm, options)
|
17
|
+
@scm = scm
|
19
18
|
consumer = ::EacRubyUtils::OptionsConsumer.new(options)
|
20
|
-
@
|
19
|
+
@skip_validations = consumer.consume(:skip_validations)
|
21
20
|
validate_skip_validations
|
22
21
|
consumer.validate
|
23
22
|
end
|
24
23
|
|
24
|
+
# @return [String]
|
25
|
+
def dir
|
26
|
+
scm.path.to_path
|
27
|
+
end
|
28
|
+
|
25
29
|
def start_banner
|
26
30
|
validations_banner
|
27
31
|
end
|
@@ -32,7 +36,6 @@ module Avm
|
|
32
36
|
assert_tag
|
33
37
|
push
|
34
38
|
remove_local_branch
|
35
|
-
clipboard_copy_tracker_message
|
36
39
|
true
|
37
40
|
end
|
38
41
|
|
data/lib/avm/git/scms/git.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'avm/git/issue/complete'
|
3
4
|
require 'avm/git/scms/git_subrepo'
|
4
5
|
require 'avm/scms/base'
|
5
6
|
require 'eac_ruby_utils/core_ext'
|
@@ -17,6 +18,12 @@ module Avm
|
|
17
18
|
git_repo <=> other.git_repo
|
18
19
|
end
|
19
20
|
|
21
|
+
# @param options [Hash<Symbol, Object>]
|
22
|
+
# @return [Avm::Git::Issues::Complete]
|
23
|
+
def completer(options = {})
|
24
|
+
::Avm::Git::Issue::Complete.new(self, options)
|
25
|
+
end
|
26
|
+
|
20
27
|
def git_repo
|
21
28
|
@git_repo ||= ::EacGit::Local.new(path)
|
22
29
|
end
|
data/lib/avm/git/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
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: avm
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.86'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.86'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: avm-files
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|