Skip to content

Commit

Permalink
Merge pull request #100 from mvz/drop-ruby-2-7
Browse files Browse the repository at this point in the history
Drop support for Ruby 2.7
  • Loading branch information
mvz authored Dec 28, 2023
2 parents de260b2 + 055d85a commit 2825098
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

strategy:
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["3.0", "3.1", "3.2"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AllCops:
- 'devel/levitate.rb'
- 'devel/levitate_config.rb'
NewCops: enable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0

# Put development dependencies in the gemspec so rubygems.org knows about them
Gemspec/DevelopmentDependencies:
Expand Down
4 changes: 2 additions & 2 deletions lib/live_ast/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

module LiveAST
module Reader
UTF8_BOM = /\A\xef\xbb\xbf/.freeze
MAGIC_COMMENT = /\A(?:#!.*?\n)?\s*\#.*(?:en)?coding\s*[:=]\s*([^\s;]+)/.freeze
UTF8_BOM = /\A\xef\xbb\xbf/
MAGIC_COMMENT = /\A(?:#!.*?\n)?\s*\#.*(?:en)?coding\s*[:=]\s*([^\s;]+)/

def self.read(file)
contents = File.read(file, encoding: "BINARY")
Expand Down
2 changes: 1 addition & 1 deletion live_ast.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
DESC
spec.homepage = "https://github.com/mvz/live_ast"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.7.0"
spec.required_ruby_version = ">= 3.0.0"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/mvz/live_ast"
Expand Down

0 comments on commit 2825098

Please sign in to comment.