ruby-install_install 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbdfb12ebc00a5455b6d6ad908fecfdbbec30f975dbaa078954f8358a6807773
4
- data.tar.gz: addb4f4b661854be41a0c5d6371dfbb31b2e7b55551e416e4293d7346d626b27
3
+ metadata.gz: 4340f814ac50294c8e5a21f5df457c458a34f8c057703cdbb5e8dbc25f4c2065
4
+ data.tar.gz: 91fcd301ca6fe903dd79490819a27eea0c1a75d8f8d98dbd122f21af204a770f
5
5
  SHA512:
6
- metadata.gz: 7a933d036f8d8da38b7a2dcf1ce101f133aa8a5104a5545c7159694d1a6a1069f9d023d951e0ba96eff015d2d9b8a5c02f865a31d4e5c98c8fcdb8df78462831
7
- data.tar.gz: 9e941bb4d5992ba100956a7b0bf2d1c465306bef4b970b6fa214ba652eca471028a1d2b86679999c91b21d7709ccb6021ff2f659db35c8541be06cc5e7b49f60
6
+ metadata.gz: 87de1cbcf3477a6d5f472aeb0357ae5241ee177026d4a143b5c2d25c22918769ae73305a2b058414e451c3c87ab2948d70d875e9f90874bc0027c328980a5470
7
+ data.tar.gz: 0c88403a54581eb2ca81677e78de0cfd56ffe472ffd9c0417b37de5fcb195c1095626bc857da4ca941d925be5dd645bb340d8c0d1711b3e5e433a29e6bfde400
data/README.md CHANGED
@@ -10,7 +10,8 @@ ruby-install installer
10
10
  ```
11
11
  $ ruby-install_install
12
12
  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
13
+ cd /tmp/ruby-install_install/ruby-install-0.7.0 && sudo make install && rm -Rf /tmp/ruby-install_install;\
14
+ test -f /etc/redhat-release && (rpm --quiet -q bzip2 || sudo yum -y install bzip2)
14
15
  for dir in `find bin share -type d`; do mkdir -p /usr/local/$dir; done
15
16
  for file in `find bin share -type f`; do cp $file /usr/local/$file; done
16
17
  mkdir -p /usr/local/share/doc/ruby-install-0.7.0
@@ -19,6 +20,10 @@ cp -r *.md *.txt /usr/local/share/doc/ruby-install-0.7.0/
19
20
  $ ruby-install -V
20
21
  ruby-install: 0.7.0
21
22
  ```
23
+ ## Example
24
+
25
+ [centos7_ruby2.5.1.sh](https://gist.github.com/s3fxn/6eaa2d86103f1f336d4691cee0230403)
26
+
22
27
 
23
28
  ## Contributing
24
29
 
@@ -4,7 +4,8 @@ require 'open-uri'
4
4
  require 'minitar'
5
5
  require 'zlib'
6
6
 
7
- version = ARGV[0] || '0.7.0'
7
+ default = 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
10
  src_prefix = '/tmp/ruby-install_install'
10
11
  cmd = "cd #{src_prefix}/ruby-install-#{version} && sudo make install && rm -Rf #{src_prefix};\\\n" +
@@ -1,5 +1,5 @@
1
1
  module Ruby
2
2
  module InstallInstall
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - s3fxn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-07 00:00:00.000000000 Z
11
+ date: 2018-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitar