zypper-onlinesearch 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +1 -1
- data/lib/zypper/onlinesearch/request.rb +3 -3
- data/lib/zypper/onlinesearch/version.rb +1 -1
- data/zypper-onlinesearch.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad78f10f0b8b3d5f8f58b2cbf8604fcdee5433a9ededa235ed425db62b608421
|
4
|
+
data.tar.gz: 4a443ce55c19a22f9c9af21012e3e3fed83e6f4dc3ee3d0e5f17983d61392725
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c7abbfeb7687b0634a90c6549a805a18679f46ef521fcb5081230abed094506d946bb55722a3fd863c54a1688d112aaa61ced74b0caf8b672b61f51ad5af3d3
|
7
|
+
data.tar.gz: 5726d0c8bee9a96f06ac16a1d1f22aaf34ab42446389ca9f5c75525c3ce9b3734990e57675ad2b82ae5b27b9dda64f29398b3551c49318e532ef78901245f441
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -45,7 +45,7 @@ module Zypper
|
|
45
45
|
|
46
46
|
def initialize(query, refresh, timeout = 60, cookies = [])
|
47
47
|
@query = query.strip
|
48
|
-
@cache = Cache.new(*self.class.to_s.split("::")[-2
|
48
|
+
@cache = Cache.new(*self.class.to_s.split("::")[-2..-1].map(&:downcase))
|
49
49
|
@refresh = refresh
|
50
50
|
@cookies = cookies
|
51
51
|
@timeout = timeout
|
@@ -84,7 +84,7 @@ module Zypper
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def to_data
|
87
|
-
klass = self.class.to_s.split("::")[-2
|
87
|
+
klass = self.class.to_s.split("::")[-2..-1]
|
88
88
|
Data.const_get(klass[0].to_sym).const_get(klass[1].to_sym).new(@page.body).data
|
89
89
|
end
|
90
90
|
|
@@ -223,7 +223,7 @@ module Zypper
|
|
223
223
|
URL = "http://packman.links2linux.org/package/"
|
224
224
|
|
225
225
|
def initialize(query, refresh, timeout = 60, cookies = [])
|
226
|
-
query = query.split("/")[-2
|
226
|
+
query = query.split("/")[-2..-1].join("/") if query =~ %r{://}
|
227
227
|
super query, refresh, timeout, cookies
|
228
228
|
end
|
229
229
|
|
data/zypper-onlinesearch.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = "Search for packages through the openSUSE software search website and similar."
|
13
13
|
spec.homepage = "https://github.com/fabiomux/zypper-onlinesearch"
|
14
14
|
spec.license = "GPL-3.0"
|
15
|
-
spec.required_ruby_version = ">= 2.
|
15
|
+
spec.required_ruby_version = ">= 2.5.0"
|
16
16
|
|
17
17
|
spec.metadata["bug_tracker_uri"] = "https://github.com/fabiomux/zypper-onlinesearch/issues"
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zypper-onlinesearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabio Mucciante
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iniparse
|
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
84
|
requirements:
|
85
85
|
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: 2.
|
87
|
+
version: 2.5.0
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - ">="
|