isolate 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- C
2
- ��Xx80i�ꃨ�Mg6�;�(o[\����CE4������o�g���$:��u8\�e(Ƌ�[> �?�Q'oZff�-�rX��2�gh(ɬZ`K�����W�ͫK<�g)�f��#˥7e���D ��A L2������s<)U���U��R�g�fyTj�NH�@��D��/�]e�P�!8��y�������T�?����E#��� N�{�`H0�P��� ��Z��Q�ӓ��
1
+ �0����qf<7�ފ�(:IG��N.Ȥb��u��;���D��t����jYh�ߺ�+Akxa��\_���\�Ϩ
2
+ V\ S{ �2�0��9��(~���7O�f�����&�~+MY����[���~�n��
@@ -1,3 +1,10 @@
1
+ === 3.1.1 / 2011-07-21
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Deprecate is now Gem::Deprecate. Try both.
6
+ * Don't install gems for other environments. (rhburrows)
7
+
1
8
  === 3.1.0 / 2011-05-19
2
9
 
3
10
  * 4 minor enhancements:
@@ -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
 
@@ -8,7 +8,7 @@ module Isolate
8
8
 
9
9
  # Duh.
10
10
 
11
- VERSION = "3.1.0"
11
+ VERSION = "3.1.1"
12
12
 
13
13
  # Disable Isolate. If a block is provided, isolation will be
14
14
  # disabled for the scope of the block.
@@ -209,7 +209,7 @@ module Isolate
209
209
  fire :installing
210
210
 
211
211
  installable = entries.select do |e|
212
- not e.specification && e.matches?(environment)
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
- extend Deprecate
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
- - 0
10
- version: 3.1.0
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-05-19 00:00:00 Z
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: 11
126
+ hash: 1
126
127
  segments:
127
128
  - 2
129
+ - 3
128
130
  - 1
129
- - 0
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: 35
142
+ hash: 23
142
143
  segments:
143
144
  - 2
144
- - 9
145
- - 4
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.2
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