rbenv-cn 1.1.0 → 2.0.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 +53 -55
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa7e1d78f9ae1a35175064a385d890ba6d536f9971f049fd68aa710d10baa306
|
|
4
|
+
data.tar.gz: adec644841965c1626f824c9658b58a33ba8ad6e0975e016a00159eff7b8c7b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41382de7baea5fa06f93487323823f603aecbc5306e9e4dba076b07a4a7b37168df0fd380086464c9f0e88c7b36bf68c402260c9d81354a10f692ae82c5a1291
|
|
7
|
+
data.tar.gz: c38c33bcf30640d80aa45fc48dc3f000faab27670f7c08abf03ac5250d19bd0fbe6585b9952a4f4f98d5734469fed55eb3d18b339ee4b1c7cc6baa5134374dcf
|
data/exe/rbenv-cn
CHANGED
|
@@ -1,55 +1,53 @@
|
|
|
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 : <
|
|
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
|
-
rbenv-cn
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
end
|
|
55
|
-
end
|
|
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 : <2023-09-06>
|
|
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/tools/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/tools/uninstall.sh)"
|
|
23
|
+
EOF
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def help
|
|
28
|
+
puts <<-EOH
|
|
29
|
+
rbenv-cn:
|
|
30
|
+
|
|
31
|
+
该Gem仅用于帮助您快速安装/卸载`rbenv-cn`
|
|
32
|
+
https://gitee.com/RubyMetric/rbenv-cn
|
|
33
|
+
|
|
34
|
+
usage:
|
|
35
|
+
|
|
36
|
+
rbenv-cn install => 安装
|
|
37
|
+
rbenv-cn uninstall => 卸载
|
|
38
|
+
|
|
39
|
+
EOH
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
if ARGV.empty?
|
|
44
|
+
help
|
|
45
|
+
else
|
|
46
|
+
if ARGV[0] == "install"
|
|
47
|
+
install
|
|
48
|
+
elsif ARGV[0] == "uninstall"
|
|
49
|
+
uninstall
|
|
50
|
+
else
|
|
51
|
+
help
|
|
52
|
+
end
|
|
53
|
+
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.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ccmywish
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-09-06 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.
|
|
46
|
-
signing_key:
|
|
45
|
+
rubygems_version: 3.4.10
|
|
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: []
|