zypper-upgraderepo 1.10.0 → 1.11.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: 32ebc8e9633b6f8316573b56759c1044bd9db702cd4a2289508665420935e054
4
- data.tar.gz: 89effc0e8a22e7f1019a2ac29337e5882b518f1c0de9dc7844b72cac0fa36608
3
+ metadata.gz: e642faca5400e4b8ed243726b9349740a1211207245d9cc9e72ee391bc12a71d
4
+ data.tar.gz: f4d8995a91cc4149db25129004e682afba03ffded92f4d812f980e2460bc839c
5
5
  SHA512:
6
- metadata.gz: 36dcbddb43e6ec7ede6aace2f03f2ed2be72c0e870c54252cbeec70c0715daf91d88bd3868e9936b3f60d77ced08df655987428fcc13bb15d3fc094913e8ee47
7
- data.tar.gz: 10bb399234182d2705e9e498891d67c3727a5f4de68ef40166451e3e9dfd4275cb3fe788fa83254917172f18baf7921d5909c7331a659c9d7e4104ed066f6ebf
6
+ metadata.gz: 2d1e4c172bb8ce5cced6fd2fbfc932274b669aec69881d9b6069c9eefe308fd75b4ea78ecf385a8bb22550fbc7a4f1806b586e7ff8272d599f5f3a5cfebd0d86
7
+ data.tar.gz: c8d2563ba33b03e6417ad91f15a7f911c4f8438aad414b9558b859a821a4d88cfb9af4c2903c94e3bf2385c972ae872495449c763e2f0bbb745a485d5fba45ba
data/.rubocop.yml CHANGED
@@ -60,21 +60,7 @@ Metrics/CyclomaticComplexity:
60
60
  - './lib/**/view.rb'
61
61
  - './lib/**/traversable.rb'
62
62
 
63
- Lint/UriEscapeUnescape:
64
- Enabled: false
65
-
66
- Lint/UnusedMethodArgument:
67
- Enabled: true
68
- Exclude:
69
- - './lib/**/local.rb'
70
-
71
63
  Style/MixinUsage:
72
64
  Enabled: true
73
65
  Exclude:
74
66
  - './spec/**/*'
75
-
76
- Style/FrozenStringLiteralComment:
77
- Enabled: true
78
- Exclude:
79
- - './bin/*'
80
- - './exe/*'
data/Gemfile CHANGED
@@ -7,6 +7,8 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
7
  # Specify your gem's dependencies in zypper-upgraderepo.gemspec
8
8
  gemspec
9
9
 
10
+ gem "bundler", "~> 2.0"
11
+
10
12
  gem "rake", "~> 13.0"
11
13
 
12
14
  gem "rspec", "~> 3.0"
data/Gemfile.lock CHANGED
@@ -1,63 +1,75 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zypper-upgraderepo (1.10.0)
4
+ zypper-upgraderepo (1.11.0)
5
5
  iniparse
6
6
  minitar
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.4.2)
12
- diff-lcs (1.5.1)
11
+ ast (2.4.3)
12
+ diff-lcs (1.6.2)
13
13
  iniparse (1.5.0)
14
- json (2.7.2)
15
- minitar (0.9)
16
- parallel (1.24.0)
17
- parser (3.3.2.0)
14
+ json (2.12.2)
15
+ language_server-protocol (3.17.0.5)
16
+ lint_roller (1.1.0)
17
+ minitar (0.12.1)
18
+ parallel (1.27.0)
19
+ parser (3.3.8.0)
18
20
  ast (~> 2.4.1)
19
21
  racc
20
- racc (1.8.0)
22
+ prism (1.4.0)
23
+ racc (1.8.1)
21
24
  rainbow (3.1.1)
22
- rake (13.2.1)
23
- regexp_parser (2.9.2)
24
- rexml (3.3.0)
25
- strscan
26
- rspec (3.13.0)
25
+ rake (13.3.0)
26
+ regexp_parser (2.10.0)
27
+ rspec (3.13.1)
27
28
  rspec-core (~> 3.13.0)
28
29
  rspec-expectations (~> 3.13.0)
29
30
  rspec-mocks (~> 3.13.0)
30
- rspec-core (3.13.0)
31
+ rspec-core (3.13.4)
31
32
  rspec-support (~> 3.13.0)
