native-package-installer 1.1.7 → 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: 63b821a976b436979d999eb9a9d1d3b948c24553a760e19c6be4056586940ab3
4
- data.tar.gz: d2265f35feb648ecb7247ce7c291bf3bd58dfb57be1e58295c954e9197d92422
3
+ metadata.gz: bc477741b9c25e2c086c44ae179746419fb06a1967d033904291398e3b501f1a
4
+ data.tar.gz: f56f3339582e753d3965ad6ca935da794b4df759bbf721dd0285a57dd561b485
5
5
  SHA512:
6
- metadata.gz: fecff1e588decf287212fe73c22aaa8f0fa1ff7bd6a48e1ae46f8309166ad194260e8614625bdf36a6d2e0cdc2698c4fdaf32b595d1cb98a5308e6d3ad16bcb8
7
- data.tar.gz: ed6447f80b4c22d95b3464cdee51bbb548e6b2bbf85524bf2f1313124fc5155e12a245d1794de09608ed9f58d53124b424ca08e489f02ff99b41966654184139
6
+ metadata.gz: 949666110b72b830371016e9e1f200a2ed099dcf7438f43584d4915a2f19c7764067133cb760bdcf56f5b162b32764658908e717d23a3b9d80846c5727b87012
7
+ data.tar.gz: 5604dd3a6843882f05b12e9b6800a97d88bd815f133da0d6a3ff6beb05505075d95d5684d2f6ef29f9ad681775eb50310928e0acbd532558ce3d29d2e26b81b3
data/doc/text/news.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # News
2
2
 
3
+ ## 1.1.9 - 2023-12-18
4
+
5
+ ### Improvements
6
+
7
+ * Added support for Alpine Linux.
8
+
9
+ ## 1.1.8 - 2023-06-21
10
+
11
+ ### Improvements
12
+
13
+ * conda: Stopped to use conda unless `CONDA_PREFIX` environment
14
+ variable is defined.
15
+
3
16
  ## 1.1.7 - 2023-06-20
4
17
 
5
18
  ### Fixes
@@ -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
@@ -20,7 +20,7 @@ class NativePackageInstaller
20
20
 
21
21
  class << self
22
22
  def current_platform?
23
- ExecutableFinder.exist?("conda")
23
+ ENV["CONDA_PREFIX"] && ExecutableFinder.exist?("conda")
24
24
  end
25
25
  end
26
26
 
@@ -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.7"
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.7
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-19 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"