Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI with latest yard #403

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion puppet-strings.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Gem::Specification.new do |s|
s.files = Dir['CHANGELOG.md', 'README.md', 'LICENSE', 'lib/**/*', 'exe/**/*']

s.add_runtime_dependency 'rgen', '~> 0.9'
s.add_runtime_dependency 'yard', '~> 0.9', '< 0.9.37'
s.add_runtime_dependency 'yard', '~> 0.9'
s.requirements << 'puppet, >= 7.0.0'
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
require 'spec_helper'
require 'puppet-strings/yard'

class NullLogger
def write(_message); end
end

describe PuppetStrings::Yard::Handlers::Ruby::DataTypeHandler, if: TEST_PUPPET_DATATYPES do
subject(:spec_subject) do
YARD::Parser::SourceParser.parse_string(source, :ruby)
Expand All @@ -19,7 +23,7 @@
end

def suppress_yard_logging
YARD::Logger.instance.io = nil
YARD::Logger.instance.io = NullLogger.new
end

describe 'parsing source without a data type definition' do
Expand Down
Loading