puppet-syntax 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -9,6 +9,7 @@ env:
9
9
  - PUPPET_VERSION="~> 3.0.0"
10
10
  - PUPPET_VERSION="~> 3.1.0"
11
11
  - PUPPET_VERSION="~> 3.2.0"
12
+ - PUPPET_VERSION="~> 3.4.0"
12
13
  - PUPPET_VERSION=">= 0"
13
14
  matrix:
14
15
  allow_failures:
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 2014-03-17 Release 1.1.1
2
+ - Ignore exit(1) from Puppet 3.4
3
+ - Don't use hardcoded version of parser face.
4
+
1
5
  2013-09-06 Release 1.1.0
2
6
  - Syntax checks for Hiera YAML files.
3
7
  - Improved documentation.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Puppet::Syntax
2
2
 
3
- Syntax checks for Puppet manifests and templates.
3
+ Syntax checks for Puppet manifests, templates, and Hiera YAML.
4
4
 
5
5
  ## Version support
6
6
 
@@ -23,6 +23,7 @@ Test all manifests and templates relative to your `Rakefile`:
23
23
  ➜ puppet git:(master) bundle exec rake syntax
24
24
  ---> syntax:manifests
25
25
  ---> syntax:templates
26
+ ---> syntax:hiera:yaml
26
27
 
27
28
  A non-zero exit code and error message will be returned for any failures:
28
29
 
@@ -22,6 +22,8 @@ module PuppetSyntax
22
22
  filelist.each do |puppet_file|
23
23
  begin
24
24
  validate_manifest(puppet_file)
25
+ rescue SystemExit
26
+ # Disregard exit(1) from face.
25
27
  rescue => error
26
28
  errors << error
27
29
  end
@@ -40,7 +42,7 @@ module PuppetSyntax
40
42
 
41
43
  private
42
44
  def validate_manifest(file)
43
- Puppet::Face[:parser, '0.0.1'].validate(file)
45
+ Puppet::Face[:parser, :current].validate(file)
44
46
  end
45
47
  end
46
48
  end
@@ -1,3 +1,3 @@
1
1
  module PuppetSyntax
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-syntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-06 00:00:00.000000000 Z
12
+ date: 2014-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  segments:
146
146
  - 0
147
- hash: 4527904498098256296
147
+ hash: -1226069919684334403
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  segments:
155
155
  - 0
156
- hash: 4527904498098256296
156
+ hash: -1226069919684334403
157
157
  requirements: []
158
158
  rubyforge_project:
159
159
  rubygems_version: 1.8.23