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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tasks/rubocop.rake +18 -6
- metadata +6 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: acae95a396ed2040859c8858d65e91839a1a9d51ab7797c6fa4525ce7974235b
|
|
4
|
+
data.tar.gz: 0aa5cfb91d75a75a8ccc004486fff983e8c81a424d31bee8423065ff9ccd9b4a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42f911c1bfc5991289d7fcfa73df82fa9d683093f3d127375d7b69306aaf647a5e4b01631c081914657704709e8ed59ae95606e80306aea60300cd3e359adb27
|
|
7
|
+
data.tar.gz: 6fa5885f37371872924adda165bb5b61e992de70b765a821cf78b44d036c0533ae21f4af32a3f54d26e43f93b8b924faa50b384957664f8ceca6e8a127429f8c
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.52
|
data/lib/tasks/rubocop.rake
CHANGED
|
@@ -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
|
-
|
|
36
|
-
if
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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.
|
|
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:
|
|
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
|
-
|
|
105
|
-
|
|
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: []
|