vimpk 0.2.0 → 0.3.0
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/.overcommit.yml +0 -2
- data/lib/vimpk/cli.rb +12 -6
- data/lib/vimpk/version.rb +1 -1
- data/vimpk.gemspec +43 -0
- 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: 3352cab20c957f4b4fc580b6d9f2f0c91d0021cac3713ab6294111192ce5167d
|
|
4
|
+
data.tar.gz: 1044a2130c51433400d29c970be3e841d86469ab7dd5ddfeab615b3115a88626
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 31a0432618e7f85059b10d25b7aa2034ed18bf64b077b04665e08ae8f216402a8195a343ea53767911232af0908d7e2043e8ea3e8d234a81dbda53badac9f53f
|
|
7
|
+
data.tar.gz: 6ed9798aedf9bfd255abffe3d93acb6d9aa5e3378c2462a4be569b55b10bc40b840cf8d3242a04fcd2f61098dc99cdfcf5d6b6fd68c245163170c6dea6071453
|
data/.overcommit.yml
CHANGED
data/lib/vimpk/cli.rb
CHANGED
|
@@ -13,7 +13,7 @@ module VimPK
|
|
|
13
13
|
@command = determine_command
|
|
14
14
|
rescue OptionParser::MissingArgument, OptionParser::InvalidOption => e
|
|
15
15
|
warn e.message
|
|
16
|
-
abort
|
|
16
|
+
abort help_message
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def call
|
|
@@ -24,6 +24,12 @@ module VimPK
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
private
|
|
28
|
+
|
|
29
|
+
def help_message
|
|
30
|
+
"Use --help for usage information"
|
|
31
|
+
end
|
|
32
|
+
|
|
27
33
|
def determine_command
|
|
28
34
|
return nil if @argv.empty?
|
|
29
35
|
|
|
@@ -38,8 +44,8 @@ module VimPK
|
|
|
38
44
|
when "rm", "remove"
|
|
39
45
|
:remove_command
|
|
40
46
|
else
|
|
41
|
-
warn colorize("Unknown command: #{name}", color: :
|
|
42
|
-
abort
|
|
47
|
+
warn colorize("Unknown command: #{name}", color: :yellow)
|
|
48
|
+
abort help_message
|
|
43
49
|
end
|
|
44
50
|
end
|
|
45
51
|
|
|
@@ -50,12 +56,12 @@ module VimPK
|
|
|
50
56
|
install.call
|
|
51
57
|
puts colorize("Installed #{package} to #{install.dest}. Took #{Time.now - time} seconds.", color: :green)
|
|
52
58
|
rescue Git::GitError => e
|
|
53
|
-
warn colorize("Error: #{e.message}", color: :
|
|
59
|
+
warn colorize("Error: #{e.message}", color: :yellow)
|
|
54
60
|
abort e.output.lines.map { |line| " #{line}" }.join
|
|
55
61
|
rescue Install::PackageExistsError => e
|
|
56
|
-
|
|
62
|
+
abort colorize("Error: #{e.message}", color: :red)
|
|
57
63
|
rescue ArgumentError => e
|
|
58
|
-
|
|
64
|
+
abort colorize("Error: #{e.message}", color: :red)
|
|
59
65
|
end
|
|
60
66
|
|
|
61
67
|
def move_command(name = nil)
|
data/lib/vimpk/version.rb
CHANGED
data/vimpk.gemspec
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/vimpk/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "vimpk"
|
|
7
|
+
spec.version = VimPK::VERSION
|
|
8
|
+
spec.authors = ["Piotr Usewicz"]
|
|
9
|
+
spec.email = ["piotr@layer22.com"]
|
|
10
|
+
|
|
11
|
+
spec.summary = "VimPK is a tool for managing Vim plugins via packages."
|
|
12
|
+
spec.homepage = "https://github.com/pusewicz/vimpk"
|
|
13
|
+
spec.license = "MIT"
|
|
14
|
+
|
|
15
|
+
if RUBY_VERSION >= "2.7"
|
|
16
|
+
spec.required_ruby_version = ">= 2.6.0"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
20
|
+
|
|
21
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
22
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
23
|
+
spec.metadata["changelog_uri"] = File.join(spec.homepage, "blob/main/CHANGELOG.md")
|
|
24
|
+
spec.metadata["github_repo"] = "https://github.com/pusewicz/vimpk.git"
|
|
25
|
+
|
|
26
|
+
# Specify which files should be added to the gem when it is released.
|
|
27
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
28
|
+
spec.files = Dir.chdir(__dir__) do
|
|
29
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
|
30
|
+
(File.expand_path(f) == __FILE__) ||
|
|
31
|
+
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile .standard.yml CHANGELOG.md CODE_OF_CONDUCT.md README.md Rakefile])
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
spec.bindir = "exe"
|
|
35
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
36
|
+
spec.require_paths = ["lib"]
|
|
37
|
+
|
|
38
|
+
# Uncomment to register a new dependency of your gem
|
|
39
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
|
40
|
+
|
|
41
|
+
# For more information and examples about making a new gem, check out our
|
|
42
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
|
43
|
+
end
|
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vimpk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piotr Usewicz
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2024-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
13
|
+
description:
|
|
14
14
|
email:
|
|
15
15
|
- piotr@layer22.com
|
|
16
16
|
executables:
|
|
@@ -33,6 +33,7 @@ files:
|
|
|
33
33
|
- lib/vimpk/thread_pool.rb
|
|
34
34
|
- lib/vimpk/update.rb
|
|
35
35
|
- lib/vimpk/version.rb
|
|
36
|
+
- vimpk.gemspec
|
|
36
37
|
homepage: https://github.com/pusewicz/vimpk
|
|
37
38
|
licenses:
|
|
38
39
|
- MIT
|
|
@@ -42,7 +43,7 @@ metadata:
|
|
|
42
43
|
source_code_uri: https://github.com/pusewicz/vimpk
|
|
43
44
|
changelog_uri: https://github.com/pusewicz/vimpk/blob/main/CHANGELOG.md
|
|
44
45
|
github_repo: https://github.com/pusewicz/vimpk.git
|
|
45
|
-
post_install_message:
|
|
46
|
+
post_install_message:
|
|
46
47
|
rdoc_options: []
|
|
47
48
|
require_paths:
|
|
48
49
|
- lib
|
|
@@ -57,8 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
58
|
- !ruby/object:Gem::Version
|
|
58
59
|
version: '0'
|
|
59
60
|
requirements: []
|
|
60
|
-
rubygems_version: 3.5.
|
|
61
|
-
signing_key:
|
|
61
|
+
rubygems_version: 3.5.3
|
|
62
|
+
signing_key:
|
|
62
63
|
specification_version: 4
|
|
63
64
|
summary: VimPK is a tool for managing Vim plugins via packages.
|
|
64
65
|
test_files: []
|