Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 25 additions & 23 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ GEM
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
addressable (2.9.2)
addressable (2.10.0)
public_suffix (>= 2.0.2, < 8.0)
ast (2.4.3)
axe-core-api (4.14.0)
Expand All @@ -86,9 +86,9 @@ GEM
bcrypt (3.1.22)
bigdecimal (4.1.3)
bindex (0.8.1)
bootsnap (1.26.1)
bootsnap (1.26.2)
msgpack (~> 1.5)
brakeman (8.1.0)
brakeman (8.1.1)
racc
builder (3.3.0)
bundler-audit (0.9.3)
Expand All @@ -107,7 +107,7 @@ GEM
xpath (~> 3.2)
coderay (1.1.3)
concurrent-ruby (1.3.8)
connection_pool (3.0.2)
connection_pool (3.0.3)
coveralls_reborn (1.0.0)
simplecov (>= 1.0)
term-ansicolor (>= 1.11)
Expand Down Expand Up @@ -143,7 +143,7 @@ GEM
feedbag (1.0.2)
addressable (~> 2.8)
nokogiri (~> 1.8, >= 1.8.2)
feedjira (4.0.3)
feedjira (4.0.4)
logger (>= 1.0, < 2)
loofah (>= 2.3.1, < 3)
sax-machine (>= 1.0, < 2)
Expand All @@ -163,8 +163,8 @@ GEM
fugit (>= 1.11.0)
railties (>= 6.1.0)
thor (>= 1.0.0)
hashdiff (1.2.2)
httparty (0.24.3)
hashdiff (1.3.0)
httparty (0.25.1)
csv
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
Expand Down Expand Up @@ -199,7 +199,7 @@ GEM
minitest (6.1.0)
drb (~> 2.0)
prism (>= 1.5, < 3)
mize (0.7.0)
mize (0.8.0)
msgpack (1.8.7)
multi_xml (0.9.1)
bigdecimal (>= 3.1, < 5)
Expand All @@ -217,7 +217,7 @@ GEM
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
parallel (2.3.0)
parser (3.3.13.0)
parser (3.3.14.0)
ast (~> 2.4.1)
racc
pg (1.7.0)
Expand All @@ -238,11 +238,11 @@ GEM
byebug (~> 13.0)
pry (>= 0.13, < 0.17)
public_suffix (7.0.5)
puma (8.1.1)
puma (8.1.2)
nio4r (~> 2.0)
raabro (1.5.0)
racc (1.8.1)
rack (3.2.8)
rack (3.2.9)
rack-session (2.1.2)
base64 (>= 0.1.0)
rack (>= 3.0.0)
Expand Down Expand Up @@ -298,7 +298,7 @@ GEM
tsort
readline (0.0.4)
reline
regexp_parser (2.13.1)
regexp_parser (2.13.4)
reline (0.7.0)
io-console (~> 0.5)
rexml (3.4.4)
Expand All @@ -325,7 +325,7 @@ GEM
rspec-support (3.13.8)
rspec_junit_formatter (0.8.0)
rspec-core (>= 3.13, < 4)
rubocop (1.92.2)
rubocop (1.92.3)
json (>= 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
Expand All @@ -336,9 +336,11 @@ GEM
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.51.0)
rubocop-ast (1.53.0)
ast (~> 2.4)
parser (>= 3.3.7.2)
prism (>= 1.7)
racc
rubocop-capybara (3.1.0)
lint_roller (~> 1.1)
rubocop (~> 1.89)
Expand Down Expand Up @@ -373,10 +375,10 @@ GEM
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sax-machine (1.3.2)
scout_apm (6.3.3)
scout_apm (6.4.0)
parser
securerandom (0.4.1)
selenium-webdriver (4.52.0)
selenium-webdriver (4.53.0)
base64 (~> 0.2)
logger (~> 1.4)
rubyzip (>= 1.2.2, < 4.0)
Expand All @@ -386,18 +388,18 @@ GEM
simplecov (1.3.2)
stimulus-rails (1.3.4)
railties (>= 6.0.0)
stripe (21.0.0)
stripe (21.1.0)
bigdecimal
logger
strong_migrations (2.8.0)
activerecord (>= 7.2)
sync (0.5.0)
term-ansicolor (1.11.3)
term-ansicolor (1.12.0)
tins (~> 1)
thor (1.5.0)
thread (0.2.2)
timeout (0.6.1)
tins (1.62.0)
tins (1.63.0)
bigdecimal
irb
mize (~> 0.6)
Expand All @@ -418,15 +420,15 @@ GEM
actionview (>= 8.0.0)
bindex (>= 0.4.0)
railties (>= 8.0.0)
webmock (3.34.0)
webmock (3.38.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
websocket (1.2.11)
websocket-driver (0.8.2)
websocket-driver (0.9.0)
base64
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
websocket-extensions (>= 0.2.0)
websocket-extensions (0.2.0)
will_paginate (4.0.1)
with_model (2.5.0)
activerecord (>= 8.0)
Expand Down
8 changes: 3 additions & 5 deletions spec/repositories/story_repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,12 @@ def create_feed(url: "http://blog.golang.org/feed.atom")
expect(described_class.extract_url(entry, feed)).to be_nil
end

it "preserves a structurally broken (but non-malicious) enclosure_url" do
it "returns nil for a structurally broken enclosure_url fallback" do
feed = double(url: "http://github.com")
# An unclosed bracket in the host is rejected outright by the parser.
entry = double(url: nil, enclosure_url: "http://[invalid")

# Only disallowed schemes get dropped. A merely broken URL is kept
# (normalize adds the trailing slash) so the bad value stays visible
# as a signal rather than being silently turned into nil.
expect(described_class.extract_url(entry, feed)).to eq("http://[invalid/")
expect(described_class.extract_url(entry, feed)).to be_nil
end

it "returns nil for an unparseable enclosure_url fallback" do
Expand Down
Loading