ruby-agent.gemspec in contrast-agent-6.13.0 vs ruby-agent.gemspec in contrast-agent-6.14.0
- old
+ new
@@ -1,9 +1,10 @@
# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true
require_relative './lib/contrast/agent/version'
+require_relative './lib/contrast/config/yaml_file'
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
# Add the team as authors of the Agent
@@ -183,10 +184,10 @@
spec.bindir = 'exe'
# Keep cs__common first, it handles funchook.h right now.
spec.extensions = Dir['ext/cs__common/extconf.rb', 'ext/**/extconf.rb']
spec.require_paths = ['lib']
- unless File.exist?(File.join(Dir.pwd, 'contrast_security.yaml'))
+ unless Contrast::Config::YamlFile.created?
spec.post_install_message = 'To generate the required contrast_security.yaml file you can run: '\
'bundle exec rake contrast:config:create'
end
add_authors(spec)