serverspec-runner 1.1.9 → 1.2.0

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: 26cbd7ddb81935a654b0bd87ac49a2d91ca4e199
4
- data.tar.gz: c10302a87857547e9d122a581a6fae66067a8502
3
+ metadata.gz: 19179211dd67128be5bcd4c9892fb59632e71b31
4
+ data.tar.gz: 3d0d1abab1f51d273aa4ed93e7e785a13303f67e
5
5
  SHA512:
6
- metadata.gz: 5467ca5d527762709dbef2903765487e0d2232724275814ccc909cd665f05064af885a751be33915a27a07f19d9f5938edb18bdd8e9c3c55ea070151fc77c8cf
7
- data.tar.gz: da79a445f3ffafd13143e36c46baa64f0a03891eb6ecaa0026712bea22079c077aa4f65ddd970d84543fec415f22abf0d43776e011816dc5790582054f6d1f7b
6
+ metadata.gz: 9e195c8cb69548627a9baeaca8eab29166e070d14db701c3400caaf554853b181bdc5afccdd400b2aac963d885895f96ef972d3835fbabb94f39bdb9074ea05e
7
+ data.tar.gz: 2067415539b7ed1723e8bdddd4f02f27c974f568298ee059ce64abb78f880dbca96facfde6cbbb6d075ceaea0b3648f0e941e0a5331119fc9b4e8b5f42af9213
data/Rakefile CHANGED
@@ -113,9 +113,16 @@ namespace :spec do
113
113
  RSpec::Core::RakeTask.new("#{task_path}::#{host_alias}".to_sym) do |t|
114
114
 
115
115
  fpath = task_path.gsub(/::/, '/')
116
- t.pattern = %W[
117
- #{ENV['specpath']}/#{fpath}/*.rb
118
- ]
116
+
117
+ if Dir.exists?("#{ENV['specpath']}/#{fpath}")
118
+ t.pattern = %W[
119
+ #{ENV['specpath']}/#{fpath}/*.rb
120
+ ]
121
+ elsif File.file?("#{ENV['specpath']}/#{fpath}.rb")
122
+ t.pattern = %W[
123
+ #{ENV['specpath']}/#{fpath}.rb
124
+ ]
125
+ end
119
126
 
120
127
  raise "\e[31mspec file not found!![#{t.pattern.to_s}]\e[m" if Dir.glob(t.pattern).empty?
121
128
  t.fail_on_error = false
@@ -1,3 +1,3 @@
1
1
  module ServerspecRunner
2
- VERSION = "1.1.9"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hiracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-02 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: serverspec