Skip to content

Commit

Permalink
fix: update thor dependency (#124)
Browse files Browse the repository at this point in the history
Co-authored-by: Lindsey Hattamer <lindsey.hattamer@oddball.io>

Co-authored-by: Lindsey Hattamer <lindsey.hattamer@oddball.io>
  • Loading branch information
f1337 and LindseySaari authored Aug 10, 2020
1 parent 0e7bc86 commit 54b3f85
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/pact/mock_service/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
module Pact
module MockService
class CLI < Thor
def self.exit_on_failure? # Thor 1.0 deprecation guard
false
end

PACT_FILE_WRITE_MODE_DESC = "`overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair." +
" Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file."
Expand Down
3 changes: 3 additions & 0 deletions lib/pact/mock_service/cli/custom_thor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class CLI < Thor
# `script --help` to display the help for the default task instead of the command list
#
class CustomThor < ::Thor
def self.exit_on_failure? # Thor 1.0 deprecation guard
false
end

no_commands do
def self.start given_args = ARGV, config = {}
Expand Down
4 changes: 3 additions & 1 deletion lib/pact/mock_service/cli/pidfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
module Pact
module MockService
class CLI < Thor
def self.exit_on_failure? # Thor 1.0 deprecation guard
false
end

class Pidfile

attr_accessor :pid_dir, :name, :pid

def initialize options
Expand Down
2 changes: 1 addition & 1 deletion pact-mock_service.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'rack', '~> 2.0'
gem.add_runtime_dependency 'rspec', '>=2.14'
gem.add_runtime_dependency 'find_a_port', '~> 1.0.1'
gem.add_runtime_dependency 'thor', '~> 0.19'
gem.add_runtime_dependency 'thor', '>= 0.19', '< 2.0'
gem.add_runtime_dependency 'json'
gem.add_runtime_dependency 'webrick', '~> 1.3'
gem.add_runtime_dependency 'term-ansicolor', '~> 1.0'
Expand Down

0 comments on commit 54b3f85

Please sign in to comment.