yast-rake 0.2.49 → 0.2.51
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/data/targets.yml +3 -2
- data/lib/tasks/container_runner.rb +3 -2
- data/lib/tasks/github_actions/github_actions/container.rb +2 -2
- data/lib/tasks/github_actions/tasks/run.rb +1 -1
- data/lib/tasks/github_actions/tasks/run_all.rb +2 -2
- data/lib/tasks/pot.rake +3 -3
- data/lib/tasks/rubocop.rake +3 -3
- data/lib/tasks/run.rake +1 -1
- data/lib/tasks/spellcheck_task.rb +4 -2
- data/lib/tasks/test_unit.rake +1 -1
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73ad2778a4bdf76b42dcb85dd0fbb7dfe46d7fee3af0cc67a4ca138a6bf4868e
|
4
|
+
data.tar.gz: 71f117cc5859e2320f019e79dd1287e4178a402a2f383b4f738e2eedf319f5f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94f1656a3e40f0866b12a5801eae872d83c4136e9ac43ae18de312f480ce31b74e29067bfb0d2ca4811e99b7dcde6aa3edd4829cbfaa315cc03469aaacd6dbeb
|
7
|
+
data.tar.gz: 1555ff43af131c0ddd392c716e48a1cd93cf64071fe5bdeb6cbdf82db67401ee50a537bddf9ec4d05b9b968166c7112248ad87a7f86ac2d6f1d0a1d3605f109d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.51
|
data/data/targets.yml
CHANGED
@@ -95,6 +95,7 @@
|
|
95
95
|
obs_project: "Devel:YaST:SLE-15-SP5"
|
96
96
|
obs_sr_project: "SUSE:SLE-15-SP5:Update"
|
97
97
|
obs_target: "SUSE_SLE-15-SP5_Update"
|
98
|
+
# SP6 is still in development so point to GA and switch when it will be released.
|
98
99
|
:sle15sp6:
|
99
100
|
obs_api: "https://api.suse.de/"
|
100
101
|
obs_project: "Devel:YaST:SLE-15-SP6"
|
@@ -108,8 +109,8 @@
|
|
108
109
|
:sle_latest:
|
109
110
|
obs_api: "https://api.suse.de/"
|
110
111
|
obs_project: "Devel:YaST:Head"
|
111
|
-
obs_sr_project: "SUSE:SLE-15-
|
112
|
-
obs_target: "SUSE_SLE-15-
|
112
|
+
obs_sr_project: "SUSE:SLE-15-SP7:GA"
|
113
|
+
obs_target: "SUSE_SLE-15-SP7_GA"
|
113
114
|
:factory:
|
114
115
|
obs_project: "YaST:Head"
|
115
116
|
obs_sr_project: "openSUSE:Factory"
|
@@ -75,9 +75,10 @@ private
|
|
75
75
|
workflow.jobs.each do |job|
|
76
76
|
container_data = job.container
|
77
77
|
|
78
|
-
|
78
|
+
case container_data
|
79
|
+
when String
|
79
80
|
containers << GithubActions::Container.new(container_data)
|
80
|
-
|
81
|
+
when Hash
|
81
82
|
# to_s converts missing options (nil) to empty options ("")
|
82
83
|
# to treat these as equal in comparison
|
83
84
|
containers << GithubActions::Container.new(
|
@@ -75,7 +75,7 @@ module GithubActions
|
|
75
75
|
end
|
76
76
|
|
77
77
|
cmd = "docker create #{env_options(ENV_VARIABLES)} --rm --entrypoint " \
|
78
|
-
|
78
|
+
"#{run} #{options} #{ENV["DOCKER_OPTIONS"]} #{image.shellescape} #{args}"
|
79
79
|
|
80
80
|
# contains the container ID
|
81
81
|
@container = `#{cmd}`.chomp
|
@@ -103,7 +103,7 @@ module GithubActions
|
|
103
103
|
def run(cmd, env = {})
|
104
104
|
stage("Running command: #{cmd}")
|
105
105
|
system("docker exec -it #{env_options(env)} #{container.shellescape} " \
|
106
|
-
|
106
|
+
"sh -c #{cmd.shellescape}")
|
107
107
|
$CHILD_STATUS.success?
|
108
108
|
end
|
109
109
|
|
@@ -47,7 +47,7 @@ module GithubActions
|
|
47
47
|
def find_job
|
48
48
|
job = nil
|
49
49
|
Workflow.read.each do |workflow|
|
50
|
-
#
|
50
|
+
# NOTE: in theory the same job name might be used in different files,
|
51
51
|
# but in YaST we use single YAML files and we can avoid duplicates,
|
52
52
|
# simply use the first found and avoid unnecessary complexity
|
53
53
|
job = workflow.jobs.find { |j| j.name == name }
|
@@ -94,13 +94,13 @@ module GithubActions
|
|
94
94
|
unsupported = job.unsupported_steps
|
95
95
|
if !unsupported.empty?
|
96
96
|
warning("WARNING: Skipping job \"#{job.name}\", found " \
|
97
|
-
|
97
|
+
"unsupported steps: #{unsupported.inspect}")
|
98
98
|
return false
|
99
99
|
end
|
100
100
|
|
101
101
|
if job.container.nil? || job.container.empty?
|
102
102
|
warning("WARNING: Skipping job \"#{job.name}\", " \
|
103
|
-
|
103
|
+
"the Docker container in not specified")
|
104
104
|
return false
|
105
105
|
end
|
106
106
|
|
data/lib/tasks/pot.rake
CHANGED
@@ -63,9 +63,9 @@ namespace :check do
|
|
63
63
|
def clean_pot_lines(lines)
|
64
64
|
# leave just the text
|
65
65
|
lines.each do |line|
|
66
|
-
line.sub!(/^msgid
|
67
|
-
line.sub!(
|
68
|
-
line.sub!(
|
66
|
+
line.sub!(/^msgid "/, "")
|
67
|
+
line.sub!(/^"/, "")
|
68
|
+
line.sub!(/"$/, "")
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
data/lib/tasks/rubocop.rake
CHANGED
@@ -35,8 +35,8 @@ def rubocop_bin
|
|
35
35
|
binary = `/usr/sbin/update-alternatives --list rubocop | grep '#{rubocop_version}'`.strip
|
36
36
|
if !system("which #{binary}")
|
37
37
|
raise "cannot find proper version of rubocop binary in " \
|
38
|
-
|
39
|
-
|
38
|
+
"'/usr/sbin/update-alternatives --list rubocop'." \
|
39
|
+
"If rubocop is installed via gem, define its binary name via env variable RUBOCOP_BIN."
|
40
40
|
end
|
41
41
|
@rubocop_bin = binary
|
42
42
|
end
|
@@ -62,7 +62,7 @@ def run_rubocop(params = "")
|
|
62
62
|
# b) use -n to set the maximum number of files per process, this number
|
63
63
|
# is computed to equally distribute the files across the workers
|
64
64
|
sh "#{rubocop_bin} -L | sort -R | xargs -P`nproc` -n$(expr `#{rubocop_bin} -L | wc -l` / " \
|
65
|
-
|
65
|
+
"`nproc` + 1) #{rubocop_bin} #{params}"
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
data/lib/tasks/run.rake
CHANGED
@@ -40,6 +40,8 @@ module Yast
|
|
40
40
|
|
41
41
|
# define the Rake task in the constructor
|
42
42
|
def initialize
|
43
|
+
super
|
44
|
+
|
43
45
|
namespace :check do
|
44
46
|
desc "Run spell checker (by default for *.md and *.html files)"
|
45
47
|
task :spelling do
|
@@ -109,7 +111,7 @@ module Yast
|
|
109
111
|
return if duplicates.empty?
|
110
112
|
|
111
113
|
warn "Warning: Found dictionary duplicates in the local dictionary " \
|
112
|
-
|
114
|
+
"(#{CUSTOM_SPELL_CONFIG_FILE}):\n"
|
113
115
|
duplicates.each { |duplicate| warn " #{duplicate}" }
|
114
116
|
$stderr.puts
|
115
117
|
end
|
@@ -184,7 +186,7 @@ module Yast
|
|
184
186
|
puts "Spelling OK."
|
185
187
|
else
|
186
188
|
warn "Spellcheck failed! (Fix it or add the words to " \
|
187
|
-
|
189
|
+
"'#{CUSTOM_SPELL_CONFIG_FILE}' file if it is OK.)"
|
188
190
|
exit 1
|
189
191
|
end
|
190
192
|
end
|
data/lib/tasks/test_unit.rake
CHANGED
@@ -61,7 +61,7 @@ namespace :test do
|
|
61
61
|
else
|
62
62
|
if parallel_tests_wanted?
|
63
63
|
warn "WARNING: parallel tests enabled, but 'parallel_rspec' is" \
|
64
|
-
|
64
|
+
" not installed, falling back to the standard 'rspec' runner."
|
65
65
|
end
|
66
66
|
run_sequential_tests(files)
|
67
67
|
end
|
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.51
|
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: 2024-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: packaging_rake_tasks
|
@@ -84,8 +84,9 @@ files:
|
|
84
84
|
homepage: https://github.com/yast/yast-rake
|
85
85
|
licenses:
|
86
86
|
- LGPL v2.1
|
87
|
-
metadata:
|
88
|
-
|
87
|
+
metadata:
|
88
|
+
rubygems_mfa_required: 'true'
|
89
|
+
post_install_message:
|
89
90
|
rdoc_options: []
|
90
91
|
require_paths:
|
91
92
|
- lib
|
@@ -93,15 +94,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
94
|
requirements:
|
94
95
|
- - ">="
|
95
96
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
97
|
+
version: 2.5.0
|
97
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
99
|
requirements:
|
99
100
|
- - ">="
|
100
101
|
- !ruby/object:Gem::Version
|
101
102
|
version: '0'
|
102
103
|
requirements: []
|
103
|
-
|
104
|
-
|
104
|
+
rubyforge_project:
|
105
|
+
rubygems_version: 2.7.6.3
|
106
|
+
signing_key:
|
105
107
|
specification_version: 4
|
106
108
|
summary: Rake tasks providing basic work-flow for Yast development
|
107
109
|
test_files: []
|