librarian-puppet 2.1.1 → 2.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: 004c9886df1b5f4d003a64f076c2e66bfa349fc4
4
- data.tar.gz: a473d2c6cf25a3eb249e24bc6615ab270598fd50
3
+ metadata.gz: d7e0b85e578a171526ff930b304f44fb18e381a7
4
+ data.tar.gz: 4a220a18c289ea4ac10568cff35c250bb9c63ab5
5
5
  SHA512:
6
- metadata.gz: 3103eb328eeffd401c6cfe890b44f2a59b211b67d99f01c10371460f152e8e0149f362b909d136b918c664e52be950cf3c2147729739a759d5ed660f4a223a83
7
- data.tar.gz: aa66afd24a2b72e50a8690ab20ec5828f95e3eba3b4866b6501b32eaf9c37909317482385607982bf9eb1c9f7547f82c769c67099315177c5c88034c2d08c840
6
+ metadata.gz: 8a30c37c7edbfa416a3f1fb5ef6f18640bdea46de8bcd9d0d112ea2b9075b46384feedbb8f9e08271d3db25df3091772c9828deb64ccb4411eca3968323d4986
7
+ data.tar.gz: f3f9abcae8008a81b6a08b7cce03e0ba581fe02d408a70f0b214cea7ad5280805b724f0701d8869e82c106c0c8666d3f5f8451d726e3287cb4e0b16ce6832d18
@@ -85,6 +85,13 @@ module Librarian
85
85
  @@require_puppet ||= require_puppet
86
86
 
87
87
  metadata = ::Puppet::ModuleTool::Metadata.new
88
+
89
+ # Puppet 4 does not have the class
90
+ unless defined? ::Puppet::ModuleTool::ModulefileReader
91
+ warn { "Can't parse Modulefile in Puppet >= 4.0 and you are using #{Librarian::Puppet::puppet_version}. Ignoring dependencies in #{modulefile}" }
92
+ return metadata
93
+ end
94
+
88
95
  begin
89
96
  ::Puppet::ModuleTool::ModulefileReader.evaluate(metadata, modulefile)
90
97
  raise SyntaxError, "Missing version" unless metadata.version
@@ -1,5 +1,5 @@
1
1
  module Librarian
2
2
  module Puppet
3
- VERSION = "2.1.1"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librarian-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-22 00:00:00.000000000 Z
12
+ date: 2015-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: librarianp