Skip to content

Commit

Permalink
Adding Ruby 3.3 support and fix tests (#73)
Browse files Browse the repository at this point in the history
* Support for Ruby 3.3 and fix tests

* Ruby 3.3 also specified in .ruby-version
  • Loading branch information
stevegeek authored Mar 28, 2024
1 parent 455f225 commit b2f3da1
Show file tree
Hide file tree
Showing 5 changed files with 6 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 @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.2']
ruby-version: ['3.2', '3.3']

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ inherit_from:
- "https://www.goodcop.style/tabs.yml"

AllCops:
TargetRubyVersion: 3.2
TargetRubyVersion: 3.3

Naming/MethodName:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0-preview3
3.3.0
4 changes: 2 additions & 2 deletions test/literal/attributes.test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@
end
end

def build_attributes_class(&)
def build_attributes_class(&block)
Class.new do
extend Literal::Attributes
class_eval(&)
class_eval(&block)
end
end
1 change: 1 addition & 0 deletions test/literal/let.test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class Foo
extend Literal::Modifiers
extend Literal::Memoization
memoize def bar(key)
if key == 1
nil
Expand Down

0 comments on commit b2f3da1

Please sign in to comment.