ghcurl 0.5.0 → 0.5.1

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -1
  3. data/bin/ghcurl +8 -8
  4. data/lib/ghcurl.rb +1 -1
  5. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b4840d95efdb75df9837f357689f9a4e1de17d22149d95a0843d26925923341
4
- data.tar.gz: 13f087583da4f41ff0e94be251e74fe565981e8c01e73867a1be0e25ab88065f
3
+ metadata.gz: b51925892c13aec5ed7e86f931e8319f9b4ddb06c0c14d6c08816776b3e5b922
4
+ data.tar.gz: 01ce411ded642b6f0cac664e3a966ad2053f7b0a7f3a5d536a28e27f0531a43a
5
5
  SHA512:
6
- metadata.gz: be2b7c9bd8de0b137d8bdd07d49bdb9a30a3906e8034e87ac850047809ba2ec6dc24909b82feed5a53550532001222c0ae999e7441af27322c9ea34d18930289
7
- data.tar.gz: 19d2d408baa93e56c2ce1145b7e2319283f9a18053f0cadf1fe46c9d4139356a7802794c534d5a4b6362189884e0089b2b0248781d800896e550cec1ea2e10a7
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 (and install) from Github releases.
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
- CO = CliSwitch::Option
313
- op_config = [] << CO.new(name: 'install', short: '-i', arg_required: 'optional') <<
314
- CO.new(name: 'version', short: '-v', arg_required: 'required') <<
315
- CO.new(name: 'help', short: '-h', long: '--help', arg_required: 'noarg') <<
316
- CO.new(name: 'list', short: '-l', arg_required: 'noarg')
317
-
318
- cli = CliSwitch.new(op_config)
319
- args, opts = cli.parse(ARGV)
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
@@ -12,7 +12,7 @@
12
12
 
13
13
  module Ghcurl
14
14
 
15
- VERSION = "0.5.0"
15
+ VERSION = "0.5.1"
16
16
 
17
17
  end
18
18
 
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.0
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-13 00:00:00.000000000 Z
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: '0.2'
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: '0.2'
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.7
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