ghcurl 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/bin/ghcurl +8 -8
- data/lib/ghcurl.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b51925892c13aec5ed7e86f931e8319f9b4ddb06c0c14d6c08816776b3e5b922
|
4
|
+
data.tar.gz: 01ce411ded642b6f0cac664e3a966ad2053f7b0a7f3a5d536a28e27f0531a43a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4194359adb2d54b6fca4069e7d8f67ff205bd2b350ce70648aca80281e7d6a392eb7e46c50257a330341f18be67cf1ccc2a50bcf40becb104b60beb0ffb0367c
|
7
|
+
data.tar.gz: 8e04c84f09936c07f8c975443933a757452677c58e7613339747f6983a3297cff21642d4633a0e47fe39251648554f47227135eda3dd557acd575faffe465a5b
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ gem install ghcurl
|
|
10
10
|
|
11
11
|
<br>
|
12
12
|
|
13
|
-
Download files
|
13
|
+
Download files and install from Github releases.
|
14
14
|
|
15
15
|
</div>
|
16
16
|
|
@@ -22,6 +22,12 @@ ghcurl cli/cli deb -i
|
|
22
22
|
ghcurl cli/cli rpm -i
|
23
23
|
```
|
24
24
|
|
25
|
+
Things can be easier.
|
26
|
+
```bash
|
27
|
+
# It knows that's sharkdp/fd
|
28
|
+
ghcurl fd -i
|
29
|
+
```
|
30
|
+
|
25
31
|
Normal download
|
26
32
|
```bash
|
27
33
|
# Download latest rbspy-x86_64-unknown-linux-gnu.tar.gz to ~/.cache/ghcurl
|
data/bin/ghcurl
CHANGED
@@ -309,14 +309,14 @@ end
|
|
309
309
|
####################
|
310
310
|
extend Ghcurl
|
311
311
|
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
args, opts =
|
312
|
+
class Ghcurl::CLI < CliSwitch
|
313
|
+
option name: 'install', short: '-i', arg_required: 'optional'
|
314
|
+
option name: 'version', short: '-v', arg_required: 'required'
|
315
|
+
option name: 'help', short: '-h', long: '--help', arg_required: 'noarg'
|
316
|
+
option name: 'list', short: '-l', arg_required: 'noarg'
|
317
|
+
end
|
318
|
+
|
319
|
+
args, opts = Ghcurl::CLI.new.parse(ARGV)
|
320
320
|
|
321
321
|
if args.empty? and opts.empty?
|
322
322
|
help
|
data/lib/ghcurl.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghcurl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ccmywish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.3.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.3.0
|
55
55
|
description: Download files (and install) from Github releases.
|
56
56
|
email:
|
57
57
|
- ccmywish@qq.com
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.3.
|
91
|
+
rubygems_version: 3.3.11
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Download files (and install) from Github releases
|