yast-rake 0.2.51 → 0.2.52

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/tasks/rubocop.rake +18 -6
  4. metadata +6 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73ad2778a4bdf76b42dcb85dd0fbb7dfe46d7fee3af0cc67a4ca138a6bf4868e
4
- data.tar.gz: 71f117cc5859e2320f019e79dd1287e4178a402a2f383b4f738e2eedf319f5f3
3
+ metadata.gz: acae95a396ed2040859c8858d65e91839a1a9d51ab7797c6fa4525ce7974235b
4
+ data.tar.gz: 0aa5cfb91d75a75a8ccc004486fff983e8c81a424d31bee8423065ff9ccd9b4a
5
5
  SHA512:
6
- metadata.gz: 94f1656a3e40f0866b12a5801eae872d83c4136e9ac43ae18de312f480ce31b74e29067bfb0d2ca4811e99b7dcde6aa3edd4829cbfaa315cc03469aaacd6dbeb
7
- data.tar.gz: 1555ff43af131c0ddd392c716e48a1cd93cf64071fe5bdeb6cbdf82db67401ee50a537bddf9ec4d05b9b968166c7112248ad87a7f86ac2d6f1d0a1d3605f109d
6
+ metadata.gz: 42f911c1bfc5991289d7fcfa73df82fa9d683093f3d127375d7b69306aaf647a5e4b01631c081914657704709e8ed59ae95606e80306aea60300cd3e359adb27
7
+ data.tar.gz: 6fa5885f37371872924adda165bb5b61e992de70b765a821cf78b44d036c0533ae21f4af32a3f54d26e43f93b8b924faa50b384957664f8ceca6e8a127429f8c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.51
1
+ 0.2.52
@@ -32,13 +32,25 @@ def rubocop_bin
32
32
  return @rubocop_bin if @rubocop_bin
33
33
  return @rubocop_bin = ENV["RUBOCOP_BIN"] if ENV["RUBOCOP_BIN"]
34
34
 
35
- binary = `/usr/sbin/update-alternatives --list rubocop | grep '#{rubocop_version}'`.strip
36
- if !system("which #{binary}")
37
- raise "cannot find proper version of rubocop binary in " \
38
- "'/usr/sbin/update-alternatives --list rubocop'." \
39
- "If rubocop is installed via gem, define its binary name via env variable RUBOCOP_BIN."
35
+ # first try the old "update-alternatives"
36
+ if File.executable?("/usr/sbin/update-alternatives")
37
+ binary = `/usr/sbin/update-alternatives --list rubocop | grep '#{rubocop_version}'`.strip
38
+
39
+ return @rubocop_bin = binary if !binary.empty?
40
40
  end
41
- @rubocop_bin = binary
41
+
42
+ # if that did not work try the newer "alts"
43
+ if File.executable?("/usr/bin/alts")
44
+ binary = `/usr/bin/alts -l rubocop | grep "Target:" | sed "s/^.*Target:\\s*\\(\\S.*\\)$/\\\\1/"\
45
+ | grep '#{rubocop_version}'`.strip
46
+
47
+ return @rubocop_bin = binary if !binary.empty?
48
+ end
49
+
50
+ raise "Cannot find proper version of rubocop binary in " \
51
+ "'/usr/sbin/update-alternatives --list rubocop' and " \
52
+ "'/usr/bin/alts -l rubocop'." \
53
+ "If rubocop is installed via gem, define its binary name via env variable RUBOCOP_BIN."
42
54
  end
43
55
 
44
56
  # run Rubocop in parallel
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yast-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.51
4
+ version: 0.2.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Reidinger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2026-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: packaging_rake_tasks
@@ -86,7 +86,7 @@ licenses:
86
86
  - LGPL v2.1
87
87
  metadata:
88
88
  rubygems_mfa_required: 'true'
89
- post_install_message:
89
+ post_install_message:
90
90
  rdoc_options: []
91
91
  require_paths:
92
92
  - lib
@@ -101,9 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubyforge_project:
105
- rubygems_version: 2.7.6.3
106
- signing_key:
104
+ rubygems_version: 3.4.6
105
+ signing_key:
107
106
  specification_version: 4
108
107
  summary: Rake tasks providing basic work-flow for Yast development
109
108
  test_files: []