native-package-installer 1.1.8 → 1.1.9

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: 981f350a9fba6ec91378866814d6d2179554d84900d53df8439642ab27a2e805
4
- data.tar.gz: bdfe0a271caa0e2157455a8eaf1cbef53f03c6d5e63a022db0924bc0fb4135c4
3
+ metadata.gz: bc477741b9c25e2c086c44ae179746419fb06a1967d033904291398e3b501f1a
4
+ data.tar.gz: f56f3339582e753d3965ad6ca935da794b4df759bbf721dd0285a57dd561b485
5
5
  SHA512:
6
- metadata.gz: 14b607b69bae622628e4b9e15e2ff55b567adeb3b1ed51cdb246bab030c12135d79626bc1da1c609b8d272abb15c198c80d2d6f83e7015dd8849b3c62cef8821
7
- data.tar.gz: 4dd3f71b628b649f7f2a97276af8b478f886107221b7736a52194316fd79d2185b649622c4d18bd684e36fefe6b0ae648f235222b717187ab2134fa1429ce8ee
6
+ metadata.gz: 949666110b72b830371016e9e1f200a2ed099dcf7438f43584d4915a2f19c7764067133cb760bdcf56f5b162b32764658908e717d23a3b9d80846c5727b87012
7
+ data.tar.gz: 5604dd3a6843882f05b12e9b6800a97d88bd815f133da0d6a3ff6beb05505075d95d5684d2f6ef29f9ad681775eb50310928e0acbd532558ce3d29d2e26b81b3
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.1.9 - 2023-12-18
4
+
5
+ ### Improvements
6
+
7
+ * Added support for Alpine Linux.
8
+
3
9
  ## 1.1.8 - 2023-06-21
4
10
 
5
11
  ### Improvements
@@ -0,0 +1,41 @@
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 AlpineLinux
19
+ Platform.register(self)
20
+
21
+ class << self
22
+ def current_platform?
23
+ os_release = OSRelease.new
24
+ os_release.id == "alpine"
25
+ end
26
+ end
27
+
28
+ def package(spec)
29
+ spec[:alpine_linux]
30
+ end
31
+
32
+ def install_command
33
+ "apk add"
34
+ end
35
+
36
+ def need_super_user_priviledge?
37
+ true
38
+ end
39
+ end
40
+ end
41
+ end
@@ -57,6 +57,8 @@ require_relative "platform/amazon-linux-2023"
57
57
 
58
58
  require_relative "platform/suse"
59
59
 
60
+ require_relative "platform/alpine-linux"
61
+
60
62
 
61
63
  # Windows
62
64
  require_relative "platform/msys2"
@@ -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.8"
17
+ VERSION = "1.1.9"
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.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-20 00:00:00.000000000 Z
11
+ date: 2023-12-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Users need to install native packages to install an extension library
@@ -33,6 +33,7 @@ files:
33
33
  - lib/native-package-installer/executable-finder.rb
34
34
  - lib/native-package-installer/os-release.rb
35
35
  - lib/native-package-installer/platform.rb
36
+ - lib/native-package-installer/platform/alpine-linux.rb
36
37
  - lib/native-package-installer/platform/alt-linux.rb
37
38
  - lib/native-package-installer/platform/amazon-linux-2.rb
38
39
  - lib/native-package-installer/platform/amazon-linux-2023.rb
@@ -70,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
71
  - !ruby/object:Gem::Version
71
72
  version: '0'
72
73
  requirements: []
73
- rubygems_version: 3.5.0.dev
74
+ rubygems_version: 3.5.1
74
75
  signing_key:
75
76
  specification_version: 4
76
77
  summary: native-package-installer helps to install native packages on "gem install"