pik 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +13 -0
- data/Manifest.txt +35 -1
- data/README.rdoc +99 -39
- data/Rakefile +49 -8
- data/bin/pik_install +23 -0
- data/features/add_command.feature +28 -0
- data/features/checkup_command.feature +0 -0
- data/features/config_command.feature +12 -0
- data/features/default_command.feature +12 -0
- data/features/env.rb +52 -0
- data/features/gemsync_command.feature +0 -0
- data/features/help_command.feature +13 -0
- data/features/implode_command.feature +12 -0
- data/features/install_command.feature +13 -0
- data/features/list_command.feature +18 -0
- data/features/remove_command.feature +18 -0
- data/features/run_command.feature +22 -0
- data/features/step_definitions/pik_commands.rb +140 -0
- data/features/switch_command.feature +35 -0
- data/features/tag_command.feature +18 -0
- data/features/version.feature +9 -0
- data/lib/pik.rb +17 -3
- data/lib/pik/commands/add_command.rb +6 -6
- data/lib/pik/commands/batch_file_editor.rb +22 -8
- data/lib/pik/commands/checkup_command.rb +5 -2
- data/lib/pik/commands/command.rb +30 -26
- data/lib/pik/commands/config_command.rb +54 -2
- data/lib/pik/commands/default_command.rb +19 -5
- data/lib/pik/commands/help_command.rb +1 -1
- data/lib/pik/commands/implode_command.rb +12 -1
- data/lib/pik/commands/install_command.rb +182 -0
- data/lib/pik/commands/list_command.rb +3 -2
- data/lib/pik/commands/remove_command.rb +6 -6
- data/lib/pik/commands/run_command.rb +70 -10
- data/lib/pik/commands/switch_command.rb +10 -10
- data/lib/pik/commands/tag_command.rb +56 -0
- data/lib/pik/config_file.rb +26 -2
- data/lib/pik/contrib/progressbar.rb +237 -0
- data/lib/pik/contrib/unzip.rb +14 -0
- data/lib/pik/contrib/uri_ext.rb +296 -0
- data/lib/pik/contrib/zip/ioextras.rb +155 -0
- data/lib/pik/contrib/zip/stdrubyext.rb +111 -0
- data/lib/pik/contrib/zip/tempfile_bugfixed.rb +195 -0
- data/lib/pik/contrib/zip/zip.rb +1846 -0
- data/lib/pik/contrib/zip/zipfilesystem.rb +609 -0
- data/lib/pik/contrib/zip/ziprequire.rb +90 -0
- data/lib/pik/core_ext/pathname.rb +20 -7
- data/lib/pik/search_path.rb +21 -13
- data/lib/pik/which.rb +52 -0
- data/lib/pik/windows_env.rb +64 -25
- data/spec/add_command_spec.rb +0 -2
- data/spec/batch_file_spec.rb +3 -3
- data/spec/command_spec.rb +0 -7
- data/spec/gemsync_command_spec.rb +1 -1
- data/spec/help_command_spec.rb +1 -1
- data/spec/list_command_spec.rb +1 -1
- data/spec/pathname_spec.rb +30 -0
- data/spec/remove_command_spec.rb +6 -6
- data/spec/run_command_spec.rb +2 -30
- data/spec/search_path_spec.rb +9 -0
- data/spec/switch_command_spec.rb +14 -2
- data/spec/which_spec.rb +7 -0
- data/tools/pik.bat +2 -0
- data/tools/pik/pik +45 -0
- data/tools/pik/pik.exe +0 -0
- data/tools/pik/pik.exy +198 -0
- metadata +50 -21
- data/bin/pik +0 -33
data/spec/remove_command_spec.rb
CHANGED
@@ -4,16 +4,16 @@ describe Pik::Remove do
|
|
4
4
|
Pik::Remove.summary.should eql("Removes a ruby location from pik.")
|
5
5
|
end
|
6
6
|
|
7
|
-
it "should have a '
|
8
|
-
cmd = Pik::Remove.new(['--
|
9
|
-
cmd.
|
7
|
+
it "should have a 'force' option" do
|
8
|
+
cmd = Pik::Remove.new(['--force'])
|
9
|
+
cmd.force.should be_true
|
10
10
|
|
11
|
-
cmd = Pik::Remove.new(['-
|
12
|
-
cmd.
|
11
|
+
cmd = Pik::Remove.new(['-f'])
|
12
|
+
cmd.force.should be_true
|
13
13
|
end
|
14
14
|
|
15
15
|
it "should remove items from the config" do
|
16
|
-
cmd = Pik::Remove.new(['a', '-
|
16
|
+
cmd = Pik::Remove.new(['a', '-f'], {
|
17
17
|
'a' => {:path => 'C:/ruby/bin', :gem_home => 'C:/users/rupert/.gems'},
|
18
18
|
'b' => {:path => 'C:/Ruby19/bin'}
|
19
19
|
}
|
data/spec/run_command_spec.rb
CHANGED
@@ -1,36 +1,8 @@
|
|
1
1
|
|
2
2
|
describe Pik::Run do
|
3
|
+
|
3
4
|
it "should have a summary" do
|
4
|
-
Pik::Run.summary.should eql("Runs command with all
|
5
|
+
Pik::Run.summary.should eql("Runs command with all versions of ruby that pik is aware of.")
|
5
6
|
end
|
6
7
|
|
7
|
-
it "should use a batch file to switch paths" do
|
8
|
-
cmd = Pik::Command.new([],nil)
|
9
|
-
current_version = cmd.get_version
|
10
|
-
current_path = cmd.current_ruby_bin_path
|
11
|
-
ENV['PATH']="C:\\Program Files\\Putty;#{Pathname.new(current_path).to_windows}"
|
12
|
-
cmd = Pik::Run.new(['rake -V'], {
|
13
|
-
current_version => {:path => current_path},
|
14
|
-
'a' => {:path => 'C:/ruby/bin', :gem_home => 'C:/users/rupert/.gems'},
|
15
|
-
'b' => {:path => 'C:/Ruby19/bin'}
|
16
|
-
}
|
17
|
-
)
|
18
|
-
cmd.execute
|
19
|
-
batch = cmd.instance_variable_get('@batch').file_data
|
20
|
-
|
21
|
-
batch[1].should eql("SET PATH=#{ENV['PATH']}")
|
22
|
-
batch[2].should eql("SET GEM_PATH=")
|
23
|
-
batch[3].should eql("SET GEM_HOME=")
|
24
|
-
batch[5].should eql("CALL rake -V\n")
|
25
|
-
|
26
|
-
batch[7].should eql("SET PATH=C:\\Program Files\\Putty;C:\\ruby\\bin;C:\\users\\rupert\\.gems\\bin")
|
27
|
-
batch[8].should eql("SET GEM_PATH=C:\\users\\rupert\\.gems")
|
28
|
-
batch[9].should eql("SET GEM_HOME=C:\\users\\rupert\\.gems")
|
29
|
-
batch[11].should eql("CALL rake -V\n")
|
30
|
-
|
31
|
-
batch[13].should eql("SET PATH=C:\\Program Files\\Putty;C:\\Ruby19\\bin")
|
32
|
-
batch[14].should eql("SET GEM_PATH=")
|
33
|
-
batch[15].should eql("SET GEM_HOME=")
|
34
|
-
batch[17].should eql("CALL rake -V\n")
|
35
|
-
end
|
36
8
|
end
|
data/spec/search_path_spec.rb
CHANGED
@@ -116,6 +116,15 @@ describe SearchPath do
|
|
116
116
|
@path.join.should == new_path
|
117
117
|
end
|
118
118
|
|
119
|
+
describe "find" do
|
120
|
+
it "should return the first path where block is not false" do
|
121
|
+
path = SearchPath.new(ENV['PATH'])
|
122
|
+
dir = path.find{|i| !!Dir[ File.join(i.gsub('\\','/'), '{ruby.exe, ir.exe}') ].first }
|
123
|
+
dir.should_not be_nil
|
124
|
+
dir.should be_a(String)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
119
128
|
end
|
120
129
|
|
121
130
|
end
|
data/spec/switch_command_spec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
|
1
3
|
describe Pik::Switch do
|
2
4
|
|
3
5
|
it "should have a summary" do
|
@@ -23,7 +25,11 @@ describe Pik::Switch do
|
|
23
25
|
# end
|
24
26
|
|
25
27
|
it "should use a batch file to switch paths" do
|
26
|
-
|
28
|
+
conf = {
|
29
|
+
'spec ' => {:path => Pathname('C:/ruby/bin')},
|
30
|
+
'real ' => {:path => Pathname.new(::RbConfig::CONFIG['bindir'] )}
|
31
|
+
}
|
32
|
+
cmd = Pik::Switch.new(['spec'], conf)
|
27
33
|
cmd.execute
|
28
34
|
batch = cmd.instance_variable_get('@batch').file_data
|
29
35
|
batch.should include("SET GEM_PATH=")
|
@@ -33,7 +39,13 @@ describe Pik::Switch do
|
|
33
39
|
end
|
34
40
|
|
35
41
|
it "should switch gem_home and gem_path if the config has a :gem_home" do
|
36
|
-
conf = {
|
42
|
+
conf = {
|
43
|
+
'spec ' => {
|
44
|
+
:path => Pathname('C:/ruby/bin'),
|
45
|
+
:gem_home => Pathname('C:/Users/martin_blanke/.gems')
|
46
|
+
},
|
47
|
+
'real ' => {:path => Pathname.new(::RbConfig::CONFIG['bindir'] )}
|
48
|
+
}
|
37
49
|
cmd = Pik::Switch.new(['spec'], conf)
|
38
50
|
cmd.execute
|
39
51
|
batch = cmd.instance_variable_get('@batch').file_data
|
data/spec/which_spec.rb
ADDED
data/tools/pik.bat
ADDED
data/tools/pik/pik
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
lib = File.join(File.dirname(__FILE__), '..','..', 'lib')
|
4
|
+
require File.join(lib, 'pik')
|
5
|
+
|
6
|
+
include Pik
|
7
|
+
|
8
|
+
args = ARGV
|
9
|
+
|
10
|
+
Command.clean_gem_batch
|
11
|
+
|
12
|
+
begin
|
13
|
+
config = ConfigFile.new
|
14
|
+
|
15
|
+
args_minus_opts = args.reject{|p| p =~ /^-/}
|
16
|
+
|
17
|
+
command = if args_minus_opts.empty?
|
18
|
+
Help
|
19
|
+
elsif (c = Commands.find(args.first))
|
20
|
+
args.shift
|
21
|
+
c
|
22
|
+
elsif (choice = Command.choose_from(args_minus_opts, config))
|
23
|
+
args = [choice] + args
|
24
|
+
Switch
|
25
|
+
end
|
26
|
+
|
27
|
+
if config.empty? && command != Pik::Add
|
28
|
+
add = Pik::Add.new([], config)
|
29
|
+
add.execute
|
30
|
+
add.close
|
31
|
+
end
|
32
|
+
|
33
|
+
raise "The command '#{args.join(' ')}' is unknown." unless command
|
34
|
+
cmd = command.new(args, config)
|
35
|
+
cmd.execute
|
36
|
+
rescue QuitError
|
37
|
+
puts "\nQuitting..."
|
38
|
+
rescue => e
|
39
|
+
puts "\nThere was an error"
|
40
|
+
puts " Error: #{e.message}\n\n"
|
41
|
+
puts e.backtrace.map{|m| " in: #{m}" }
|
42
|
+
ensure
|
43
|
+
cmd.close if cmd
|
44
|
+
end
|
45
|
+
|
data/tools/pik/pik.exe
ADDED
Binary file
|
data/tools/pik/pik.exy
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
# Generated by mkexy
|
2
|
+
# on 2009-10-18 23:27
|
3
|
+
|
4
|
+
general:
|
5
|
+
startup: pik
|
6
|
+
core: cui
|
7
|
+
kcode: none
|
8
|
+
|
9
|
+
file:
|
10
|
+
pik:
|
11
|
+
stringio.so:
|
12
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/stringio.so
|
13
|
+
type: extension-library
|
14
|
+
yaml/error.rb:
|
15
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml/error.rb
|
16
|
+
syck.so:
|
17
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/syck.so
|
18
|
+
type: extension-library
|
19
|
+
yaml/ypath.rb:
|
20
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml/ypath.rb
|
21
|
+
yaml/basenode.rb:
|
22
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml/basenode.rb
|
23
|
+
yaml/syck.rb:
|
24
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml/syck.rb
|
25
|
+
yaml/tag.rb:
|
26
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml/tag.rb
|
27
|
+
yaml/stream.rb:
|
28
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml/stream.rb
|
29
|
+
yaml/constants.rb:
|
30
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml/constants.rb
|
31
|
+
rational.rb:
|
32
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/rational.rb
|
33
|
+
date/format.rb:
|
34
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/date/format.rb
|
35
|
+
date.rb:
|
36
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/date.rb
|
37
|
+
yaml/rubytypes.rb:
|
38
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml/rubytypes.rb
|
39
|
+
yaml/types.rb:
|
40
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml/types.rb
|
41
|
+
yaml.rb:
|
42
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/yaml.rb
|
43
|
+
pathname.rb:
|
44
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/pathname.rb
|
45
|
+
etc.so:
|
46
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/etc.so
|
47
|
+
type: extension-library
|
48
|
+
fileutils.rb:
|
49
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/fileutils.rb
|
50
|
+
rbconfig.rb:
|
51
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/rbconfig.rb
|
52
|
+
pik/core_ext/pathname.rb:
|
53
|
+
file: ./../../lib/pik/core_ext/pathname.rb
|
54
|
+
pik/commands.rb:
|
55
|
+
file: ./../../lib/pik/commands.rb
|
56
|
+
pik/commands/config_file_editor.rb:
|
57
|
+
file: ./../../lib/pik/commands/config_file_editor.rb
|
58
|
+
pik/commands/batch_file_editor.rb:
|
59
|
+
file: ./../../lib/pik/commands/batch_file_editor.rb
|
60
|
+
optparse.rb:
|
61
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/optparse.rb
|
62
|
+
pik/commands/command.rb:
|
63
|
+
file: ./../../lib/pik/commands/command.rb
|
64
|
+
English.rb:
|
65
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/English.rb
|
66
|
+
delegate.rb:
|
67
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/delegate.rb
|
68
|
+
cgi.rb:
|
69
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/cgi.rb
|
70
|
+
uri/common.rb:
|
71
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/uri/common.rb
|
72
|
+
uri/generic.rb:
|
73
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/uri/generic.rb
|
74
|
+
uri/ftp.rb:
|
75
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/uri/ftp.rb
|
76
|
+
uri/http.rb:
|
77
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/uri/http.rb
|
78
|
+
uri/https.rb:
|
79
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/uri/https.rb
|
80
|
+
uri/ldap.rb:
|
81
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/uri/ldap.rb
|
82
|
+
uri/mailto.rb:
|
83
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/uri/mailto.rb
|
84
|
+
uri.rb:
|
85
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/uri.rb
|
86
|
+
socket.so:
|
87
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/socket.so
|
88
|
+
type: extension-library
|
89
|
+
timeout.rb:
|
90
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/timeout.rb
|
91
|
+
net/protocol.rb:
|
92
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/net/protocol.rb
|
93
|
+
net/http.rb:
|
94
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/net/http.rb
|
95
|
+
openssl.so:
|
96
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/openssl.so
|
97
|
+
type: extension-library
|
98
|
+
openssl/bn.rb:
|
99
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/openssl/bn.rb
|
100
|
+
openssl/cipher.rb:
|
101
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/openssl/cipher.rb
|
102
|
+
openssl/digest.rb:
|
103
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/openssl/digest.rb
|
104
|
+
openssl/buffering.rb:
|
105
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/openssl/buffering.rb
|
106
|
+
fcntl.so:
|
107
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/fcntl.so
|
108
|
+
type: extension-library
|
109
|
+
openssl/ssl.rb:
|
110
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/openssl/ssl.rb
|
111
|
+
openssl/x509.rb:
|
112
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/openssl/x509.rb
|
113
|
+
openssl.rb:
|
114
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/openssl.rb
|
115
|
+
net/https.rb:
|
116
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/net/https.rb
|
117
|
+
Win32API.so:
|
118
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/Win32API.so
|
119
|
+
type: extension-library
|
120
|
+
tmpdir.rb:
|
121
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/tmpdir.rb
|
122
|
+
tempfile.rb:
|
123
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/tempfile.rb
|
124
|
+
pik/contrib/uri_ext.rb:
|
125
|
+
file: ./../../lib/pik/contrib/uri_ext.rb
|
126
|
+
singleton.rb:
|
127
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/singleton.rb
|
128
|
+
zlib.so:
|
129
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/zlib.so
|
130
|
+
type: extension-library
|
131
|
+
zip/stdrubyext.rb:
|
132
|
+
file: ./../../lib/pik/contrib/zip/stdrubyext.rb
|
133
|
+
zip/ioextras.rb:
|
134
|
+
file: ./../../lib/pik/contrib/zip/ioextras.rb
|
135
|
+
zip/zip.rb:
|
136
|
+
file: ./../../lib/pik/contrib/zip/zip.rb
|
137
|
+
pik/contrib/unzip.rb:
|
138
|
+
file: ./../../lib/pik/contrib/unzip.rb
|
139
|
+
pik/contrib/progressbar.rb:
|
140
|
+
file: ./../../lib/pik/contrib/progressbar.rb
|
141
|
+
pik/commands/install_command.rb:
|
142
|
+
file: ./../../lib/pik/commands/install_command.rb
|
143
|
+
pik/commands/list_command.rb:
|
144
|
+
file: ./../../lib/pik/commands/list_command.rb
|
145
|
+
pik/commands/add_command.rb:
|
146
|
+
file: ./../../lib/pik/commands/add_command.rb
|
147
|
+
pik/commands/help_command.rb:
|
148
|
+
file: ./../../lib/pik/commands/help_command.rb
|
149
|
+
pik/commands/switch_command.rb:
|
150
|
+
file: ./../../lib/pik/commands/switch_command.rb
|
151
|
+
pik/commands/run_command.rb:
|
152
|
+
file: ./../../lib/pik/commands/run_command.rb
|
153
|
+
pik/commands/remove_command.rb:
|
154
|
+
file: ./../../lib/pik/commands/remove_command.rb
|
155
|
+
pik/commands/checkup_command.rb:
|
156
|
+
file: ./../../lib/pik/commands/checkup_command.rb
|
157
|
+
pik/commands/config_command.rb:
|
158
|
+
file: ./../../lib/pik/commands/config_command.rb
|
159
|
+
pik/commands/gemsync_command.rb:
|
160
|
+
file: ./../../lib/pik/commands/gemsync_command.rb
|
161
|
+
pik/commands/default_command.rb:
|
162
|
+
file: ./../../lib/pik/commands/default_command.rb
|
163
|
+
pik/commands/implode_command.rb:
|
164
|
+
file: ./../../lib/pik/commands/implode_command.rb
|
165
|
+
pik/commands/tag_command.rb:
|
166
|
+
file: ./../../lib/pik/commands/tag_command.rb
|
167
|
+
pik/config_file.rb:
|
168
|
+
file: ./../../lib/pik/config_file.rb
|
169
|
+
win32/registry.rb:
|
170
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/win32/registry.rb
|
171
|
+
pik/windows_env.rb:
|
172
|
+
file: ./../../lib/pik/windows_env.rb
|
173
|
+
pik/which.rb:
|
174
|
+
file: ./../../lib/pik/which.rb
|
175
|
+
pik/batch_file.rb:
|
176
|
+
file: ./../../lib/pik/batch_file.rb
|
177
|
+
pik/search_path.rb:
|
178
|
+
file: ./../../lib/pik/search_path.rb
|
179
|
+
strscan.so:
|
180
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/i386-mingw32/strscan.so
|
181
|
+
type: extension-library
|
182
|
+
erb.rb:
|
183
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/erb.rb
|
184
|
+
abbrev.rb:
|
185
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/1.8/abbrev.rb
|
186
|
+
highline/compatibility.rb:
|
187
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/site_ruby/1.8/highline/compatibility.rb
|
188
|
+
highline/system_extensions.rb:
|
189
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/site_ruby/1.8/highline/system_extensions.rb
|
190
|
+
highline/question.rb:
|
191
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/site_ruby/1.8/highline/question.rb
|
192
|
+
highline/menu.rb:
|
193
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/site_ruby/1.8/highline/menu.rb
|
194
|
+
highline/color_scheme.rb:
|
195
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/site_ruby/1.8/highline/color_scheme.rb
|
196
|
+
highline.rb:
|
197
|
+
file: c:/ruby/186-p368-mingw32/lib/ruby/site_ruby/1.8/highline.rb
|
198
|
+
./../../lib/pik.rb:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gordon Thiesfeld
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-19 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -42,11 +42,15 @@ description: |-
|
|
42
42
|
You have to tell it where your different ruby versions live using
|
43
43
|
'pik add'. Then you can change to one by using 'pik switch'.
|
44
44
|
|
45
|
-
It also
|
45
|
+
It also supports running commands/code with all versions configured.
|
46
|
+
|
47
|
+
pik run # Runs commands on the command line
|
48
|
+
pik ruby # Runs using the ruby interpreter for each version (ruby.exe, jruby.bat, ir.exe)
|
49
|
+
pik gem # Runs using the gem command for each version (gem.bat, igem.bat)
|
46
50
|
email:
|
47
51
|
- gthiesfeld@gmail.com
|
48
52
|
executables:
|
49
|
-
-
|
53
|
+
- pik_install
|
50
54
|
extensions: []
|
51
55
|
|
52
56
|
extra_rdoc_files:
|
@@ -57,7 +61,23 @@ files:
|
|
57
61
|
- Manifest.txt
|
58
62
|
- README.rdoc
|
59
63
|
- Rakefile
|
60
|
-
- bin/
|
64
|
+
- bin/pik_install
|
65
|
+
- features/add_command.feature
|
66
|
+
- features/checkup_command.feature
|
67
|
+
- features/config_command.feature
|
68
|
+
- features/default_command.feature
|
69
|
+
- features/env.rb
|
70
|
+
- features/gemsync_command.feature
|
71
|
+
- features/help_command.feature
|
72
|
+
- features/implode_command.feature
|
73
|
+
- features/install_command.feature
|
74
|
+
- features/list_command.feature
|
75
|
+
- features/remove_command.feature
|
76
|
+
- features/run_command.feature
|
77
|
+
- features/step_definitions/pik_commands.rb
|
78
|
+
- features/switch_command.feature
|
79
|
+
- features/tag_command.feature
|
80
|
+
- features/version.feature
|
61
81
|
- lib/pik.rb
|
62
82
|
- lib/pik/batch_file.rb
|
63
83
|
- lib/pik/checkup.rb
|
@@ -72,15 +92,27 @@ files:
|
|
72
92
|
- lib/pik/commands/gemsync_command.rb
|
73
93
|
- lib/pik/commands/help_command.rb
|
74
94
|
- lib/pik/commands/implode_command.rb
|
95
|
+
- lib/pik/commands/install_command.rb
|
75
96
|
- lib/pik/commands/list_command.rb
|
76
97
|
- lib/pik/commands/remove_command.rb
|
77
98
|
- lib/pik/commands/run_command.rb
|
78
99
|
- lib/pik/commands/switch_command.rb
|
100
|
+
- lib/pik/commands/tag_command.rb
|
79
101
|
- lib/pik/config_file.rb
|
102
|
+
- lib/pik/contrib/progressbar.rb
|
103
|
+
- lib/pik/contrib/unzip.rb
|
104
|
+
- lib/pik/contrib/uri_ext.rb
|
105
|
+
- lib/pik/contrib/zip/ioextras.rb
|
106
|
+
- lib/pik/contrib/zip/stdrubyext.rb
|
107
|
+
- lib/pik/contrib/zip/tempfile_bugfixed.rb
|
108
|
+
- lib/pik/contrib/zip/zip.rb
|
109
|
+
- lib/pik/contrib/zip/zipfilesystem.rb
|
110
|
+
- lib/pik/contrib/zip/ziprequire.rb
|
80
111
|
- lib/pik/core_ext/pathname.rb
|
81
112
|
- lib/pik/options.rb
|
82
113
|
- lib/pik/runner.rb
|
83
114
|
- lib/pik/search_path.rb
|
115
|
+
- lib/pik/which.rb
|
84
116
|
- lib/pik/windows_env.rb
|
85
117
|
- spec/add_command_spec.rb
|
86
118
|
- spec/batch_file_spec.rb
|
@@ -90,31 +122,28 @@ files:
|
|
90
122
|
- spec/gemsync_command_spec.rb
|
91
123
|
- spec/help_command_spec.rb
|
92
124
|
- spec/list_command_spec.rb
|
125
|
+
- spec/pathname_spec.rb
|
93
126
|
- spec/remove_command_spec.rb
|
94
127
|
- spec/run_command_spec.rb
|
95
128
|
- spec/search_path_spec.rb
|
96
129
|
- spec/spec.opts
|
97
130
|
- spec/switch_command_spec.rb
|
131
|
+
- spec/which_spec.rb
|
132
|
+
- tools/pik.bat
|
133
|
+
- tools/pik/pik
|
134
|
+
- tools/pik/pik.exe
|
135
|
+
- tools/pik/pik.exy
|
98
136
|
has_rdoc: true
|
99
137
|
homepage: http://github.com/vertiginous/pik
|
100
138
|
licenses: []
|
101
139
|
|
102
|
-
post_install_message:
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
see 'pik help add' for more info
|
111
|
-
|
112
|
-
2. Run 'pik run "gem install pik"' to install pik to all Ruby versions.
|
113
|
-
|
114
|
-
3. Run 'pik help' for help.
|
115
|
-
|
116
|
-
----------------------------------------------------------------------------
|
117
|
-
|
140
|
+
post_install_message: "\n\
|
141
|
+
----------------------------------------------------------------------------\n\n\
|
142
|
+
1. If you've used a version previous to this one, you'll need to uninstall them.\n Don't worry, this will leave your pik config intact.\n \n pik run \"gem uninstall pik\"\n \n\
|
143
|
+
2. Install the pik gem\n\n gem install pik\n \n\
|
144
|
+
3. You need to install pik to a location that's in your path, but someplace other than your ruby\bin dir\n\n pik_install C:\\some\\other\\path\n \n\
|
145
|
+
4. Add all the versions of ruby that you want to use with pik\n\n\
|
146
|
+
---------------------------------------------------------------------------- \n\n"
|
118
147
|
rdoc_options:
|
119
148
|
- --main
|
120
149
|
- README.rdoc
|