Skip to content

Commit

Permalink
Merge pull request #152 from tagliala/feature/drop-ruby-27-compatibility
Browse files Browse the repository at this point in the history
Drop Ruby 2.7 compatibility
  • Loading branch information
grosser committed Apr 8, 2024
2 parents 467e77a + d1ce8bd commit eee3f60
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', 'jruby-head']
ruby-version: ['3.0', '3.1', '3.2', '3.3', 'jruby-head']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Expand Up @@ -2,7 +2,7 @@ require:
- rubocop-rake

AllCops:
TargetRubyVersion: 2.7 # lowest supported version
TargetRubyVersion: 3.0 # lowest supported version
NewCops: enable

Layout/ArgumentAlignment:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

### Unreleased

### Version v1.18.0

* Drop Ruby 2.7 compatibility for parity with Premailer [#149](https://github.com/premailer/css_parser/pull/149)

### Version v1.17.1

* Improve security by using `File.read` instead of `IO.read` [#149](https://github.com/premailer/css_parser/pull/149)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
css_parser (1.17.1)
css_parser (1.18.0)
addressable

GEM
Expand Down
2 changes: 1 addition & 1 deletion css_parser.gemspec
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new name, CssParser::VERSION do |s|
s.author = 'Alex Dunae'
s.files = Dir.glob('lib/**/*') + ['MIT-LICENSE']
s.license = 'MIT'
s.required_ruby_version = '>= 2.7'
s.required_ruby_version = '>= 3.0'

s.metadata['changelog_uri'] = 'https://github.com/premailer/css_parser/blob/master/CHANGELOG.md'
s.metadata['source_code_uri'] = 'https://github.com/premailer/css_parser'
Expand Down
2 changes: 1 addition & 1 deletion lib/css_parser/parser.rb
Expand Up @@ -16,7 +16,7 @@ class CircularReferenceError < StandardError; end
# [<tt>import</tt>] Follow <tt>@import</tt> rules. Boolean, default is <tt>true</tt>.
# [<tt>io_exceptions</tt>] Throw an exception if a link can not be found. Boolean, default is <tt>true</tt>.
class Parser
USER_AGENT = "Ruby CSS Parser/#{CssParser::VERSION} (https://github.com/premailer/css_parser)"
USER_AGENT = "Ruby CSS Parser/#{CssParser::VERSION} (https://github.com/premailer/css_parser)".freeze
STRIP_CSS_COMMENTS_RX = %r{/\*.*?\*/}m.freeze
STRIP_HTML_COMMENTS_RX = /<!--|-->/m.freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/css_parser/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module CssParser
VERSION = '1.17.1'.freeze
VERSION = '1.18.0'.freeze
end

0 comments on commit eee3f60

Please sign in to comment.