specinfra 2.0.0.beta18 → 2.0.0.beta19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra.rb +4 -5
- data/lib/specinfra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 374f40d52ad7ed2425b6e96f97933d42a6543fd7
|
4
|
+
data.tar.gz: b854ecaec380480da9fcc36bfa12b26b68c35557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 143a0733c302abc798d616a912053d57b6a04a7a8b249f082c81eaeb9fad49de020a915d605d33ad785a2eda9ccd6f420e1b435a807cc78b8ba4dd547dd9b041
|
7
|
+
data.tar.gz: 6cf367a944549342e45c03d576953dc9e8cfb0c553b3a916cf03ec491d27b29afa1f7528a1de3db16af5f39561619753b9db2045d2b2183a797720e9dfff173b
|
data/lib/specinfra.rb
CHANGED
@@ -21,7 +21,8 @@ module Specinfra
|
|
21
21
|
def backend
|
22
22
|
type = Specinfra.configuration.backend
|
23
23
|
if type.nil?
|
24
|
-
|
24
|
+
warn "No backend type is specified. Fall back to :exec type."
|
25
|
+
type = :exec
|
25
26
|
end
|
26
27
|
eval "Specinfra::Backend::#{type.to_s.to_camel_case}.instance"
|
27
28
|
end
|
@@ -40,10 +41,8 @@ if defined?(RSpec)
|
|
40
41
|
c.add_setting :architecture, :default => :x86_64
|
41
42
|
Specinfra.configuration.defaults.each { |k, v| c.add_setting k, :default => v }
|
42
43
|
c.before :each do
|
43
|
-
|
44
|
-
|
45
|
-
backend.set_example(example)
|
46
|
-
end
|
44
|
+
example = RSpec.respond_to?(:current_example) ? RSpec.current_example : self.example
|
45
|
+
Specinfra.backend.set_example(example)
|
47
46
|
end
|
48
47
|
end
|
49
48
|
end
|
data/lib/specinfra/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specinfra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.beta19
|
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-08-
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|