gem_isolator 0.2.1 → 0.2.2
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
- data/README.md +6 -10
- data/lib/gem_isolator/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50f54a61487d49248c68ac526fc3645d56ffb57b
|
4
|
+
data.tar.gz: 483afd40e8c105493fc42b94e799be2091bd3c63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb0d3e5b84ee29bd379cdd1c7a70ccda6d6fd4e73b521543e0bf797b7a5e1ad3f5373372ed68ae9146041dd7c65637516cf2fd66a9438bdccb1f7498130cd407
|
7
|
+
data.tar.gz: b43517a5fe63ec0e21f619235b14e37d63b1070eee96af182c0f48e9087d64a5904649c716fce5dec2a264b1516a0edefe2940ee86b0bdb28c783c64c428d0a5
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ Bundler isn't necessary to run your Ruby code in isolation.
|
|
11
11
|
|
12
12
|
## Requirements
|
13
13
|
|
14
|
-
For supported Ruby versions, check the
|
14
|
+
For supported Ruby versions, check the [Travis build status](https://travis-ci.org/e2/gem_isolator)
|
15
15
|
|
16
16
|
(For supporting older versions, open an issue - with some info about why you are unable to upgrade).
|
17
17
|
|
@@ -33,14 +33,14 @@ E.g. in an RSpec test:
|
|
33
33
|
|
34
34
|
```ruby
|
35
35
|
cmd = "ruby #{File.expand_path('lib/foo.rb')}"
|
36
|
-
GemIsolator.isolate(gems: %w(bar >=3.2.1)) do |env, isolation|
|
36
|
+
GemIsolator.isolate(gems: [%w(bar >=3.2.1)]) do |env, isolation|
|
37
37
|
expect(isolation.system(env, cmd)).to eq(true)
|
38
38
|
end
|
39
39
|
```
|
40
40
|
|
41
|
-
1.
|
41
|
+
1. `lib/foo.rb` is relative to your project's current directory.
|
42
42
|
2. `system` acts just like `Kernel.system`.
|
43
|
-
3.
|
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
46
|
## Features
|
@@ -69,12 +69,8 @@ Capturing output is not yet supported (open a PR if you're interested).
|
|
69
69
|
NOTE: Inside the block, the current directory is set to a temporary directory,
|
70
70
|
so it's best to expand your paths outside the block.
|
71
71
|
|
72
|
-
NOTE: Variables other than those reset by `Bundler.with_clean_env` are left
|
73
|
-
alone, so it's up to you to reset them. (Open an issue if you want to have a
|
74
|
-
"clean slate").
|
75
|
-
|
76
72
|
NOTE: You might prefer to use caching, by e.g. setting a gem source or proxy.
|
77
|
-
Open a feature request if you're interested.
|
73
|
+
Open a feature request if you're interested in something automatic/generic.
|
78
74
|
|
79
75
|
NOTE: `:gems` option is an array (for each gem) of arrays (Gemfile `gem` keyword arguments). `.inspect` is used to stringify, so things should work as expected, even if you use a hash.
|
80
76
|
|
@@ -105,7 +101,7 @@ Run `rake spec` to run the tests.
|
|
105
101
|
|
106
102
|
## Contributing
|
107
103
|
|
108
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
104
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/e2/gem_isolator.
|
109
105
|
|
110
106
|
If there are no other major open pull requests (or active branches), feel free to refactor/reorganize the project as you like.
|
111
107
|
|
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.2
|
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-
|
11
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_dep
|
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '2.2'
|
75
75
|
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.2.
|
77
|
+
version: 2.2.3
|
78
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.6.
|
85
|
+
rubygems_version: 2.6.6
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Use an isolated set of gems in your tests
|