chruby 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWNkNjgxMGRlYzBiOTBlNTRmZmVmNWE4ZDQ0MWNlYWMzNzYxNTUxNA==
4
+ ZGNjNTBmMTU1YjAwNjQ0ZWFmODBjOWQwMTg0MzlkOWU4MDE1NGE0Nw==
5
5
  data.tar.gz: !binary |-
6
- YTUxOTExOTFhMzY0NjczMzNhZjVmZjQxNDZkOTYyYmIzMGE5NmZiMQ==
6
+ M2Y1YzNlMTMyODYzZDU4YTQxM2Y1NDAzYzMxNDE5ZDZmNzkxZGRmMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTkzMTc5NTEyN2FlM2ZiNzU1YmViNDM1MjVjOTcyMmEyYzNlNzRkZmUwYzBk
10
- MzI3ODBlOGYzNmE3NWMwZTdlYjlkYzMyMTEwM2YyYmQxM2RjMjEyMzUwNjEy
11
- YTgyY2IxOWZkOGFmZjExMThiYWU4ZjBkOGU1MDViMWQ0NmFjYzE=
9
+ ODhmOWNmMDc5ZjU3ZDM3MzcwZWEzNmY5MGE0YWUxYWVjZTlmZjY2M2RlZDA3
10
+ MDY1Nzg3YzMyMzI0Y2QyNThiYTYyMzE4NGQxMjM2NDFhZmRlMWZkMTNhZTkx
11
+ NzM2OTI5OTI1MmNjOGUyYTZmNjFmOGNlNmNlZDk0ZGVjYjA0ZjA=
12
12
  data.tar.gz: !binary |-
13
- MjY3MDdjYzg5ZjE5MTA0ODRjYTc0MjI1NWI2YjE3ZTgzNjBmZTBiMmE2MmM4
14
- ZGNmMWU0M2U1ZGNkYjBmNzAxMDlmNzA3MDI5ZGRmMjQ2YTAyMWYwYTI4ZDAy
15
- ZDY0ZjdhMzc2YTU4MDAwOGFhNGY5MDU4OGQyODQ3ODg4OTQ1ZDk=
13
+ M2YyZjVhOTgwMWFjNDFiMTE2NWE4MGM1NmMwMTM5ZTVhZjRmZTUyODQ4ZmQx
14
+ MjBhMTM2MjA3ZGM1YTM2NmEyMmNjZjBhOGJlMTc3MjRlNGUxOGY5NWFmMWZm
15
+ ZDM4ZGQ0ZmYxMzA4MGMzMTlmODQzZTUxYjU3YWQ1MTc2NGE4N2Q=
data/CHANGELOG CHANGED
@@ -1,2 +1,3 @@
1
+ v0.3. catch errors during Makefile step
1
2
  v0.2. remove use of sudo
2
3
  v0.1. proof of concept
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "chruby"
5
- s.version = "0.2"
5
+ s.version = "0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Andrew Snow"]
9
- s.date = "2013-07-16"
9
+ s.date = "2013-08-24"
10
10
  s.description = "Ruby gem to install chruby & ruby-install"
11
11
  s.email = "andrew@modulus.org"
12
12
  s.extensions = ["ext/chruby_gem/extconf.rb"]
@@ -8,6 +8,7 @@ File.open('Makefile', 'w') do |mkf|
8
8
 
9
9
  ruby_install_version = '0.2.1'
10
10
  chruby_version = '0.3.6'
11
+ rubies = ['1.9', '2.0']
11
12
 
12
13
  mkf.puts <<EOF
13
14
 
@@ -32,13 +33,12 @@ chruby/Makefile:
32
33
  /usr/local/bin/chruby-exec: chruby/Makefile
33
34
  cd chruby && make install
34
35
 
35
- /opt/rubies:
36
- ruby-install ruby 2.0 -- --disable-install-doc
37
- ruby-install ruby 1.9 -- --disable-install-doc
38
- bash -c 'source /usr/local/share/chruby/chruby.sh ; for ruby in `ls -1 /opt/rubies` ; do echo $ruby ; chruby $ruby ; gem install bundler ; done ; chruby system'
39
-
40
36
  EOF
41
37
 
38
+
39
+ mkf.puts '/opt/rubies:'
40
+ ['1.9', '2.0'].each {|ruby| mkf.puts "\truby-install ruby #{ruby} -- --disable-install-doc" }
41
+ ['1.9', '2.0'].each {|ruby| mkf.puts "\tsource /usr/local/share/chruby/chruby.sh ; chruby #{ruby} ; gem install bundler" }
42
42
 
43
43
  end
44
44
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chruby
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Snow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-16 00:00:00.000000000 Z
11
+ date: 2013-08-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby gem to install chruby & ruby-install
14
14
  email: andrew@modulus.org