muto 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +38 -26
- data/lib/deploy_scripts/muto.bat +4 -5
- data/lib/deploy_scripts/muto.rb +115 -107
- data/lib/deploy_scripts/ruby_versions.yml +23 -15
- data/lib/muto/version.rb +1 -2
- metadata +46 -39
data/README.textile
CHANGED
@@ -1,17 +1,14 @@
|
|
1
1
|
h1. Overview
|
2
2
|
|
3
|
-
Muto is a lightweight little ruby/vbs/bat script that will allow you switch to another version of Ruby while also allowing you to alter Windows Environment
|
4
|
-
|
5
|
-
|
3
|
+
Muto is a lightweight little ruby/vbs/bat script that will allow you switch to another version of Ruby while also allowing you to alter multiple other Windows Environment variables at the same time. You can do this with Muto without having to reload your command prompt/shell and all gem paths associated with the chosen version of ruby are automatically updated as you switch versions.
|
4
|
+
|
5
|
+
*As a precautionary measure when using muto, make a backup of your Windows PATH environment variable before using this gem*
|
6
6
|
|
7
7
|
h2. Why I put this together..
|
8
8
|
|
9
|
-
Firstly, I'm not trying to take anything from Pik, check it out first if you haven't already, there's a thousand things you can do with it and it might be
|
10
|
-
better suited to what your needs are: https://github.com/vertiginous/pik
|
9
|
+
Firstly, I'm not trying to take anything from Pik, check it out first if you haven't already, there's a thousand things you can do with it and it might be better suited to what your needs are: https://github.com/vertiginous/pik
|
11
10
|
|
12
|
-
I put Muto together because I needed to also frequently change a few environment variables every time I changed my version of ruby and I just got sick
|
13
|
-
of having to do it all the time and then having to reload my command prompt as well just to pick up the changes. Also I needed to be able to switch
|
14
|
-
ruby versions and persist the change to another version of Ruby across my entire Windows environment.
|
11
|
+
I put Muto together because I needed to also frequently change a few environment variables every time I changed my version of ruby and I just got sick of having to do it all the time and then having to reload my command prompt as well just to pick up the changes. Also I needed to be able to switch ruby versions and persist the change to another version of Ruby across my entire Windows environment.
|
15
12
|
|
16
13
|
h2. Example Usage
|
17
14
|
|
@@ -22,8 +19,9 @@ muto
|
|
22
19
|
=>Expected format: muto [ruby_version]
|
23
20
|
=>
|
24
21
|
=>Available Versions are:
|
25
|
-
=> 186
|
26
|
-
=>
|
22
|
+
=> 186 - ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
|
23
|
+
=> 187 - ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
|
24
|
+
=> rhodes - ruby 1.9.3p125 (2012-02-16) [i386-mingw32]
|
27
25
|
=>
|
28
26
|
=>Currently using:
|
29
27
|
=>ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
|
@@ -33,28 +31,26 @@ ruby -v
|
|
33
31
|
echo %JAVA_HOME%
|
34
32
|
=>C:\Program Files\Java\jre5
|
35
33
|
|
36
|
-
muto
|
34
|
+
muto 187
|
37
35
|
=>System updated. Now using:
|
38
|
-
=>ruby 1.
|
36
|
+
=>ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
|
39
37
|
|
40
38
|
ruby -v
|
41
|
-
=>ruby 1.
|
39
|
+
=>ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
|
42
40
|
echo %JAVA_HOME%
|
43
41
|
=>C:\Program Files\Java\jre7
|
44
42
|
</pre>
|
45
43
|
|
46
44
|
h2. How Muto works..
|
47
45
|
|
48
|
-
Muto works by using an executable .bat file to call a ruby script which will alter your systems environment variables and send an environment changed
|
49
|
-
signal to your Windows environment. It'll then finish by calling a basic vb script to update the shell you're working in so that you won't need to
|
50
|
-
restart your command prompt.
|
46
|
+
Muto works by using an executable .bat file to call a ruby script which will alter your systems environment variables and send an environment changed signal to your Windows environment. It'll then finish by calling a basic vb script to update the shell you're working in so that you won't need to restart your command prompt/shell window.
|
51
47
|
|
52
48
|
The actual muto gem is not really a gem at all.. It's just basically a wrapper to help copy the muto scripts to your machine somewhere.
|
53
49
|
|
54
50
|
|
55
51
|
h2. Setup/Config
|
56
52
|
|
57
|
-
Use a normal Windows MRI version of Ruby to install Muto
|
53
|
+
*Use a normal Windows MRI version of Ruby to install Muto*
|
58
54
|
<pre>gem install muto</pre>
|
59
55
|
|
60
56
|
From the command line, change into a directory where you want to keep the scripts and run: extract_muto
|
@@ -73,12 +69,17 @@ extract_muto
|
|
73
69
|
|
74
70
|
h3. ruby_versions.yml
|
75
71
|
|
76
|
-
As well as being able to switch to other versions of Ruby in your Windows environment, you can also define other User Environment Variables to change at
|
77
|
-
|
78
|
-
|
72
|
+
As well as being able to switch to other versions of Ruby in your Windows environment, you can also define other User Environment Variables to change at the same time. Muto switches versions of Ruby by just regex-ing out the ruby bin folder out of your Windows PATH variable and replacing it with the new version you choose. This way none of the other paths in your environments PATH variable are altered.
|
73
|
+
|
74
|
+
The User Environment Variables are set completely differently! The values you give them are the full values used to define the variable so if there is an existing variable already defined in your User Environment variables then it will be overwritten with the new value.
|
75
|
+
|
76
|
+
*ADD A 'HOME' ENVIRONMENT VARIABLE FOR EACH VERSION OF RUBY!!*
|
77
|
+
Ruby will install and run just fine without a 'HOME' environment variable, however you'll likely run into problems with rubygems while installing gems if you do not setup a 'HOME' environment variable for each separate version of ruby you install. I usually just create an empty directory within the ruby folder I'm using and then just add a 'HOME' environment variable to my 'ruby_versions.yml' file like in the following example.
|
79
78
|
|
80
|
-
|
81
|
-
|
79
|
+
*To add multiple items to your windows PATH environment variable when switching*
|
80
|
+
Inside my windows PATH environment variable I've manually added an ==%ADD_TO_PATH%== environment variable so that it looks something like this:
|
81
|
+
PATH: C;\path\to\stuff\etc; ==%ADD_TO_PATH%==
|
82
|
+
In the following example, when switching to my "rhodes" environment I want to add a heap of stuff to my windows PATH environment variable that I don't want to be in the PATH when using ruby 186 or 192. In these cases I use a tilde '~' character or a semicolon ';' which will just change the value of the ==%ADD_TO_PATH%== variable to a semicolon and adding nothing to the PATH when I switch between versions.
|
82
83
|
|
83
84
|
<pre>
|
84
85
|
# ruby_versions.yml example
|
@@ -88,12 +89,23 @@ ruby_versions:
|
|
88
89
|
shortcut: 186
|
89
90
|
bin_folder: C:\ruby\bin
|
90
91
|
user_env_variables:
|
92
|
+
home: C:\ruby\home
|
91
93
|
java_home: C:\Program Files\Java\jre5
|
92
|
-
|
93
|
-
|
94
|
-
|
94
|
+
add_to_path: ~
|
95
|
+
ruby_187:
|
96
|
+
shortcut: 187
|
97
|
+
bin_folder: C:\ruby187\bin
|
98
|
+
user_env_variables:
|
99
|
+
home: C:\ruby187\home
|
100
|
+
java_home: C:\Program Files\Java\jre7
|
101
|
+
add_to_path: ~
|
102
|
+
rhodes_193:
|
103
|
+
shortcut: rhodes
|
104
|
+
bin_folder: C:\RhodesSuite2.2.1.13\ruby\bin
|
95
105
|
user_env_variables:
|
106
|
+
home: C:\RhodesSuite2.2.1.13\ruby\home
|
96
107
|
java_home: C:\Program Files\Java\jre7
|
108
|
+
add_to_path: C:\RhodesSuite2.2.1.13\redis-2.4.0;C:\RhodesSuite2.2.1.13\ruby\bin;C:\RhodesSuite2.2.1.13\devkit\bin;C:\RhodesSuite2.2.1.13\devkit\mingw\bin;C:\RhodesSuite2.2.1.13\make-3.81\bin;C:\Program Files (x86)\nodejs\;
|
97
109
|
|
98
110
|
</pre>
|
99
111
|
|
@@ -102,7 +114,7 @@ h2. License
|
|
102
114
|
|
103
115
|
MIT License
|
104
116
|
|
105
|
-
Copyright (C)
|
117
|
+
Copyright (C) 2013 by Lucas Hills
|
106
118
|
|
107
119
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
108
120
|
of this software and associated documentation files (the "Software"), to deal
|
data/lib/deploy_scripts/muto.bat
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
@ECHO OFF
|
2
2
|
|
3
3
|
|
4
|
-
|
4
|
+
:: This bat script is what is actually executed when you run 'muto' from the command line
|
5
|
+
::
|
5
6
|
C:\ruby\bin\ruby.exe %~dp0\muto.rb %* 2> NUL
|
6
7
|
|
7
8
|
|
8
|
-
:: The following 2 lines allow you to not have to
|
9
|
-
:: the new Environment Variables
|
10
|
-
|
9
|
+
:: The following 2 lines allow you to not have to reinitialise your command prompt window
|
10
|
+
:: in order to pick up the new Environment Variables
|
11
11
|
reset_command_line.vbs
|
12
12
|
call "%TEMP%\reset_command_line.bat"
|
13
13
|
|
14
14
|
|
15
|
-
|
16
15
|
:: The end of this script just outputs the now current version of Ruby being used by your system
|
17
16
|
:: Using 2> NUL just means that if the ruby/jruby command doesn't exist, the error message won't be output
|
18
17
|
:: to the command line.
|
data/lib/deploy_scripts/muto.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
require 'rubygems'
|
3
3
|
require 'win32/registry'
|
4
4
|
require 'Win32API'
|
5
5
|
require 'yaml'
|
@@ -8,147 +8,155 @@ HWND_BROADCAST = 0xffff
|
|
8
8
|
WM_SETTINGCHANGE = 0x001A
|
9
9
|
SMTO_ABORTIFHUNG = 2
|
10
10
|
|
11
|
-
|
11
|
+
module Muto
|
12
12
|
|
13
|
-
|
14
|
-
@commands = []
|
15
|
-
@ruby_versions = []
|
16
|
-
@all_bin_paths = []
|
13
|
+
class Muto
|
17
14
|
|
18
|
-
|
15
|
+
def initialize
|
16
|
+
@commands = []
|
17
|
+
@ruby_versions = []
|
18
|
+
@all_bin_paths = []
|
19
|
+
yml_path = File.expand_path('ruby_versions.yml', File.dirname(__FILE__))
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
begin
|
22
|
+
@versions_yml = YAML.load_file(yml_path)
|
23
|
+
rescue Exception => msg
|
24
|
+
puts "An Exception occurred while trying to parse your yml file: #{yml_path}"
|
25
|
+
raise msg
|
26
|
+
end
|
26
27
|
|
27
|
-
@versions_yml['ruby_versions'].each do |key, val|
|
28
|
-
@ruby_versions << @versions_yml['ruby_versions'][key]['shortcut'].to_s
|
29
|
-
@all_bin_paths << @versions_yml['ruby_versions'][key]['bin_folder']
|
30
28
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
29
|
+
if @versions_yml['ruby_versions'].nil?
|
30
|
+
puts "There aren't any version of Ruby defined in your ruby_versions.yml yet"
|
31
|
+
puts "Update #{File.expand_path(File.join(File.dirname(__FILE__), "ruby_versions.yml")).to_s.gsub(/\//, '\\')} first and try again"
|
32
|
+
puts "\nCurrently using:"
|
33
|
+
exit!
|
34
|
+
else
|
35
|
+
|
36
|
+
@versions_yml['ruby_versions'].each do |key, val|
|
37
|
+
@ruby_versions << @versions_yml['ruby_versions'][key]['shortcut'].to_s
|
38
|
+
#Convert the following paths to ruby paths so that they can be escaped more easily later on
|
39
|
+
@all_bin_paths << File.expand_path(@versions_yml['ruby_versions'][key]['bin_folder'])
|
40
|
+
|
41
|
+
begin
|
42
|
+
exe_name = (@versions_yml['ruby_versions'][key]['exe_name']) ? @versions_yml['ruby_versions'][key]['exe_name'] : 'ruby.exe'
|
43
|
+
ruby_exe = File.expand_path(File.join(@versions_yml['ruby_versions'][key]['bin_folder'], exe_name))
|
44
|
+
ruby_version = `"#{ruby_exe}" -v`
|
45
|
+
|
46
|
+
if File.exist?(ruby_exe)
|
47
|
+
add_version(:"#{@versions_yml['ruby_versions'][key]['shortcut'].to_s}", ruby_version)
|
48
|
+
else
|
49
|
+
puts "File does not exist: #{ruby_exe.to_s}"
|
50
|
+
end
|
51
|
+
|
52
|
+
rescue
|
53
|
+
puts "Error: File does not exist: #{ruby_exe.to_s}"
|
40
54
|
end
|
41
55
|
|
42
|
-
rescue
|
43
|
-
puts "Error: File does not exist: #{ruby_exe.to_s}"
|
44
56
|
end
|
45
|
-
|
46
57
|
end
|
47
|
-
|
48
|
-
|
49
58
|
end
|
50
59
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
@commands << { :name => name, :desc => description, :hidden => hidden }
|
55
|
-
end
|
60
|
+
def add_version(name, description, hidden=false)
|
61
|
+
@commands << { :name => name, :desc => description, :hidden => hidden }
|
62
|
+
end
|
56
63
|
|
57
|
-
|
58
|
-
|
59
|
-
help
|
60
|
-
else
|
61
|
-
begin
|
62
|
-
version = ARGV.shift.to_s
|
63
|
-
rescue
|
64
|
-
puts "Unknown Version"
|
64
|
+
def run
|
65
|
+
if ARGV.empty?
|
65
66
|
help
|
66
|
-
|
67
|
+
else
|
68
|
+
begin
|
69
|
+
version = ARGV.shift.to_s
|
70
|
+
rescue
|
71
|
+
puts "Unknown Version"
|
72
|
+
help
|
73
|
+
end
|
67
74
|
|
68
|
-
|
69
|
-
|
70
|
-
|
75
|
+
if @ruby_versions.include?(version)
|
76
|
+
@versions_yml['ruby_versions'].each do |key, val|
|
77
|
+
update_user_path_variable(key.to_s) if @versions_yml['ruby_versions'][key]['shortcut'].to_s == version
|
78
|
+
end
|
79
|
+
else
|
80
|
+
puts "Unknown Version"
|
81
|
+
help
|
71
82
|
end
|
72
|
-
else
|
73
|
-
puts "Unknown Version"
|
74
|
-
help
|
75
83
|
end
|
76
84
|
end
|
77
|
-
end
|
78
85
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
86
|
+
def help
|
87
|
+
puts "\nExpected format: muto [ruby_version]"
|
88
|
+
puts "\nAvailable Versions are:"
|
89
|
+
@commands.each do |command|
|
90
|
+
puts " #{command[:name]}#{command[:name].to_s.length <= 4 ? "\t\t" : "\t"}- #{command[:desc]}" unless command[:hidden]
|
91
|
+
end
|
85
92
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
93
|
+
# The bat file muto.bat will always output the current version of Ruby being
|
94
|
+
# used by your system, so just adding this to make it read nice
|
95
|
+
puts "\nCurrently using:"
|
96
|
+
end
|
90
97
|
|
91
98
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
+
def broadcast_WM_SETTINGCHANGE_signal
|
100
|
+
# After setting a new environment variable, a 'WM_SETTINGCHANGE' signal needs to be broadcast to windows
|
101
|
+
# so that you won't need to log off and log back on again for the new settings to be propagated.
|
102
|
+
# The following uses the Win32API module to send the signal
|
103
|
+
#
|
104
|
+
# For more info read up here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms725497%28v=vs.85%29.aspx
|
105
|
+
#
|
99
106
|
|
100
|
-
|
101
|
-
|
102
|
-
|
107
|
+
call_timeout_function = Win32API.new('user32', 'SendMessageTimeout', 'LLLPLLP', 'L')
|
108
|
+
result = 0
|
109
|
+
call_timeout_function.call(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 'Environment', SMTO_ABORTIFHUNG, 5000, result)
|
103
110
|
|
104
111
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
112
|
+
# The muto.bat script will finish up by outputting the current version or Ruby being used on your system
|
113
|
+
# This next line is just sugar
|
114
|
+
puts "\nSystem updated. Now using:"
|
115
|
+
end
|
109
116
|
|
110
|
-
|
117
|
+
def update_user_path_variable(versions_yml_key)
|
111
118
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
119
|
+
begin
|
120
|
+
reg_key, path_env_var = Win32::Registry::HKEY_CURRENT_USER.open('Environment').read('PATH')
|
121
|
+
rescue
|
122
|
+
user_path_env_not_set_properly_msg
|
123
|
+
exit!
|
124
|
+
end
|
118
125
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
126
|
+
@all_bin_paths.each do |bin_path|
|
127
|
+
escapedPath = Regexp.new(bin_path.gsub(/\//, "\\\\\\\\"), Regexp::IGNORECASE)
|
128
|
+
path_env_var.gsub!(escapedPath, @versions_yml['ruby_versions'][versions_yml_key]['bin_folder'].to_s)
|
129
|
+
end
|
123
130
|
|
124
|
-
|
125
|
-
|
126
|
-
|
131
|
+
Win32::Registry::HKEY_CURRENT_USER.open('Environment', Win32::Registry::KEY_WRITE) do |reg|
|
132
|
+
reg['PATH'] = path_env_var
|
133
|
+
end
|
127
134
|
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
135
|
+
if @versions_yml['ruby_versions'][versions_yml_key]['user_env_variables']
|
136
|
+
@versions_yml['ruby_versions'][versions_yml_key]['user_env_variables'].each do |key, val|
|
137
|
+
Win32::Registry::HKEY_CURRENT_USER.open('Environment', Win32::Registry::KEY_WRITE) do |reg|
|
138
|
+
reg[key.upcase] = val.nil? ? ";" : val
|
139
|
+
end
|
132
140
|
end
|
133
141
|
end
|
134
|
-
end
|
135
142
|
|
136
|
-
|
137
|
-
|
143
|
+
broadcast_WM_SETTINGCHANGE_signal
|
144
|
+
end
|
138
145
|
|
139
|
-
private
|
146
|
+
private
|
140
147
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
+
def user_path_env_not_set_properly_msg
|
149
|
+
puts "\nThere are no User environment variables named PATH defined, most likely your
|
150
|
+
\nruby version is defined on your System PATH environment variable. Muto can
|
151
|
+
\nonly modify User environment variables, not system environment variables.
|
152
|
+
\nSwitch your path to ruby over to a User environment variable and you
|
153
|
+
\nshould be good to go :)"
|
154
|
+
puts "\nSystem did not update! Still using:"
|
155
|
+
end
|
148
156
|
end
|
149
157
|
end
|
150
158
|
|
151
|
-
if __FILE__ == $0
|
152
|
-
s = Muto.new
|
159
|
+
#if __FILE__ == $0
|
160
|
+
s = Muto::Muto.new
|
153
161
|
s.run
|
154
|
-
end
|
162
|
+
#end
|
@@ -1,19 +1,27 @@
|
|
1
|
+
|
1
2
|
ruby_versions:
|
3
|
+
# Example Usage:
|
4
|
+
#
|
2
5
|
# ruby_186:
|
3
6
|
# shortcut: 186
|
4
|
-
# bin_folder: C:\
|
5
|
-
# ruby_192:
|
6
|
-
# shortcut: 192
|
7
|
-
# bin_folder: C:\ruby192\bin
|
8
|
-
# jruby_164_jre6:
|
9
|
-
# shortcut: jr_j6
|
10
|
-
# bin_folder: C:\jruby-1.6.4\bin
|
11
|
-
# exe_name: jruby.exe
|
7
|
+
# bin_folder: C:\ruby186\bin
|
12
8
|
# user_env_variables:
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
9
|
+
# home: C:\ruby186\home
|
10
|
+
# java_home: C:\Program Files\Java\jre5
|
11
|
+
# add_to_path: ~
|
12
|
+
#
|
13
|
+
# ruby_187:
|
14
|
+
# shortcut: 187
|
15
|
+
# bin_folder: C:\ruby187\bin
|
16
|
+
# user_env_variables:
|
17
|
+
# home: C:\ruby187\home
|
18
|
+
# java_home: C:\Program Files\Java\jre7
|
19
|
+
# add_to_path: ~
|
20
|
+
#
|
21
|
+
# rhodes_193:
|
22
|
+
# shortcut: rhodes
|
23
|
+
# bin_folder: C:\RhodesSuite2.2.1.13\ruby\bin
|
24
|
+
# user_env_variables:
|
25
|
+
# home: C:\RhodesSuite2.2.1.13\ruby\home
|
26
|
+
# java_home: C:\Program Files\Java\jre7
|
27
|
+
# add_to_path: C:\RhodesSuite2.2.1.13\redis-2.4.0;C:\RhodesSuite2.2.1.13\ruby\bin;C:\RhodesSuite2.2.1.13\devkit\bin;C:\RhodesSuite2.2.1.13\devkit\mingw\bin;C:\RhodesSuite2.2.1.13\make-3.81\bin;C:\Program Files (x86)\nodejs\;
|
data/lib/muto/version.rb
CHANGED
metadata
CHANGED
@@ -1,26 +1,33 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: muto
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Lucas Hills
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2013-01-23 00:00:00 Z
|
13
19
|
dependencies: []
|
14
|
-
|
15
|
-
|
16
|
-
email:
|
20
|
+
|
21
|
+
description: Set up different Windows Ruby environments and switch between them on the command line
|
22
|
+
email:
|
17
23
|
- lucas@lucashills.com
|
18
|
-
executables:
|
24
|
+
executables:
|
19
25
|
- extract_muto
|
20
26
|
extensions: []
|
21
|
-
|
27
|
+
|
28
|
+
extra_rdoc_files:
|
22
29
|
- README.textile
|
23
|
-
files:
|
30
|
+
files:
|
24
31
|
- Rakefile
|
25
32
|
- Gemfile
|
26
33
|
- README.textile
|
@@ -34,49 +41,49 @@ files:
|
|
34
41
|
- lib/muto.rb
|
35
42
|
homepage: https://github.com/2potatocakes/muto
|
36
43
|
licenses: []
|
37
|
-
post_install_message: ! '
|
38
44
|
|
45
|
+
post_install_message: |
|
46
|
+
|
39
47
|
========================================================================
|
40
|
-
|
41
48
|
Muto installed!
|
42
|
-
|
43
49
|
------------------------------------------------------------------------
|
44
|
-
|
45
50
|
This gem is basically just a wrapper to make deployment easier. Delete
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
scripts, cd into a directory where you''d like to keep them and from the
|
50
|
-
|
51
|
+
the gem after you've deployed the scripts if you want. To extract the
|
52
|
+
scripts, cd into a directory where you'd like to keep them and from the
|
51
53
|
command line run:
|
52
|
-
|
53
|
-
|
54
|
+
|
54
55
|
extract_muto
|
55
|
-
|
56
|
-
|
56
|
+
|
57
57
|
========================================================================
|
58
58
|
|
59
|
-
'
|
60
59
|
rdoc_options: []
|
61
|
-
|
60
|
+
|
61
|
+
require_paths:
|
62
62
|
- lib
|
63
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
hash: 3
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
version: "0"
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
73
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
version: "0"
|
75
81
|
requirements: []
|
82
|
+
|
76
83
|
rubyforge_project:
|
77
|
-
rubygems_version: 1.8.
|
84
|
+
rubygems_version: 1.8.15
|
78
85
|
signing_key:
|
79
86
|
specification_version: 3
|
80
|
-
summary: I got sick of manually having to change windows environment variables and
|
81
|
-
versions of ruby in the control panel
|
87
|
+
summary: I got sick of manually having to change windows environment variables and versions of ruby in the control panel
|
82
88
|
test_files: []
|
89
|
+
|