Skip to content

Commit c8644de

Browse files
committed
Make cookie options optional
1 parent c2c8205 commit c8644de

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.1.4] - 2026-01-27
2+
3+
- Make cookie options optional
4+
15
## [1.1.3] - 2026-01-21
26

37
- Add `set:` request mutator sugar

Gemfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
foobara-http-command-connector (1.1.3)
4+
foobara-http-command-connector (1.1.4)
55
foobara (>= 0.1.1, < 2.0.0)
66

77
GEM
@@ -58,7 +58,7 @@ GEM
5858
foobara-typescript-react-command-form-generator (< 2.0.0)
5959
foobara-typescript-remote-command-generator (< 2.0.0)
6060
foobify-rails-app (< 2.0.0)
61-
foobara (0.4.4)
61+
foobara (0.5.0)
6262
bigdecimal
6363
foobara-lru-cache (< 2.0.0)
6464
foobara-util (< 2.0.0)
@@ -123,10 +123,10 @@ GEM
123123
foobara-typescript-react-command-form-generator (1.1.1)
124124
foobara (>= 0.1.1, < 2.0.0)
125125
foobara-typescript-remote-command-generator (< 2.0.0)
126-
foobara-typescript-remote-command-generator (1.2.1)
126+
foobara-typescript-remote-command-generator (1.2.5)
127127
foobara (>= 0.1.16, < 2.0.0)
128128
foobara-files-generator (< 2.0.0)
129-
foobara-util (1.0.7)
129+
foobara-util (1.0.8)
130130
foobify-rails-app (0.0.10)
131131
foobara (>= 0.3.0, < 2.0.0)
132132
formatador (1.2.3)
@@ -174,7 +174,7 @@ GEM
174174
pp (0.6.3)
175175
prettyprint
176176
prettyprint (0.2.0)
177-
prism (1.8.0)
177+
prism (1.9.0)
178178
pry (0.16.0)
179179
coderay (~> 1.1)
180180
method_source (~> 1.0)
@@ -216,15 +216,15 @@ GEM
216216
diff-lcs (>= 1.2.0, < 2.0)
217217
rspec-support (~> 3.13.0)
218218
rspec-support (3.13.6)
219-
rubocop (1.82.1)
219+
rubocop (1.84.0)
220220
json (~> 2.3)
221221
language_server-protocol (~> 3.17.0.2)
222222
lint_roller (~> 1.1.0)
223223
parallel (~> 1.10)
224224
parser (>= 3.3.0.2)
225225
rainbow (>= 2.2.2, < 4.0)
226226
regexp_parser (>= 2.9.3, < 3.0)
227-
rubocop-ast (>= 1.48.0, < 2.0)
227+
rubocop-ast (>= 1.49.0, < 2.0)
228228
ruby-progressbar (~> 1.7)
229229
unicode-display_width (>= 2.4.0, < 4.0)
230230
rubocop-ast (1.49.0)

src/http/response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def cookies
1616
@cookies ||= []
1717
end
1818

19-
def add_cookie(cookie_name, cookie_value, cookie_opts)
19+
def add_cookie(cookie_name, cookie_value, **cookie_opts)
2020
cookies << Cookie.new(cookie_name, cookie_value, **cookie_opts)
2121
end
2222

src/http/response_mutators/move_attribute_to_cookie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def applicable?(response)
3030

3131
def mutate(response)
3232
cookie_value = response.body.delete(attribute_name)
33-
response.add_cookie(cookie_name, cookie_value, cookie_opts)
33+
response.add_cookie(cookie_name, cookie_value, **cookie_opts)
3434
end
3535

3636
def attribute_name

version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Foobara
22
module HttpCommandConnector
3-
VERSION = "1.1.3".freeze
3+
VERSION = "1.1.4".freeze
44
MINIMUM_RUBY_VERSION = ">= 3.4.0".freeze
55
end
66
end

0 commit comments

Comments
 (0)