native-package-installer 1.0.8 → 1.0.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: e75e3db5462b9e638373b5d7f6be55f21e15f08de233f85d95b33a39b63b2ce8
4
- data.tar.gz: 2c4fbd4bd8aa65d71e8019e6651ee807a633d30f83305eba018cb48a2ca12acf
3
+ metadata.gz: f35f98a4e7f7e3c4cd63521be8ed56abc585801ac7bc99cb5983a26266328f32
4
+ data.tar.gz: 1cf0f9ffeb74b94ee882e1ad581d7d29ca0810133288964d2e632aafd2f9437d
5
5
  SHA512:
6
- metadata.gz: 506b9730b332f1af6376c247bbfbf236861adf7dfe98526687500682e77e195ea6e82a069e66243ae88525d1bff06240f8bd7a3edb6eca4a0b478be3f4ca8fda
7
- data.tar.gz: 51b0992631efacd9b31652f2160f938727f921a127ac82320911bfa6a3b18ec6da1473772b53e2193fe3f90ba548a5e5a9fc97d9b72c900465d07b42bc9c1feb
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-GNOME2 Project Team
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
@@ -1,5 +1,16 @@
1
1
  # News
2
2
 
3
+ ## 1.0.9 - 2019-12-10
4
+
5
+ ### Improvements
6
+
7
+ * Added support for Ubuntu specific package.
8
+ [GitHub#9][Patch by İsmail Arılık]
9
+
10
+ ### Thanks
11
+
12
+ * İsmail Arılık
13
+
3
14
  ## 1.0.8 - 2019-10-10
4
15
 
5
16
  ### Improvements
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013-2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2013-2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
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/alt-linux"
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) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
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/debian_version")
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
 
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017-2019 Ruby-GNOME2 Project Team
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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -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) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017 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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013-2019 Ruby-GNOME2 Project Team
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.8"
17
+ VERSION = "1.0.9"
18
18
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2013 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
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.8
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-10-10 00:00:00.000000000 Z
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