Skip to content

Commit 3cf808d

Browse files
committed
- Drop support for Ruby 2.x
1 parent 15b0c96 commit 3cf808d

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
LC_ALL: en_US.UTF-8 # consistent sort order
1313

1414
strategy:
15-
matrix: { ruby: ['2.7', '3.0', '3.1', head] }
15+
matrix: { ruby: ['3.0', '3.1', '3.2', head] }
1616

1717
steps:
1818
- name: Checkout code

.rubocop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ inherit_gem:
88
- rspec.yml
99

1010
AllCops:
11-
TargetRubyVersion: 2.7.0
11+
TargetRubyVersion: 3.0
1212
Exclude:
13-
- 'debug.rb'
1413
- 'dev/**/*'
1514

1615
# Allow methods that start with `get_` in some cases

gtx.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
1212
s.files = Dir['README.md', 'lib/**/*.*']
1313
s.homepage = 'https://github.com/dannyben/gtx'
1414
s.license = 'MIT'
15-
s.required_ruby_version = '>= 2.7.0'
15+
s.required_ruby_version = '>= 3.0'
1616

1717
s.metadata = {
1818
'bug_tracker_uri' => 'https://github.com/DannyBen/gtx/issues',

lib/gtx.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def parse(context = nil)
4646

4747
def eval_vars(string)
4848
string.gsub(/{{([^{].*?)}}/, '<%=\1%>')
49-
.gsub(/\\\}\\\}/, '}}')
50-
.gsub(/\\\{\\\{/, '{{')
49+
.gsub('\\}\\}', '}}')
50+
.gsub('\\{\\{', '{{')
5151
end
5252
end

0 commit comments

Comments
 (0)