Skip to content

Commit

Permalink
Add Ruby 3.0 to CI
Browse files Browse the repository at this point in the history
jekyll-feed will be [included in Fedora 34][pkg] which will also use [Ruby 3.0
as system Ruby interpreter][ruby]. This combination is known to work, so it
would make sense to add it to CI.

In Ruby 3.0, `rss` moved from default gem to a bundled gem, thus it must be
added as dependency when it is used.

[pkg]: https://src.fedoraproject.org/rpms/rubygem-jekyll-feed
[ruby]: https://fedoraproject.org/wiki/Changes/Ruby_3.0
  • Loading branch information
oturpe committed Feb 19, 2021
1 parent 329b2d8 commit edc2dc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
@@ -1,16 +1,16 @@
language: ruby
cache: bundler
rvm:
- &latest_ruby 2.7
- 3.0
- 2.7
- 2.5
env:
matrix:
- JEKYLL_VERSION="~> 3.9"
- JEKYLL_VERSION="~> 4.2"
matrix:
include:
- rvm: *latest_ruby
env: JEKYLL_VERSION="~> 3.9"
- rvm: *latest_ruby
exclude:
- rvm: 2.5
env: JEKYLL_VERSION="~> 4.2"
before_install:
- gem update --system
Expand Down
1 change: 1 addition & 0 deletions jekyll-feed.gemspec
Expand Up @@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "nokogiri", "~> 1.6"
spec.add_development_dependency "rake", "~> 12.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rss" if RUBY_VERSION >= '3.0.0'
spec.add_development_dependency "rubocop-jekyll", "~> 0.5"
spec.add_development_dependency "typhoeus", ">= 0.7", "< 2.0"
end

0 comments on commit edc2dc9

Please sign in to comment.