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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af6b4d7672dcf163e247990a46a45e8efb97e2c2f9d0c19961c47318ffdff3e3
4
- data.tar.gz: ebe1325d09622460d20e74dbb0b43d35fc224f8d84c0804f5f0ca68e7885175b
3
+ metadata.gz: ad78f10f0b8b3d5f8f58b2cbf8604fcdee5433a9ededa235ed425db62b608421
4
+ data.tar.gz: 4a443ce55c19a22f9c9af21012e3e3fed83e6f4dc3ee3d0e5f17983d61392725
5
5
  SHA512:
6
- metadata.gz: f74f1acbf8571d43f1b78db4d915f5554e7e972c92ede45ec2763e038191ffadee31caf02c8eb34f3434ea750ee2ce95dbe509a34f5d85439891c9b052900d2a
7
- data.tar.gz: 7044fb20918791d7931f8892f1c3e834acf81015dfc8de93b3ba8478884a15c762498b7d84454eb398a22ac360bbc3b442cc2d8b138b415a9a77dfac223ed524
6
+ metadata.gz: 5c7abbfeb7687b0634a90c6549a805a18679f46ef521fcb5081230abed094506d946bb55722a3fd863c54a1688d112aaa61ced74b0caf8b672b61f51ad5af3d3
7
+ data.tar.gz: 5726d0c8bee9a96f06ac16a1d1f22aaf34ab42446389ca9f5c75525c3ce9b3734990e57675ad2b82ae5b27b9dda64f29398b3551c49318e532ef78901245f441
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.6
2
+ TargetRubyVersion: 2.5
3
3
  NewCops: enable
4
4
  SuggestExtensions: false
5
5
  Exclude:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zypper-onlinesearch (1.1.0)
4
+ zypper-onlinesearch (1.1.1)
5
5
  iniparse
6
6
  nokogiri
7
7
 
@@ -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..].map(&:downcase))
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..].join("/") if query =~ %r{://}
226
+ query = query.split("/")[-2..-1].join("/") if query =~ %r{://}
227
227
  super query, refresh, timeout, cookies
228
228
  end
229
229
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Zypper
4
4
  module Onlinesearch
5
- VERSION = "1.1.0"
5
+ VERSION = "1.1.1"
6
6
  end
7
7
  end
@@ -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.6.0"
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.0
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-21 00:00:00.000000000 Z
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.6.0
87
+ version: 2.5.0
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ">="