puppet-lint 0.0.2 → 0.0.3

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.
data/lib/puppet-lint.rb CHANGED
@@ -2,7 +2,7 @@ require 'puppet-lint/plugin'
2
2
  require 'puppet-lint/plugins'
3
3
 
4
4
  class PuppetLint
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
 
7
7
  attr_reader :code, :file
8
8
 
@@ -41,11 +41,11 @@ class PuppetLint::Plugins::CheckResources < PuppetLint::CheckPlugin
41
41
 
42
42
  first_attribute = false
43
43
  end
44
- first_attribute = false
45
44
  end
46
45
 
47
46
  if line.include? "}"
48
47
  in_resource = false
48
+ first_attribute = false
49
49
  end
50
50
  end
51
51
  end
@@ -4,7 +4,7 @@ class PuppetLint::Plugins::CheckStrings < PuppetLint::CheckPlugin
4
4
  data.each_line do |line|
5
5
  line_no += 1
6
6
  line.match(/"([^\\"]|\\\\|\\")*"/).to_a.each do |s|
7
- if s.start_with? '"'
7
+ if s.is_a? String and s.start_with? '"'
8
8
  variable_found = false
9
9
  s.scan(/.\$./) do |w|
10
10
  if w.start_with? '\\'
data/puppet-lint.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'puppet-lint'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.homepage = 'https://github.com/rodjek/puppet-lint/'
5
5
  s.summary = 'Ensure your Puppet manifests conform with the Puppetlabs style guide'
6
6
  s.description = 'Checks your Puppet manifests against the Puppetlabs
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Sharpe