32
- rspec-expectations (3.13.0)
33
+ rspec-expectations (3.13.5)
33
34
  diff-lcs (>= 1.2.0, < 2.0)
34
35
  rspec-support (~> 3.13.0)
35
- rspec-mocks (3.13.1)
36
+ rspec-mocks (3.13.5)
36
37
  diff-lcs (>= 1.2.0, < 2.0)
37
38
  rspec-support (~> 3.13.0)
38
- rspec-support (3.13.1)
39
- rubocop (1.50.2)
39
+ rspec-support (3.13.4)
40
+ rubocop (1.76.0)
40
41
  json (~> 2.3)
42
+ language_server-protocol (~> 3.17.0.2)
43
+ lint_roller (~> 1.1.0)
41
44
  parallel (~> 1.10)
42
- parser (>= 3.2.0.0)
45
+ parser (>= 3.3.0.2)
43
46
  rainbow (>= 2.2.2, < 4.0)
44
- regexp_parser (>= 1.8, < 3.0)
45
- rexml (>= 3.2.5, < 4.0)
46
- rubocop-ast (>= 1.28.0, < 2.0)
47
+ regexp_parser (>= 2.9.3, < 3.0)
48
+ rubocop-ast (>= 1.45.0, < 2.0)
47
49
  ruby-progressbar (~> 1.7)
48
- unicode-display_width (>= 2.4.0, < 3.0)
49
- rubocop-ast (1.30.0)
50
- parser (>= 3.2.1.0)
51
- rubocop-capybara (2.18.0)
52
- rubocop (~> 1.41)
50
+ unicode-display_width (>= 2.4.0, < 4.0)
51
+ rubocop-ast (1.45.0)
52
+ parser (>= 3.3.7.2)
53
+ prism (~> 1.4)
54
+ rubocop-capybara (2.22.1)
55
+ lint_roller (~> 1.1)
56
+ rubocop (~> 1.72, >= 1.72.1)
57
+ rubocop-factory_bot (2.27.1)
58
+ lint_roller (~> 1.1)
59
+ rubocop (~> 1.72, >= 1.72.1)
53
60
  rubocop-rake (0.6.0)
54
61
  rubocop (~> 1.0)
55
- rubocop-rspec (2.20.0)
56
- rubocop (~> 1.33)
62
+ rubocop-rspec (2.31.0)
63
+ rubocop (~> 1.40)
57
64
  rubocop-capybara (~> 2.17)
65
+ rubocop-factory_bot (~> 2.22)
66
+ rubocop-rspec_rails (~> 2.28)
67
+ rubocop-rspec_rails (2.29.1)
68
+ rubocop (~> 1.61)
58
69
  ruby-progressbar (1.13.0)
59
- strscan (3.1.0)
60
- unicode-display_width (2.5.0)
70
+ unicode-display_width (3.1.4)
71
+ unicode-emoji (~> 4.0, >= 4.0.4)
72
+ unicode-emoji (4.0.4)
61
73
 
62
74
  PLATFORMS
63
75
  ruby
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Zypper-Upgraderepo
2
2
 
3
- Zypper-Upgraderepo helps to check and upgrade the repositories used in your system for the
4
- current, next or a custom valid version, reporting the errors and trying to find a replacement
3
+ Zypper-Upgraderepo helps to check and upgrade the configured repositories validating or looking for the
4
+ current, next or a custom valid version, reporting the errors and trying to find an alternative URL
5
5
  when possible.
6
6
 
7
7
  It can be also be installed as Zypper plugin using the [Zypper Upgraderepo Plugin][zypper_upgraderepo_plugin].
@@ -32,24 +32,24 @@ in the related [project page][project_page] at my blog.
32
32
 
33
33
  ## Usage
34
34
 
35
- ***Warning!!! The executables name prior the 1.8.0 version is zypper-upgraderepo, unfortunately the
36
- RPM package installation introduces annoying copies of the same executable having a version appended
37
- (zypper-upgraderepo.version, zypper-upgraderepo.rubyversion, zypper-upgraderepo.rubyversion.version)
35
+ **Warning!!! The executables name prior the 1.8.0 version was zypper-upgraderepo, unfortunately the
36
+ RPM package installation introduces annoying copies of the same executable with a Ruby version appended
37
+ (zypper-upgraderepo.*version*, zypper-upgraderepo.*rubyversion*, zypper-upgraderepo.*rubyversion*.*version*)
38
38
  interpreted by zypper itself as different subcommands. So I considered more convenient to remove the
