native-package-installer 1.1.4 → 1.1.5

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: 19dbe539e67e615403c379579a487662f8a499e80a43655b71318c564cd41c32
4
- data.tar.gz: 26896ad5978fe06d6ac3330b52b354a1afd7f892a00d2306ba1d5e01df972949
3
+ metadata.gz: dde9205f957efd76f9694fdc3b5226ebcd9b69ad9523f91d7a72708656a884fa
4
+ data.tar.gz: 205dd85c056fb1a3e2083d09a5a53f3d40782075029f9346728c7f121b07d2fa
5
5
  SHA512:
6
- metadata.gz: 5d9d33138bdfacba49aa33656a58c0b18cf0a961d1f3af83b8f147c40a1d307f8960755a4cd030955ecfa1f7a5cfc218393517821afa3a5969436801c008945a
7
- data.tar.gz: 8b146df8007452ca25c470f31140df2326270815fb4195ee167c52b32305dc9906044d425063cd4f1ab86d9d9207f1065165a9ed4949934c03d83d7de944bb53
6
+ metadata.gz: c75bdfd03e2ef20211d7fb2edff8d46da46478bcaf14fd29f80f27acdc79ce563a990fabe20a40a990e7be289e2bcfcfb3fc555f0849649da47b61c2cb52cc68
7
+ data.tar.gz: cb25f859a69b0a43adfc617e2de87c03ae8299cbbe69197d4e2680583151a44ee2112aed9348a8b627a0f26d58c7147a2209beef0e47e22eb9526d47d1fb861b
data/doc/text/news.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # News
2
2
 
3
+ ## 1.1.5 - 2022-07-24
4
+
5
+ ### Improvements
6
+
7
+ * Added support for Red Hat Enterprise Linux 9.
8
+
9
+ * Added support for Gentoo Linux.
10
+
3
11
  ## 1.1.4 - 2022-03-17
4
12
 
5
13
  ### Improvements
@@ -0,0 +1,47 @@
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
+ class NativePackageInstaller
17
+ module Platform
18
+ class GentooLinux
19
+ Platform.register(self)
20
+
21
+ class << self
22
+ def current_platform?
23
+ os_release = OSRelease.new
24
+ case os_release.id
25
+ when "gentoo"
26
+ return true
27
+ else
28
+ return true if os_release.id_like.include?("gentoo")
29
+ end
30
+ false
31
+ end
32
+ end
33
+
34
+ def package(spec)
35
+ spec[:gentoo_linux]
36
+ end
37
+
38
+ def install_command
39
+ "emerge --getbinpkg --usepkg"
40
+ end
41
+
42
+ def need_super_user_priviledge?
43
+ true
44
+ end
45
+ end
46
+ end
47
+ end
@@ -30,7 +30,9 @@ class NativePackageInstaller
30
30
  end
31
31
 
32
32
  def install_command
33
- if major_version >= 8
33
+ if major_version >= 9
34
+ "dnf install --enablerepo=crb -y"
35
+ elsif major_version >= 8
34
36
  "dnf install --enablerepo=powertools -y"
35
37
  else
36
38
  "yum install -y"
@@ -45,6 +45,7 @@ require_relative "platform/freebsd"
45
45
 
46
46
  # Linux
47
47
  require_relative "platform/arch-linux"
48
+ require_relative "platform/gentoo-linux"
48
49
 
49
50
  require_relative "platform/debian"
50
51
  require_relative "platform/ubuntu"
@@ -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.4"
17
+ VERSION = "1.1.5"
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.4
4
+ version: 1.1.5
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-03-16 00:00:00.000000000 Z
11
+ date: 2022-07-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Users need to install native packages to install an extension library
@@ -39,6 +39,7 @@ files:
39
39
  - lib/native-package-installer/platform/debian.rb
40
40
  - lib/native-package-installer/platform/fedora.rb
41
41
  - lib/native-package-installer/platform/freebsd.rb
42
+ - lib/native-package-installer/platform/gentoo-linux.rb
42
43
  - lib/native-package-installer/platform/homebrew.rb
43
44
  - lib/native-package-installer/platform/macports.rb
44
45
  - lib/native-package-installer/platform/msys2.rb