yast-rake 0.2.50 → 0.2.51

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: becec3cbcedbd4c90ec713219c3d30aabcae62c9dcdfc4a7905e16bc464afede
4
- data.tar.gz: d418bccb5778479a2b0f541bd1a4cfa325d8c1f5203137702390ebc1aa3567cd
3
+ metadata.gz: 73ad2778a4bdf76b42dcb85dd0fbb7dfe46d7fee3af0cc67a4ca138a6bf4868e
4
+ data.tar.gz: 71f117cc5859e2320f019e79dd1287e4178a402a2f383b4f738e2eedf319f5f3
5
5
  SHA512:
6
- metadata.gz: 2d1b7e305d0bd53884dcc488517c8b2e0cb18017ddca6b9ac8717396b5b87c82daef9309c47b2ad4e8e3e49d44fa8e7d62c52a74de8642e6bc7b33bab760b5ea
7
- data.tar.gz: e899ac92469bfdd62ee3703c4e61bdb472ff754a08473e10be6a67161c2f82c3ef6a99f2e1e74eba71a929a1965cf9506124dbeafbc602d7a41b22a34599eba4
6
+ metadata.gz: 94f1656a3e40f0866b12a5801eae872d83c4136e9ac43ae18de312f480ce31b74e29067bfb0d2ca4811e99b7dcde6aa3edd4829cbfaa315cc03469aaacd6dbeb
7
+ data.tar.gz: 1555ff43af131c0ddd392c716e48a1cd93cf64071fe5bdeb6cbdf82db67401ee50a537bddf9ec4d05b9b968166c7112248ad87a7f86ac2d6f1d0a1d3605f109d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.50
1
+ 0.2.51
data/data/targets.yml CHANGED
@@ -99,8 +99,8 @@
99
99
  :sle15sp6:
100
100
  obs_api: "https://api.suse.de/"
101
101
  obs_project: "Devel:YaST:SLE-15-SP6"
102
- obs_sr_project: "SUSE:SLE-15-SP6:GA"
103
- obs_target: "SUSE_SLE-15-SP6_GA"
102
+ obs_sr_project: "SUSE:SLE-15-SP6:Update"
103
+ obs_target: "SUSE_SLE-15-SP6_Update"
104
104
  :sle15sp7:
105
105
  obs_api: "https://api.suse.de/"
106
106
  obs_project: "Devel:YaST:SLE-15-SP7"
@@ -109,8 +109,8 @@
109
109
  :sle_latest:
110
110
  obs_api: "https://api.suse.de/"
111
111
  obs_project: "Devel:YaST:Head"
112
- obs_sr_project: "SUSE:SLE-15-SP6:GA"
113
- obs_target: "SUSE_SLE-15-SP6_GA"
112
+ obs_sr_project: "SUSE:SLE-15-SP7:GA"
113
+ obs_target: "SUSE_SLE-15-SP7_GA"
114
114
  :factory:
115
115
  obs_project: "YaST:Head"
116
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
- if container_data.is_a?(String)
78
+ case container_data
79
+ when String
79
80
  containers << GithubActions::Container.new(container_data)
80
- elsif container_data.is_a?(Hash)
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
- "#{run} #{options} #{ENV["DOCKER_OPTIONS"]} #{image.shellescape} #{args}"
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
- "sh -c #{cmd.shellescape}")
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
- # Note: in theory the same job name might be used in different files,
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
- "unsupported steps: #{unsupported.inspect}")
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
- "the Docker container in not specified")
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
 
@@ -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
- "'/usr/sbin/update-alternatives --list rubocop'." \
39
- "If rubocop is installed via gem, define its binary name via env variable RUBOCOP_BIN."
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
- "`nproc` + 1) #{rubocop_bin} #{params}"
65
+ "`nproc` + 1) #{rubocop_bin} #{params}"
66
66
  end
67
67
  end
68
68
 
data/lib/tasks/run.rake CHANGED
@@ -35,7 +35,7 @@ task :run, :client do |_t, args|
35
35
  else
36
36
  clients = Dir["**/src/clients/*.rb"]
37
37
  client = clients.reduce do |min, n|
38
- next n if min.nil?
38
+ min ||= n
39
39
 
40
40
  # use client with shortest name by default
41
41
  (min.size > n.size) ? n : min
@@ -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
- "(#{CUSTOM_SPELL_CONFIG_FILE}):\n"
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
- "'#{CUSTOM_SPELL_CONFIG_FILE}' file if it is OK.)"
189
+ "'#{CUSTOM_SPELL_CONFIG_FILE}' file if it is OK.)"
188
190
  exit 1
189
191
  end
190
192
  end
@@ -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
- " not installed, falling back to the standard 'rspec' runner."
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.50
4
+ version: 0.2.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Reidinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-12 00:00:00.000000000 Z
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,7 +84,8 @@ files:
84
84
  homepage: https://github.com/yast/yast-rake
85
85
  licenses:
86
86
  - LGPL v2.1
87
- metadata: {}
87
+ metadata:
88
+ rubygems_mfa_required: 'true'
88
89
  post_install_message:
89
90
  rdoc_options: []
90
91
  require_paths:
@@ -93,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
94
  requirements:
94
95
  - - ">="
95
96
  - !ruby/object:Gem::Version
96
- version: '0'
97
+ version: 2.5.0
97
98
  required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  requirements:
99
100
  - - ">="