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 +4 -4
- data/lib/librarian/puppet/source/local.rb +7 -0
- data/lib/librarian/puppet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7e0b85e578a171526ff930b304f44fb18e381a7
|
4
|
+
data.tar.gz: 4a220a18c289ea4ac10568cff35c250bb9c63ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
12
|
+
date: 2015-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: librarianp
|