native-package-installer 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +15 -0
- data/lib/native-package-installer/platform/amazon-linux.rb +39 -0
- data/lib/native-package-installer/platform/fedora.rb +1 -1
- data/lib/native-package-installer/platform/{redhat.rb → red-hat-enterprise-linux.rb} +2 -2
- data/lib/native-package-installer/platform/suse.rb +1 -1
- data/lib/native-package-installer/platform.rb +3 -2
- data/lib/native-package-installer/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19dbe539e67e615403c379579a487662f8a499e80a43655b71318c564cd41c32
|
4
|
+
data.tar.gz: 26896ad5978fe06d6ac3330b52b354a1afd7f892a00d2306ba1d5e01df972949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d9d33138bdfacba49aa33656a58c0b18cf0a961d1f3af83b8f147c40a1d307f8960755a4cd030955ecfa1f7a5cfc218393517821afa3a5969436801c008945a
|
7
|
+
data.tar.gz: 8b146df8007452ca25c470f31140df2326270815fb4195ee167c52b32305dc9906044d425063cd4f1ab86d9d9207f1065165a9ed4949934c03d83d7de944bb53
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.1.4 - 2022-03-17
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Added support for Amazon Linux.
|
8
|
+
[GitHub#14][Reported by docusend1]
|
9
|
+
|
10
|
+
* Renamed the key for Red Hat Enterprise Linux based system such as
|
11
|
+
AlmaLinux and CentOS to `:rhel` from `:redhat`. `:redhat` still
|
12
|
+
can be used to keep backward compatibility.
|
13
|
+
|
14
|
+
### Thanks
|
15
|
+
|
16
|
+
* docusend1
|
17
|
+
|
3
18
|
## 1.1.3 - 2022-01-18
|
4
19
|
|
5
20
|
### Fixes
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Copyright (C) 2022 Ruby-GNOME Project Team
|
2
|
+
#
|
3
|
+
# This library is free software: you can redistribute it and/or modify
|
4
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
5
|
+
# the Free Software Foundation, either version 3 of the License, or
|
6
|
+
# (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public License
|
14
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
15
|
+
|
16
|
+
require_relative "red-hat-enterprise-linux"
|
17
|
+
|
18
|
+
class NativePackageInstaller
|
19
|
+
module Platform
|
20
|
+
class AmazonLinux < RedHatEnterpriseLinux
|
21
|
+
Platform.register(self)
|
22
|
+
|
23
|
+
class << self
|
24
|
+
def current_platform?
|
25
|
+
os_release = OSRelease.new
|
26
|
+
os_release.id == "amzn"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def package(spec)
|
31
|
+
spec[:amazon_linux] || super
|
32
|
+
end
|
33
|
+
|
34
|
+
def install_command
|
35
|
+
"yum install -y"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
class NativePackageInstaller
|
17
17
|
module Platform
|
18
|
-
class
|
18
|
+
class RedHatEnterpriseLinux
|
19
19
|
Platform.register(self)
|
20
20
|
|
21
21
|
class << self
|
@@ -26,7 +26,7 @@ class NativePackageInstaller
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def package(spec)
|
29
|
-
spec[:redhat]
|
29
|
+
spec[:rhel] || spec[:redhat]
|
30
30
|
end
|
31
31
|
|
32
32
|
def install_command
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2017-
|
1
|
+
# Copyright (C) 2017-2022 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
|
@@ -52,7 +52,8 @@ require_relative "platform/alt-linux"
|
|
52
52
|
|
53
53
|
require_relative "platform/pld-linux"
|
54
54
|
|
55
|
-
require_relative "platform/
|
55
|
+
require_relative "platform/red-hat-enterprise-linux"
|
56
|
+
require_relative "platform/amazon-linux"
|
56
57
|
require_relative "platform/fedora"
|
57
58
|
|
58
59
|
require_relative "platform/suse"
|
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.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Users need to install native packages to install an extension library
|
@@ -34,6 +34,7 @@ files:
|
|
34
34
|
- lib/native-package-installer/os-release.rb
|
35
35
|
- lib/native-package-installer/platform.rb
|
36
36
|
- lib/native-package-installer/platform/alt-linux.rb
|
37
|
+
- lib/native-package-installer/platform/amazon-linux.rb
|
37
38
|
- lib/native-package-installer/platform/arch-linux.rb
|
38
39
|
- lib/native-package-installer/platform/debian.rb
|
39
40
|
- lib/native-package-installer/platform/fedora.rb
|
@@ -42,7 +43,7 @@ files:
|
|
42
43
|
- lib/native-package-installer/platform/macports.rb
|
43
44
|
- lib/native-package-installer/platform/msys2.rb
|
44
45
|
- lib/native-package-installer/platform/pld-linux.rb
|
45
|
-
- lib/native-package-installer/platform/
|
46
|
+
- lib/native-package-installer/platform/red-hat-enterprise-linux.rb
|
46
47
|
- lib/native-package-installer/platform/suse.rb
|
47
48
|
- lib/native-package-installer/platform/ubuntu.rb
|
48
49
|
- lib/native-package-installer/platform/unknown.rb
|