rspec-shell-expectations 1.0.0.pre.beta → 1.0.0.pre.beta.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: 89ba258c34cca0bd7077422b028d0d157c7d5d9c
4
- data.tar.gz: 022db2cab38856e5e1314dcc72ba6f32e0906a0b
3
+ metadata.gz: 4e83ad855493012097542de18d65fddc610e0a87
4
+ data.tar.gz: 85fd8c655908fafff1bb40b9b2e639d166b29e1e
5
5
  SHA512:
6
- metadata.gz: ad5581cba13751757c9275a3efb8b285c3a94b4f49a54bba02955839d8f9ac0b17a70638260b60c07d680593b7dbfe259e6a51f47d5dd37b53c9fd985e4def5e
7
- data.tar.gz: d6b1f96a40508db1f34f0b21db09a872cf4c95aa232e497ddb411bf3e5dbf5e5ec0c35e1ce5f5198f785ee1195f9758680bdce15d177e494c9f82e5be41eda66
6
+ metadata.gz: 72ce9f67f512b110dffeed3ead074063b661245ceb383c77633bb9d81723ccc734b7267f2c9973f378c952862e73ee61d7605480e547be4034750a0f57a43f70
7
+ data.tar.gz: 95dc5d3ec108879415d5ab6fa3a6e9e38ba4bbad8d3f9c56a4d7ce1721f1192928329f11d1a517cf5dea13e23c623d1606e301d939ee19dee6ef9d9f305b0ca6
@@ -6,7 +6,7 @@ module Rspec
6
6
  class StubbedCommand
7
7
  def initialize(command, dir)
8
8
  @dir, @command = dir, command
9
- FileUtils.cp('bin/stub', File.join(dir, command))
9
+ FileUtils.cp(stub_filepath, File.join(dir, command))
10
10
  @call_configuration = CallConfiguration.new(
11
11
  Pathname.new(dir).join("#{command}_stub.yml")
12
12
  )
@@ -38,6 +38,17 @@ module Rspec
38
38
  def outputs(contents, to: :stdout)
39
39
  with_args.outputs(contents, to: to)
40
40
  end
41
+
42
+ private
43
+
44
+ def stub_filepath
45
+ project_root.join('bin', 'stub')
46
+ end
47
+
48
+ def project_root
49
+ Pathname.new(File.dirname(File.expand_path(__FILE__)))
50
+ .join('..', '..', '..', '..')
51
+ end
41
52
  end
42
53
  end
43
54
  end
@@ -2,7 +2,7 @@ module Rspec
2
2
  module Shell
3
3
  #:nodoc:
4
4
  module Expectations
5
- VERSION = '1.0.0-beta'
5
+ VERSION = '1.0.0-beta.2'
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-shell-expectations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta
4
+ version: 1.0.0.pre.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthijs Groen