gem_isolator 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/lib/gem_isolator/isolation/sandbox.rb +1 -1
- data/lib/gem_isolator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffa2bd234f75a522facada91d62b522ab59e0dd5
|
4
|
+
data.tar.gz: e64902e35c00619bc5b7718e323d2134fbc04b58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8ca13b3178780b60c42d45c04a7984266abe4092963801d12009e9a62a2690136661b83d656546c42d02799ee8932e5281e925b34b30c06410a8ef3f41e2914
|
7
|
+
data.tar.gz: fdd9dece364e8db0ecc722c4766bc7705098ded0851bbe2d1675e6928821feb8cc0bef9c121c0fa7c745e122c9973c3001e1196040a8011556589c25df659f15
|
data/README.md
CHANGED
@@ -43,6 +43,17 @@ end
|
|
43
43
|
3. You can pass custom environment variables, e.g `env.merge('FOO' => '1')`
|
44
44
|
4. `:gems` is a list of gems you want installed
|
45
45
|
|
46
|
+
To use your project sources:
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
cmd = "bundle exec ruby #{File.expand_path('lib/foo.rb')}" # bundler is needed to turn project dir into gem source
|
50
|
+
source_def = ['myproject', path: Dir.pwd] # expands to use `:path` parameter in `Gemfile`
|
51
|
+
GemIsolator.isolate(gems: [source_def, %w(bar >=3.2.1)]) do |env, isolation|
|
52
|
+
expect(isolation.system(env, cmd)).to eq(true)
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
|
46
57
|
## Features
|
47
58
|
|
48
59
|
- [x] sets up temp dir with bundled gems
|
data/lib/gem_isolator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_isolator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cezary Baginski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_dep
|