yast-rake 0.2.46 → 0.2.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/yast/rake.rb +8 -10
  4. data/lib/yast/tasks.rb +3 -0
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac63a47eacc8d5837b6ec2ca69605c214fed661530fbae576d154706d8a1317f
4
- data.tar.gz: ef9b8e4ebd0846d0d9f2d72c3b17e1176d4afd674156dbfeb5f39339b13a0488
3
+ metadata.gz: bf081ed548a11fce73c5c0d05856bf7ec2f560ca0214bd0fa334a66091c58b47
4
+ data.tar.gz: b19b96f328d17df3f4aed5fb8120aaafbbfb9213eca3321090b8c9d85b9e7993
5
5
  SHA512:
6
- metadata.gz: cafea33f6f6a17c45b1eae38368536d5f283f939118ab5fd6d0af7dd1bc8c2cf59b75aa8b27dca6ba1100c04417ae7ea548a2a16075d3484a6dcd73aeb07c05e
7
- data.tar.gz: a7c9caac9a4c08d87aa8371459cec1d4c06c26bf7ee2c2135337e48c74a3a9d3914a043978ad7f23666fa917c7fe33f517bc9c6ea0439510b286cc6e0c63eeac
6
+ metadata.gz: fd9aed978d91efed2c0d8c8afe0d98ae4cd240e650475ceca8ac496f40d61924ddea00f24e4d1e899530a7ae8ff13ab1c61db9d40dd2776309c0ef9e2461ca1e
7
+ data.tar.gz: daed74aade453fd04f9811d38a3711a0741589ecc6a9fcc14c09aa396565df7b28ecc37d8b367af1f8b063aa8f7a1e54f8039dfc38895bfa8f9007d92bb95470
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.46
1
+ 0.2.48
data/lib/yast/rake.rb CHANGED
@@ -22,14 +22,19 @@ require_relative "tasks"
22
22
 
23
23
  # yast integration testing takes too long and require osc:build so it create
24
24
  # circle, so replace test dependency with test:unit
25
- task = Rake::Task["package"]
26
- prerequisites = task.prerequisites
25
+ ptask = Rake::Task["package"]
26
+ prerequisites = ptask.prerequisites
27
27
  prerequisites.delete("test")
28
28
 
29
- task.enhance(prerequisites)
29
+ ptask.enhance(prerequisites)
30
30
 
31
31
  yast_submit = ENV["YAST_SUBMIT"] || :factory
32
32
  Yast::Tasks.submit_to(yast_submit.to_sym)
33
+ namespace :osc do
34
+ # This adds to existing desc
35
+ desc "Try YAST_SUBMIT=help rake...."
36
+ task :build
37
+ end
33
38
 
34
39
  Yast::Tasks.configuration do |conf|
35
40
  conf.package_name = File.read("RPMNAME").strip if File.exist?("RPMNAME")
@@ -42,10 +47,3 @@ task_path = File.expand_path("../tasks", __dir__)
42
47
  Dir["#{task_path}/*.rake"].each do |f|
43
48
  load f
44
49
  end
45
-
46
- # optionally load the tasks from yast-rake-ci if it is installed
47
- begin
48
- require "yast/rake_ci"
49
- rescue LoadError
50
- puts "INFO: Gem yast-rake-ci not installed, extra tasks not loaded" if verbose == true
51
- end
data/lib/yast/tasks.rb CHANGED
@@ -40,6 +40,9 @@ module Yast
40
40
  end
41
41
 
42
42
  def self.submit_to(target, file = TARGETS_FILE)
43
+ # override the target via environment
44
+ target = ENV["YAST_SUBMIT"].to_sym if ENV["YAST_SUBMIT"]
45
+
43
46
  targets = YAML.load_file(file)
44
47
  config = targets[target]
45
48
  if config.nil?
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.46
4
+ version: 0.2.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Reidinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-28 00:00:00.000000000 Z
11
+ date: 2023-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: packaging_rake_tasks