rbenv-cn 1.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 +7 -0
- data/exe/rbenv-cn +55 -0
- metadata +49 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d5de84172149f3c30bb0939ba17aa07914cb1cc264be02555b32608416f5f5ef
|
|
4
|
+
data.tar.gz: b96ddefa2a61a0ec8226a4c14cbc48635ed8a8f819077851983c3779ce6ee41f
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: ff09c48acfd288671405827c9adfdb7539f9674fe705a8d325f71f486850038c6a36ca94aae096f49252562f7b46717e98320f9b8414de4441207282da9e4c96
|
|
7
|
+
data.tar.gz: f2652079ffdb653cf524d31c5f8b63378f30e100f3d7b10f29ee2391c5311d4c05ad90a55b3bbbb35d7473ed8a13598f53a4b37bfe6a26f28be22e205c5b2594
|
data/exe/rbenv-cn
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# ------------------------------------------------------
|
|
3
|
+
# File : rbenv-cn.rb
|
|
4
|
+
# Authors : ccmywish <ccmywish@qq.com>
|
|
5
|
+
# Created on : <2022-03-23>
|
|
6
|
+
# Last modified : <2022-03-23>
|
|
7
|
+
#
|
|
8
|
+
# rbenv-cn:
|
|
9
|
+
#
|
|
10
|
+
# install `rbenv` and `rbenv-cn` plugin quikly
|
|
11
|
+
# for Chinese users.
|
|
12
|
+
#
|
|
13
|
+
# ------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def install
|
|
17
|
+
exec <<EOF
|
|
18
|
+
bash -c "$(curl -fsSL https://gitee.com/RubyKids/rbenv-cn/raw/main/tools/install.sh)"
|
|
19
|
+
EOF
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def uninstall
|
|
23
|
+
exec <<EOF
|
|
24
|
+
bash -c "$(curl -fsSL https://gitee.com/RubyKids/rbenv-cn/raw/main/tools/uninstall.sh)"
|
|
25
|
+
EOF
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def help
|
|
30
|
+
puts <<-EOH
|
|
31
|
+
rbenv-cn:
|
|
32
|
+
|
|
33
|
+
该Gem仅用于帮助您快速安装/卸载`rbenv-cn`
|
|
34
|
+
https://gitee.com/RubyKids/rbenv-cn
|
|
35
|
+
|
|
36
|
+
usage:
|
|
37
|
+
|
|
38
|
+
rbenv-cn install => 安装
|
|
39
|
+
rbenv-cn uninstall => 卸载
|
|
40
|
+
|
|
41
|
+
EOH
|
|
42
|
+
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
if ARGV.empty?
|
|
46
|
+
help
|
|
47
|
+
else
|
|
48
|
+
if ARGV[0] == "install"
|
|
49
|
+
install
|
|
50
|
+
elsif ARGV[0] == "uninstall"
|
|
51
|
+
uninstall
|
|
52
|
+
else
|
|
53
|
+
help
|
|
54
|
+
end
|
|
55
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rbenv-cn
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '1.0'
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- ccmywish
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2022-03-23 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: 'This command line tool `rbenv-cn` helps to install `rbenv` and `rbenv-cn`
|
|
14
|
+
plugin quikly for Chinese users.
|
|
15
|
+
|
|
16
|
+
'
|
|
17
|
+
email: ccmywish@qq.com
|
|
18
|
+
executables:
|
|
19
|
+
- rbenv-cn
|
|
20
|
+
extensions: []
|
|
21
|
+
extra_rdoc_files: []
|
|
22
|
+
files:
|
|
23
|
+
- exe/rbenv-cn
|
|
24
|
+
homepage: https://gitee.com/RubyKids/rbenv-cn
|
|
25
|
+
licenses:
|
|
26
|
+
- MIT
|
|
27
|
+
metadata:
|
|
28
|
+
bug_tracker_uri: https://github.com/RubyKids/rbenv-cn/issues
|
|
29
|
+
source_code_uri: https://github.com/RubyKids/rbenv-cn
|
|
30
|
+
post_install_message:
|
|
31
|
+
rdoc_options: []
|
|
32
|
+
require_paths:
|
|
33
|
+
- lib
|
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '0'
|
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '0'
|
|
44
|
+
requirements: []
|
|
45
|
+
rubygems_version: 3.3.7
|
|
46
|
+
signing_key:
|
|
47
|
+
specification_version: 4
|
|
48
|
+
summary: 'rbenv-cn: install `rbenv` and `rbenv-cn` plugin quikly for Chinese users.'
|
|
49
|
+
test_files: []
|