File tree 8 files changed +32
-31
lines changed
8 files changed +32
-31
lines changed Original file line number Diff line number Diff line change 9
9
strategy :
10
10
matrix :
11
11
ruby :
12
- - ' 3.0'
13
12
- ' 3.1'
14
13
- ' 3.2'
15
14
- ' 3.3'
16
-
15
+ - ' 3.4 '
17
16
steps :
18
17
- uses : actions/checkout@v3
19
18
- name : Set up Ruby
Original file line number Diff line number Diff line change 3
3
- rubocop-rspec
4
4
5
5
AllCops :
6
- TargetRubyVersion : 3.0
6
+ TargetRubyVersion : 3.1
7
7
NewCops : enable
8
8
9
9
Layout/LineLength :
Original file line number Diff line number Diff line change 1
- ## [ Unreleased ]
1
+ ## [ 0.2.0 ] - 2025-03-06
2
2
3
- - Drop ruby 2.7 support
3
+ - Drop Ruby 3.0 support
4
4
5
5
## [ 0.1.0] - 2022-12-09
6
6
Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- capybara_mock (0.1 .0 )
4
+ capybara_mock (0.2 .0 )
5
5
rack (>= 2.2.0 )
6
6
7
7
GEM
8
8
remote: https://rubygems.org/
9
9
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 )
12
12
ast (2.4.2 )
13
+ base64 (0.2.0 )
13
14
capybara (3.40.0 )
14
15
addressable
15
16
matrix
19
20
rack-test (>= 0.6.3 )
20
21
regexp_parser (>= 1.5 , < 3.0 )
21
22
xpath (~> 3.2 )
22
- concurrent-ruby (1.2.3 )
23
- cuprite (0.15 )
23
+ concurrent-ruby (1.3.5 )
24
+ cuprite (0.15.1 )
24
25
capybara (~> 3.0 )
25
- ferrum (~> 0.14 .0 )
26
+ ferrum (~> 0.15 .0 )
26
27
diff-lcs (1.5.1 )
27
- ferrum (0.14 )
28
+ ferrum (0.15 )
28
29
addressable (~> 2.5 )
29
30
concurrent-ruby (~> 1.1 )
30
31
webrick (~> 1.7 )
31
- websocket-driver (>= 0.6 , < 0.8 )
32
+ websocket-driver (~> 0.7 )
32
33
json (2.7.1 )
33
34
language_server-protocol (3.17.0.3 )
34
35
matrix (0.4.2 )
35
36
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 )
38
39
mini_portile2 (~> 2.8.2 )
39
40
racc (~> 1.4 )
40
41
parallel (1.24.0 )
41
42
parser (3.3.0.5 )
42
43
ast (~> 2.4.1 )
43
44
racc
44
45
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 )
47
48
rack (2.2.12 )
48
- rack-test (2.1 .0 )
49
+ rack-test (2.2 .0 )
49
50
rack (>= 1.3 )
50
51
rainbow (3.1.1 )
51
52
rake (13.1.0 )
52
- regexp_parser (2.9 .0 )
53
+ regexp_parser (2.10 .0 )
53
54
rexml (3.3.9 )
54
55
rspec (3.13.0 )
55
56
rspec-core (~> 3.13.0 )
90
91
rubocop-factory_bot (~> 2.22 )
91
92
ruby-progressbar (1.13.0 )
92
93
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
95
97
websocket-extensions (>= 0.1.0 )
96
98
websocket-extensions (0.1.5 )
97
99
xpath (3.2.0 )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
spec . description = 'CapybaraMock'
13
13
spec . homepage = 'https://github.com/railsware/capybara_mock'
14
14
spec . license = 'MIT'
15
- spec . required_ruby_version = '>= 3.0 .0'
15
+ spec . required_ruby_version = '>= 3.1 .0'
16
16
17
17
spec . metadata [ 'homepage_uri' ] = spec . homepage
18
18
spec . metadata [ 'source_code_uri' ] = 'https://github.com/railsware/capybara_mock'
Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ class << self
61
61
# @param method [String]
62
62
# @param path [String]
63
63
# @return [CapybaraMock::Stub]
64
- def stub_path ( method , path , &block )
64
+ def stub_path ( method , path , &)
65
65
url = File . join ( capybara_session . server . base_url , path )
66
- stub_request ( method , url , &block )
66
+ stub_request ( method , url , &)
67
67
end
68
68
69
69
# Stub capybara request for current session using url.
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
module CapybaraMock
4
- VERSION = '0.1 .0'
4
+ VERSION = '0.2 .0'
5
5
end
Original file line number Diff line number Diff line change 49
49
context 'with `.with`' do
50
50
subject ( :stub ) do
51
51
described_class . new ( :get , 'http://example.com' ) . with (
52
- query : query ,
53
- headers : headers ,
54
- body : body
52
+ query :,
53
+ headers :,
54
+ body :
55
55
)
56
56
end
57
57
63
63
{
64
64
method : 'GET' ,
65
65
url : 'http://example.com' ,
66
- query : query ,
67
- headers : headers ,
68
- body : body
66
+ query :,
67
+ headers :,
68
+ body :
69
69
}
70
70
end
71
71
You can’t perform that action at this time.
0 commit comments