native-package-installer 1.1.4 → 1.1.6
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/doc/text/news.md +16 -0
- data/lib/native-package-installer/os-release.rb +4 -0
- data/lib/native-package-installer/platform/{amazon-linux.rb → amazon-linux-2.rb} +4 -4
- data/lib/native-package-installer/platform/amazon-linux-2023.rb +39 -0
- data/lib/native-package-installer/platform/conda.rb +40 -0
- data/lib/native-package-installer/platform/fedora.rb +2 -2
- data/lib/native-package-installer/platform/gentoo-linux.rb +47 -0
- data/lib/native-package-installer/platform/red-hat-enterprise-linux.rb +3 -1
- data/lib/native-package-installer/platform.rb +10 -6
- data/lib/native-package-installer/version.rb +1 -1
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f55746d70dbe2e3afb02bae4f0025933456d4e2409da461c9f72663b254a6d4a
|
4
|
+
data.tar.gz: 66bc734383c1fc47c144f4f43116b0ff602bc9ef5e177581e7219665d489508b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cde30f3ac7406c3d723e829615ba0798bc720ffd219dc1cb26c7bbceeb8d668a6d3992561dd7502d26290c050c7697d93769d979aaa1d7780ed08d3bc98376f6
|
7
|
+
data.tar.gz: 7a4535a74406e27a6eb47182742ef541f68ac71af1cc44f24aa6de355cc98863a56d504d22991d2194d869f60bbcb26ae3b41d0b469503b04caf40d0f6ab8cc2
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.1.6 - 2023-06-18
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Added support for conda.
|
8
|
+
|
9
|
+
* Added support for Amazon Linux 2023.
|
10
|
+
|
11
|
+
## 1.1.5 - 2022-07-24
|
12
|
+
|
13
|
+
### Improvements
|
14
|
+
|
15
|
+
* Added support for Red Hat Enterprise Linux 9.
|
16
|
+
|
17
|
+
* Added support for Gentoo Linux.
|
18
|
+
|
3
19
|
## 1.1.4 - 2022-03-17
|
4
20
|
|
5
21
|
### Improvements
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2022 Ruby-GNOME Project Team
|
1
|
+
# Copyright (C) 2022-2023 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
|
@@ -17,18 +17,18 @@ require_relative "red-hat-enterprise-linux"
|
|
17
17
|
|
18
18
|
class NativePackageInstaller
|
19
19
|
module Platform
|
20
|
-
class
|
20
|
+
class AmazonLinux2 < RedHatEnterpriseLinux
|
21
21
|
Platform.register(self)
|
22
22
|
|
23
23
|
class << self
|
24
24
|
def current_platform?
|
25
25
|
os_release = OSRelease.new
|
26
|
-
os_release.id == "amzn"
|
26
|
+
os_release.id == "amzn" and os_release.version == "2"
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
def package(spec)
|
31
|
-
spec[:amazon_linux] || super
|
31
|
+
spec[:amazon_linux_2] || spec[:amazon_linux] || super
|
32
32
|
end
|
33
33
|
|
34
34
|
def install_command
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Copyright (C) 2023 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 "fedora"
|
17
|
+
|
18
|
+
class NativePackageInstaller
|
19
|
+
module Platform
|
20
|
+
class AmazonLinux2023 < Fedora
|
21
|
+
Platform.register(self)
|
22
|
+
|
23
|
+
class << self
|
24
|
+
def current_platform?
|
25
|
+
os_release = OSRelease.new
|
26
|
+
os_release.id == "amzn" and os_release.version == "2023"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def package(spec)
|
31
|
+
spec[:amazon_linux_2023] || spec[:amazon_linux] || super
|
32
|
+
end
|
33
|
+
|
34
|
+
def install_command
|
35
|
+
"dnf install -y"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Copyright (C) 2023 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 Conda
|
19
|
+
Platform.register(self)
|
20
|
+
|
21
|
+
class << self
|
22
|
+
def current_platform?
|
23
|
+
ExecutableFinder.exist?("conda")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def package(spec)
|
28
|
+
spec[:conda]
|
29
|
+
end
|
30
|
+
|
31
|
+
def install_command
|
32
|
+
"conda install -c conda-forge"
|
33
|
+
end
|
34
|
+
|
35
|
+
def need_super_user_priviledge?
|
36
|
+
false
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2021 Ruby-GNOME Project Team
|
1
|
+
# Copyright (C) 2021-2023 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
|
@@ -21,7 +21,7 @@ class NativePackageInstaller
|
|
21
21
|
class << self
|
22
22
|
def current_platform?
|
23
23
|
os_release = OSRelease.new
|
24
|
-
os_release.id == "fedora"
|
24
|
+
os_release.id == "fedora" or os_release.id_like.include?("fedora")
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -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
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2017-
|
1
|
+
# Copyright (C) 2017-2023 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
|
@@ -32,12 +32,9 @@ class NativePackageInstaller
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
|
36
35
|
# macOS
|
37
36
|
require_relative "platform/macports"
|
38
37
|
|
39
|
-
require_relative "platform/homebrew"
|
40
|
-
|
41
38
|
|
42
39
|
# FreeBSD
|
43
40
|
require_relative "platform/freebsd"
|
@@ -45,6 +42,7 @@ require_relative "platform/freebsd"
|
|
45
42
|
|
46
43
|
# Linux
|
47
44
|
require_relative "platform/arch-linux"
|
45
|
+
require_relative "platform/gentoo-linux"
|
48
46
|
|
49
47
|
require_relative "platform/debian"
|
50
48
|
require_relative "platform/ubuntu"
|
@@ -52,9 +50,10 @@ require_relative "platform/alt-linux"
|
|
52
50
|
|
53
51
|
require_relative "platform/pld-linux"
|
54
52
|
|
55
|
-
require_relative "platform/red-hat-enterprise-linux"
|
56
|
-
require_relative "platform/amazon-linux"
|
57
53
|
require_relative "platform/fedora"
|
54
|
+
require_relative "platform/red-hat-enterprise-linux"
|
55
|
+
require_relative "platform/amazon-linux-2"
|
56
|
+
require_relative "platform/amazon-linux-2023"
|
58
57
|
|
59
58
|
require_relative "platform/suse"
|
60
59
|
|
@@ -63,5 +62,10 @@ require_relative "platform/suse"
|
|
63
62
|
require_relative "platform/msys2"
|
64
63
|
|
65
64
|
|
65
|
+
# Platform independent
|
66
|
+
require_relative "platform/homebrew"
|
67
|
+
require_relative "platform/conda"
|
68
|
+
|
69
|
+
|
66
70
|
# Fallback
|
67
71
|
require_relative "platform/unknown"
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-17 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,11 +34,14 @@ 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
|
+
- lib/native-package-installer/platform/amazon-linux-2.rb
|
38
|
+
- lib/native-package-installer/platform/amazon-linux-2023.rb
|
38
39
|
- lib/native-package-installer/platform/arch-linux.rb
|
40
|
+
- lib/native-package-installer/platform/conda.rb
|
39
41
|
- lib/native-package-installer/platform/debian.rb
|
40
42
|
- lib/native-package-installer/platform/fedora.rb
|
41
43
|
- lib/native-package-installer/platform/freebsd.rb
|
44
|
+
- lib/native-package-installer/platform/gentoo-linux.rb
|
42
45
|
- lib/native-package-installer/platform/homebrew.rb
|
43
46
|
- lib/native-package-installer/platform/macports.rb
|
44
47
|
- lib/native-package-installer/platform/msys2.rb
|
@@ -52,7 +55,7 @@ homepage: https://github.com/ruby-gnome/native-package-installer
|
|
52
55
|
licenses:
|
53
56
|
- LGPL-3+
|
54
57
|
metadata: {}
|
55
|
-
post_install_message:
|
58
|
+
post_install_message:
|
56
59
|
rdoc_options: []
|
57
60
|
require_paths:
|
58
61
|
- lib
|
@@ -67,8 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '0'
|
69
72
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
71
|
-
signing_key:
|
73
|
+
rubygems_version: 3.5.0.dev
|
74
|
+
signing_key:
|
72
75
|
specification_version: 4
|
73
76
|
summary: native-package-installer helps to install native packages on "gem install"
|
74
77
|
test_files: []
|