Skip to content

Commit 1c51d1c

Browse files
committed
Try to support Ruby >3.1
1 parent 91da803 commit 1c51d1c

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ permissions:
1111

1212
jobs:
1313
ruby-versions:
14-
uses: ruby/actions/.github/workflows/ruby_versions.yml@3fbf038d6f0d8043b914f923764c61bc2a114a77
14+
uses: ruby/actions/.github/workflows/ruby_versions.yml@f0adcbc13299b38a289a1c914af4ad137ca6bb54
1515
with:
1616
engine: all
17-
min_version: 3.2
17+
min_version: 3.1
1818

1919
test:
2020
needs: ruby-versions
@@ -25,12 +25,13 @@ jobs:
2525
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
2626

2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
- name: Set up Ruby
3030
uses: ruby/setup-ruby@v1
3131
with:
3232
ruby-version: ${{ matrix.ruby-version }}
3333
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34-
bundler-args: --without development
34+
- name: Install dependencies
35+
run: bundle install --without development
3536
- name: Quickdraw tests
3637
run: bundle exec qt -t 1 "./test/**/*.test.rb"

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GIT
22
remote: https://github.com/joeldrapper/literal.git
3-
revision: bd242e057b28c6d293cfb6a084e62c8b07f335fc
3+
revision: d8bc1be483a2a44aedb432433d549677457a22ad
44
specs:
5-
literal (1.5.0)
5+
literal (1.6.0)
66

77
GIT
88
remote: https://github.com/joeldrapper/quickdraw.git

lib/plume.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
require "plume/version"
4+
require 'set'
45
require "literal"
56

67
module Plume

lib/plume/ast/node.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def inspect
3838
"#<#{self.class.name}:#{object_id} #{prop_values&.join(", ")}>"
3939
end
4040

41-
def self.concrete(*, full_source:, **)
41+
def self.concrete(*a, full_source:, **kw)
4242
object = allocate
43-
object.send(:initialize, *, full_source:, **)
43+
object.send(:initialize, *a, full_source: full_source, **kw)
4444
object
4545
end
4646

plume.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212
spec.description = "Plume is a Ruby library that allows you to write SQLite's dialect of SQL with structured Ruby."
1313
spec.homepage = "https://github.com/fractaledmind/plume"
1414
spec.license = "MIT"
15-
spec.required_ruby_version = ">= 3.2.0"
15+
spec.required_ruby_version = ">= 3.1.0"
1616

1717
spec.metadata["homepage_uri"] = spec.homepage
1818
spec.metadata["source_code_uri"] = spec.homepage

0 commit comments

Comments
 (0)