rubygems-sandbox 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7fc6deb9e8a127adafc7694104926ab3a449b065
4
+ data.tar.gz: 1a27c7d083d01747ac4e7ba450d4258f6e0fc65b
5
+ SHA512:
6
+ metadata.gz: d232447e09d2f4b3f1a5983bed08c80a3596d04eda69e26d43281e291b622bbf322989fe9e60788f266f2f3dbef0a31d553a84109886589e99002abc18b15a5c
7
+ data.tar.gz: 2eb568a5b95ad3d6e9390c8cfac8e7de8fea117567342375b9db77a973ed3b685cd8cf6beffd89cc6026d7efd14950eb621fc8cb4639ac433a0b23bf878fc53f
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ P��`�m��[R����f���5=����'Iꦇ�C��؅Я�W��� @�OMP�V��^���j�_R3
2
+ �v>���N�QV1R=����PJ4+����LL�Rվ�6Zí�D�h=A-�շ�/�o�X�~a4v�˚��f݊=��e��vAg�I$GM�z�e��<��#ȶ ����_�"L��v�� ��D�h�y�0�q�2���y�����9[/O���l;%���ٗ�dQ�݀
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,15 @@
1
+ === 1.2.0 / 2014-02-10
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Extended required rubygems version to 2.x.
6
+ * FINALLY implemented gem sandbox uninstall.
7
+
8
+ * 2 bug fixes:
9
+
10
+ * 2.0: Removed warnings
11
+ * Fixed code/home urls in readme/gem.
12
+
1
13
  === 1.1.1 / 2011-12-15
2
14
 
3
15
  * 1 bug fix:
data/README.txt CHANGED
@@ -1,6 +1,7 @@
1
1
  = rubygems-sandbox
2
2
 
3
- home :: https://github.com/seattlerb/rubygems-sandbox
3
+ home :: http://www.zenspider.com/projects/rubygems-sandbox.html
4
+ code :: https://github.com/seattlerb/rubygems-sandbox
4
5
  rdoc :: http://seattlerb.rubyforge.org/rubygems-sandbox
5
6
 
6
7
  == DESCRIPTION:
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ Hoe.spec "rubygems-sandbox" do
11
11
 
12
12
  self.rubyforge_name = "seattlerb"
13
13
 
14
- require_rubygems_version "~> 1.4"
14
+ require_rubygems_version [">= 1.4", "< 3"]
15
15
  end
16
16
 
17
17
  # vim: syntax=ruby
@@ -12,11 +12,11 @@ class Gem::DependencyInstaller
12
12
  end
13
13
 
14
14
  class Gem::Commands::UpdateCommand < Gem::Command # HACK
15
- attr_accessor :updated, :installer
15
+ attr_accessor :updated
16
16
  end
17
17
 
18
18
  class Gem::Commands::SandboxCommand < Gem::Command
19
- VERSION = '1.1.1'
19
+ VERSION = "1.2.0"
20
20
 
21
21
  def initialize
22
22
  defaults = Gem::DependencyInstaller::DEFAULT_OPTIONS.merge(
@@ -90,7 +90,7 @@ and you're good to go.
90
90
  when "plugin" then
91
91
  plugin
92
92
  when "uninstall" then
93
- abort "not implemented yet"
93
+ uninstall
94
94
  when "help", "usage" then
95
95
  show_help
96
96
  abort
@@ -126,6 +126,15 @@ and you're good to go.
126
126
  list_scripts
127
127
  end
128
128
 
129
+ def uninstall
130
+ get_all_gem_names.each do |gem_name|
131
+ uninstall_gem gem_name
132
+ end
133
+
134
+ say ""
135
+ say "You will need to manually clean up any script wrappers you copied."
136
+ end
137
+
129
138
  def outdated
130
139
  get_all_gem_names.each do |gem_name|
131
140
  dir = sandbox_dir(gem_name)
@@ -263,6 +272,15 @@ and you're good to go.
263
272
  say "Successfully installed #{gem_name}"
264
273
  end
265
274
 
275
+ def uninstall_gem gem_name, dir = sandbox_dir(gem_name)
276
+ # Forces reset of known installed gems so subsequent repeats work
277
+ Gem.use_paths nil, nil
278
+
279
+ require "fileutils"
280
+
281
+ FileUtils.rm_rf dir, :verbose => true
282
+ end
283
+
266
284
  def rewrite_executables dir, spec
267
285
  spec.executables.each do |filename|
268
286
  path = File.join dir, "bin", filename
metadata CHANGED
@@ -1,24 +1,18 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rubygems-sandbox
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 1
10
- version: 1.1.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Ryan Davis
14
8
  autorequire:
15
9
  bindir: bin
16
- cert_chain:
10
+ cert_chain:
17
11
  - |
18
12
  -----BEGIN CERTIFICATE-----
19
- MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
20
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
21
- GRYDY29tMB4XDTA5MDMwNjE4NTMxNVoXDTEwMDMwNjE4NTMxNVowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTEzMDkxNjIzMDQxMloXDTE0MDkxNjIzMDQxMlowRTETMBEGA1UE
22
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
23
17
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
24
18
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -28,61 +22,57 @@ cert_chain:
28
22
  qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
29
23
  gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
30
24
  HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
31
- AQAY59gYvDxqSqgC92nAP9P8dnGgfZgLxP237xS6XxFGJSghdz/nI6pusfCWKM8m
32
- vzjjH2wUMSSf3tNudQ3rCGLf2epkcU13/rguI88wO6MrE0wi4ZqLQX+eZQFskJb/
33
- w6x9W1ur8eR01s397LSMexySDBrJOh34cm2AlfKr/jokKCTwcM0OvVZnAutaovC0
34
- l1SVZ0ecg88bsWHA0Yhh7NFxK1utWoIhtB6AFC/+trM0FQEB/jZkIS8SaNzn96Rl
35
- n0sZEf77FLf5peR8TP/PtmIg7Cyqz23sLM4mCOoTGIy5OcZ8TdyiyINUHtb5ej/T
36
- FBHgymkyj/AOSqKRIpXPhjC6
25
+ AQCFZ7JTzoy1gcG4d8A6dmOJy7ygtO5MFpRIz8HuKCF5566nOvpy7aHhDDzFmQuu
26
+ FX3zDU6ghx5cQIueDhf2SGOncyBmmJRRYawm3wI0o1MeN6LZJ/3cRaOTjSFy6+S6
27
+ zqDmHBp8fVA2TGJtO0BLNkbGVrBJjh0UPmSoGzWlRhEVnYC33TpDAbNA+u39UrQI
28
+ ynwhNN7YbnmSR7+JU2cUjBFv2iPBO+TGuWC+9L2zn3NHjuc6tnmSYipA9y8Hv+As
29
+ Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
30
+ xx3n58i0lQkBE1EpKE0lFu/y
37
31
  -----END CERTIFICATE-----
38
-
39
- date: 2011-12-15 00:00:00 Z
40
- dependencies:
41
- - !ruby/object:Gem::Dependency
32
+ date: 2014-02-11 00:00:00.000000000 Z
33
+ dependencies:
34
+ - !ruby/object:Gem::Dependency
42
35
  name: minitest
43
- prerelease: false
44
- requirement: &id001 !ruby/object:Gem::Requirement
45
- none: false
46
- requirements:
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
47
38
  - - ~>
48
- - !ruby/object:Gem::Version
49
- hash: 19
50
- segments:
51
- - 2
52
- - 8
53
- version: "2.8"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.2'
54
41
  type: :development
55
- version_requirements: *id001
56
- - !ruby/object:Gem::Dependency
57
- name: hoe
58
42
  prerelease: false
59
- requirement: &id002 !ruby/object:Gem::Requirement
60
- none: false
61
- requirements:
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
62
45
  - - ~>
63
- - !ruby/object:Gem::Version
64
- hash: 27
65
- segments:
66
- - 2
67
- - 12
68
- version: "2.12"
69
- type: :development
70
- version_requirements: *id002
71
- - !ruby/object:Gem::Dependency
46
+ - !ruby/object:Gem::Version
47
+ version: '5.2'
48
+ - !ruby/object:Gem::Dependency
72
49
  name: rdoc
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '4.0'
55
+ type: :development
73
56
  prerelease: false
74
- requirement: &id003 !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
77
59
  - - ~>
78
- - !ruby/object:Gem::Version
79
- hash: 19
80
- segments:
81
- - 3
82
- - 10
83
- version: "3.10"
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: hoe
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '3.9'
84
69
  type: :development
85
- version_requirements: *id003
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '3.9'
86
76
  description: |-
87
77
  The sandbox plugin for rubygems helps you manage your command-line
88
78
  tools and their dependencies. Sandboxed gems are installed in their
@@ -90,33 +80,31 @@ description: |-
90
80
  means that you don't have to have a rat's nest of gems in your global
91
81
  repository in order to run popular command-tools like rdoc, flog,
92
82
  flay, rcov, etc.
93
-
83
+
94
84
  gem sandbox has the following sub-commands:
95
-
85
+
96
86
  * install gem_name ... - install 1 or more gems
97
87
  * plugin gem_name plugin_name ... - install a gem and plugins for it
98
88
  * remove gem_name ... - uninstall 1 or more gems
99
89
  * help - show this output
100
-
90
+
101
91
  Once you install gem sandbox will output something like:
102
-
92
+
103
93
  Copy the following scripts to any directory in your path to use them:
104
-
94
+
105
95
  cp /Users/USER/.gem/sandboxes/GEM/bin/TOOL _in_your_$PATH_
106
-
96
+
107
97
  Copy the scripts to a directory in your path (eg ~/bin or /usr/bin)
108
98
  and you're good to go.
109
- email:
99
+ email:
110
100
  - ryand-ruby@zenspider.com
111
101
  executables: []
112
-
113
102
  extensions: []
114
-
115
- extra_rdoc_files:
103
+ extra_rdoc_files:
116
104
  - History.txt
117
105
  - Manifest.txt
118
106
  - README.txt
119
- files:
107
+ files:
120
108
  - .autotest
121
109
  - History.txt
122
110
  - Manifest.txt
@@ -124,40 +112,34 @@ files:
124
112
  - Rakefile
125
113
  - lib/rubygems/commands/sandbox_command.rb
126
114
  - lib/rubygems_plugin.rb
127
- homepage: https://github.com/seattlerb/rubygems-sandbox
128
- licenses: []
129
-
115
+ homepage: http://www.zenspider.com/projects/rubygems-sandbox.html
116
+ licenses:
117
+ - MIT
118
+ metadata: {}
130
119
  post_install_message:
131
- rdoc_options:
120
+ rdoc_options:
132
121
  - --main
133
122
  - README.txt
134
- require_paths:
123
+ require_paths:
135
124
  - lib
136
- required_ruby_version: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ">="
140
- - !ruby/object:Gem::Version
141
- hash: 3
142
- segments:
143
- - 0
144
- version: "0"
145
- required_rubygems_version: !ruby/object:Gem::Requirement
146
- none: false
147
- requirements:
148
- - - ~>
149
- - !ruby/object:Gem::Version
150
- hash: 7
151
- segments:
152
- - 1
153
- - 4
154
- version: "1.4"
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '1.4'
135
+ - - <
136
+ - !ruby/object:Gem::Version
137
+ version: '3'
155
138
  requirements: []
156
-
157
139
  rubyforge_project: seattlerb
158
- rubygems_version: 1.8.12
140
+ rubygems_version: 2.2.1
159
141
  signing_key:
160
- specification_version: 3
161
- summary: The sandbox plugin for rubygems helps you manage your command-line tools and their dependencies
142
+ specification_version: 4
143
+ summary: The sandbox plugin for rubygems helps you manage your command-line tools
144
+ and their dependencies
162
145
  test_files: []
163
-
metadata.gz.sig CHANGED
Binary file