pik 0.2.6 → 0.2.7
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.
- data/History.txt +20 -0
- data/Manifest.txt +4 -1
- data/README.rdoc +40 -17
- data/Rakefile +68 -59
- data/bin/pik_install +42 -14
- data/features/add_command.feature +8 -8
- data/features/config_command.feature +1 -2
- data/features/default_command.feature +3 -3
- data/features/gemsync_command.feature +1 -1
- data/features/info_command.feature +62 -0
- data/features/install_command.feature +22 -17
- data/features/list_command.feature +5 -5
- data/features/pik_install.feature +34 -2
- data/features/remove_command.feature +2 -2
- data/features/run_command.feature +6 -5
- data/features/step_definitions/pik_commands.rb +21 -7
- data/features/support/env.rb +75 -0
- data/features/support/proxy.ru +81 -0
- data/features/switch_command.feature +14 -13
- data/features/tag_command.feature +5 -5
- data/features/uninstall_command.feature +5 -6
- data/features/version.feature +2 -1
- data/lib/pik.rb +13 -6
- data/lib/pik/commands/add_command.rb +13 -1
- data/lib/pik/commands/command.rb +6 -6
- data/lib/pik/commands/config_command.rb +4 -2
- data/lib/pik/commands/devkit_command.rb +69 -0
- data/lib/pik/commands/gemsync_command.rb +4 -2
- data/lib/pik/commands/help_command.rb +1 -1
- data/lib/pik/commands/info_command.rb +35 -14
- data/lib/pik/commands/install_command.rb +6 -11
- data/lib/pik/commands/list_command.rb +26 -7
- data/lib/pik/commands/uninstall_command.rb +4 -4
- data/lib/pik/contrib/uri_ext.rb +1 -1
- data/lib/pik/core_ext/pathname.rb +2 -2
- data/lib/pik/implementations.rb +51 -7
- data/lib/pik/version_parser.rb +8 -5
- data/spec/html/ruby.htm +61 -15
- data/spec/implementations_spec.rb +4 -4
- data/spec/pathname_spec.rb +12 -4
- data/spec/version_parser_spec.rb +9 -2
- data/tools/pik.bat +1 -1
- data/tools/pik/pik_runner +1 -1
- data/tools/pik/pik_runner.exe +0 -0
- data/tools/pik/pik_runner.exy +121 -114
- metadata +58 -15
- data/features/env.rb +0 -45
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 25
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Gordon Thiesfeld
|
@@ -9,29 +15,57 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2010-06-15 00:00:00 -05:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: highline
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 31
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 0
|
33
|
+
- 0
|
23
34
|
version: 0.0.0
|
24
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
25
37
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
38
|
+
name: rubyforge
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 7
|
46
|
+
segments:
|
47
|
+
- 2
|
48
|
+
- 0
|
49
|
+
- 4
|
50
|
+
version: 2.0.4
|
27
51
|
type: :development
|
28
|
-
|
29
|
-
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: hoe
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
30
58
|
requirements:
|
31
59
|
- - ">="
|
32
60
|
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
61
|
+
hash: 21
|
62
|
+
segments:
|
63
|
+
- 2
|
64
|
+
- 6
|
65
|
+
- 1
|
66
|
+
version: 2.6.1
|
67
|
+
type: :development
|
68
|
+
version_requirements: *id003
|
35
69
|
description: |-
|
36
70
|
Pik is a tool to manage multiple versions of ruby on Windows.
|
37
71
|
|
@@ -78,16 +112,18 @@ files:
|
|
78
112
|
- features/add_command.feature
|
79
113
|
- features/config_command.feature
|
80
114
|
- features/default_command.feature
|
81
|
-
- features/env.rb
|
82
115
|
- features/gemsync_command.feature
|
83
116
|
- features/help_command.feature
|
84
117
|
- features/implode_command.feature
|
118
|
+
- features/info_command.feature
|
85
119
|
- features/install_command.feature
|
86
120
|
- features/list_command.feature
|
87
121
|
- features/pik_install.feature
|
88
122
|
- features/remove_command.feature
|
89
123
|
- features/run_command.feature
|
90
124
|
- features/step_definitions/pik_commands.rb
|
125
|
+
- features/support/env.rb
|
126
|
+
- features/support/proxy.ru
|
91
127
|
- features/switch_command.feature
|
92
128
|
- features/tag_command.feature
|
93
129
|
- features/uninstall_command.feature
|
@@ -101,6 +137,7 @@ files:
|
|
101
137
|
- lib/pik/commands/config_command.rb
|
102
138
|
- lib/pik/commands/config_file_editor.rb
|
103
139
|
- lib/pik/commands/default_command.rb
|
140
|
+
- lib/pik/commands/devkit_command.rb
|
104
141
|
- lib/pik/commands/gemsync_command.rb
|
105
142
|
- lib/pik/commands/help_command.rb
|
106
143
|
- lib/pik/commands/implode_command.rb
|
@@ -197,21 +234,27 @@ rdoc_options:
|
|
197
234
|
require_paths:
|
198
235
|
- lib
|
199
236
|
required_ruby_version: !ruby/object:Gem::Requirement
|
237
|
+
none: false
|
200
238
|
requirements:
|
201
239
|
- - ">="
|
202
240
|
- !ruby/object:Gem::Version
|
241
|
+
hash: 3
|
242
|
+
segments:
|
243
|
+
- 0
|
203
244
|
version: "0"
|
204
|
-
version:
|
205
245
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
|
+
none: false
|
206
247
|
requirements:
|
207
248
|
- - ">="
|
208
249
|
- !ruby/object:Gem::Version
|
250
|
+
hash: 3
|
251
|
+
segments:
|
252
|
+
- 0
|
209
253
|
version: "0"
|
210
|
-
version:
|
211
254
|
requirements: []
|
212
255
|
|
213
256
|
rubyforge_project: pik
|
214
|
-
rubygems_version: 1.3.
|
257
|
+
rubygems_version: 1.3.7
|
215
258
|
signing_key:
|
216
259
|
specification_version: 3
|
217
260
|
summary: Pik is a tool to manage multiple versions of ruby on Windows
|
data/features/env.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
config=<<CONFIG
|
2
|
-
---
|
3
|
-
"091: IronRuby 0.9.1.0 on .NET 2.0.0.0":
|
4
|
-
:gem_home: !ruby/object:Pathname
|
5
|
-
path: c:/temp/more spaces in path/ruby/IronRuby-091/lib/ironruby/gems/1.8
|
6
|
-
:path: !ruby/object:Pathname
|
7
|
-
path: c:/temp/more spaces in path/ruby/ironruby-091/bin
|
8
|
-
"140: jruby 1.4.0RC2 (ruby 1.8.7 patchlevel 174) (2009-10-21 7e77f32) (Java HotSpot(TM) Client VM 1.6.0_14) [x86-java]":
|
9
|
-
:path: !ruby/object:Pathname
|
10
|
-
path: C:/temp/more spaces in path/ruby/jruby-140RC2/bin
|
11
|
-
"186: ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]":
|
12
|
-
:path: !ruby/object:Pathname
|
13
|
-
path: c:/temp/more spaces in path/ruby/ruby-186-p383/bin
|
14
|
-
"191: ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]":
|
15
|
-
:path: !ruby/object:Pathname
|
16
|
-
path: c:/temp/more spaces in path/ruby/ruby-191-p243/bin
|
17
|
-
---
|
18
|
-
:download_dir: !ruby/object:Pathname
|
19
|
-
path: C:\\temp\\path with spaces\\downloads
|
20
|
-
:install_dir: !ruby/object:Pathname
|
21
|
-
path: C:\\temp\\path with spaces
|
22
|
-
CONFIG
|
23
|
-
|
24
|
-
require 'yaml'
|
25
|
-
require 'pathname'
|
26
|
-
require 'fileutils'
|
27
|
-
require 'lib/pik'
|
28
|
-
require 'rbconfig'
|
29
|
-
|
30
|
-
REAL_PATH = SearchPath.new(ENV['PATH']).replace(RbConfig::CONFIG['bindir'], 'c:/temp/more spaces in path/ruby/ruby-186-p383/bin').join
|
31
|
-
|
32
|
-
ENV['HOME'] = "C:\\temp\\path with spaces"
|
33
|
-
ENV['JAVA_HOME'] = "C:\\Program Files\\Java\\jre6"
|
34
|
-
|
35
|
-
PIK_LOG = 'log\\output.log'
|
36
|
-
TEST_PIK_HOME = Pathname.new( ENV['HOME'] || ENV['USERPROFILE'] ) + '.pik'
|
37
|
-
FAKE_PIK_HOME = 'c:/temp/path with spaces/.pik'
|
38
|
-
|
39
|
-
Before do
|
40
|
-
ENV['PATH'] = REAL_PATH
|
41
|
-
FileUtils.rm_rf FAKE_PIK_HOME
|
42
|
-
FileUtils.mkdir_p FAKE_PIK_HOME
|
43
|
-
File.open(File.join(FAKE_PIK_HOME, 'config.yml'), 'w'){|f| f.puts config }
|
44
|
-
end
|
45
|
-
|