Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Ruby < 2.4 #1695

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 2.0
TargetRubyVersion: 2.5
DisplayCopNames: true
Exclude:
- "tasks/**/*"
Expand Down
15 changes: 4 additions & 11 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,15 @@ gem 'rake'

gem 'minitest', '>= 5.0'
gem 'minitest-power_assert'
gem 'power_assert', '~> 1.2'
gem 'power_assert', '~> 2.0.1'

gem 'parallel', '~> 1.13.0' if RUBY_VERSION < '2.2.0'
gem 'rubocop', '~> 0.49.1'

# don't try to install redcarpet under jruby
gem 'redcarpet', :platforms => :ruby
gem 'redcarpet', platforms: :ruby

# Profiling
if RUBY_VERSION >= '2.3.0'
gem 'memory_profiler', :require => false
end
gem 'memory_profiler', require: false

# Needed for a Rake task
gem 'git'
Expand All @@ -32,11 +29,7 @@ group :development do
gem 'github-markup'

# for visual tests
if RUBY_VERSION < '2.2.0'
gem 'sinatra', '~> 1.4.8'
else
gem 'sinatra'
end
gem 'sinatra'

# Ruby 3 no longer ships with a web server
gem 'puma' if RUBY_VERSION >= '3'
Expand Down
2 changes: 1 addition & 1 deletion rouge.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.files = Dir['Gemfile', 'LICENSE', 'rouge.gemspec', 'lib/**/*.rb', 'lib/**/*.yml', 'bin/rougify', 'lib/rouge/demos/*']
s.executables = %w(rougify)
s.licenses = ['MIT', 'BSD-2-Clause']
s.required_ruby_version = '>= 2.0'
s.required_ruby_version = '>= 2.5'
s.metadata = {
"bug_tracker_uri" => "https://github.com/rouge-ruby/rouge/issues",
"changelog_uri" => "https://github.com/rouge-ruby/rouge/blob/master/CHANGELOG.md",
Expand Down