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 +4 -4
- data/lib/serverspec.rb +23 -0
- data/lib/serverspec/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f13d21e3a8f42255d7292845ee0400f9fca58ec7
|
4
|
+
data.tar.gz: 4b228bc4aee0323ffc03b3b2c967f88c7542c11d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/serverspec/version.rb
CHANGED
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.
|
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-
|
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:
|