native-package-installer 1.0.7 → 1.0.8
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/README.md +1 -1
- data/doc/text/news.md +6 -0
- data/lib/native-package-installer/platform/redhat.rb +12 -2
- data/lib/native-package-installer/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e75e3db5462b9e638373b5d7f6be55f21e15f08de233f85d95b33a39b63b2ce8
|
|
4
|
+
data.tar.gz: 2c4fbd4bd8aa65d71e8019e6651ee807a633d30f83305eba018cb48a2ca12acf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 506b9730b332f1af6376c247bbfbf236861adf7dfe98526687500682e77e195ea6e82a069e66243ae88525d1bff06240f8bd7a3edb6eca4a0b478be3f4ca8fda
|
|
7
|
+
data.tar.gz: 51b0992631efacd9b31652f2160f938727f921a127ac82320911bfa6a3b18ec6da1473772b53e2193fe3f90ba548a5e5a9fc97d9b72c900465d07b42bc9c1feb
|
data/README.md
CHANGED
data/doc/text/news.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2017 Ruby-
|
|
1
|
+
# Copyright (C) 2017-2019 Ruby-GNOME Project Team
|
|
2
2
|
#
|
|
3
3
|
# This library is free software: you can redistribute it and/or modify
|
|
4
4
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -29,12 +29,22 @@ class NativePackageInstaller
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def install_command
|
|
32
|
-
|
|
32
|
+
if major_version >= 8
|
|
33
|
+
"dnf install --enablerepo=PowerTools -y"
|
|
34
|
+
else
|
|
35
|
+
"yum install -y"
|
|
36
|
+
end
|
|
33
37
|
end
|
|
34
38
|
|
|
35
39
|
def need_super_user_priviledge?
|
|
36
40
|
true
|
|
37
41
|
end
|
|
42
|
+
|
|
43
|
+
private
|
|
44
|
+
def major_version
|
|
45
|
+
major_version_string = File.read("/etc/redhat-release")[/(\d+)/, 0]
|
|
46
|
+
Integer(major_version_string, 10)
|
|
47
|
+
end
|
|
38
48
|
end
|
|
39
49
|
end
|
|
40
50
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: native-package-installer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kouhei Sutou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-10-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -89,7 +89,7 @@ files:
|
|
|
89
89
|
- lib/native-package-installer/version.rb
|
|
90
90
|
- test/run-test.rb
|
|
91
91
|
- test/test-executable-finder.rb
|
|
92
|
-
homepage: https://github.com/ruby-
|
|
92
|
+
homepage: https://github.com/ruby-gnome/native-package-installer
|
|
93
93
|
licenses:
|
|
94
94
|
- LGPL-3+
|
|
95
95
|
metadata: {}
|
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
109
109
|
version: '0'
|
|
110
110
|
requirements: []
|
|
111
111
|
rubyforge_project:
|
|
112
|
-
rubygems_version: 2.7.6
|
|
112
|
+
rubygems_version: 2.7.6.2
|
|
113
113
|
signing_key:
|
|
114
114
|
specification_version: 4
|
|
115
115
|
summary: native-package-installer helps to install native packages on "gem install"
|