manifique 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/manifique/metadata.rb +8 -2
- data/lib/manifique/version.rb +1 -1
- data/manifique.gemspec +2 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f42c1af5a9490c279d56023cc5dc5bb8cf9e576e1c643ad4f1648e55e45f430
|
|
4
|
+
data.tar.gz: 426296a903299f63a47b5760da9f171af33904c5e2af4f3e50c475b6eb3bf98e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 141de1d415e9b05ecf9b86ef486fb193d18b39b5140e570d6ba95274511e4dd7e9661206810d8a66a36fbeeb11d0fab1cbd6d95b94bda49cfd1c6da0c50f8d5f
|
|
7
|
+
data.tar.gz: 16cd307fa4cbdbab427a3997f501ebf084c0b6e0f1096e3ffa9d4b4d9aaa3b5f8be2f7ce7eb7e3c8db8f9e348d245242cd182158c4697f31f65728f1e53bbdbe
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/manifique/metadata.rb
CHANGED
|
@@ -43,11 +43,17 @@ module Manifique
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
if options[:type]
|
|
46
|
-
|
|
46
|
+
if options[:type].is_a?(String)
|
|
47
|
+
results.reject! { |r| r["type"] != options[:type] }
|
|
48
|
+
elsif options[:type].is_a?(Regexp)
|
|
49
|
+
results.reject! { |r| r["type"].match(options[:type]).nil? }
|
|
50
|
+
else
|
|
51
|
+
raise ArgumentError, "Type must be a string or a regular expression"
|
|
52
|
+
end
|
|
47
53
|
end
|
|
48
54
|
|
|
49
55
|
if options[:sizes]
|
|
50
|
-
results.reject! { |r| r["sizes"].nil? }
|
|
56
|
+
results.reject! { |r| r["sizes"].nil? || r["sizes"].match(/(\d+)x/).nil? }
|
|
51
57
|
results.sort! { |a, b| sizes_to_i(b["sizes"]) <=> sizes_to_i(a["sizes"]) }
|
|
52
58
|
|
|
53
59
|
if icon = select_exact_size(results, options[:sizes])
|
data/lib/manifique/version.rb
CHANGED
data/manifique.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Râu Cao"]
|
|
10
10
|
spec.email = ["raucao@kosmos.org"]
|
|
11
11
|
spec.summary = "Fetch metadata and icons of Web applications"
|
|
12
|
-
spec.description = "Fetch and process metadata and icons of Web applications from Web App Manifest files, with fallbacks to HTML elements/attributes
|
|
12
|
+
spec.description = "Fetch and process metadata and icons of Web applications from Web App Manifest files, with fallbacks to HTML elements/attributes"
|
|
13
13
|
spec.homepage = "https://gitea.kosmos.org/5apps/manifique"
|
|
14
14
|
spec.metadata = {
|
|
15
15
|
"bug_tracker_uri" => "https://gitea.kosmos.org/5apps/manifique/issues",
|
|
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.bindir = "exe"
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
26
26
|
spec.require_paths = ["lib"]
|
|
27
|
+
spec.required_ruby_version = '>= 3.1.4'
|
|
27
28
|
|
|
28
29
|
spec.add_development_dependency "bundler", "~> 2.5.5"
|
|
29
30
|
spec.add_development_dependency "rake", "~> 13.1.0"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: manifique
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Râu Cao
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -123,7 +123,7 @@ dependencies:
|
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: 1.16.0
|
|
125
125
|
description: Fetch and process metadata and icons of Web applications from Web App
|
|
126
|
-
Manifest files, with fallbacks to HTML elements/attributes
|
|
126
|
+
Manifest files, with fallbacks to HTML elements/attributes
|
|
127
127
|
email:
|
|
128
128
|
- raucao@kosmos.org
|
|
129
129
|
executables: []
|
|
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
162
162
|
requirements:
|
|
163
163
|
- - ">="
|
|
164
164
|
- !ruby/object:Gem::Version
|
|
165
|
-
version:
|
|
165
|
+
version: 3.1.4
|
|
166
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
requirements:
|
|
168
168
|
- - ">="
|