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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 065cade925e0273651340e5da831cffaf623b761a7ff61f6cf6a5d749471e20e
4
- data.tar.gz: 7df9133d990f4e4113e88e83dfd027bf2a54abe3b0f2536627e5b14f027c6a33
3
+ metadata.gz: 93e312006b1a8a0c4cab4d93ba1743bb8eb9fa86a7d523bacb3616a29e9ca5ba
4
+ data.tar.gz: 331db0c70a8711a65f329da32047da4fbae032b305e14587b73ae96ca8428a60
5
5
  SHA512:
6
- metadata.gz: 34a0b330890cd5e13dd33e16ef9054089516f3077314bf1bc155417804697b3fd2e1613ad3ff05265b0c7641398b14f1b4ef72952bf31cf0ec650db834cd4797
7
- data.tar.gz: ce82f0af7f79ba3bba321a597eab021cd9fd052c7521229d089bb3ad5f86d18ddbed276f705386772b384dc2103d062718637b58163ec1c954df79c113c21f4c
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-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,13 +4,15 @@ 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
- 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
 
@@ -1,5 +1,5 @@
1
1
  module Ruby
2
2
  module InstallInstall
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency "minitar"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.16"
25
- spec.add_development_dependency "rake", "~> 10.0"
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.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: 2018-10-03 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
@@ -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: '10.0'
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: '10.0'
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
- rubyforge_project:
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