ruby-install_install 0.1.1 → 0.1.6
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/README.md +10 -4
- data/exe/ruby-install_install +6 -4
- data/lib/ruby/install_install/version.rb +1 -1
- data/ruby-install_install.gemspec +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93e312006b1a8a0c4cab4d93ba1743bb8eb9fa86a7d523bacb3616a29e9ca5ba
|
4
|
+
data.tar.gz: 331db0c70a8711a65f329da32047da4fbae032b305e14587b73ae96ca8428a60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3292385a8de2b45ca496a2e050fea427b40e3a0043b362657eb33a2f0298909a906fb9872eaf84145b31bf5e160dff3bd7af6455b2d0186681bc05e48f7c7879
|
7
|
+
data.tar.gz: 54d9ad9eed0b7009cc9f495e417d85c31e7ee43baab235895f6bc97ec377d9eae6461c442928d3d28d315f53963813f17acbc4ce7bd284fe33aa2397f1034172
|
data/README.md
CHANGED
@@ -1,18 +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
13
|
Download from https://github.com/postmodern/ruby-install/archive/v0.7.0.tar.gz
|
14
|
-
cd /tmp/ruby-
|
15
|
-
|
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)
|
16
16
|
for dir in `find bin share -type d`; do mkdir -p /usr/local/$dir; done
|
17
17
|
for file in `find bin share -type f`; do cp $file /usr/local/$file; done
|
18
18
|
mkdir -p /usr/local/share/doc/ruby-install-0.7.0
|
@@ -21,6 +21,12 @@ cp -r *.md *.txt /usr/local/share/doc/ruby-install-0.7.0/
|
|
21
21
|
$ ruby-install -V
|
22
22
|
ruby-install: 0.7.0
|
23
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
|
+
|
24
30
|
|
25
31
|
## Contributing
|
26
32
|
|
data/exe/ruby-install_install
CHANGED
@@ -4,13 +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/releases').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
|
-
src_prefix = '/tmp/ruby-
|
10
|
-
cmd = "cd #{src_prefix}/ruby-install-#{version} && sudo make install"
|
10
|
+
src_prefix = '/tmp/ruby-install_install'
|
11
|
+
cmd = "cd #{src_prefix}/ruby-install-#{version} && sudo make install && rm -Rf #{src_prefix};\\\n" +
|
12
|
+
"test -f /etc/redhat-release && (rpm --quiet -q bzip2 || sudo yum -y install bzip2)"
|
11
13
|
|
12
14
|
puts "Download from #{uri}"
|
13
|
-
Minitar.unpack(Zlib::GzipReader.new(open(uri,"rb")), src_prefix)
|
15
|
+
Minitar.unpack(Zlib::GzipReader.new(URI.open(uri,"rb")), src_prefix)
|
14
16
|
puts cmd
|
15
17
|
puts `#{cmd}`
|
16
18
|
|
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.6
|
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: 2020-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitar
|
@@ -42,16 +42,16 @@ dependencies:
|
|
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
|