Skip to content

Commit 6391476

Browse files
committed
Revert back to 3.0 compatible syntax. Add 3.0 to CI.
1 parent 51839ed commit 6391476

5 files changed

Lines changed: 11 additions & 22 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
ruby: ["3.1", "3.2", "3.3", "3.4", "jruby"]
21+
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4", "jruby"]
2222

2323
steps:
2424
- name: Checkout code

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins:
44

55
AllCops:
66
DisabledByDefault: false
7-
TargetRubyVersion: 3.1
7+
TargetRubyVersion: 3.0
88
NewCops: enable
99
SuggestExtensions: false
1010
Exclude:

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
source 'https://rubygems.org'
44

5+
gem 'nokogiri', '~> 1.17.0'
6+
57
gemspec

Gemfile.lock

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,9 @@ GEM
1616
language_server-protocol (3.17.0.4)
1717
lint_roller (1.1.0)
1818
method_source (1.1.0)
19-
nokogiri (1.18.8-aarch64-linux-gnu)
20-
racc (~> 1.4)
21-
nokogiri (1.18.8-aarch64-linux-musl)
22-
racc (~> 1.4)
23-
nokogiri (1.18.8-arm-linux-gnu)
24-
racc (~> 1.4)
25-
nokogiri (1.18.8-arm-linux-musl)
26-
racc (~> 1.4)
27-
nokogiri (1.18.8-arm64-darwin)
28-
racc (~> 1.4)
29-
nokogiri (1.18.8-java)
30-
racc (~> 1.4)
31-
nokogiri (1.18.8-x86_64-darwin)
32-
racc (~> 1.4)
33-
nokogiri (1.18.8-x86_64-linux-gnu)
34-
racc (~> 1.4)
35-
nokogiri (1.18.8-x86_64-linux-musl)
19+
mini_portile2 (2.8.9)
20+
nokogiri (1.17.2)
21+
mini_portile2 (~> 2.8.2)
3622
racc (~> 1.4)
3723
parallel (1.26.3)
3824
parser (3.3.7.4)
@@ -105,6 +91,7 @@ PLATFORMS
10591
x86_64-linux-musl
10692

10793
DEPENDENCIES
94+
nokogiri (~> 1.17.0)
10895
pry
10996
rake
11097
rspec (~> 3.0)
@@ -115,4 +102,4 @@ DEPENDENCIES
115102
yard (>= 0.5.8)
116103

117104
BUNDLED WITH
118-
2.6.8
105+
2.5.23

lib/xpath/union.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def expression
1515
:union
1616
end
1717

18-
def each(&)
19-
arguments.each(&)
18+
def each(&block)
19+
arguments.each(&block)
2020
end
2121

2222
def method_missing(*args) # rubocop:disable Style/MissingRespondToMissing

0 commit comments

Comments
 (0)