isolate 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/README.rdoc +5 -1
- data/lib/isolate.rb +5 -2
- metadata +44 -22
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -89,12 +89,16 @@ exceptions, <tt>:source</tt> and <tt>:args</tt>.
|
|
89
89
|
=== An External File
|
90
90
|
|
91
91
|
If you'd like to have a separate file that *just* has your +gem+ and
|
92
|
-
+environment+ calls in it,
|
92
|
+
+environment+ calls in it, you can pass an optional <tt>:file</tt>
|
93
93
|
option instead of (or in addition to) providing a block.
|
94
94
|
|
95
95
|
# keepin' things clean
|
96
96
|
Isolate.gems "tmp/gems", :file => "config/isolate.rb"
|
97
97
|
|
98
|
+
If you pass <tt>:file => true</tt> instead, Isolate will try to load
|
99
|
+
from <tt>./Isolate</tt> and <tt>./config/isolate.rb</tt>, in that
|
100
|
+
order.
|
101
|
+
|
98
102
|
=== Installing Isolated Gems
|
99
103
|
|
100
104
|
By default, Isolate will install and clean up your gems
|
data/lib/isolate.rb
CHANGED
@@ -8,7 +8,7 @@ require "rubygems/requirement"
|
|
8
8
|
|
9
9
|
class Isolate
|
10
10
|
|
11
|
-
VERSION = "1.9.
|
11
|
+
VERSION = "1.9.3" # :nodoc:
|
12
12
|
|
13
13
|
# An isolated Gem, with requirement, environment restrictions, and
|
14
14
|
# installation options. Internal use only.
|
@@ -81,7 +81,10 @@ class Isolate
|
|
81
81
|
@verbose = options.fetch :verbose, true
|
82
82
|
@cleanup = @install && options.fetch(:cleanup, true)
|
83
83
|
|
84
|
-
|
84
|
+
file = options[:file]
|
85
|
+
file = Dir["{Isolate,config/isolate.rb}"].first if TrueClass === file
|
86
|
+
|
87
|
+
instance_eval IO.read(file), file if file
|
85
88
|
instance_eval(&block) if block_given?
|
86
89
|
end
|
87
90
|
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isolate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 9
|
8
|
+
- 3
|
9
|
+
version: 1.9.3
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- John Barnette
|
@@ -10,49 +15,64 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2010-02-
|
18
|
+
date: 2010-02-24 00:00:00 -08:00
|
14
19
|
default_executable:
|
15
20
|
dependencies:
|
16
21
|
- !ruby/object:Gem::Dependency
|
17
22
|
name: rubyforge
|
18
|
-
|
19
|
-
|
20
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
25
|
requirements:
|
22
26
|
- - ">="
|
23
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 2
|
30
|
+
- 0
|
31
|
+
- 3
|
24
32
|
version: 2.0.3
|
25
|
-
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
26
35
|
- !ruby/object:Gem::Dependency
|
27
36
|
name: gemcutter
|
28
|
-
|
29
|
-
|
30
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
39
|
requirements:
|
32
40
|
- - ">="
|
33
41
|
- !ruby/object:Gem::Version
|
34
|
-
|
35
|
-
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
- 4
|
45
|
+
- 1
|
46
|
+
version: 0.4.1
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id002
|
36
49
|
- !ruby/object:Gem::Dependency
|
37
50
|
name: minitest
|
38
|
-
|
39
|
-
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
53
|
requirements:
|
42
54
|
- - ~>
|
43
55
|
- !ruby/object:Gem::Version
|
56
|
+
segments:
|
57
|
+
- 1
|
58
|
+
- 4
|
44
59
|
version: "1.4"
|
45
|
-
|
60
|
+
type: :development
|
61
|
+
version_requirements: *id003
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: hoe
|
48
|
-
|
49
|
-
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
52
67
|
- - ">="
|
53
68
|
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 2
|
71
|
+
- 5
|
72
|
+
- 0
|
54
73
|
version: 2.5.0
|
55
|
-
|
74
|
+
type: :development
|
75
|
+
version_requirements: *id004
|
56
76
|
description: |-
|
57
77
|
Isolate is a very simple RubyGems sandbox. It provides a way to
|
58
78
|
express and install your code's Gem dependencies.
|
@@ -95,18 +115,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
115
|
requirements:
|
96
116
|
- - ">="
|
97
117
|
- !ruby/object:Gem::Version
|
118
|
+
segments:
|
119
|
+
- 0
|
98
120
|
version: "0"
|
99
|
-
version:
|
100
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
122
|
requirements:
|
102
123
|
- - ">="
|
103
124
|
- !ruby/object:Gem::Version
|
125
|
+
segments:
|
126
|
+
- 0
|
104
127
|
version: "0"
|
105
|
-
version:
|
106
128
|
requirements: []
|
107
129
|
|
108
130
|
rubyforge_project: isolate
|
109
|
-
rubygems_version: 1.3.
|
131
|
+
rubygems_version: 1.3.6
|
110
132
|
signing_key:
|
111
133
|
specification_version: 3
|
112
134
|
summary: Isolate is a very simple RubyGems sandbox
|