busser-rspec 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71e7ed418ab04605767b406b8de267fd90535abf
4
- data.tar.gz: ab9ecb832b4d20783894727e863968ffbcbad9c3
3
+ metadata.gz: 7379d7a390cd41afe74d348be6d7713537c260c7
4
+ data.tar.gz: 4458837da64c1cc71f7e691a3e3f016d5bbfa095
5
5
  SHA512:
6
- metadata.gz: 025a66823e36fdacf3776ba27a705cdfcc398be1e646a786fa7658d7ded09ae5b427604b2734f24878ba7d102d1f87fbad3e449f42ad3a805dd12be0d0590c1e
7
- data.tar.gz: 920debd0a337ae6214d7968fe34924bf87cb45ccad394a821d34bd4118bd9a483f01b7755f0ce315a676d7a8609b2fb2ce6f42f7d3f04d801c30450abc1f1d0b
6
+ metadata.gz: 25810747e9a2d8f0eebe6d1fd87a4f90ae0fdaa92fc3b2cd1e51452a242daec9a3e7c6fda9cadcff98271a5cefe27881186d4762701696dc1dca93a05f12c02c
7
+ data.tar.gz: 18d03e1b6968b38506f8cd518fb69f681cceb28547d2315fbd95d0f56226fee1aadd876eb19a6bb8366fcad957b09605253785aabc93b29333fa0536b525a2cf
@@ -1,4 +1,9 @@
1
- ## 0.7.5 / 2015-06-17
1
+ ## 0.7.6 / 2015-09-28
2
+
3
+ * Additional windows fixes for recent Omnibus Chef
4
+ * Documentation (`README`) updates
5
+
6
+ ## 0.7.5 / 2015-09-17
2
7
 
3
8
  * Fix bundle install on windows
4
9
 
data/README.md CHANGED
@@ -17,6 +17,21 @@ Please put test files into [COOKBOOK]/test/integration/[SUITES]/rspec/
17
17
  `-- default
18
18
  `-- rspec
19
19
  `-- spec_helper.rb
20
+ `-- Gemfile
21
+ ```
22
+
23
+ You can specify your own test gem dependencies with a `Gemfile` under the `rspec` path, like this: `test/integration/<suite>/rspec/Gemfile`. Don't forget to put `gem "rspec"` there!
24
+
25
+ ## How do I ... ?
26
+
27
+ ### Change the rspec formatter?
28
+
29
+ You may be familar with using the `rspec -f` flag to change the rspec formatter. RSpec also offers a way to set the formatter from your specs:
30
+
31
+ ```ruby
32
+ RSpec.configure do |config|
33
+ # The same as `rspec -f documentation`
34
+ config.add_formatter "documentation"
20
35
  ```
21
36
 
22
37
  ## Development
@@ -21,6 +21,6 @@ module Busser
21
21
  module Rspec
22
22
 
23
23
  # Version string for the Rspec Busser runner plugin
24
- VERSION = "0.7.5"
24
+ VERSION = "0.7.6"
25
25
  end
26
26
  end
@@ -36,11 +36,17 @@ class Busser::RunnerPlugin::Rspec < Busser::RunnerPlugin::Base
36
36
 
37
37
  Dir.chdir(rspec_path) do
38
38
 
39
- if File.exists?(File.join(rspec_path, "Gemfile"))
39
+ # Referred from busser-serverspec
40
+ gemfile_path = File.join(rspec_path, 'Gemfile')
41
+ if File.exists?(gemfile_path)
40
42
  # Bundle install local completes quickly if the gems are already found locally
41
43
  # it fails if it needs to talk to the internet. The || below is the fallback
42
44
  # to the internet-enabled version. It's a speed optimization.
43
- run("#{Gem.bindir}/bundle install --local || #{Gem.bindir}/bundle install")
45
+ banner('Bundle Installing..')
46
+ ENV['PATH'] = [ENV['PATH'], Gem.bindir, RbConfig::CONFIG['bindir']].join(File::PATH_SEPARATOR)
47
+ bundle_exec = "#{File.join(RbConfig::CONFIG['bindir'], 'ruby')} " +
48
+ "#{File.join(Gem.bindir, 'bundle')} install --gemfile #{gemfile_path}"
49
+ run("#{bundle_exec} --local || #{bundle_exec}")
44
50
  end
45
51
 
46
52
  if File.exists?(setup_file)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: busser-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-17 00:00:00.000000000 Z
11
+ date: 2015-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: busser