39
39
  zypper prefix from the original executable and let the sole zypper-upgraderepo-plugin package install
40
- it as a zypper plugin.***
40
+ it as a zypper plugin.**
41
41
 
42
- To check the availability of the current repositories:
42
+ To check the availability of the **current** repositories:
43
43
  ```shell
44
44
  $ upgraderepo
45
45
  ```
46
46
 
47
- To check the availability of the next version repositories:
47
+ To check the availability of the **next** version repositories:
48
48
  ```shell
49
49
  $ upgraderepo --check-next
50
50
  ```
51
51
 
52
- To upgrade the repositories to the next version:
52
+ To **upgrade** the repositories to the next version:
53
53
  ```shell
54
54
  $ sudo upgraderepo --upgrade
55
55
  ```
@@ -64,8 +64,8 @@ $ upgraderepo --help
64
64
  ## More Help:
65
65
 
66
66
  More info is available at:
67
- - the [Zypper-Upgraderepo GitHub wiki][zypper_upgraderepo_wiki];
68
- - the article [Upgrading with Zypper][upgrading_with_zypper] on Freeaptitude blog.
67
+ - The [Zypper-Upgraderepo GitHub wiki][zypper_upgraderepo_wiki];
68
+ - The [Upgrading with Zypper][upgrading_with_zypper] article on Freeaptitude blog.
69
69
 
70
70
 
71
71
  [zypper_upgraderepo_plugin]: https://github.com/fabiomux/zypper-upgraderepo-plugin "Zypper-Upgraderepo Plugin GitHub page"
data/bin/console CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # frozen_string_literal: true
4
+
3
5
  require "bundler/setup"
4
6
  require "zypper/upgraderepo"
5
7
 
data/exe/upgraderepo CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # frozen_string_literal: true
4
+
3
5
  require "zypper/upgraderepo/cli"
4
6
 
5
7
  Zypper::Upgraderepo::CLI.start
@@ -10,10 +10,6 @@ module Zypper
10
10
  class OsRelease
11
11
  attr_reader :custom, :unstable
12
12
 
13
- OS_VERSIONS = ["13.1", "13.2",
14
- "42.1", "42.2", "42.3",
15
- "15.0", "15.1", "15.2", "15.3", "15.4", "15.5", "15.6"].freeze
16
-
17
13
  UNSTABLE_VERSION = "16.0"
18
14
 
19
15
  OS_RELEASE_FILE = "/etc/os-release"
@@ -21,10 +17,15 @@ module Zypper
21
17
  SUSE_RELEASE_FILE = "/etc/SuSE-release"
22
18
 
23
19
  def initialize(options)
20
+ @os_versions = ["13.1", "13.2",
21
+ "42.1", "42.2", "42.3",
22
+ "15.0", "15.1", "15.2", "15.3", "15.4", "15.5", "15.6",
23
+ "16.0"]
24
+
24
25
  if options.allow_unstable
25
26
  raise NoUnstableVersionAvailable if UNSTABLE_VERSION.empty?
26
27
 
27
- OS_VERSIONS << UNSTABLE_VERSION
28
+ @os_versions << UNSTABLE_VERSION
28
29
  @unstable = true
29
30
  end
30
31
 
@@ -36,52 +37,52 @@ module Zypper
36
37
  raise ReleaseFileNotFound
37
38
  end
38
39
  @release = IniParse.parse(File.read(fname))
39
- @current_idx = OS_VERSIONS.index(@release["__anonymous__"]["VERSION"].delete('"'))
40
+ @current_idx = @os_versions.index(@release["__anonymous__"]["VERSION"].delete('"'))
40
41
 
41
42
  return unless options.version
42
- raise InvalidVersion, options.version unless OS_VERSIONS.include?(options.version)
43
+ raise InvalidVersion, options.version unless @os_versions.include?(options.version)
43
44
 
44
45
  @custom = options.version
45
46
  end
46
47
 
47
48
  def current
48
- OS_VERSIONS[@current_idx]
49
+ @os_versions[@current_idx]
49
50
  end
50
51
 
51
52
  def last
52
- OS_VERSIONS[-1]
53
+ @os_versions[-1]
53
54
  end
54
55
 
55
56
  def next
56
57
  return if last?
57
58
 
