Skip to content

Commit 3d289f5

Browse files
authored
Merge pull request #17 from railsware/drop-ruby-3-0
Drop Ruby 3.0 support
2 parents bf63851 + 299db59 commit 3d289f5

File tree

8 files changed

+32
-31
lines changed

8 files changed

+32
-31
lines changed

.github/workflows/main.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ jobs:
99
strategy:
1010
matrix:
1111
ruby:
12-
- '3.0'
1312
- '3.1'
1413
- '3.2'
1514
- '3.3'
16-
15+
- '3.4'
1716
steps:
1817
- uses: actions/checkout@v3
1918
- name: Set up Ruby

.rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require:
33
- rubocop-rspec
44

55
AllCops:
6-
TargetRubyVersion: 3.0
6+
TargetRubyVersion: 3.1
77
NewCops: enable
88

99
Layout/LineLength:

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## [Unreleased]
1+
## [0.2.0] - 2025-03-06
22

3-
- Drop ruby 2.7 support
3+
- Drop Ruby 3.0 support
44

55
## [0.1.0] - 2022-12-09
66

Gemfile.lock

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
PATH
22
remote: .
33
specs:
4-
capybara_mock (0.1.0)
4+
capybara_mock (0.2.0)
55
rack (>= 2.2.0)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
addressable (2.8.6)
11-
public_suffix (>= 2.0.2, < 6.0)
10+
addressable (2.8.7)
11+
public_suffix (>= 2.0.2, < 7.0)
1212
ast (2.4.2)
13+
base64 (0.2.0)
1314
capybara (3.40.0)
1415
addressable
1516
matrix
@@ -19,37 +20,37 @@ GEM
1920
rack-test (>= 0.6.3)
2021
regexp_parser (>= 1.5, < 3.0)
2122
xpath (~> 3.2)
22-
concurrent-ruby (1.2.3)
23-
cuprite (0.15)
23+
concurrent-ruby (1.3.5)
24+
cuprite (0.15.1)
2425
capybara (~> 3.0)
25-
ferrum (~> 0.14.0)
26+
ferrum (~> 0.15.0)
2627
diff-lcs (1.5.1)
27-
ferrum (0.14)
28+
ferrum (0.15)
2829
addressable (~> 2.5)
2930
concurrent-ruby (~> 1.1)
3031
webrick (~> 1.7)
31-
websocket-driver (>= 0.6, < 0.8)
32+
websocket-driver (~> 0.7)
3233
json (2.7.1)
3334
language_server-protocol (3.17.0.3)
3435
matrix (0.4.2)
3536
mini_mime (1.1.5)
36-
mini_portile2 (2.8.6)
37-
nokogiri (1.16.5)
37+
mini_portile2 (2.8.8)
38+
nokogiri (1.18.3)
3839
mini_portile2 (~> 2.8.2)
3940
racc (~> 1.4)
4041
parallel (1.24.0)
4142
parser (3.3.0.5)
4243
ast (~> 2.4.1)
4344
racc
4445
prism (0.24.0)
45-
public_suffix (5.0.4)
46-
racc (1.7.3)
46+
public_suffix (6.0.1)
47+
racc (1.8.1)
4748
rack (2.2.12)
48-
rack-test (2.1.0)
49+
rack-test (2.2.0)
4950
rack (>= 1.3)
5051
rainbow (3.1.1)
5152
rake (13.1.0)
52-
regexp_parser (2.9.0)
53+
regexp_parser (2.10.0)
5354
rexml (3.3.9)
5455
rspec (3.13.0)
5556
rspec-core (~> 3.13.0)
@@ -90,8 +91,9 @@ GEM
9091
rubocop-factory_bot (~> 2.22)
9192
ruby-progressbar (1.13.0)
9293
unicode-display_width (2.5.0)
93-
webrick (1.8.2)
94-
websocket-driver (0.7.6)
94+
webrick (1.9.1)
95+
websocket-driver (0.7.7)
96+
base64
9597
websocket-extensions (>= 0.1.0)
9698
websocket-extensions (0.1.5)
9799
xpath (3.2.0)

capybara_mock.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212
spec.description = 'CapybaraMock'
1313
spec.homepage = 'https://github.com/railsware/capybara_mock'
1414
spec.license = 'MIT'
15-
spec.required_ruby_version = '>= 3.0.0'
15+
spec.required_ruby_version = '>= 3.1.0'
1616

1717
spec.metadata['homepage_uri'] = spec.homepage
1818
spec.metadata['source_code_uri'] = 'https://github.com/railsware/capybara_mock'

lib/capybara_mock.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class << self
6161
# @param method [String]
6262
# @param path [String]
6363
# @return [CapybaraMock::Stub]
64-
def stub_path(method, path, &block)
64+
def stub_path(method, path, &)
6565
url = File.join(capybara_session.server.base_url, path)
66-
stub_request(method, url, &block)
66+
stub_request(method, url, &)
6767
end
6868

6969
# Stub capybara request for current session using url.

lib/capybara_mock/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module CapybaraMock
4-
VERSION = '0.1.0'
4+
VERSION = '0.2.0'
55
end

spec/capybara_mock/stub_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
context 'with `.with`' do
5050
subject(:stub) do
5151
described_class.new(:get, 'http://example.com').with(
52-
query: query,
53-
headers: headers,
54-
body: body
52+
query:,
53+
headers:,
54+
body:
5555
)
5656
end
5757

@@ -63,9 +63,9 @@
6363
{
6464
method: 'GET',
6565
url: 'http://example.com',
66-
query: query,
67-
headers: headers,
68-
body: body
66+
query:,
67+
headers:,
68+
body:
6969
}
7070
end
7171

0 commit comments

Comments
 (0)