From bf3ce699a3bf7863ca9f703516e8d7a1501abb24 Mon Sep 17 00:00:00 2001 From: "Michael R. Fleet" Date: Wed, 12 Aug 2020 02:08:32 -0400 Subject: [PATCH] fix: update thor dependency (#218) Co-authored-by: Lindsey Hattamer Co-authored-by: Lindsey Hattamer --- lib/pact/cli.rb | 3 +++ pact.gemspec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pact/cli.rb b/lib/pact/cli.rb index 3038f53a..c8949d88 100755 --- a/lib/pact/cli.rb +++ b/lib/pact/cli.rb @@ -4,6 +4,9 @@ module Pact class CLI < Thor + def self.exit_on_failure? # Thor 1.0 deprecation guard + false + end desc 'verify', "Verify a pact" method_option :pact_helper, aliases: "-h", desc: "Pact helper file", :required => true diff --git a/pact.gemspec b/pact.gemspec index 0a063042..6d02383e 100644 --- a/pact.gemspec +++ b/pact.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |gem| gem.add_runtime_dependency 'rspec', '~> 3.0' gem.add_runtime_dependency 'rack-test', '>= 0.6.3', '< 2.0.0' - gem.add_runtime_dependency 'thor', '~> 0.20' + gem.add_runtime_dependency 'thor', '>= 0.20', '< 2.0' gem.add_runtime_dependency 'webrick', '~> 1.3' gem.add_runtime_dependency 'term-ansicolor', '~> 1.0'