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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6af2a5fa821f3d2f51a4982137e50c24b32cec22
4
- data.tar.gz: 630f65f9b762a5d48429a99931f3c612c420843b
3
+ metadata.gz: 374f40d52ad7ed2425b6e96f97933d42a6543fd7
4
+ data.tar.gz: b854ecaec380480da9fcc36bfa12b26b68c35557
5
5
  SHA512:
6
- metadata.gz: 85b58ab0d41c0327d9fbac11ff03787f82192e21a818bf8a224195c8615982015165a3d296922d9de69382bec2055e905871d83980926a2f7481640a5976dbc8
7
- data.tar.gz: 342e63846bff9fb14ce8d2b601352e47f865ff7c2c0340cdf68505edc859c80863aaef63e2efd4f8036e0ad0937c1a864f815accccb7a6abd63d8ce01923558c
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
- raise "No backend type is specified. Please specify backend type by `set :backend, :type'"
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
- if respond_to?(:backend) && backend.respond_to?(:set_example)
44
- example = RSpec.respond_to?(:current_example) ? RSpec.current_example : self.example
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
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.0.0.beta18"
2
+ VERSION = "2.0.0.beta19"
3
3
  end
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.beta18
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-04 00:00:00.000000000 Z
11
+ date: 2014-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh