serverspec 2.21.0 → 2.21.1

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: 80a66cac3a0e0f04fbff5ee08259816cd8229507
4
- data.tar.gz: 2c41a714e0d59bf76b57b5e1994776e9e27b94ad
3
+ metadata.gz: f13d21e3a8f42255d7292845ee0400f9fca58ec7
4
+ data.tar.gz: 4b228bc4aee0323ffc03b3b2c967f88c7542c11d
5
5
  SHA512:
6
- metadata.gz: e401a74410d52b817b79ad27909187e7c70dc8d2c7048026ee15f5bb09ecdc4f45dcb299f60322cfaf1e3a31785040ee561a37896a2ccd97d1cb424dade562ff
7
- data.tar.gz: 5d41fa72698add20304f08f2dad003f7e703196846a8edc66e27634ed75069070e1080ab3a07fa60931a0a2a8e3d32aeac2a3e79830ce5d9008967706b4a8b9c
6
+ metadata.gz: 955548d28b604ab7040c0f15c6de0caa5bb245f1acee24a32aefb341d7d22b859f350b851217ff680fda5c920daba2d9628c7ca7bc63b4d6990bc0120ca61a59
7
+ data.tar.gz: 2d00b279e43fd4df75a6de98b3cefd9ea23626e35e6d8bf4822ddd279d16f33f75fb06fe049c7e7912933b4ef57134ba9398ce04dfc5171e4eef9cfef054be4d
data/lib/serverspec.rb CHANGED
@@ -33,3 +33,26 @@ module RSpec::Core::Notifications
33
33
  end
34
34
  end
35
35
  end
36
+
37
+ # For RSpec 3.3.x
38
+ if defined?(RSpec::Core::Formatters::ExceptionPresenter)
39
+ class RSpec::Core::Formatters::ExceptionPresenter
40
+ def failure_lines
41
+ host = ENV['TARGET_HOST'] || Specinfra.configuration.host
42
+ @failure_lines ||=
43
+ begin
44
+ lines = []
45
+ lines << "On host `#{host}'" if host
46
+ lines << failure_slash_error_line unless (description == failure_slash_error_line)
47
+ lines << "#{exception_class_name}:" unless exception_class_name =~ /RSpec/
48
+ encoded_string(exception.message.to_s).split("\n").each do |line|
49
+ lines << " #{line}"
50
+ end
51
+ lines << " #{example.metadata[:command]}"
52
+ lines << " #{example.metadata[:stdout]}" if example.metadata[:stdout]
53
+ lines << " #{example.metadata[:stderr]}" if example.metadata[:stderr]
54
+ lines
55
+ end
56
+ end
57
+ end
58
+ end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.21.0"
2
+ VERSION = "2.21.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.21.0
4
+ version: 2.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-08 00:00:00.000000000 Z
11
+ date: 2015-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -444,3 +444,4 @@ test_files:
444
444
  - spec/type/windows/scheduled_task_spec.rb
445
445
  - spec/type/windows/service_spec.rb
446
446
  - spec/type/windows/user_spec.rb
447
+ has_rdoc: