isolate 3.4.0 → 3.5.0
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.rdoc +7 -0
- data/lib/hoe/isolate.rb +1 -1
- data/lib/isolate.rb +3 -1
- data/lib/isolate/sandbox.rb +5 -0
- data/test/test_isolate_sandbox.rb +15 -6
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca0b6c46244e7c3677b3d9ac0ddfa79f90915b59667030dcb616a717a740dda3
|
4
|
+
data.tar.gz: 1ab9f7a50d03bc985672f6bb1e316fccc838e6ded721a3872b58f64f999e28de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33ae43937126229c7a21b4d48d8aff7bc765cc60d3085604af3af378661d696624b7a311cca4f287cc5f1f6f42a38a3e7573491d1862d7850a912f9c4ec5e412
|
7
|
+
data.tar.gz: 9b05a270c2ae63dd20c3466ec6537b148c0e2b9fc076a1453635c51f6f7a0848e093b1044ca08f4ab979f349c51a14520be4527a183d003448e549de5642cd3b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.rdoc
CHANGED
data/lib/hoe/isolate.rb
CHANGED
@@ -46,7 +46,7 @@ class Hoe # :nodoc:
|
|
46
46
|
sandbox = ::Isolate.sandbox
|
47
47
|
|
48
48
|
# reset, now that they've had a chance to change it
|
49
|
-
sandbox.options :path => isolate_dir, :system =>
|
49
|
+
sandbox.options :path => isolate_dir, :system => true
|
50
50
|
|
51
51
|
task :isolate do
|
52
52
|
self.extra_deps.each do |name, version|
|
data/lib/isolate.rb
CHANGED
@@ -8,7 +8,7 @@ module Isolate
|
|
8
8
|
|
9
9
|
# Duh.
|
10
10
|
|
11
|
-
VERSION = "3.
|
11
|
+
VERSION = "3.5.0"
|
12
12
|
|
13
13
|
# Disable Isolate. If a block is provided, isolation will be
|
14
14
|
# disabled for the scope of the block.
|
@@ -65,6 +65,8 @@ module Isolate
|
|
65
65
|
# <tt>"tmp/isolate"</tt>, and a Ruby version specifier suffix
|
66
66
|
# will be added if <tt>:multiruby</tt> is +true+.
|
67
67
|
#
|
68
|
+
# :name:: Like path, but expands to: ~/.gem/repos/#{name}/ (like ohmygems)
|
69
|
+
#
|
68
70
|
# :system:: Should system gems be allowed to satisfy dependencies?
|
69
71
|
# Default is +true+.
|
70
72
|
#
|
data/lib/isolate/sandbox.rb
CHANGED
@@ -43,6 +43,11 @@ module Isolate
|
|
43
43
|
@files = []
|
44
44
|
@options = options
|
45
45
|
|
46
|
+
path, name = options.values_at :path, :name
|
47
|
+
|
48
|
+
raise ArgumentError, "can't specify both name and path!" if name && path
|
49
|
+
options[:path] = File.expand_path("~/.gem/repos/#{name}") if name
|
50
|
+
|
46
51
|
fire :initializing
|
47
52
|
|
48
53
|
user = File.expand_path "~/.isolate/user.rb"
|
@@ -331,22 +331,31 @@ class TestIsolateSandbox < Isolate::Test
|
|
331
331
|
assert_equal Gem::Requirement.new("2.0"), monkey.requirement
|
332
332
|
end
|
333
333
|
|
334
|
+
def test_initialize__name
|
335
|
+
exp = File.expand_path "~/.gem/repos/project_name"
|
336
|
+
|
337
|
+
outer = self
|
338
|
+
|
339
|
+
s = sandbox :name => "project_name" do |inner|
|
340
|
+
outer.assert_equal exp, inner.options[:path]
|
341
|
+
end
|
342
|
+
|
343
|
+
assert_equal exp, s.options[:path]
|
344
|
+
end
|
345
|
+
|
334
346
|
def test_options
|
335
347
|
@sandbox.options :hello => :monkey
|
336
348
|
assert_equal :monkey, @sandbox.options[:hello]
|
337
349
|
end
|
338
350
|
|
339
351
|
def test_path
|
340
|
-
s = sandbox :multiruby => false
|
341
|
-
options :path => "tmp/foo"
|
342
|
-
end
|
343
|
-
|
352
|
+
s = sandbox :multiruby => false, :path => "tmp/foo"
|
344
353
|
assert_equal File.expand_path("tmp/foo"), s.path
|
345
354
|
|
346
|
-
v = [Gem.ruby_engine, RbConfig::CONFIG["ruby_version"]]
|
347
|
-
s = sandbox :multiruby => true
|
355
|
+
v = "%s-%s" % [Gem.ruby_engine, RbConfig::CONFIG["ruby_version"]]
|
348
356
|
p = File.expand_path("tmp/test/#{v}")
|
349
357
|
|
358
|
+
s = sandbox :multiruby => true
|
350
359
|
assert_equal p, s.path
|
351
360
|
|
352
361
|
s = sandbox :path => "tmp/test/#{v}", :multiruby => false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isolate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
m5x9IDiApM+vCELNwDXXGNFEnQBBK+wAe4Pek8o1V1TTOxL1kGPewVOitX1p3xoN
|
32
32
|
h7iEjga8iM1LbZUfiISZ+WrB
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2020-03-01 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: hoe-seattlerb
|
@@ -129,14 +129,14 @@ dependencies:
|
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: '3.
|
132
|
+
version: '3.22'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '3.
|
139
|
+
version: '3.22'
|
140
140
|
description: |-
|
141
141
|
Isolate is a very simple RubyGems sandbox. It provides a way to
|
142
142
|
express and automatically install your project's Gem dependencies.
|
metadata.gz.sig
CHANGED
Binary file
|