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