shell_mock 0.3.1 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5d26902e2b08b891fd639c5d2c9d8fcfb91fdbf
4
- data.tar.gz: 134fb6f92164e23d0f32383b697b048d2c499548
3
+ metadata.gz: 8d5ceba79882bc6462a68ab77bbad02307c16276
4
+ data.tar.gz: ab8ccdcbc115e071b30ed72881d44729449f7a6f
5
5
  SHA512:
6
- metadata.gz: 3d4062f5eb6a898e2521db636c2ac5f91d5290c76bab7f67256f3a5f77e595c5005909a85b6b8edb6541b91a26f5b882bca7e102c3f6db619d5a41e31341b309
7
- data.tar.gz: 2b25642dfe523d750bc3bda8a828b102d4340012fe5c23d96d38f11e7aa9d71643abde1adc9f9bd53ff8146d7c6a9df6250e7a59b06abec1043da6f82af3301c
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 ||= 0
29
+ @exitstatus = 0
29
30
 
30
31
  self
31
32
  end
@@ -1,3 +1,3 @@
1
1
  module ShellMock
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler