ruby-install_install 0.1.3 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/exe/ruby-install_install +3 -2
- data/lib/ruby/install_install/version.rb +1 -1
- data/ruby-install_install.gemspec +2 -2
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3f1ef2ca92a212ac36e29bb057302925e42a42799e2369e6278fcaec7f6d66b
|
4
|
+
data.tar.gz: 665aca7a326c4f7fb92fe27ab54bb5b41affd295025b8c4df90824bbe83126ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23cf2683f4e4a7ed5f907bc907874a49d5aa59b683a4f309173172549b63f2f7af11878a958d83d134b0a196e24ba98187f19d09bc0fef3d264acaa529afd5f6
|
7
|
+
data.tar.gz: 6f5576db3b4259c0d4541255ad0e5522e574d529cd643c6926bfe8a91c83ee3209f3fdb892151689d49d14f2c310357633821accc3951725498b70a239513fc1
|
data/README.md
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
# ruby-install_install
|
2
2
|
|
3
|
-
ruby-install installer
|
3
|
+
[ruby-install](https://github.com/postmodern/ruby-install) installer
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
$ gem install ruby-install_install
|
8
|
+
(you may need to run as root or through sudo.)
|
8
9
|
|
9
10
|
## Usage
|
10
11
|
```
|
11
12
|
$ ruby-install_install
|
12
13
|
Download from https://github.com/postmodern/ruby-install/archive/v0.7.0.tar.gz
|
13
|
-
cd /tmp/ruby-install_install/ruby-install-0.7.0 && sudo make install && rm -Rf /tmp/ruby-install_install
|
14
|
+
cd /tmp/ruby-install_install/ruby-install-0.7.0 && sudo make install && rm -Rf /tmp/ruby-install_install;\
|
15
|
+
test -f /etc/redhat-release && (rpm --quiet -q bzip2 || sudo yum -y install bzip2)
|
14
16
|
for dir in `find bin share -type d`; do mkdir -p /usr/local/$dir; done
|
15
17
|
for file in `find bin share -type f`; do cp $file /usr/local/$file; done
|
16
18
|
mkdir -p /usr/local/share/doc/ruby-install-0.7.0
|
@@ -19,6 +21,12 @@ cp -r *.md *.txt /usr/local/share/doc/ruby-install-0.7.0/
|
|
19
21
|
$ ruby-install -V
|
20
22
|
ruby-install: 0.7.0
|
21
23
|
```
|
24
|
+
## Examples
|
25
|
+
|
26
|
+
[centos7_ruby.sh](https://gist.github.com/s3fxn/6eaa2d86103f1f336d4691cee0230403)
|
27
|
+
|
28
|
+
[ubuntu18.04_ruby.sh](https://gist.github.com/s3fxn/08fd0dc5d502b3760f4fc83a15ca44c7)
|
29
|
+
|
22
30
|
|
23
31
|
## Contributing
|
24
32
|
|
data/exe/ruby-install_install
CHANGED
@@ -4,14 +4,15 @@ require 'open-uri'
|
|
4
4
|
require 'minitar'
|
5
5
|
require 'zlib'
|
6
6
|
|
7
|
-
|
7
|
+
default = URI.open('https://github.com/postmodern/ruby-install/tags').read.match(/v(\d+\.\d+\.\d+)/).to_a[1].to_s
|
8
|
+
version = ARGV[0] || default
|
8
9
|
uri = "https://github.com/postmodern/ruby-install/archive/v#{version}.tar.gz"
|
9
10
|
src_prefix = '/tmp/ruby-install_install'
|
10
11
|
cmd = "cd #{src_prefix}/ruby-install-#{version} && sudo make install && rm -Rf #{src_prefix};\\\n" +
|
11
12
|
"test -f /etc/redhat-release && (rpm --quiet -q bzip2 || sudo yum -y install bzip2)"
|
12
13
|
|
13
14
|
puts "Download from #{uri}"
|
14
|
-
Minitar.unpack(Zlib::GzipReader.new(open(uri,"rb")), src_prefix)
|
15
|
+
Minitar.unpack(Zlib::GzipReader.new(URI.open(uri,"rb")), src_prefix)
|
15
16
|
puts cmd
|
16
17
|
puts `#{cmd}`
|
17
18
|
|
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
spec.add_dependency "minitar"
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 1
|
25
|
-
spec.add_development_dependency "rake", "
|
24
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
25
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-install_install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- s3fxn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitar
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1
|
33
|
+
version: '2.1'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1
|
40
|
+
version: '2.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 12.3.3
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 12.3.3
|
55
55
|
description:
|
56
56
|
email:
|
57
57
|
- sssfxn@gmail.com
|
@@ -90,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
|
-
|
94
|
-
rubygems_version: 2.7.6
|
93
|
+
rubygems_version: 3.1.2
|
95
94
|
signing_key:
|
96
95
|
specification_version: 4
|
97
96
|
summary: ruby-install installer
|