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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/exe/rbenv-cn +53 -55
  3. metadata +9 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61184e3d4971ff8ce566c3f3705140878dc92516294219658ccb6ea2a2c848af
4
- data.tar.gz: 8da79de77a64723958ee479832aa1e9dc274c346ab49fbb40cac64ec2f8c2d65
3
+ metadata.gz: aa7e1d78f9ae1a35175064a385d890ba6d536f9971f049fd68aa710d10baa306
4
+ data.tar.gz: adec644841965c1626f824c9658b58a33ba8ad6e0975e016a00159eff7b8c7b1
5
5
  SHA512:
6
- metadata.gz: 55dae1bf953ce57c9f5ab80e8029b6efed86d42fc5d9a11672511cdd65a8c8306338bdb788a4ff6e4aa090761e69c293d034644b02ea91d6599bb249b8805c20
7
- data.tar.gz: 372916cb32a5e80f6a285a272b1922b1e9b1c67c2831ef37773d50bf52ac80442c9406a0c40548f3755fd638717aa1b8e031de4103bc4673bd0397855111ff9c
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 : <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 : 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: 1.1.0
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: 2022-04-11 00:00:00.000000000 Z
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/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.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: []