inspec 0.21.5 → 0.21.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -2
- data/lib/inspec/objects/test.rb +4 -3
- data/lib/inspec/version.rb +1 -1
- data/test/unit/objects_test.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da9f3db002552f64882b3f669bd4ea12fe180c7e
|
4
|
+
data.tar.gz: 9b9f3c267f0c3fc0c86d700d4ccd4bbfae9cee04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 372c1b6d4d415859870ec095aab279428e63dab35a3b5b28525c69817d24f71c9d20aad5ca83d45d4df376cfa9281925de6a84346c968283b9006d7b65520069
|
7
|
+
data.tar.gz: d14b81b748f0a54bf74511ec5633fefdc09f2d83ae0dc9b82a6cc078c6cf932b5d1eacc3b25dec994eb0321f711d6229b942dfad6fd46f3ba787432e7267c590
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [0.21.
|
4
|
-
[Full Changelog](https://github.com/chef/inspec/compare/v0.21.
|
3
|
+
## [0.21.6](https://github.com/chef/inspec/tree/0.21.6) (2016-05-13)
|
4
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v0.21.5...0.21.6)
|
5
|
+
|
6
|
+
**Fixed bugs:**
|
7
|
+
|
8
|
+
- catch corner-case with symbols on test-objects [\#748](https://github.com/chef/inspec/pull/748) ([arlimus](https://github.com/arlimus))
|
9
|
+
- Prevent nil.include? [\#747](https://github.com/chef/inspec/pull/747) ([alexpop](https://github.com/alexpop))
|
10
|
+
|
11
|
+
## [v0.21.5](https://github.com/chef/inspec/tree/v0.21.5) (2016-05-13)
|
12
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v0.21.4...v0.21.5)
|
5
13
|
|
6
14
|
**Fixed bugs:**
|
7
15
|
|
data/lib/inspec/objects/test.rb
CHANGED
@@ -48,9 +48,10 @@ module Inspec
|
|
48
48
|
|
49
49
|
if @qualifier.length > 1
|
50
50
|
last = @qualifier[-1]
|
51
|
-
|
52
|
-
if last.length == 1 &&
|
53
|
-
|
51
|
+
last_call = last.is_a?(Array) ? last[0].to_s : ''
|
52
|
+
if last.length == 1 && last_call !~ /^to_.$/ && !last_call.include?('[') && !last_call.empty?
|
53
|
+
# this will go in its()
|
54
|
+
xres = last_call
|
54
55
|
else
|
55
56
|
res += '.' + ruby_qualifier(last)
|
56
57
|
end
|
data/lib/inspec/version.rb
CHANGED
data/test/unit/objects_test.rb
CHANGED
@@ -50,6 +50,15 @@ end
|
|
50
50
|
describe resource.hello(\"world\") do
|
51
51
|
it { should }
|
52
52
|
end
|
53
|
+
".strip
|
54
|
+
end
|
55
|
+
|
56
|
+
it 'constructs a simple resource+argument with method calls' do
|
57
|
+
obj.qualifier = [['resource'], [:world]]
|
58
|
+
obj.to_ruby.must_equal "
|
59
|
+
describe resource do
|
60
|
+
its(\"world\") { should }
|
61
|
+
end
|
53
62
|
".strip
|
54
63
|
end
|
55
64
|
end
|