puppet-strings 4.1.1 → 4.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a436988d26135b32aebfa60a1629c0bb0abe3901498c323ba626720920adb6a5
4
- data.tar.gz: 505f15e76bfa4fc30f9f0a3effd3fa6869c28c9c62d824fe84bd0a463a8ae57d
3
+ metadata.gz: efe57a8ba9a1dccb2601bdbb8eb3f888ce070975e23fdfe84fe55c1703738278
4
+ data.tar.gz: 2946e685195f4978758abdc2afb701e64f48832c971785b8e36a1eaa1d032232
5
5
  SHA512:
6
- metadata.gz: 863c8107391d017e15ef16d94b834e7cccf5c6b64e2026f20bd92aa38ba88a21ef635dfe2b80f5ad5008f381fe797368b7d0cf56bb4688a72fd0ddc23230ab49
7
- data.tar.gz: 12f98c88971353202a5656798c2c9762b8e4b6806258d89ffbcaade4b84abed6957a045df181da4500e870b170c324f3621269c52f465060464db2b09e067063
6
+ metadata.gz: 4781c1e297505eb6a19893143720116e626763eed621013576feffd0e62fc1ecc39354f1f917807b36faa583f1d98d96bd579b0462b78da262fb4b175a356b82
7
+ data.tar.gz: e6e26d0ab26a94c768cbc0003a39151861006744c682f9fdfa96e8790a890c722d53e0dba4965d62f3801bc038dc65911526c9b92f7c51dd6d0605dd1c1be865
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
 
6
6
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
7
7
 
8
+ ## [v4.1.2](https://github.com/puppetlabs/puppet-strings/tree/v4.1.2) - 2023-12-05
9
+
10
+ [Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/v4.1.1...v4.1.2)
11
+
12
+ ### Fixed
13
+
14
+ - Revert "(maint) - fix rubocop" Leading argument with delegation syntax not supported with ruby 2.7.0 [#376](https://github.com/puppetlabs/puppet-strings/pull/376) ([jordanbreen28](https://github.com/jordanbreen28))
15
+
8
16
  ## [v4.1.1](https://github.com/puppetlabs/puppet-strings/tree/v4.1.1) - 2023-11-22
9
17
 
10
18
  [Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/v4.1.0...v4.1.1)
@@ -66,7 +66,7 @@ module PuppetStrings::Describe
66
66
  targetlength = 48
67
67
  shortento = targetlength - 4
68
68
  contentstring = object[:docstring][:text]
69
- end_of_line = contentstring.index("\n") # "." gives closer results to old describeb, but breaks for '.k5login'
69
+ end_of_line = contentstring.index("\n") # "." gives closer results to old describeb, but breaks for '.k5login'
70
70
  contentstring = contentstring[0..end_of_line] unless end_of_line.nil?
71
71
  contentstring = "#{contentstring[0..shortento]} ..." if contentstring.length > targetlength
72
72
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PuppetStrings
4
- VERSION = '4.1.1'
4
+ VERSION = '4.1.2'
5
5
  end
@@ -8,7 +8,7 @@ class PuppetStrings::Yard::CodeObjects::Functions < PuppetStrings::Yard::CodeObj
8
8
  # @param [Symbol] type The function type to get the group for.
9
9
  # @return Returns the singleton instance of the group.
10
10
  def self.instance(type)
11
- super("puppet_functions_#{type}".to_sym)
11
+ super(:"puppet_functions_#{type}")
12
12
  end
13
13
 
14
14
  # Gets the display name of the group.
@@ -8,7 +8,7 @@ class PuppetStrings::Yard::CodeObjects::Providers < PuppetStrings::Yard::CodeObj
8
8
  # @param [String] type The resource type name for the provider.
9
9
  # @return Returns the singleton instance of the group.
10
10
  def self.instance(type)
11
- super("puppet_providers_#{type}".to_sym)
11
+ super(:"puppet_providers_#{type}")
12
12
  end
13
13
 
14
14
  # Gets the display name of the group.
@@ -169,7 +169,7 @@ class PuppetStrings::Yard::CodeObjects::Type < PuppetStrings::Yard::CodeObjects:
169
169
  # render-time. For now, this should re-resolve on every call.
170
170
  # may be able to memoize this
171
171
  def providers
172
- providers = YARD::Registry.all("puppet_providers_#{name}".to_sym)
172
+ providers = YARD::Registry.all(:"puppet_providers_#{name}")
173
173
  return providers if providers.empty?
174
174
 
175
175
  providers.first.children
@@ -75,8 +75,8 @@ class PuppetStrings::Yard::Tags::OverloadTag < YARD::Tags::Tag
75
75
  # @param [Array] args The args passed to the method.
76
76
  # @param block The block passed to the method.
77
77
  # @return Returns what the method call on the object would return.
78
- def method_missing(method_name, ...)
79
- return object.send(method_name, ...) if object.respond_to? method_name
78
+ def method_missing(method_name, *args, &block)
79
+ return object.send(method_name, *args, &block) if object.respond_to? method_name
80
80
 
81
81
  super
82
82
  end
@@ -35,7 +35,7 @@ module PuppetStrings::Yard::Util
35
35
  # @return [Array] Returns an array of tag hashes.
36
36
  def self.tags_to_hashes(tags)
37
37
  # Skip over the API tags that are public
38
- tags.select { |t| (t.tag_name != 'api' || t.text != 'public') }.map do |t|
38
+ tags.select { |t| t.tag_name != 'api' || t.text != 'public' }.map do |t|
39
39
  next t.to_hash if t.respond_to?(:to_hash)
40
40
 
41
41
  tag = { tag_name: t.tag_name }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-strings
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-22 00:00:00.000000000 Z
11
+ date: 2023-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rgen