65 Commits

Author SHA1 Message Date
57c8c6a46a
Change license and main author
With permission from Sebastian
2024-02-02 12:30:55 +02:00
9afb055115
Remove overlooked fixture file 2024-02-02 12:30:54 +02:00
e437af34e7 Merge pull request 'Handle empty manifest values' (#4) from feature/handle_empty_strings into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4
Reviewed-by: galfert <garret.alfert@gmail.com>
2024-02-02 10:21:47 +00:00
999bc49e2d
Handle empty manifest values
All checks were successful
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
8d79113438
Move all metadata parsing to Metadata class
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-15 21:40:33 +02:00
Râu Cao
02fb119957
Update spec
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-15 21:00:27 +02:00
Râu Cao
79e3fbdb21
Don't filter out icons with a purpose by default
Some checks failed
continuous-integration/drone/push Build is failing
2023-09-15 20:56:46 +02:00
Râu Cao
db7b202876
Fix icons accessor being overwritten by search
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-15 20:55:38 +02:00
59e4c9fb6a Merge pull request 'Store correct list of available manifest properties' (#3) from bugfix/empty_properties into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #3
2023-09-15 18:53:42 +00:00
Râu Cao
8a32dcfbc7
Store correct list of available manifest properties
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-09-15 20:53:00 +02:00
Râu Cao
e46f8322d4
Update CI badge
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-15 20:24:17 +02:00
5526b065d8 Merge pull request 'Update dependencies' (#1) from chore/upgrade_dependencies into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #1
2023-09-15 18:14:16 +00:00
591d661bff Merge pull request 'Remove Travis CI config, set up Drone CI' (#2) from dev/drone_ci into chore/upgrade_dependencies
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Reviewed-on: #2
2023-09-15 18:13:29 +00:00
Râu Cao
60d463c0bb
Add Drone CI config
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-09-15 20:11:26 +02:00
Râu Cao
e89b848556
Remove Travis CI config 2023-09-15 20:03:47 +02:00
Râu Cao
b57a8e8717
Update dependencies 2023-09-15 20:00:59 +02:00
eed9ee4583
Merge pull request #12 from 5apps/feature/custom_exceptions
Improve handling of failed requests
2020-06-09 14:16:02 +02:00
3d9bdb1cab
Update spec/manifique/web_client_spec.rb
Co-authored-by: Garret Alfert <garret@5apps.com>
2020-06-09 14:14:54 +02:00
fa9f0b785e
Add CI badge to README 2020-06-09 10:59:14 +02:00
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
c5d5c123a6
Merge pull request #10 from 5apps/bugfix/ignore_inadequate_icon_sources
Ignore inadequate icon sources
2020-05-26 16:56:44 +02:00
8826b1d672
Guard against empty strings
As suggested by @galfert
2020-05-26 16:27:55 +02:00
5280a24f4b
Fix link 2020-05-26 12:37:11 +02:00
5de24e9fc4
Merge pull request #11 from 5apps/chore/travis
Update Travis config
2020-05-26 12:35:12 +02:00
33134c12f4
Update Travis config 2020-05-26 12:32:19 +02:00
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
ae5c02b7ed
Merge pull request #5 from 5apps/dependabot/bundler/nokogiri-1.10.8
Bump nokogiri from 1.10.4 to 1.10.8
2020-02-29 11:11:54 -05:00
fa2ac7c5aa
Merge pull request #6 from 5apps/dependabot/bundler/rake-tw-13.0
Update rake requirement from ~> 10.0 to ~> 13.0
2020-02-29 11:11:38 -05:00
dependabot[bot]
f4658f9df2
Update rake requirement from ~> 10.0 to ~> 13.0
Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compare/v10.5.0...v13.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-29 12:04:51 +00:00
dependabot[bot]
24792d3b15
Bump nokogiri from 1.10.4 to 1.10.8
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.4 to 1.10.8.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.4...v1.10.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-25 11:38:44 +00:00
a014427848
Update nokogiri
Fixes a serious security vuln
2019-08-29 15:57:38 +02:00
fbb14be466
Add todo 2019-08-29 15:51:29 +02:00
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
6cbcbdb54a Remove obsolete require 2018-07-14 00:34:28 +02:00
857533eb6c Add quick examples for icon selection to README 2018-07-13 13:11:42 +02:00
c98efb9171 Remove obsolete require 2018-07-13 13:05:01 +02:00
d98c925a5a Add helper method for finding icons
closes #3
2018-07-13 13:00:55 +02:00
44bf2404f6 Refactor icon parsing, add apple touch icons 2018-07-04 09:27:03 +02:00
87baa5960c Turn implicitly unique arrays into sets 2018-07-04 09:26:05 +02:00
cee7f7e174 Make client's internal methods private 2018-07-04 08:58:49 +02:00
3f6f79c111 Make README useful
closes #2
2018-07-04 08:51:13 +02:00
14b1f5befe Don't fail silently when parsing manifest JSON
Also, explicitly require json stdlib, so it's definitely loaded in all
environments.
2018-07-04 08:49:58 +02:00
6bfbc0809b Remove obsolete nitlink dep
Turns out we don't need to parse link headers after all.
2018-07-04 08:20:05 +02:00
909ff31b12 Downgrade faraday, because Ruby gems
We have unsolvable bundle conflicts in our Rails app with manifique,
because some high-profile gems still depends on old-af faraday versions
and explicitly forbid newer ones.
2018-07-04 08:16:49 +02:00
25d038a0de Swap actual license document
Switched to AGPL after creating the gem, but forgot to change the
LICENSE file.
2018-07-03 13:08:39 +02:00
9042ca0b87 Parse mask icon from HTML 2018-07-02 12:48:46 -05:00
7be7e45493 Parse icons from HTML 2018-07-02 12:39:27 -05:00
08bdd0a18c Extract more metadata from HTML
And don't overwrite existing metadata properties
2018-07-02 11:54:58 -05:00
39ae311acb Refactor metadata object and loading, parse HTML 2018-06-29 16:58:26 -07:00
b05cad0f3f Store manifest props as metadata props 2018-06-29 15:21:28 -07:00