packaging_rake_tasks 1.3.1 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tasks/check_syntax.rake +11 -1
- data/lib/tasks/osc.rake +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a8b976716792d14586a1f12b6831bb6789992d0
|
4
|
+
data.tar.gz: 28e8ced16c95713c36c700e3a6ff231d88791377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ec739105a8ddeb49785ecbdc4f417348b34013428be9e2f88b9baedf808b706480c428176cb8d610e6059eaf1dcbc27f7d7e117d40d18aa8a89a03df3212aab
|
7
|
+
data.tar.gz: b4f65f38bbc7588ebdc0a60b72dfda0416d17f72c1e99d3a80405e38c16b140c2dc1a41783cb8b06ae4386d850b7d3b042b9552806d1b4cba160b4c358b5c97b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.3
|
data/lib/tasks/check_syntax.rake
CHANGED
@@ -15,6 +15,15 @@
|
|
15
15
|
#++
|
16
16
|
|
17
17
|
require 'rake'
|
18
|
+
begin
|
19
|
+
require 'parallel'
|
20
|
+
rescue LoadError
|
21
|
+
module Parallel
|
22
|
+
def self.each(enum, options = {}, &block)
|
23
|
+
enum.each(&block)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
18
27
|
|
19
28
|
namespace :check do
|
20
29
|
desc "Check syntax of all Ruby (*.rb) files"
|
@@ -22,7 +31,8 @@ namespace :check do
|
|
22
31
|
puts "* Starting syntax check..." if verbose
|
23
32
|
|
24
33
|
# check all *.rb files
|
25
|
-
Dir.glob("**/*.rb")
|
34
|
+
files = Dir.glob("**/*.rb")
|
35
|
+
Parallel.each(files) do |file|
|
26
36
|
# skip rspec files as it is not pure ruby scripts and ruby -c failed
|
27
37
|
begin
|
28
38
|
next unless File.readlines(file, $\, :encoding => "UTF-8").grep(/^#!.*rspec/).empty?
|
data/lib/tasks/osc.rake
CHANGED
@@ -78,7 +78,12 @@ namespace :osc do
|
|
78
78
|
begin
|
79
79
|
file = Tempfile.new('yast-rake')
|
80
80
|
file.close
|
81
|
-
sh "osc -A '#{obs_api}' cat '#{obs_sr_project}' '#{package_name}' '#{package_name}.spec' > #{file.path}"
|
81
|
+
sh "osc -A '#{obs_api}' cat '#{obs_sr_project}' '#{package_name}' '#{package_name}.spec' > #{file.path}" do |ok, res|
|
82
|
+
if !ok
|
83
|
+
puts "Version cannot be compared, so act like it is different" if verbose
|
84
|
+
return true
|
85
|
+
end
|
86
|
+
end
|
82
87
|
original_version = version_from_spec(file.path)
|
83
88
|
new_version = version_from_spec(updated_spec_file)
|
84
89
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packaging_rake_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josef Reidinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -45,7 +45,7 @@ files:
|
|
45
45
|
- lib/tasks/osc.rake
|
46
46
|
- lib/tasks/package.rake
|
47
47
|
- lib/tasks/tarball.rake
|
48
|
-
homepage:
|
48
|
+
homepage: https://github.com/openSUSE/packaging_rake_tasks
|
49
49
|
licenses:
|
50
50
|
- LGPL v2.1
|
51
51
|
metadata: {}
|