58
- OS_VERSIONS[@current_idx.next]
59
+ @os_versions[@current_idx.next]
59
60
  end
60
61
 
61
62
  def previous
62
63
  return if first?
63
64
 
64
- OS_VERSIONS[@current_idx.pred]
65
+ @os_versions[@current_idx.pred]
65
66
  end
66
67
 
67
68
  def fullname
68
- @release["__anonymous__"]["PRETTY_NAME"].gsub(/"/, "")
69
+ @release["__anonymous__"]["PRETTY_NAME"].gsub('"', "")
69
70
  end
70
71
 
71
72
  def seniority
72
- OS_VERSIONS.count - @current_idx.next
73
+ @os_versions.count - @current_idx.next
73
74
  end
74
75
 
75
76
  def newer
76
77
  if seniority.positive?
77
- OS_VERSIONS[@current_idx.next..-1]
78
+ @os_versions[@current_idx.next..-1]
78
79
  else
79
80
  []
80
81
  end
81
82
  end
82
83
 
83
84
  def last?
84
- @current_idx == (OS_VERSIONS.count - 1)
85
+ @current_idx == (@os_versions.count - 1)
85
86
  end
86
87
 
87
88
  def first?
@@ -89,11 +90,11 @@ module Zypper
89
90
  end
90
91
 
91
92
  def valid?(version)
92
- OS_VERSIONS.include? version
93
+ @os_versions.include? version
93
94
  end
94
95
 
95
96
  def current?(version)
96
- OS_VERSIONS.index(version) == @current_idx
97
+ @os_versions.index(version) == @current_idx
97
98
  end
98
99
  end
99
100
  end
@@ -100,8 +100,8 @@ module Zypper
100
100
  end
101
101
 
102
102
  def save
103
- @list.each do |i|
104
- i[:repo].save
103
+ each_with_number do |repo, _num|
104
+ repo.save
105
105
  end
106
106
  end
107
107
 
@@ -118,12 +118,12 @@ module Zypper
118
118
  res.push l[:num]
119
119
  end
120
120
  elsif r =~ /^\ *\#.*/
121
- u = r.gsub(/\#/, "").strip
121
+ u = r.gsub("#", "").strip
122
122
  @list.select { |x| x[:repo].url.match?(Regexp.new(u, "i")) }.each do |l|
123
123
  res.push l[:num]
124
124
  end
125
125
  elsif r =~ /^\ *&.*/
126
- s = r.gsub(/&/, "").strip
126
+ s = r.gsub("&", "").strip
127
127
  sel = @list.select do |x|
128
128
  x[:repo].alias.match?(Regexp.new(s, "i")) ||
129
129
  x[:repo].name.match?(Regexp.new(s, "i")) ||
@@ -14,7 +14,7 @@ module Zypper
14
14
  USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
15
15
 
16
16
  def initialize(obj, timeout = 60)
17
- super obj
17
+ super(obj)
18
18
  @timeout = timeout
19
19
  end
20
20
 
@@ -118,7 +118,7 @@ module Zypper
118
118
 
119
119
  def get_request(uri, head)
120
120
  # super uri || URI(url), head
121
- super uri || repodata_uri, head
121
+ super(uri || repodata_uri, head)
122
122
  end
123
123
 
124
124
  def repodata?(uri)
@@ -11,7 +11,7 @@ module Zypper
11
11
  attr_reader :dir_path
12
12
 
13
13
  def initialize(obj, _timeout)
14
- super obj
14
+ super(obj)
15
15
  end
16
16
 
17
17
  def available?
@@ -48,13 +48,15 @@ module Zypper
48
48
 
49
49
  private
50
50
 
51
+ # rubocop: disable Lint/UnusedMethodArgument
51
52
  def ping(uri = nil, head: true)
52
53
  @dir_path ||= URI(url).path
53
54
 
54
55
  @dir_path = uri.to_s =~ %r{^/} ? uri.to_s : URI(uri.to_s).path if uri
55
56
 
56
- URI.unescape(@dir_path)
57
+ URI::DEFAULT_PARSER.unescape(@dir_path)
57
58
  end
59
+ # rubocop: enable Lint/UnusedMethodArgument
58
60
  end
59
61
 
60
62
  module Requests
@@ -88,12 +90,12 @@ module Zypper
88
90
  private
89
91
 
90
92
  def repodata?(uri)
91
- File.exist? URI.unescape(repodata_uri(uri).path)
93
+ File.exist? URI::DEFAULT_PARSER.unescape(repodata_uri(uri).path)
92
94
  end
93
95
 
94
96
  def subfolders
95
97
  Dir.glob("#{ping.gsub(%r{/$}, "")}/*/").map do |x|
96
- URI.escape(x.gsub(%r{/$}, "").gsub(ping, "").gsub(%r{^/}, ""))
98
+ URI::DEFAULT_PARSER.escape(x.gsub(%r{/$}, "").gsub(ping, "").gsub(%r{^/}, ""))
97
99
  end
98
100
  end
99
101
  end
@@ -135,7 +135,7 @@ module Zypper
135
135
  #
136
136
  class FileNotFound < StandardError
137
137
  def initialize(filename)
138
- super "The File #{filename} doesn't exist."
138
+ super("The File #{filename} doesn't exist.")
139
139
  end
140
140
  end
141
141
 
@@ -144,7 +144,7 @@ module Zypper
144
144
  #
145
145
  class ReleaseFileNotFound < StandardError
146
146
  def initialize
147
- super "The release file is not found."
147
+ super("The release file is not found.")
148
148
  end
149
149
  end
150
150
 
@@ -153,7 +153,7 @@ module Zypper
153
153
  #
154
154
  class InvalidProtocol < StandardError
155
155
  def initialize(repo)
156
- super "The repository #{repo.name} has an unknown protocol: #{repo.protocol}; disable it to continue."
156
+ super("The repository #{repo.name} has an unknown protocol: #{repo.protocol}; disable it to continue.")
157
157
  end
158
158
  end
159
159
 
@@ -162,7 +162,7 @@ module Zypper
162
162
  #
163
163
  class InvalidVersion < StandardError
164
164
  def initialize(version)
165
- super "The version #{version} is not valid"
165
+ super("The version #{version} is not valid")
166
166
  end
167
167
  end
168
168
 
@@ -171,7 +171,7 @@ module Zypper
171
171
  #
172
172
  class InvalidWritePermissions < StandardError
173
173
  def initialize(filename)
174
- super "Don't have the right permission to write #{filename}"
174
+ super("Don't have the permissions to write #{filename}")
175
175
  end
176
176
 
177
177
  def error_code
@@ -184,7 +184,7 @@ module Zypper
184
184
  #
185
185
  class SystemUpdateRunning < StandardError
186
186
  def initialize(args)
187
- super "The application #{args[:process].bold} with pid #{args[:pid].bold} is running a system update!"
187
+ super("The application #{args[:process].bold} with pid #{args[:pid].bold} is running a system update!")
188
188
  end
189
189
 
190
190
  def error_code
@@ -197,8 +197,8 @@ module Zypper
197
197
  #
198
198
  class UnableToUpgrade < StandardError
199
199
  def initialize(args)
200
- super "The repository n.#{args[:num].to_s.bold.red} named #{args[:repo].name.bold.red} " \
201
- "can't be upgraded, a manual check is required!"
200
+ super("The repository n.#{args[:num].to_s.bold.red} named #{args[:repo].name.bold.red} " \
201
+ "can't be upgraded, a manual check is required!")
202
202
  end
203
203
 
204
204
  def error_code
@@ -211,8 +211,8 @@ module Zypper
211
211
  #
212
212
  class MissingOverride < StandardError
213
213
  def initialize(args)
214
- super "The repository n.#{args[:num].to_s.bold.red} named #{args[:ini]["name"].bold.red} " \
215
- "doesn't contain the URL key!"
214
+ super("The repository n.#{args[:num].to_s.bold.red} named #{args[:ini]["name"].bold.red} " \
215
+ "doesn't contain the URL key!")
216
216
  end
217
217
 
218
218
  def error_code
@@ -225,8 +225,8 @@ module Zypper
225
225
  #
226
226
  class UnmatchingOverrides < StandardError
227
227
  def initialize(args)
228
- super "The repository n.#{args[:num]} named #{args[:repo].name.bold.red} doesn't match with " \
229
- "the repository named #{args[:ini]["name"].bold.red} in the ini file"
228
+ super("The repository n.#{args[:num]} named #{args[:repo].name.bold.red} doesn't match with " \
229
+ "the repository named #{args[:ini]["name"].bold.red} in the ini file")
230
230
  end
231
231
 
232
232
  def error_code
@@ -239,7 +239,7 @@ module Zypper
239
239
  #
240
240
  class AlreadyUpgraded < StandardError
241
241
  def initialize(version)
242
- super "The system is already upgraded to the #{version} version"
242
+ super("The system is already upgraded to the #{version} version")
243
243
  end
244
244
 
245
245
  def error_code
@@ -252,7 +252,7 @@ module Zypper
252
252
  #
253
253
  class NoUnstableVersionAvailable < StandardError
254
254
  def initialize
255
- super "No unstable version is available, remove the --allow-unstable switch to continue"
255
+ super("No unstable version is available, remove the --allow-unstable switch to continue")
256
256
  end
257
257
 
258
258
  def error_code
@@ -264,7 +264,7 @@ module Zypper
264
264
  # No internet connection.
265
265
  class NoConnection < StandardError
266
266
  def initialize
267
- super "Internet connection has some trouble"
267
+ super("Internet connection has some trouble")
268
268
  end
269
269
 
270
270
  def error_code
@@ -277,7 +277,7 @@ module Zypper
277
277
  #
278
278
  class Interruption < StandardError
279
279
  def initialize
280
- super "Ok ok... Exiting!"
280
+ super("Ok ok... Exiting!")
281
281
  end
282
282
  end
283
283
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Zypper
4
4
  module Upgraderepo
5
- VERSION = "1.10.0"
5
+ VERSION = "1.11.0"
6
6
  end
7
7
  end
@@ -61,7 +61,7 @@ module Zypper
61
61
  puts (char * (max_col + 20)).send(color)
62
62
  end
63
63
 
64
- def self.header(_max_col, _upgrade: false)
64
+ def self.header(*)
65
65
  puts " # | Report"
66
66
  end
67
67
 
@@ -83,8 +83,11 @@ module Zypper
83
83
  end
84
84
 
85
85
  def self.info(repo)
86
- puts " #{" " * 2} | Name: #{repo.name} #{repo.upgraded?(:name) ? "(#{repo.old_name.yellow})" : ""}"
87
- puts " #{" " * 2} | Alias: #{repo.alias} #{repo.upgraded?(:alias) ? "(#{repo.old_alias.yellow})" : ""}"
86
+ old_name = repo.upgraded?(:name) ? "(#{repo.old_name.yellow})" : ""
87
+ old_alias = repo.upgraded?(:alias) ? "(#{repo.old_alias.yellow})" : ""
88
+
89
+ puts " #{" " * 2} | Name: #{repo.name} #{old_name}"
90
+ puts " #{" " * 2} | Alias: #{repo.alias} #{old_alias}"
88
91
  puts " #{" " * 2} | Url: #{repo.url}"
89
92
  puts " #{" " * 2} | (#{repo.old_url.yellow})" if repo.upgraded?
90
93
  puts " #{" " * 2} | Priority: #{repo.priority}"
@@ -71,7 +71,7 @@ module Zypper
71
71
  dups[idx] ||= []
72
72
  dups[idx] << { num: num, repo: repo }
73
73
  end
74
- dups.each do |_key, list|
74
+ dups.each_value do |list|
75
75
  next if list.count < 2
76
76
 
77
77
  dcount += list.count.pred
@@ -29,10 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.add_development_dependency "bundler", "~> 2.0"
33
- spec.add_development_dependency "rake", "~> 13.0"
34
- spec.add_development_dependency "rspec", "~> 3.0"
35
-
36
- spec.add_runtime_dependency "iniparse"
37
- spec.add_runtime_dependency "minitar"
32
+ spec.add_dependency "iniparse"
33
+ spec.add_dependency "minitar"
38
34
  end
metadata CHANGED
@@ -1,57 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zypper-upgraderepo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Mucciante
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2025-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '2.0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '13.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '13.0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.0'
55
13
  - !ruby/object:Gem::Dependency
56
14
  name: iniparse
57
15
  requirement: !ruby/object:Gem::Requirement
@@ -135,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
93
  - !ruby/object:Gem::Version
136
94
  version: '0'
137
95
  requirements: []
138
- rubygems_version: 3.4.3
96
+ rubygems_version: 3.1.6
139
97
  signing_key:
140
98
  specification_version: 4
141
99
  summary: Zypper addon to check and upgrade local repositories.