Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #11 from hunner/fix_readme
Browse files Browse the repository at this point in the history
Clarify instructions for new usage
  • Loading branch information
hunner committed Dec 5, 2013
2 parents e44bcdf + 6d2a309 commit 17781e6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGEFILE
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2013-12-05 2.0.1
- Update readme for breaking changes and deprecation notice. If you previously
had `include Serverspec::Helper::RSpecSystem` or `include
Serverspec::Helper::DetectOS` in `spec/spec_helper_system.rb` then these
should be removed.

2013-12-03 2.0.0
- Update for new specinfra gem

Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
## Quick Start

* Have a module that is configured to use rspec-system
* `gem install serverspec`
* Add the `serverspec` and `rspec-system-serverspec` gems to your module's `Gemfile`
* Add these lines to your `spec/spec_helper_system.rb` file:
* Add the `rspec-system-serverspec` gem to your module's `Gemfile`
* Add the following line to your `spec/spec_helper_system.rb` file:

```ruby
require 'rspec-system-serverspec/helpers'
include Serverspec::Helper::RSpecSystem
include Serverspec::Helper::DetectOS
```
7 changes: 7 additions & 0 deletions lib/rspec-system-serverspec/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@

include SpecInfra::Helper::RSpecSystem
include SpecInfra::Helper::DetectOS

module Serverspec::Helper::RSpecSystem
def self.included(base)
# Deprecated in 2.0.0
warn "[DEPRECATED] Serverspec::Helper::RSpecSystem is deprecated and should no longer be included. See the README for information."
end
end
2 changes: 1 addition & 1 deletion rspec-system-serverspec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Gem::Specification.new do |s|
# Metadata
s.name = 'rspec-system-serverspec'
s.version = '2.0.0'
s.version = '2.0.1'
s.authors = ['Hunter Haugen']
s.email = ['[email protected]']
s.summary = 'Serverspec rspec-system plugin'
Expand Down

0 comments on commit 17781e6

Please sign in to comment.