Skip to content
This repository was archived by the owner on Sep 27, 2018. It is now read-only.

Commit 807c2dc

Browse files
committed
Scan Content-Disposition header for file names with both .gif and .png extensions, not just .png. Fixes bug with newer animated badges for projects with active builds.
1 parent e0402f7 commit 807c2dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/codeship/status.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize(uuid, options = {})
1414
end
1515

1616
def status
17-
image.scan(/status_(.*).png/).flatten.first.to_sym
17+
image.scan(/status_(.*).(png|gif)/).flatten.first.to_sym
1818
end
1919

2020
private

0 commit comments

Comments
 (0)