isolate 3.1.0 → 3.1.1
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.tar.gz.sig +2 -2
- data/CHANGELOG.rdoc +7 -0
- data/README.rdoc +3 -0
- data/Rakefile +2 -1
- data/lib/isolate.rb +1 -1
- data/lib/isolate/sandbox.rb +3 -2
- data/test/test_isolate_sandbox.rb +9 -0
- metadata +16 -15
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
�
|
|
2
|
-
|
|
1
|
+
�0����qf<7�ފ�(:IG��N.Ȥb��u��;���D��t����jYh�ߺ�+Ak�xa��\_���\�Ϩ
|
|
2
|
+
V\�S�{ �2�0��9��(~���7O�f�����&�~+M�Y����[���~�n��
|
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
|
@@ -62,6 +62,9 @@ Construct your <tt>Isolate</tt> file as above. Be sure to remove any
|
|
|
62
62
|
references to <tt>Bundler.setup</tt> and <tt>Bundler.require</tt> from
|
|
63
63
|
<tt>config/boot.rb</tt> and <tt>config/application.rb</tt>.
|
|
64
64
|
|
|
65
|
+
Don't forget to require files from your isolated gems in the appropriate
|
|
66
|
+
places. Unlike bundler isolate does not automatically require any files.
|
|
67
|
+
|
|
65
68
|
=== Sinatra, Rack, and Anything Else
|
|
66
69
|
|
|
67
70
|
There's nothing special about Rails, it's just an easy first
|
data/Rakefile
CHANGED
|
@@ -19,8 +19,9 @@ Hoe.plugins.delete :rubyforge
|
|
|
19
19
|
Hoe.plugin :isolate, :doofus, :git, :minitest
|
|
20
20
|
|
|
21
21
|
Hoe.spec "isolate" do
|
|
22
|
-
developer "John Barnette", "code@jbarnette.com"
|
|
23
22
|
developer "Ryan Davis", "ryand-ruby@zenspider.com"
|
|
23
|
+
developer "Eric Hodel", "drbrain@segment7.net"
|
|
24
|
+
developer "John Barnette", "code@jbarnette.com"
|
|
24
25
|
|
|
25
26
|
require_rubygems_version ">= 1.8.2"
|
|
26
27
|
|
data/lib/isolate.rb
CHANGED
data/lib/isolate/sandbox.rb
CHANGED
|
@@ -209,7 +209,7 @@ module Isolate
|
|
|
209
209
|
fire :installing
|
|
210
210
|
|
|
211
211
|
installable = entries.select do |e|
|
|
212
|
-
|
|
212
|
+
!e.specification && e.matches?(environment)
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
unless installable.empty?
|
|
@@ -324,7 +324,8 @@ module Isolate
|
|
|
324
324
|
specs.uniq
|
|
325
325
|
end
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
dep_module = Gem.const_defined?(:Deprecate) ? Gem::Deprecate : Deprecate
|
|
328
|
+
extend dep_module
|
|
328
329
|
deprecate :index, :none, 2011, 11
|
|
329
330
|
end
|
|
330
331
|
end
|
|
@@ -53,6 +53,15 @@ class TestIsolateSandbox < Isolate::Test
|
|
|
53
53
|
Gem::DependencyInstaller.value.shift
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
+
def test_activate_install_with_different_environment
|
|
57
|
+
s = sandbox :path => WITH_HOE, :install => true
|
|
58
|
+
s.environment(:borg) { gem 'foo' }
|
|
59
|
+
|
|
60
|
+
# This won't crash because it should not install or activate the env
|
|
61
|
+
s.activate
|
|
62
|
+
refute_equal 'foo', Gem::DependencyInstaller.value.shift[0]
|
|
63
|
+
end
|
|
64
|
+
|
|
56
65
|
# TODO: cleanup with 2 versions of same gem, 1 activated
|
|
57
66
|
# TODO: install with 1 older version, 1 new gem to be installed
|
|
58
67
|
|
metadata
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: isolate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 1
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 3.1.
|
|
9
|
+
- 1
|
|
10
|
+
version: 3.1.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
|
-
- John Barnette
|
|
14
13
|
- Ryan Davis
|
|
14
|
+
- Eric Hodel
|
|
15
|
+
- John Barnette
|
|
15
16
|
autorequire:
|
|
16
17
|
bindir: bin
|
|
17
18
|
cert_chain:
|
|
@@ -37,7 +38,7 @@ cert_chain:
|
|
|
37
38
|
FBHgymkyj/AOSqKRIpXPhjC6
|
|
38
39
|
-----END CERTIFICATE-----
|
|
39
40
|
|
|
40
|
-
date: 2011-
|
|
41
|
+
date: 2011-07-21 00:00:00 Z
|
|
41
42
|
dependencies:
|
|
42
43
|
- !ruby/object:Gem::Dependency
|
|
43
44
|
name: hoe-seattlerb
|
|
@@ -122,12 +123,12 @@ dependencies:
|
|
|
122
123
|
requirements:
|
|
123
124
|
- - ">="
|
|
124
125
|
- !ruby/object:Gem::Version
|
|
125
|
-
hash:
|
|
126
|
+
hash: 1
|
|
126
127
|
segments:
|
|
127
128
|
- 2
|
|
129
|
+
- 3
|
|
128
130
|
- 1
|
|
129
|
-
|
|
130
|
-
version: 2.1.0
|
|
131
|
+
version: 2.3.1
|
|
131
132
|
type: :development
|
|
132
133
|
version_requirements: *id006
|
|
133
134
|
- !ruby/object:Gem::Dependency
|
|
@@ -136,22 +137,22 @@ dependencies:
|
|
|
136
137
|
requirement: &id007 !ruby/object:Gem::Requirement
|
|
137
138
|
none: false
|
|
138
139
|
requirements:
|
|
139
|
-
- -
|
|
140
|
+
- - ~>
|
|
140
141
|
- !ruby/object:Gem::Version
|
|
141
|
-
hash:
|
|
142
|
+
hash: 23
|
|
142
143
|
segments:
|
|
143
144
|
- 2
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
version: 2.9.4
|
|
145
|
+
- 10
|
|
146
|
+
version: "2.10"
|
|
147
147
|
type: :development
|
|
148
148
|
version_requirements: *id007
|
|
149
149
|
description: |-
|
|
150
150
|
Isolate is a very simple RubyGems sandbox. It provides a way to
|
|
151
151
|
express and automatically install your project's Gem dependencies.
|
|
152
152
|
email:
|
|
153
|
-
- code@jbarnette.com
|
|
154
153
|
- ryand-ruby@zenspider.com
|
|
154
|
+
- drbrain@segment7.net
|
|
155
|
+
- code@jbarnette.com
|
|
155
156
|
executables: []
|
|
156
157
|
|
|
157
158
|
extensions: []
|
|
@@ -219,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
219
220
|
requirements: []
|
|
220
221
|
|
|
221
222
|
rubyforge_project: isolate
|
|
222
|
-
rubygems_version: 1.8.
|
|
223
|
+
rubygems_version: 1.8.5
|
|
223
224
|
signing_key:
|
|
224
225
|
specification_version: 3
|
|
225
226
|
summary: Isolate is a very simple RubyGems sandbox
|
metadata.gz.sig
CHANGED
|
Binary file
|