Skip to content

Commit

Permalink
Fixed #375
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Aug 1, 2020
1 parent 14f29a5 commit 71e5f64
Show file tree
Hide file tree
Showing 5 changed files with 1,317 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [4.2.5] - 2020-08-01
### Fixed
- Github TypeError exception with some urls [#375]

## [4.2.4] - 2020-07-06
### Fixed
- Ignore invalid urls instead throw an exception
Expand Down Expand Up @@ -74,7 +78,9 @@ Full library refactoring.
[#356]: https://github.com/oscarotero/Embed/issues/356
[#357]: https://github.com/oscarotero/Embed/issues/357
[#366]: https://github.com/oscarotero/Embed/issues/366
[#375]: https://github.com/oscarotero/Embed/issues/375

[4.2.5]: https://github.com/oscarotero/Embed/compare/v4.2.4...v4.2.5
[4.2.4]: https://github.com/oscarotero/Embed/compare/v4.2.3...v4.2.4
[4.2.3]: https://github.com/oscarotero/Embed/compare/v4.2.2...v4.2.3
[4.2.2]: https://github.com/oscarotero/Embed/compare/v4.2.1...v4.2.2
Expand Down
2 changes: 2 additions & 0 deletions src/Adapters/Github/Detectors/Code.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ private function fallback(): ?EmbedCode
//https://help.github.com/articles/3d-file-viewer/#embedding-your-model-elsewhere
return new EmbedCode(html('script', ['src' => "https://embed.githubusercontent.com/view/3d/{$username}/{$repo}/{$ref}/{$file}"]));
}

return null;
}
}
1 change: 1 addition & 0 deletions tests/PagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public function testGithub()
$this->assertEmbed('https://gist.github.com/oscarotero/7749998');
$this->assertEmbed('https://github.com/benbalter/dc-wifi-social/blob/master/bars.geojson');
$this->assertEmbed('https://github.com/skalnik/secret-bear-clip/blob/master/stl/clip.stl');
$this->assertEmbed('https://github.com/oscarotero/Embed/blob/master/composer.json');
}

public function testGoogle()
Expand Down

0 comments on commit 71e5f64

Please sign in to comment.