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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00df9b37b792f5e1f1fe570552ee34831f59ce5c5ece2f8adb77b0343436df0b
4
- data.tar.gz: a26c16c6d67d0f03647f97214f000296765dd79eb6c5614f39be334f421ce14f
3
+ metadata.gz: 2f42c1af5a9490c279d56023cc5dc5bb8cf9e576e1c643ad4f1648e55e45f430
4
+ data.tar.gz: 426296a903299f63a47b5760da9f171af33904c5e2af4f3e50c475b6eb3bf98e
5
5
  SHA512:
6
- metadata.gz: 871ce502960bbeda400047e7d4bd793fc1e7819ffa4d5ec4707102d0e0db1937a3de406a94656fe16736e5f7e20997e5ad7419cf8512efa63732eb79ea3c2fc5
7
- data.tar.gz: 7397a7bd3d96f6f78fd46a2c002702c2c47cd0c5c52409d8099dc0fc3e4175c0e2ebaf67c9668e95df3c41c98d78bdda83c547bd7773b37a7f9e58bb892e656f
6
+ metadata.gz: 141de1d415e9b05ecf9b86ef486fb193d18b39b5140e570d6ba95274511e4dd7e9661206810d8a66a36fbeeb11d0fab1cbd6d95b94bda49cfd1c6da0c50f8d5f
7
+ data.tar.gz: 16cd307fa4cbdbab427a3997f501ebf084c0b6e0f1096e3ffa9d4b4d9aaa3b5f8be2f7ce7eb7e3c8db8f9e348d245242cd182158c4697f31f65728f1e53bbdbe
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  .rspec_status
10
+ *.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- manifique (1.0.0)
4
+ manifique (1.1.0)
5
5
  faraday (~> 2.9.0)
6
6
  faraday-follow_redirects (= 0.3.0)
7
7
  nokogiri (~> 1.16.0)
@@ -43,11 +43,17 @@ module Manifique
43
43
  end
44
44
 
45
45
  if options[:type]
46
- results.reject! { |r| r["type"] != options[:type] }
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])
@@ -1,3 +1,3 @@
1
1
  module Manifique
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
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.0.0
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-02-02 00:00:00.000000000 Z
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: '0'
165
+ version: 3.1.4
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
168
  - - ">="