serverspec 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
data/lib/serverspec.rb CHANGED
@@ -26,6 +26,15 @@ RSpec.configure do |c|
26
26
  c.add_setting :ssh, :default => nil
27
27
  c.add_setting :sudo_password, :default => nil
28
28
  c.before :each do
29
+ if described_class.nil?
30
+ puts
31
+ puts "*****************************************"
32
+ puts "Using a string as a subject is obsoleted."
33
+ puts "Please use a subject type object instead."
34
+ puts "See: http://serverspec.org/matchers.html"
35
+ puts "*****************************************"
36
+ puts
37
+ end
29
38
  if described_class.nil? && subject == 'value'
30
39
  def subject
31
40
  Serverspec::Filter.filter_subject example
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: