From d5e79801ca85e3beb6397ea06e0336229484b9be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20A=C3=9Fmann?= Date: Thu, 17 Feb 2022 07:35:25 +0100 Subject: [PATCH] enable using bitbot with ruby 3 webrick is not default shipped with ruby 3 anymore, adding it to the Gemfile. --- .ruby-version | 1 + Gemfile | 1 + bitbot.gemspec | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .ruby-version diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..fd2a018 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.1.0 diff --git a/Gemfile b/Gemfile index 47a30b8..0b91a83 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,7 @@ gemspec gem "rails", require: false # only used to test the generator gem "wit_ruby" +gem "webrick" # test dependencies gem "rspec" diff --git a/bitbot.gemspec b/bitbot.gemspec index 21b972a..c952aa7 100644 --- a/bitbot.gemspec +++ b/bitbot.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |s| s.license = "MIT" s.files = Dir["{lib}/**/*"] + ["MIT.LICENSE", "README.md"] - s.required_ruby_version = "~> 2.4" + s.required_ruby_version = ">= 2.4" s.add_dependency "rack" s.add_dependency "redis" s.add_dependency "activesupport" # TODO: move to remove this.