serverspec 2.0.0.beta9 → 2.0.0.beta10

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: 4eac2e10fe1f7646006a794380e458fa37b3c75c
4
- data.tar.gz: dbcfb11112500d422ce06d4af91bb0b3f3e2b835
3
+ metadata.gz: 2255417730cf4c48dfb89e8f01fe44da49481cd7
4
+ data.tar.gz: 7986406330d3a62cafce615b7d8dbedf855189d3
5
5
  SHA512:
6
- metadata.gz: 3d7f1c6915b8afe45a6510118df3fd2c58709fc26029f8a554b2dcae41ccdb768ce99f4e1a0c802fffb2a942e1a4235bc8cf22782077514d395ebf3a3a96ada3
7
- data.tar.gz: c03d276562f404f43670c76ffcb91941204cbf1631a45155c475fd394f755883eeb00ae328153f4776ef28b11298e0186772fadefdd44cbee3fe556aa42e5350
6
+ metadata.gz: 4d2bf5e4cff1c49b37ba3840bf4eea20ffba32cd92fa72e3b8468b7e087009d5c633b6f9e40644b0d4a74153b1fc1b1562b0b9bab5936f4b75b5cc26647f6dc4
7
+ data.tar.gz: 7750404e08fe787eb0c88391df8a744183dcc9989166405f740dd63457ba7cd3995904c281dfffb59957706e264bc260024015880208d02c5a7c0210d117fb07
data/lib/serverspec.rb CHANGED
@@ -12,23 +12,19 @@ require 'rspec/core/formatters/base_formatter'
12
12
 
13
13
  module RSpec::Core::Notifications
14
14
  class FailedExampleNotification < ExampleNotification
15
- def message_lines
16
- @lines ||=
15
+ def failure_lines
16
+ @failure_lines ||=
17
17
  begin
18
18
  lines = ["Failure/Error: #{read_failed_line.strip}"]
19
19
  lines << "#{exception_class_name}:" unless exception_class_name =~ /RSpec/
20
20
  exception.message.to_s.split("\n").each do |line|
21
21
  lines << " #{line}" if exception.message
22
+ end
22
23
  lines << " #{example.metadata[:command]}"
23
24
  lines << " #{example.metadata[:stdout]}" if example.metadata[:stdout]
24
25
  lines << " #{example.metadata[:stderr]}" if example.metadata[:stderr]
26
+ lines
25
27
  end
26
- if shared_group
27
- lines << "Shared Example Group: \"#{shared_group.metadata[:shared_group_name]}\"" +
28
- " called from #{backtrace_formatter.backtrace_line(shared_group.location)}"
29
- end
30
- lines
31
- end
32
28
  end
33
29
  end
34
30
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.0.0.beta9"
2
+ VERSION = "2.0.0.beta10"
3
3
  end
data/serverspec.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency "rspec", "~> 3.0.0"
22
22
  spec.add_runtime_dependency "rspec-its"
23
- spec.add_runtime_dependency "specinfra", "~> 2.0.0.beta7"
23
+ spec.add_runtime_dependency "specinfra", "~> 2.0.0.beta8"
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
25
25
  spec.add_development_dependency "rake", "~> 10.1.1"
26
26
  end
@@ -374,7 +374,7 @@ end
374
374
 
375
375
  describe file('/etc/passwd') do
376
376
  let(:stdout) { Time.now.to_i.to_s }
377
- its(:mtime) { should > DateTime.now.prev_day(1) }
377
+ its(:mtime) { should > DateTime.now - 1 }
378
378
  end
379
379
 
380
380
  describe file('/etc/passwod') do
@@ -372,16 +372,6 @@ EOF
372
372
  its(:content) { should match /root:x:0:0/ }
373
373
  end
374
374
 
375
- describe file('/etc/passwd') do
376
- let(:stdout) { Time.now.to_i.to_s }
377
- its(:mtime) { should > DateTime.now.prev_day(1) }
378
- end
379
-
380
- describe file('/etc/passwod') do
381
- let(:stdout) { 100.to_s }
382
- its(:size) { should > 0 }
383
- end
384
-
385
375
  describe file('/etc/passwd') do
386
376
  it 'be_immutable is not implemented in base class' do
387
377
  expect {
data/wercker.yml CHANGED
@@ -35,16 +35,28 @@ build:
35
35
  code: rake spec:centos65
36
36
  cwd: $WORKING_DIR
37
37
  - script:
38
- name: Run vagrant up ubuntu1310
39
- code: vagrant up ubuntu1310 --provider=digital_ocean
38
+ name: Run vagrant up centos70
39
+ code: vagrant up centos70 --provider=digital_ocean
40
40
  cwd: $WORKING_DIR
41
41
  - script:
42
- name: Run vagrant reload ubuntu1310
43
- code: vagrant reload ubuntu1310
42
+ name: Run vagrant reload centos70
43
+ code: vagrant reload centos70
44
44
  cwd: $WORKING_DIR
45
45
  - script:
46
- name: Run rake spec:ubuntu1310
47
- code: rake spec:ubuntu1310
46
+ name: Run rake spec:centos70
47
+ code: rake spec:centos70
48
+ cwd: $WORKING_DIR
49
+ - script:
50
+ name: Run vagrant up ubuntu1404
51
+ code: vagrant up ubuntu1404 --provider=digital_ocean
52
+ cwd: $WORKING_DIR
53
+ - script:
54
+ name: Run vagrant reload ubuntu1404
55
+ code: vagrant reload ubuntu1404
56
+ cwd: $WORKING_DIR
57
+ - script:
58
+ name: Run rake spec:ubuntu1404
59
+ code: rake spec:ubuntu1404
48
60
  cwd: $WORKING_DIR
49
61
 
50
62
  after-steps:
@@ -53,8 +65,12 @@ build:
53
65
  code: vagrant destroy centos65 --force
54
66
  cwd: $WORKING_DIR
55
67
  - script:
56
- name: Run vagrant destroy ubuntu1310
57
- code: vagrant destroy ubuntu1310 --force
68
+ name: Run vagrant destroy centos70
69
+ code: vagrant destroy centos70 --force
70
+ cwd: $WORKING_DIR
71
+ - script:
72
+ name: Run vagrant destroy ubuntu1404
73
+ code: vagrant destroy ubuntu1404 --force
58
74
  cwd: $WORKING_DIR
59
75
  - 1syo/idobata-notify@0.1.1:
60
76
  token: $IDOBATA_TOKEN
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.0.0.beta9
4
+ version: 2.0.0.beta10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-22 00:00:00.000000000 Z
11
+ date: 2014-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.0.0.beta7
47
+ version: 2.0.0.beta8
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.0.0.beta7
54
+ version: 2.0.0.beta8
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement