ruby-install_install 0.1.0 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35348c37b8252307a168666b24ea910486e4112478e2bc31000797a0541bea0a
4
- data.tar.gz: 120590ff7dd59dcbb51d41600c980af41b84d7e1f6479bdde3298235d485b9ac
3
+ metadata.gz: cfcc217087b98864236882f2d5dc62c15d64e431a2175ec7ddd812b100c616c2
4
+ data.tar.gz: 275ecf559f24eea85f94ae120bbf6f71153f48068639d1ba5a5bbcea74bd08a0
5
5
  SHA512:
6
- metadata.gz: ab2cc81d98471df134aa2c706b9526909e2dc4d9281bf8bdae21ac96d7535477c41bb00fd969422ea6a1d7fd2837b6c3e17032ce95e384639213a6c8041f305e
7
- data.tar.gz: 4962640f3a339ff5ecb5f91650d5f456f467da03421a6c6d87c1616786fccbc4e15c0988b958801468304592c5e01b9953511b106b1fdd21d2020fe309f5c84a
6
+ metadata.gz: cdd47f09b35ea094b1bc343070970195ce18490e5a316c16ac3e60005d2777724b1b1899ae94fa05517db2a66c8cc2ee0a0bec27fdeb20636ea931f6e5075167
7
+ data.tar.gz: b8d9c1f381631ef42936d0f493faa8c6210921e67a6a8679c9855ed16ee85c64590a71e3a3c9296833e4152e53f61868105195aea2cb80f5c28565b131a77cb3
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-install-install/ruby-install-0.7.0 && sudo make install
15
- [sudo] password for s3fxn:
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
 
@@ -4,10 +4,12 @@ require 'open-uri'
4
4
  require 'minitar'
5
5
  require 'zlib'
6
6
 
7
- version = ARGV[0] || '0.7.0'
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-install-install'
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
15
  Minitar.unpack(Zlib::GzipReader.new(open(uri,"rb")), src_prefix)
@@ -1,5 +1,5 @@
1
1
  module Ruby
2
2
  module InstallInstall
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -20,8 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
  spec.add_dependency "minitar"
23
- spec.add_dependency "zlib"
24
23
 
25
24
  spec.add_development_dependency "bundler", "~> 1.16"
26
- spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rake", ">= 12.3.3"
27
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.0
4
+ version: 0.1.5
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-02 00:00:00.000000000 Z
11
+ date: 2020-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitar
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: zlib
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +42,16 @@ dependencies:
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - "~>"
45
+ - - ">="
60
46
  - !ruby/object:Gem::Version
61
- version: '10.0'
47
+ version: 12.3.3
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - "~>"
52
+ - - ">="
67
53
  - !ruby/object:Gem::Version
68
- version: '10.0'
54
+ version: 12.3.3
69
55
  description:
70
56
  email:
71
57
  - sssfxn@gmail.com
@@ -104,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
90
  - !ruby/object:Gem::Version
105
91
  version: '0'
106
92
  requirements: []
107
- rubyforge_project:
108
- rubygems_version: 2.7.6
93
+ rubygems_version: 3.1.2
109
94
  signing_key:
110
95
  specification_version: 4
111
96
  summary: ruby-install installer