obs_deploy 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -5
- data/dist/Makefile +1 -1
- data/dist/rubygem-obs_deploy.spec +39 -92
- data/lib/obs_deploy/check_diff.rb +7 -2
- data/lib/obs_deploy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0f5719e3a953c7cabd13373bb9671b6f9ba030375eddcf6309d0eb4ecc197b8
|
4
|
+
data.tar.gz: 726533caf0cc85fa5421d536944c5f7d768b657746f042797119129ecc62ae00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 234fc276e10b4a7d85bb8ac4e8c27a58846651469c3bec4f40d0aa9c6c109ff7badefdf51bb4422e428a265ebe5671ce925c89ea8db53fb07aeda1cce67edb88
|
7
|
+
data.tar.gz: fd1a3f6fd2bbdab8700cf9e50cac99c7d5ad63a185ea338c5793386f04a1c544b2328aa0e991e60d9cafe8accbdcd4c737b5223fb59ce242732c352fcad0029a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
obs_deploy (0.
|
4
|
+
obs_deploy (0.3.1)
|
5
5
|
cheetah
|
6
6
|
dry-cli
|
7
7
|
nokogiri
|
@@ -16,7 +16,7 @@ GEM
|
|
16
16
|
cheetah (0.5.2)
|
17
17
|
abstract_method (~> 1.2)
|
18
18
|
coderay (1.1.2)
|
19
|
-
concurrent-ruby (1.1.
|
19
|
+
concurrent-ruby (1.1.7)
|
20
20
|
crack (0.4.3)
|
21
21
|
safe_yaml (~> 1.0.0)
|
22
22
|
diff-lcs (1.3)
|
@@ -25,9 +25,10 @@ GEM
|
|
25
25
|
hashdiff (1.0.1)
|
26
26
|
jaro_winkler (1.5.4)
|
27
27
|
method_source (1.0.0)
|
28
|
-
mini_portile2 (2.
|
29
|
-
nokogiri (1.
|
30
|
-
mini_portile2 (~> 2.
|
28
|
+
mini_portile2 (2.5.0)
|
29
|
+
nokogiri (1.11.0)
|
30
|
+
mini_portile2 (~> 2.5.0)
|
31
|
+
racc (~> 1.4)
|
31
32
|
parallel (1.19.1)
|
32
33
|
parser (2.7.0.5)
|
33
34
|
ast (~> 2.4.0)
|
@@ -35,6 +36,7 @@ GEM
|
|
35
36
|
coderay (~> 1.1)
|
36
37
|
method_source (~> 1.0)
|
37
38
|
public_suffix (4.0.3)
|
39
|
+
racc (1.5.2)
|
38
40
|
rainbow (3.0.0)
|
39
41
|
rake (13.0.1)
|
40
42
|
rexml (3.2.4)
|
data/dist/Makefile
CHANGED
@@ -1,104 +1,51 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
#
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
BuildRequires:
|
33
|
-
|
34
|
-
|
35
|
-
Provides: ruby(Obs_deploy) = %{version}
|
36
|
-
|
37
|
-
%define gemdir /home/vpereira/.rvm/gems/ruby-2.5.0
|
38
|
-
%define gembuilddir %{buildroot}%{gemdir}
|
1
|
+
#
|
2
|
+
# spec file for package rubygem-obs_deploy
|
3
|
+
#
|
4
|
+
# Copyright (c) 2020 SUSE LLC
|
5
|
+
#
|
6
|
+
# All modifications and additions to the file contributed by third parties
|
7
|
+
# remain the property of their copyright owners, unless otherwise agreed
|
8
|
+
# upon. The license for this file, and modifications and additions to the
|
9
|
+
# file, is the same license as for the pristine package itself (unless the
|
10
|
+
# license for the pristine package is not an Open Source License, in which
|
11
|
+
# case the license is the MIT License). An "Open Source License" is a
|
12
|
+
# license that conforms to the Open Source Definition (Version 1.9)
|
13
|
+
# published by the Open Source Initiative.
|
14
|
+
|
15
|
+
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
16
|
+
#
|
17
|
+
|
18
|
+
|
19
|
+
%define mod_name obs_deploy
|
20
|
+
%define mod_full_name %{mod_name}-%{version}
|
21
|
+
Name: rubygem-obs_deploy
|
22
|
+
Version: 0.3.0
|
23
|
+
Release: 0
|
24
|
+
Summary: OBS Deployment tool
|
25
|
+
License:
|
26
|
+
Group: Development/Languages/Ruby
|
27
|
+
URL: https://openbuildservice.org
|
28
|
+
Source: https://rubygems.org/gems/%{mod_full_name}.gem
|
29
|
+
BuildRequires: %{rubygem gem2rpm}
|
30
|
+
BuildRequires: %{ruby}
|
31
|
+
BuildRequires: ruby-macros >= 5
|
32
|
+
BuildRequires: update-alternatives
|
33
|
+
# FIXME: use proper Requires(pre/post/preun/...)
|
34
|
+
PreReq: update-alternatives
|
39
35
|
|
40
36
|
%description
|
41
37
|
OBS Deployment tool.
|
42
38
|
|
43
|
-
|
44
39
|
%prep
|
45
|
-
%setup -T -c
|
46
40
|
|
47
41
|
%build
|
48
42
|
|
49
43
|
%install
|
50
|
-
%
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
mv %{gembuilddir}/bin/* %{buildroot}/%{_bindir}
|
55
|
-
rmdir %{gembuilddir}/bin
|
56
|
-
|
57
|
-
%clean
|
58
|
-
%{__rm} -rf %{buildroot}
|
59
|
-
|
60
|
-
%files
|
61
|
-
%defattr(-, root, root)
|
62
|
-
%{_bindir}/console
|
63
|
-
%{_bindir}/obs_deploy
|
64
|
-
%{_bindir}/setup
|
65
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
66
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
67
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
68
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
69
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
70
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
71
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
72
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
73
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
74
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
75
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
76
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
77
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
78
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
79
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
80
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
81
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
82
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
83
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
84
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
85
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
86
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
87
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
88
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
89
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
90
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
91
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
92
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
93
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
94
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
95
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
96
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
97
|
-
%{gemdir}/gems/obs_deploy-0.2.5/
|
98
|
-
|
44
|
+
%gem_install \
|
45
|
+
--symlink-binaries \
|
46
|
+
--doc-files="README.md" \
|
47
|
+
-f
|
99
48
|
|
100
|
-
%
|
101
|
-
%{gemdir}/cache/obs_deploy-0.2.5.gem
|
102
|
-
%{gemdir}/specifications/obs_deploy-0.2.5.gemspec
|
49
|
+
%gem_packages
|
103
50
|
|
104
51
|
%changelog
|
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
module ObsDeploy
|
4
4
|
class CheckDiff
|
5
|
-
def initialize(server: 'https://api.opensuse.org', product: 'SLE_12_SP4')
|
5
|
+
def initialize(server: 'https://api.opensuse.org', product: 'SLE_12_SP4', project: 'OBS:Server:Unstable')
|
6
6
|
@server = server
|
7
7
|
@product = product
|
8
|
+
@project = project
|
8
9
|
end
|
9
10
|
|
10
11
|
def package_version
|
@@ -25,6 +26,10 @@ module ObsDeploy
|
|
25
26
|
Net::HTTP.get(URI("https://github.com/openSUSE/open-build-service/compare/#{obs_running_commit}...#{package_commit}.diff"))
|
26
27
|
end
|
27
28
|
|
29
|
+
def new_version_available?
|
30
|
+
obs_running_commit != package_commit
|
31
|
+
end
|
32
|
+
|
28
33
|
def has_migration?
|
29
34
|
return true if github_diff.nil? || github_diff.empty?
|
30
35
|
|
@@ -50,7 +55,7 @@ module ObsDeploy
|
|
50
55
|
end
|
51
56
|
|
52
57
|
def package_url
|
53
|
-
URI("#{@server}/public/build
|
58
|
+
URI("#{@server}/public/build/#{@project}/#{@product}/x86_64/obs-server")
|
54
59
|
end
|
55
60
|
|
56
61
|
def about_url
|
data/lib/obs_deploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obs_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pereira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|