native-package-installer 1.0.8 → 1.0.9
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/Rakefile +1 -1
- data/doc/text/news.md +11 -0
- data/lib/native-package-installer.rb +1 -1
- data/lib/native-package-installer/executable-finder.rb +1 -1
- data/lib/native-package-installer/platform.rb +5 -4
- data/lib/native-package-installer/platform/alt-linux.rb +1 -1
- data/lib/native-package-installer/platform/arch-linux.rb +1 -1
- data/lib/native-package-installer/platform/debian.rb +5 -2
- data/lib/native-package-installer/platform/fedora.rb +1 -1
- data/lib/native-package-installer/platform/freebsd.rb +1 -1
- data/lib/native-package-installer/platform/homebrew.rb +1 -1
- data/lib/native-package-installer/platform/macports.rb +1 -1
- data/lib/native-package-installer/platform/msys2.rb +1 -1
- data/lib/native-package-installer/platform/pld-linux.rb +1 -1
- data/lib/native-package-installer/platform/suse.rb +1 -1
- data/lib/native-package-installer/platform/ubuntu.rb +37 -0
- data/lib/native-package-installer/platform/unknown.rb +1 -1
- data/lib/native-package-installer/version.rb +2 -2
- data/test/run-test.rb +1 -1
- data/test/test-executable-finder.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f35f98a4e7f7e3c4cd63521be8ed56abc585801ac7bc99cb5983a26266328f32
|
|
4
|
+
data.tar.gz: 1cf0f9ffeb74b94ee882e1ad581d7d29ca0810133288964d2e632aafd2f9437d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fc965159faf0b862759a24492774a5b75675083d6aa53988e4d1f383ce0dd71a3ff7085e846b5c1f08f1acad833c0b8ebe258fec7a32bd835a14596195f8b94
|
|
7
|
+
data.tar.gz: 5ef3111b82c73eed00118c7042a5a90bc6af8a6619ed64b091f72cb3468b23d2a11469a72f8c22d56e12e89cfb851cc1700f78cb9f75a7521a4b5475ab7d7eea
|
data/Rakefile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -*- ruby -*-
|
|
2
2
|
#
|
|
3
|
-
# Copyright (C) 2013 Ruby-
|
|
3
|
+
# Copyright (C) 2013 Ruby-GNOME Project Team
|
|
4
4
|
#
|
|
5
5
|
# This library is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU Lesser General Public License as published by
|
data/doc/text/news.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2017 Ruby-
|
|
1
|
+
# Copyright (C) 2017-2019 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
|
|
@@ -37,13 +37,14 @@ require "native-package-installer/platform/msys2"
|
|
|
37
37
|
|
|
38
38
|
require "native-package-installer/platform/freebsd"
|
|
39
39
|
|
|
40
|
+
require "native-package-installer/platform/alt-linux"
|
|
41
|
+
require "native-package-installer/platform/arch-linux"
|
|
40
42
|
require "native-package-installer/platform/debian"
|
|
41
43
|
require "native-package-installer/platform/fedora"
|
|
44
|
+
require "native-package-installer/platform/pld-linux"
|
|
42
45
|
require "native-package-installer/platform/redhat"
|
|
43
46
|
require "native-package-installer/platform/suse"
|
|
44
|
-
require "native-package-installer/platform/
|
|
45
|
-
require "native-package-installer/platform/arch-linux"
|
|
46
|
-
require "native-package-installer/platform/pld-linux"
|
|
47
|
+
require "native-package-installer/platform/ubuntu"
|
|
47
48
|
|
|
48
49
|
require "native-package-installer/platform/homebrew"
|
|
49
50
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2013 Ruby-
|
|
1
|
+
# Copyright (C) 2013-2019 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
|
|
@@ -20,7 +20,10 @@ class NativePackageInstaller
|
|
|
20
20
|
|
|
21
21
|
class << self
|
|
22
22
|
def current_platform?
|
|
23
|
-
File.exist?("/etc/
|
|
23
|
+
return false unless File.exist?("/etc/os-release")
|
|
24
|
+
File.readlines("/etc/os-release").any? do |line|
|
|
25
|
+
line.chomp == "ID=debian"
|
|
26
|
+
end
|
|
24
27
|
end
|
|
25
28
|
end
|
|
26
29
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Copyright (C) 2019 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 "native-package-installer/platform/debian"
|
|
17
|
+
|
|
18
|
+
class NativePackageInstaller
|
|
19
|
+
module Platform
|
|
20
|
+
class Ubuntu < Debian
|
|
21
|
+
Platform.register(self)
|
|
22
|
+
|
|
23
|
+
class << self
|
|
24
|
+
def current_platform?
|
|
25
|
+
return false unless File.exist?("/etc/lsb-release")
|
|
26
|
+
File.readlines("/etc/lsb-release").any? do |line|
|
|
27
|
+
line.chomp == "DISTRIB_ID=Ubuntu"
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def package(spec)
|
|
33
|
+
spec[:ubuntu] || spec[:debian]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2013-2019 Ruby-
|
|
1
|
+
# Copyright (C) 2013-2019 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
|
|
@@ -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.0.
|
|
17
|
+
VERSION = "1.0.9"
|
|
18
18
|
end
|
data/test/run-test.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
#
|
|
3
|
-
# Copyright (C) 2013 Ruby-
|
|
3
|
+
# Copyright (C) 2013 Ruby-GNOME Project Team
|
|
4
4
|
#
|
|
5
5
|
# This library is free software: you can redistribute it and/or modify
|
|
6
6
|
# it under the terms of the GNU Lesser General Public License as published by
|
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.0.
|
|
4
|
+
version: 1.0.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: 2019-
|
|
11
|
+
date: 2019-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -85,6 +85,7 @@ files:
|
|
|
85
85
|
- lib/native-package-installer/platform/pld-linux.rb
|
|
86
86
|
- lib/native-package-installer/platform/redhat.rb
|
|
87
87
|
- lib/native-package-installer/platform/suse.rb
|
|
88
|
+
- lib/native-package-installer/platform/ubuntu.rb
|
|
88
89
|
- lib/native-package-installer/platform/unknown.rb
|
|
89
90
|
- lib/native-package-installer/version.rb
|
|
90
91
|
- test/run-test.rb
|