librarian-puppet 4.0.0 → 4.0.1

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
  SHA256:
3
- metadata.gz: bbd62873701dbb9d42836c476dcc96f8d8bba4ba1b81c87bc096804a52948210
4
- data.tar.gz: c75556d2b10a0c5a725f4ac269909eb8b8389910d17185f77156b76767317fd9
3
+ metadata.gz: 4630e52bab2424fcbee097ec636d39c51787fceafbddaac759dbe4967265136e
4
+ data.tar.gz: c458a8baba3811240266cb9fa677adb6d907a2658984d0b135ae020f08f4eb7e
5
5
  SHA512:
6
- metadata.gz: 6ac0f2ce5b17881246a1aff1df1264e945bea3e0bdc6f0ccdad635161729ab931a96d2ce54b9e3cc4aefdb65deeae26aab959e411df30c536a340fc7c25beac7
7
- data.tar.gz: 54c91e8b55a460e3772ad893aa30cf255728b7a421c63ab51c2b9074ac0316d09dafd2f1e2fc7f9efa4fc322c9aa62dd16f2273f46447eaecfcd9f35d08df2d7
6
+ metadata.gz: 238b72c61f10bd169aaa4526ee7b4bd1ae805a758e3d1e6c224bd721a421cb6b988f379c9187d54e197b5d0e52aaec6905ed8caae187bca0cd232d3226208313
7
+ data.tar.gz: 5ecb308dd61c40b861d3cbe71ff67173546f9e3ea59fcb8d89d48aaf311a4c0a1ef5a0794eed256bd305158763e237a38b58f56b388abb5f88b608a1f2befb73
@@ -23,7 +23,7 @@ module Librarian
23
23
  def init
24
24
  copy_file environment.specfile_name
25
25
 
26
- if File.exists? ".gitignore"
26
+ if File.exist? ".gitignore"
27
27
  gitignore = File.read('.gitignore').split("\n")
28
28
  else
29
29
  gitignore = []
@@ -46,7 +46,7 @@ module Librarian
46
46
 
47
47
  specfile ||= Proc.new if block_given?
48
48
 
49
- if specfile.kind_of?(Pathname) and !File.exists?(specfile)
49
+ if specfile.kind_of?(Pathname) and !File.exist?(specfile)
50
50
  debug { "Specfile #{specfile} not found, using defaults" } unless specfile.nil?
51
51
  receiver(target).run(specfile, &default_specfile)
52
52
  else
@@ -81,7 +81,7 @@ module Librarian
81
81
  # implement the 'modulefile' syntax for Puppetfile
82
82
  def modulefile
83
83
  f = modulefile_path
84
- raise Error, "Modulefile file does not exist: #{f}" unless File.exists?(f)
84
+ raise Error, "Modulefile file does not exist: #{f}" unless File.exist?(f)
85
85
  File.read(f).lines.each do |line|
86
86
  regexp = /\s*dependency\s+('|")([^'"]+)\1\s*(?:,\s*('|")([^'"]+)\3)?/
87
87
  regexp =~ line && mod($2, $4)
@@ -91,10 +91,10 @@ module Librarian
91
91
  # implement the 'metadata' syntax for Puppetfile
92
92
  def metadata
93
93
  f = working_path.join('metadata.json')
94
- unless File.exists?(f)
94
+ unless File.exist?(f)
95
95
  msg = "Metadata file does not exist: #{f}"
96
96
  # try modulefile, in case we don't have a Puppetfile and we are using the default template
97
- if File.exists?(modulefile_path)
97
+ if File.exist?(modulefile_path)
98
98
  modulefile
99
99
  return
100
100
  else
@@ -139,7 +139,7 @@ module Librarian
139
139
  end
140
140
 
141
141
  def modulefile?
142
- File.exists?(modulefile)
142
+ File.exist?(modulefile)
143
143
  end
144
144
 
145
145
  def metadata
@@ -147,7 +147,7 @@ module Librarian
147
147
  end
148
148
 
149
149
  def metadata?
150
- File.exists?(metadata)
150
+ File.exist?(metadata)
151
151
  end
152
152
 
153
153
  def specfile
@@ -155,7 +155,7 @@ module Librarian
155
155
  end
156
156
 
157
157
  def specfile?
158
- File.exists?(specfile)
158
+ File.exist?(specfile)
159
159
  end
160
160
 
161
161
  def install_perform_step_copy!(found_path, install_path)
@@ -1,5 +1,5 @@
1
1
  module Librarian
2
2
  module Puppet
3
- VERSION = "4.0.0"
3
+ VERSION = "4.0.1"
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: 4.0.0
4
+ version: 4.0.1
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: 2023-02-22 00:00:00.000000000 Z
12
+ date: 2023-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: librarianp