openvox 8.29.0 → 9.0.0.pre.alpha2

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.
@@ -16,12 +16,9 @@ module Puppet::Util::RDoc
16
16
 
17
17
  r = RDoc::RDoc.new
18
18
 
19
- # Documentation is rendered by RDoc's default generator using our custom
20
- # parser. The historical custom "puppet" generator and its HTML template
21
- # targeted RDoc 1.x and could not be loaded under any supported RDoc; the
22
- # template also carried a CC-BY-1.0 license, which is incompatible with
23
- # the Debian Free Software Guidelines. Both were removed.
24
- options = ["--quiet",
19
+ # specify our own format & where to output
20
+ options = ["--fmt", "puppet",
21
+ "--quiet",
25
22
  "--exclude", "/modules/[^/]*/spec/.*$",
26
23
  "--exclude", "/modules/[^/]*/files/.*$",
27
24
  "--exclude", "/modules/[^/]*/tests/.*$",
@@ -18,9 +18,6 @@ module Puppet::Util::SELinux
18
18
  S_IFDIR = 0o040000
19
19
  S_IFLNK = 0o120000
20
20
 
21
- @@mounts_cache = nil
22
- @@mounts_mtime = nil
23
-
24
21
  def self.selinux_support?
25
22
  return false unless defined?(Selinux)
26
23
  if Selinux.is_selinux_enabled == 1
@@ -262,16 +259,6 @@ module Puppet::Util::SELinux
262
259
 
263
260
  # Internal helper function to read and parse /proc/mounts
264
261
  def read_mounts
265
- current_mtime = begin
266
- File.mtime('/proc/mounts')
267
- rescue Errno::ENOENT, Errno::ENOTDIR
268
- nil
269
- end
270
-
271
- if @@mounts_cache && current_mtime && @@mounts_mtime == current_mtime
272
- return @@mounts_cache
273
- end
274
-
275
262
  mounts = ''.dup
276
263
  begin
277
264
  if File.method_defined? "read_nonblock"
@@ -305,9 +292,7 @@ module Puppet::Util::SELinux
305
292
 
306
293
  mntpoint[params[1]] = params[2]
307
294
  end
308
-
309
- @@mounts_mtime = current_mtime
310
- @@mounts_cache = mntpoint
295
+ mntpoint
311
296
  end
312
297
 
313
298
  # Internal helper function to return which type of filesystem a given file
data/lib/puppet/util.rb CHANGED
@@ -523,11 +523,12 @@ module Util
523
523
 
524
524
  module_function :thinmark
525
525
 
526
- PUPPET_STACK_INSERTION_FRAME = if RUBY_VERSION >= '3.4'
527
- /.*puppet_stack\.rb.*in.*'Puppet::Pops::PuppetStack\.stack'/
528
- else
529
- /.*puppet_stack\.rb.*in.*`stack'/
530
- end
526
+ # Matches the frame where Puppet::Pops::PuppetStack.stack appears in a Ruby
527
+ # backtrace. The format varies by Ruby version and implementation:
528
+ # Ruby 3.3: in `stack'
529
+ # Ruby 3.4+: in 'Puppet::Pops::PuppetStack.stack' (qualified for module method)
530
+ # JRuby 10+: in 'stack' (unqualified)
531
+ PUPPET_STACK_INSERTION_FRAME = /puppet_stack\.rb.*in ['`](?:Puppet::Pops::PuppetStack\.)?stack'/
531
532
 
532
533
  # utility method to get the current call stack and format it to a human-readable string (which some IDEs/editors
533
534
  # will recognize as links to the line numbers in the trace)
@@ -8,7 +8,7 @@
8
8
  # Raketasks and such to set the version based on the output of `git describe`
9
9
 
10
10
  module Puppet
11
- PUPPETVERSION = '8.29.0'
11
+ PUPPETVERSION = '9.0.0-alpha2'
12
12
  IMPLEMENTATION = 'openvox'
13
13
 
14
14
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvox
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.29.0
4
+ version: 9.0.0.pre.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenVox Project
@@ -143,22 +143,16 @@ dependencies:
143
143
  name: openfact
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - ">="
146
+ - - "~>"
147
147
  - !ruby/object:Gem::Version
148
148
  version: '5.0'
149
- - - "<"
150
- - !ruby/object:Gem::Version
151
- version: '7'
152
149
  type: :runtime
153
150
  prerelease: false
154
151
  version_requirements: !ruby/object:Gem::Requirement
155
152
  requirements:
156
- - - ">="
153
+ - - "~>"
157
154
  - !ruby/object:Gem::Version
158
155
  version: '5.0'
159
- - - "<"
160
- - !ruby/object:Gem::Version
161
- version: '7'
162
156
  - !ruby/object:Gem::Dependency
163
157
  name: ostruct
164
158
  requirement: !ruby/object:Gem::Requirement
@@ -1263,6 +1257,8 @@ files:
1263
1257
  - lib/puppet/util/psych_support.rb
1264
1258
  - lib/puppet/util/rdoc.rb
1265
1259
  - lib/puppet/util/rdoc/code_objects.rb
1260
+ - lib/puppet/util/rdoc/generators/puppet_generator.rb
1261
+ - lib/puppet/util/rdoc/generators/template/puppet/puppet.rb
1266
1262
  - lib/puppet/util/rdoc/parser.rb
1267
1263
  - lib/puppet/util/rdoc/parser/puppet_parser_core.rb
1268
1264
  - lib/puppet/util/rdoc/parser/puppet_parser_rdoc2.rb
@@ -1370,7 +1366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1370
1366
  - !ruby/object:Gem::Version
1371
1367
  version: 1.3.1
1372
1368
  requirements: []
1373
- rubygems_version: 4.0.16
1369
+ rubygems_version: 4.0.10
1374
1370
  specification_version: 4
1375
1371
  summary: OpenVox, a community implementation of Puppet -- an automated configuration
1376
1372
  management tool