Commit Graph

23 Commits

Author SHA1 Message Date
raucao 682f66f476 Allow selecting image type via Regexp
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
For example, SVG images might be of type "image/svg" or "image/svg+xml"
2024-08-14 16:13:50 +02:00
raucao 339508bf41 Don't break on icon size "any"
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
... and any other strings failing to match the "sizes" number format
for that matter
2024-08-14 15:46:58 +02:00
raucao 999bc49e2d Handle empty manifest values
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Fall back to HTML if possible, discard otherwise
2024-02-01 16:45:58 +02:00
Râu Cao 02fb119957 Update spec
continuous-integration/drone/push Build is passing
2023-09-15 21:00:27 +02:00
Râu Cao 8a32dcfbc7 Store correct list of available manifest properties
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-09-15 20:53:00 +02:00
basti 3d9bdb1cab Update spec/manifique/web_client_spec.rb
Co-authored-by: Garret Alfert <garret@5apps.com>
2020-06-09 14:14:54 +02:00
basti 4c36da46fe Improve handling of failed requests
This adds a custom exception class with an error type that can be more
easily used by clients. It also explicitly handles failed connections as
such.

closes #9
2020-06-09 10:48:26 +02:00
basti 7c89900c70 Ignore inadequate icon sources
Icons with data URLs as source are throwing exceptions when trying to
parse their type via the file extension. This fix ignores all icons with
data URLs to begin with.
2020-05-26 11:30:21 +02:00
basti e503ada44e Load additional icons from HTML
When a Web App Manifest is found and loaded, we still want to check HTML
for some additional icons that are usually not added to manifests.
2018-07-27 17:20:27 +02:00
basti d98c925a5a Add helper method for finding icons
closes #3
2018-07-13 13:00:55 +02:00
basti 44bf2404f6 Refactor icon parsing, add apple touch icons 2018-07-04 09:27:03 +02:00
basti cee7f7e174 Make client's internal methods private 2018-07-04 08:58:49 +02:00
basti 9042ca0b87 Parse mask icon from HTML 2018-07-02 12:48:46 -05:00
basti 7be7e45493 Parse icons from HTML 2018-07-02 12:39:27 -05:00
basti 08bdd0a18c Extract more metadata from HTML
And don't overwrite existing metadata properties
2018-07-02 11:54:58 -05:00
basti 39ae311acb Refactor metadata object and loading, parse HTML 2018-06-29 16:58:26 -07:00
basti b05cad0f3f Store manifest props as metadata props 2018-06-29 15:21:28 -07:00
basti 4c0d40bd34 Fetch and return metadata 2018-06-29 14:39:12 -07:00
basti 936aa38ff8 Handle missing manifest link 2018-06-29 10:39:58 -07:00
basti 466f0a3f59 Fix typo 2018-06-29 01:47:04 -07:00
basti 193319945a Discover Web App Manifest in HTML
... and return a hash of the JSON data.
2018-06-28 21:11:52 -07:00
basti ee49c0bfaf Successful requests 2018-06-28 17:35:07 -07:00
basti 180dfc482e Switch to RSpec 2018-06-28 17:23:09 -07:00