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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/exe/rbenv-cn +50 -55
  3. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61184e3d4971ff8ce566c3f3705140878dc92516294219658ccb6ea2a2c848af
4
- data.tar.gz: 8da79de77a64723958ee479832aa1e9dc274c346ab49fbb40cac64ec2f8c2d65
3
+ metadata.gz: 316cb2e3093a74345e94d2b34b1c84969ac87fa45d1d295b05e4ec1d84fa740e
4
+ data.tar.gz: 5d99a81458454d067c686520b67042bf769b4112c214ae18a44df319f14a6826
5
5
  SHA512:
6
- metadata.gz: 55dae1bf953ce57c9f5ab80e8029b6efed86d42fc5d9a11672511cdd65a8c8306338bdb788a4ff6e4aa090761e69c293d034644b02ea91d6599bb249b8805c20
7
- data.tar.gz: 372916cb32a5e80f6a285a272b1922b1e9b1c67c2831ef37773d50bf52ac80442c9406a0c40548f3755fd638717aa1b8e031de4103bc4673bd0397855111ff9c
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 : 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
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: 1.1.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - ccmywish
8
- autorequire:
7
+ - Aoran Zeng
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-11 00:00:00.000000000 Z
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/RubyKids/rbenv-cn
24
+ homepage: https://gitee.com/RubyMetric/rbenv-cn
25
25
  licenses:
26
26
  - MIT
27
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:
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.7
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: []