rspec-system-serverspec 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGEFILE CHANGED
@@ -1,3 +1,6 @@
1
+ 2013-12-03 2.0.0
2
+ - Update for new specinfra gem
3
+
1
4
  2013-10-09 1.0.1
2
5
  - Update dependency for serverspec
3
6
 
@@ -1,8 +1,8 @@
1
- require 'serverspec/backend/exec'
1
+ require 'specinfra/backend/exec'
2
2
 
3
- module Serverspec
3
+ module SpecInfra
4
4
  module Backend
5
- class RSpecSystem < Serverspec::Backend::Exec
5
+ class RSpecSystem < SpecInfra::Backend::Exec
6
6
  def run_command(cmd, opt={})
7
7
  cmd = build_command(cmd)
8
8
  cmd = add_pre_command(cmd)
@@ -1,11 +1,11 @@
1
- module Serverspec
1
+ module SpecInfra
2
2
  module Helper
3
3
  module RSpecSystem
4
4
  def backend(commands_object=nil)
5
5
  if ! respond_to?(:commands)
6
- commands_object = Serverspec::Commands::Base.new
6
+ commands_object = SpecInfra::Commands::Base.new
7
7
  end
8
- instance = Serverspec::Backend::RSpecSystem.instance
8
+ instance = SpecInfra::Backend::RSpecSystem.instance
9
9
  instance.set_commands(commands_object || commands)
10
10
  instance
11
11
  end
@@ -1,4 +1,8 @@
1
1
  require 'serverspec'
2
+ require 'specinfra'
2
3
  require 'rspec-system'
3
4
  require 'rspec-system-serverspec/backend/rspec_system'
4
5
  require 'rspec-system-serverspec/helper/rspec_system'
6
+
7
+ include SpecInfra::Helper::RSpecSystem
8
+ include SpecInfra::Helper::DetectOS
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  # Metadata
4
4
  s.name = 'rspec-system-serverspec'
5
- s.version = '1.0.1'
5
+ s.version = '2.0.0'
6
6
  s.authors = ['Hunter Haugen']
7
7
  s.email = ['h.haugen@gmail.com']
8
8
  s.summary = 'Serverspec rspec-system plugin'
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.required_ruby_version = '>= 1.8.7'
21
21
  s.add_runtime_dependency 'rspec-system', '~> 2.0'
22
22
  s.add_runtime_dependency 'serverspec', '~> 0.0'
23
+ s.add_runtime_dependency 'specinfra', '~> 0.0'
23
24
  s.add_development_dependency "bundler", "~> 1.3"
24
25
  s.add_development_dependency "rake"
25
26
  end
@@ -1,9 +1,6 @@
1
1
  require 'rspec-system/spec_helper'
2
2
  require 'rspec-system-serverspec/helpers'
3
3
 
4
- include Serverspec::Helper::RSpecSystem
5
- include Serverspec::Helper::DetectOS
6
-
7
4
  RSpec.configure do |c|
8
5
  c.before :suite do
9
6
  shell 'echo foobar > /tmp/setupblock'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-system-serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-09 00:00:00.000000000 Z
12
+ date: 2013-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec-system
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0.0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: specinfra
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '0.0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0.0'
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: bundler
48
64
  requirement: !ruby/object:Gem::Requirement