mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
Merge pull request #4992 from inspec/ns/bump_method_source_version
Bumps method_source dependency version
This commit is contained in:
commit
14a85eba93
2 changed files with 10 additions and 5 deletions
|
@ -27,11 +27,11 @@ Gem::Specification.new do |spec|
|
|||
spec.add_dependency "license-acceptance", ">= 0.2.13", "< 2.0"
|
||||
spec.add_dependency "thor", ">= 0.20", "< 2.0"
|
||||
spec.add_dependency "json_schemer", "~> 0.2.1"
|
||||
spec.add_dependency "method_source", "~> 0.8"
|
||||
spec.add_dependency "method_source", ">= 0.8", "< 2.0"
|
||||
spec.add_dependency "rubyzip", "~> 1.2", ">= 1.2.2"
|
||||
spec.add_dependency "rspec", "~> 3.9"
|
||||
spec.add_dependency "rspec-its", "~> 1.2"
|
||||
spec.add_dependency "pry", "~> 0"
|
||||
spec.add_dependency "pry", "~> 0.13"
|
||||
spec.add_dependency "hashie", "~> 3.4"
|
||||
spec.add_dependency "mixlib-log", "~> 3.0"
|
||||
spec.add_dependency "sslshake", "~> 1.2"
|
||||
|
|
|
@ -36,8 +36,13 @@ module Inspec
|
|||
end
|
||||
|
||||
# configure pry shell prompt
|
||||
Pry.config.prompt_name = "inspec"
|
||||
Pry.prompt = [proc { "#{readline_ignore("\e[1m\e[32m")}#{Pry.config.prompt_name}> #{readline_ignore("\e[0m")}" }]
|
||||
Pry::Prompt.add(
|
||||
:inspec,
|
||||
"inspec custom prompt"
|
||||
) do |_context, _nesting, _pry_instance, _sep|
|
||||
"#{readline_ignore("\e[1m\e[32m")}inspec> #{readline_ignore("\e[0m")}"
|
||||
end
|
||||
Pry.config.prompt = Pry::Prompt[:inspec]
|
||||
|
||||
# Add a help menu as the default intro
|
||||
Pry.hooks.add_hook(:before_session, "inspec_intro") do
|
||||
|
@ -64,7 +69,7 @@ module Inspec
|
|||
|
||||
pry.pager.open do |pager|
|
||||
pager.print pry.config.output_prefix
|
||||
Pry::ColorPrinter.pp(value, pager, Pry::Terminal.width! - 1)
|
||||
Pry::ColorPrinter.pp(value, pager, Pry::Output.new(pry).width - 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue