ghcurl 0.8.1 → 0.9.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 (10) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/Gemfile +6 -6
  4. data/LICENSE +22 -22
  5. data/README.md +102 -103
  6. data/Rakefile +3 -3
  7. data/bin/ghcurl +584 -525
  8. data/ghcurl.gemspec +40 -0
  9. data/lib/ghcurl.rb +79 -71
  10. metadata +10 -8
data/ghcurl.gemspec ADDED
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/ghcurl'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "ghcurl"
7
+ spec.version = Ghcurl::VERSION
8
+ spec.authors = ["ccmywish"]
9
+ spec.email = ["ccmywish@qq.com"]
10
+
11
+ spec.license = "MIT"
12
+ spec.summary = "Download files (and install) from Github releases"
13
+ spec.description = "Download files (and install) from Github releases."
14
+ spec.homepage = "https://github.com/ccmywish/ghcurl"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = spec.homepage
21
+ spec.metadata["changelog_uri"] = spec.homepage
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (f == __FILE__) || f.match(%r{\A(?:(?:|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28
+ end
29
+ end
30
+ spec.bindir = "bin"
31
+ spec.executables = spec.files.grep(%r{\Abin/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ spec.add_dependency "octokit", "~> 6.0"
35
+ spec.add_dependency "highline", "~> 2.0"
36
+ spec.add_dependency "cliswitch", "~> 0.3.0"
37
+
38
+ # For more information and examples about making a new gem, check out our
39
+ # guide at: https://bundler.io/guides/creating_gem.html
40
+ end
data/lib/ghcurl.rb CHANGED
@@ -1,71 +1,79 @@
1
- # ------------------------------------------------------
2
- # File : ghcurl.rb
3
- # Authors : ccmywish <ccmywish@qq.com>
4
- # Created on : <2022-04-12>
5
- # Last modified : <2022-04-30>
6
- #
7
- # ghcurl:
8
- #
9
- # This is the lib file.
10
- #
11
- # ------------------------------------------------------
12
-
13
- module Ghcurl
14
-
15
- VERSION = "0.8.1"
16
-
17
- end
18
-
19
- #
20
- # We consider from this:
21
- #
22
- # https://github.com/ibraheemdev/modern-unix
23
- #
24
- Ghcurl::DEFAULT_WARES = {
25
-
26
- cli: 'cli/cli',
27
- gh: 'cli/cli',
28
-
29
- fd: 'sharkdp/fd',
30
- bat: 'sharkdp/bat',
31
- hyperfine: 'sharkdp/hyperfine',
32
- hexyl: 'sharkdp/hexyl',
33
-
34
- exa: 'ogham/exa',
35
- dog: 'ogham/dog',
36
-
37
- lsd: 'Peltoche/lsd',
38
- delta: 'dandavison/delta',
39
- dust: 'bootandy/dust',
40
- duf: 'muesli/duf',
41
- broot: 'Canop/broot',
42
-
43
- ripgrep: 'BurntSushi/ripgrep',
44
- rg: 'BurntSushi/ripgrep',
45
- ag: 'ggreer/the_silver_searcher',
46
-
47
- fzf: 'junegunn/fzf',
48
- fzy: 'jhawthorn/fzy',
49
-
50
- mcfly: 'cantino/mcfly',
51
- choose: 'theryangeary/choose',
52
- jq: 'stedolan/jq',
53
- sd: 'chmln/sd',
54
- cheat: 'cheat/cheat',
55
- bottom: 'ClementTsang/bottom',
56
- glances: 'nicolargo/glances',
57
- gtop: 'aksakalli/gtop',
58
- gping: 'orf/gping',
59
- procs: 'dalance/procs',
60
- httpie: 'httpie/httpie',
61
- curlie: 'rs/curlie',
62
- xh: 'ducaale/xh',
63
- zoxide: 'ajeetdsouza/zoxide',
64
-
65
- scc: 'boyter/scc',
66
- rbspy: 'rbspy/rbspy',
67
- starship: 'starship/starship',
68
-
69
- glow: 'charmbracelet/glow'
70
-
71
- }
1
+ # ------------------------------------------------------
2
+ # File : ghcurl.rb
3
+ # Authors : ccmywish <ccmywish@qq.com>
4
+ # Created on : <2022-04-12>
5
+ # Last modified : <2022-11-20>
6
+ #
7
+ # ghcurl:
8
+ #
9
+ # This is the lib file.
10
+ #
11
+ # ------------------------------------------------------
12
+
13
+ module Ghcurl
14
+
15
+ VERSION = "0.9.1"
16
+
17
+ end
18
+
19
+ #
20
+ # We consider from this:
21
+ #
22
+ # https://github.com/ibraheemdev/modern-unix
23
+ #
24
+ Ghcurl::DEFAULT_WARES = {
25
+
26
+ cli: 'cli/cli',
27
+ gh: 'cli/cli',
28
+
29
+ fd: 'sharkdp/fd',
30
+ bat: 'sharkdp/bat',
31
+ hyperfine: 'sharkdp/hyperfine',
32
+ hexyl: 'sharkdp/hexyl',
33
+
34
+ exa: 'ogham/exa',
35
+ dog: 'ogham/dog',
36
+
37
+ lsd: 'Peltoche/lsd',
38
+ delta: 'dandavison/delta',
39
+ dua: 'Byron/dua-cli',
40
+ dust: 'bootandy/dust',
41
+ duf: 'muesli/duf',
42
+ broot: 'Canop/broot',
43
+
44
+ ripgrep: 'BurntSushi/ripgrep',
45
+ rg: 'BurntSushi/ripgrep',
46
+ ag: 'ggreer/the_silver_searcher',
47
+
48
+ fzf: 'junegunn/fzf',
49
+ fzy: 'jhawthorn/fzy',
50
+
51
+ mcfly: 'cantino/mcfly',
52
+ choose: 'theryangeary/choose',
53
+ jq: 'stedolan/jq',
54
+ sd: 'chmln/sd',
55
+ cheat: 'cheat/cheat',
56
+ bottom: 'ClementTsang/bottom',
57
+ glances: 'nicolargo/glances',
58
+ gtop: 'aksakalli/gtop',
59
+ gping: 'orf/gping',
60
+ procs: 'dalance/procs',
61
+ httpie: 'httpie/httpie',
62
+ curlie: 'rs/curlie',
63
+ xh: 'ducaale/xh',
64
+ zoxide: 'ajeetdsouza/zoxide',
65
+
66
+ scc: 'boyter/scc',
67
+ rbspy: 'rbspy/rbspy',
68
+ starship: 'starship/starship',
69
+
70
+ glow: 'charmbracelet/glow',
71
+
72
+
73
+
74
+ ####################
75
+ # t
76
+ ####################
77
+ tldr: 'dbrgn/tealdeer',
78
+ tealdeer: 'dbrgn/tealdeer'
79
+ }
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.8.1
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ccmywish
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-29 00:00:00.000000000 Z
11
+ date: 2022-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.22'
19
+ version: '6.0'
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: '4.22'
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: highline
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -60,11 +60,13 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
+ - CHANGELOG.md
63
64
  - Gemfile
64
65
  - LICENSE
65
66
  - README.md
66
67
  - Rakefile
67
68
  - bin/ghcurl
69
+ - ghcurl.gemspec
68
70
  - lib/ghcurl.rb
69
71
  homepage: https://github.com/ccmywish/ghcurl
70
72
  licenses:
@@ -73,7 +75,7 @@ metadata:
73
75
  homepage_uri: https://github.com/ccmywish/ghcurl
74
76
  source_code_uri: https://github.com/ccmywish/ghcurl
75
77
  changelog_uri: https://github.com/ccmywish/ghcurl
76
- post_install_message:
78
+ post_install_message:
77
79
  rdoc_options: []
78
80
  require_paths:
79
81
  - lib
@@ -88,8 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
90
  - !ruby/object:Gem::Version
89
91
  version: '0'
90
92
  requirements: []
91
- rubygems_version: 3.3.12
92
- signing_key:
93
+ rubygems_version: 3.3.7
94
+ signing_key:
93
95
  specification_version: 4
94
96
  summary: Download files (and install) from Github releases
95
97
  test_files: []