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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68135b343f8f097ab9d5905665f95d7a6c7b4deb8da945ccd47c0eed1f1156ba
4
- data.tar.gz: 14bfb527c6bb3d0c4937d2f006e19560d4d36a612b577f1e8093f27f21190c60
3
+ metadata.gz: 19dbe539e67e615403c379579a487662f8a499e80a43655b71318c564cd41c32
4
+ data.tar.gz: 26896ad5978fe06d6ac3330b52b354a1afd7f892a00d2306ba1d5e01df972949
5
5
  SHA512:
6
- metadata.gz: d039cc554f6faeb998243befd314030beb4a5b5cffe7c01ccdcefc66d41458292dd7432b4ae7899297f2338b630adb75730184e9f9726f4558bea16bb06fb6b7
7
- data.tar.gz: efd8b4e759b7b195d9b0bf7a81645f28e8575c3aa1747333cced3ceac9fc980e3ed55b30e205bd409a4616e92a5562391dfe608bb3b13ee77153625242e02d36
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
@@ -26,7 +26,7 @@ class NativePackageInstaller
26
26
  end
27
27
 
28
28
  def package(spec)
29
- spec[:fedora] || spec[:redhat]
29
+ spec[:fedora] || spec[:rhel] || spec[:redhat]
30
30
  end
31
31
 
32
32
  def install_command
@@ -15,7 +15,7 @@
15
15
 
16
16
  class NativePackageInstaller
17
17
  module Platform
18
- class RedHat
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
@@ -26,7 +26,7 @@ class NativePackageInstaller
26
26
  end
27
27
 
28
28
  def package(spec)
29
- spec[:suse] || spec[:fedora] || spec[:redhat]
29
+ spec[:suse] || spec[:fedora] || spec[:rhel] || spec[:redhat]
30
30
  end
31
31
 
32
32
  def install_command
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017-2021 Ruby-GNOME Project Team
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/redhat"
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"
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  class NativePackageInstaller
17
- VERSION = "1.1.3"
17
+ VERSION = "1.1.4"
18
18
  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.1.3
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-01-18 00:00:00.000000000 Z
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/redhat.rb
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