Compare commits
6 Commits
v1.0.0
...
e1d514d905
| Author | SHA1 | Date | |
|---|---|---|---|
| e1d514d905 | |||
|
339508bf41
|
|||
|
45a43ce73d
|
|||
|
f31800a2d4
|
|||
|
f46d5b938d
|
|||
|
1bdc3be17f
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@
|
||||
/spec/reports/
|
||||
/tmp/
|
||||
.rspec_status
|
||||
*.gem
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
manifique (1.0.0)
|
||||
manifique (1.0.1)
|
||||
faraday (~> 2.9.0)
|
||||
faraday-follow_redirects (= 0.3.0)
|
||||
nokogiri (~> 1.16.0)
|
||||
|
||||
@@ -47,7 +47,7 @@ module Manifique
|
||||
end
|
||||
|
||||
if options[:sizes]
|
||||
results.reject! { |r| r["sizes"].nil? }
|
||||
results.reject! { |r| r["sizes"].nil? || r["sizes"].match(/(\d+)x/).nil? }
|
||||
results.sort! { |a, b| sizes_to_i(b["sizes"]) <=> sizes_to_i(a["sizes"]) }
|
||||
|
||||
if icon = select_exact_size(results, options[:sizes])
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module Manifique
|
||||
VERSION = "1.0.0"
|
||||
VERSION = "1.0.1"
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
||||
spec.authors = ["Râu Cao"]
|
||||
spec.email = ["raucao@kosmos.org"]
|
||||
spec.summary = "Fetch metadata and icons of Web applications"
|
||||
spec.description = "Fetch and process metadata and icons of Web applications from Web App Manifest files, with fallbacks to HTML elements/attributes}"
|
||||
spec.description = "Fetch and process metadata and icons of Web applications from Web App Manifest files, with fallbacks to HTML elements/attributes"
|
||||
spec.homepage = "https://gitea.kosmos.org/5apps/manifique"
|
||||
spec.metadata = {
|
||||
"bug_tracker_uri" => "https://gitea.kosmos.org/5apps/manifique/issues",
|
||||
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
||||
spec.bindir = "exe"
|
||||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
||||
spec.require_paths = ["lib"]
|
||||
spec.required_ruby_version = '>= 3.1.4'
|
||||
|
||||
spec.add_development_dependency "bundler", "~> 2.5.5"
|
||||
spec.add_development_dependency "rake", "~> 13.1.0"
|
||||
|
||||
@@ -105,6 +105,7 @@ def icon_fixtures
|
||||
{"src"=>"/application_icon_x228.png", "sizes"=>"228x228", "type"=>"image/png"},
|
||||
{"src"=>"/application_icon_x196.png", "sizes"=>"196x196", "type"=>"image/png"},
|
||||
{"src"=>"/application_icon_x192.png", "sizes"=>"192x192", "type"=>"image/png"},
|
||||
{"src"=>"/icon-maskable.svg", "type"=>"image/svg+xml", "sizes"=>"any", "purpose"=>"maskable"},
|
||||
{"purpose"=>"apple-touch-icon", "src"=>"/apple-touch-icon.png", "sizes"=>"180x180", "type"=>"image/png" },
|
||||
{"purpose"=>"apple-touch-icon", "src"=>"/apple-touch-icon-57px.png", "sizes"=>"57x57", "type"=>"image/png"},
|
||||
{"purpose"=>"mask-icon", "src"=>"/mask-icon.svg", "type"=>"image/svg", "color"=>"#2b90d9"}
|
||||
|
||||
Reference in New Issue
Block a user