Skip to content

Commit

Permalink
add support for Ruby 3.0
Browse files Browse the repository at this point in the history
With ruby 3.0 `rexml` is not installed by default. [It was moved to a
gem][1]. Adding the gem as a dependency fixed the specs on ruby 3.0.

Also switch TravisCI environment to bionic, do not require sudo.
On focal Ruby 2.7 can not be installed without additional
packages. With bionic CI is green from 2.3 up to 3.0.

[1]: https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
  • Loading branch information
dsander authored Jan 30, 2021
1 parent 66f9cfc commit 48f36cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
sudo: required
before_install: gem update --system
dist: trusty
dist: bionic
language: ruby
rvm:
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
- 3.0

env:
global:
Expand Down
1 change: 1 addition & 0 deletions pronto.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency('httparty', '>= 0.13.7')
s.add_runtime_dependency('octokit', '~> 4.7', '>= 4.7.0')
s.add_runtime_dependency('rainbow', '>= 2.2', '< 4.0')
s.add_runtime_dependency('rexml', '~> 3.2')
s.add_runtime_dependency('rugged', '>= 0.23.0', '< 1.1.0')
s.add_runtime_dependency('thor', '>= 0.20.3', '< 2.0')
s.add_development_dependency('bundler', '>= 1.15')
Expand Down

0 comments on commit 48f36cf

Please sign in to comment.