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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7987ef3cfd302898ec17ef7f18e3e22f9e458449
4
- data.tar.gz: 76cf8de1700446eb2eb7b1fe1b2478a4aec63d18
3
+ metadata.gz: da9f3db002552f64882b3f669bd4ea12fe180c7e
4
+ data.tar.gz: 9b9f3c267f0c3fc0c86d700d4ccd4bbfae9cee04
5
5
  SHA512:
6
- metadata.gz: 008eebc069872f28e8ff1e42d9b087673ecc988cffd50a2fd6e98d7ae9f5bfd4fc98efdb0c4336f67f462e0770af4225de04d5069013caab7827a14b86b7d772
7
- data.tar.gz: 537d9fdd3fb0af2a8bde463f2d28b3e76cdf512ec76f5b3e6cf621fb25e789bd1d133e39240dfa7751e72fd08af1aae94277a3a474b589175192167b31018c67
6
+ metadata.gz: 372c1b6d4d415859870ec095aab279428e63dab35a3b5b28525c69817d24f71c9d20aad5ca83d45d4df376cfa9281925de6a84346c968283b9006d7b65520069
7
+ data.tar.gz: d14b81b748f0a54bf74511ec5633fefdc09f2d83ae0dc9b82a6cc078c6cf932b5d1eacc3b25dec994eb0321f711d6229b942dfad6fd46f3ba787432e7267c590
@@ -1,7 +1,15 @@
1
1
  # Change Log
2
2
 
3
- ## [0.21.5](https://github.com/chef/inspec/tree/0.21.5) (2016-05-13)
4
- [Full Changelog](https://github.com/chef/inspec/compare/v0.21.4...0.21.5)
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
 
@@ -48,9 +48,10 @@ module Inspec
48
48
 
49
49
  if @qualifier.length > 1
50
50
  last = @qualifier[-1]
51
- # preventing its('to_i') as the value returned is always 0
52
- if last.length == 1 && last[0] !~ /^to_.$/ && !last[0].include?('[')
53
- xres = last[0]
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
@@ -3,5 +3,5 @@
3
3
  # author: Christoph Hartmann
4
4
 
5
5
  module Inspec
6
- VERSION = '0.21.5'.freeze
6
+ VERSION = '0.21.6'.freeze
7
7
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.5
4
+ version: 0.21.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter