shell_mock 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/shell_mock/command_stub.rb +2 -1
- data/lib/shell_mock/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: 8d5ceba79882bc6462a68ab77bbad02307c16276
|
4
|
+
data.tar.gz: ab8ccdcbc115e071b30ed72881d44729449f7a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50b1ef01eebf65f57c1580c8cd8094b344d49eaef4028fe5ef2d21912a0256470a950175f82c405f8b6718f8e4db6ca355ee9445e39ffe7d8d12b15d04d6df54
|
7
|
+
data.tar.gz: 08ca65ddda554c935a55c53c8c5796014826e91de33146e9ce7415262a1baabfd2c9e1a41ab68333842db5c9ec34ab180febd6c1ad0a0ba096600c1552d67957
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
* add `with_side_effect(&blk)` for specifying desired side effects
|
4
4
|
|
5
|
+
## RELEASE 0.3.2
|
6
|
+
|
7
|
+
* FIX: fixed patched `exec`'s handling of exit statuses
|
8
|
+
|
5
9
|
## RELEASE 0.3.1
|
6
10
|
|
7
11
|
* FIX: ``Kernel.` ``, `Kernel.exec`, and `Kernel.system` are now all supported as well. This is useful to testing thor suites that shell out, because thor (for reasons passing understanding) redefines `#exec`, so we have to resort to `Kernel.exec`.
|
@@ -9,6 +9,7 @@ module ShellMock
|
|
9
9
|
@env = {}
|
10
10
|
@options = {}
|
11
11
|
@side_effect = proc {}
|
12
|
+
@exitstatus = 0
|
12
13
|
end
|
13
14
|
|
14
15
|
def with_env(env)
|
@@ -25,7 +26,7 @@ module ShellMock
|
|
25
26
|
|
26
27
|
def and_return(expected_output)
|
27
28
|
@expected_output = expected_output
|
28
|
-
@exitstatus
|
29
|
+
@exitstatus = 0
|
29
30
|
|
30
31
|
self
|
31
32
|
end
|
data/lib/shell_mock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shell_mock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Hoffman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|