native-package-installer 1.0.9 → 1.1.1

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: f35f98a4e7f7e3c4cd63521be8ed56abc585801ac7bc99cb5983a26266328f32
4
- data.tar.gz: 1cf0f9ffeb74b94ee882e1ad581d7d29ca0810133288964d2e632aafd2f9437d
3
+ metadata.gz: 2aa12c4733223ecb4697821c92e0eaba5112bbfae5a555bfd1c3210d056f5395
4
+ data.tar.gz: ba2f24290c5a26fe092925136dd29965f9cc8bd803e9c18ad28343b01928f0ab
5
5
  SHA512:
6
- metadata.gz: 7fc965159faf0b862759a24492774a5b75675083d6aa53988e4d1f383ce0dd71a3ff7085e846b5c1f08f1acad833c0b8ebe258fec7a32bd835a14596195f8b94
7
- data.tar.gz: 5ef3111b82c73eed00118c7042a5a90bc6af8a6619ed64b091f72cb3468b23d2a11469a72f8c22d56e12e89cfb851cc1700f78cb9f75a7521a4b5475ab7d7eea
6
+ metadata.gz: 39a5ed187c1f0a687216ccdc18035c9e7ff9f13a963e788831d17c4d9667227cb8aa6e51d3948f08d10f4331c872879e9b8288bca86ea5331abe5e050458279a
7
+ data.tar.gz: 502a728e427413d0e41f747bad0b6ab4bd4ae0c4ab1578db3ac8c4daa86feaf893446aaaa29b1e6d529572795a3084d4300e375b00ed96bdc41dafc51ec14b69
data/README.md CHANGED
@@ -1,9 +1,16 @@
1
- # README
1
+ # native-package-installer
2
2
 
3
- TODO...
3
+ [![Gem Version](https://badge.fury.io/rb/native-package-installer.svg)](https://badge.fury.io/rb/native-package-installer)
4
+
5
+ Users need to install native packages to install an extension library
6
+ that depends on native packages. It bores users because users need to
7
+ install native packages and an extension library separately.
8
+ native-package-installer helps to install native packages on "gem install".
9
+ Users can install both native packages and an extension library by one action,
10
+ "gem install".
4
11
 
5
12
  ## License
6
13
 
7
- Copyright (C) 2013-2019 Ruby-GNOME Project Team
14
+ Copyright (C) 2013-2020 Ruby-GNOME Project Team
8
15
 
9
16
  LGPL-3 or later. See doc/text/lgpl-3.txt for details.
@@ -1,5 +1,27 @@
1
1
  # News
2
2
 
3
+ ## 1.1.1 - 2021-01-17
4
+
5
+ ### Improvements
6
+
7
+ * [CentOS 8] Followed the powertools repository name change.
8
+
9
+ ## 1.1.0 - 2020-04-12
10
+
11
+ ### Improvements
12
+
13
+ * Updated README.
14
+ [GitHub#11][Patch by kojix2]
15
+
16
+ * Added support for Raspbian.
17
+ [GitHub#12][Patch by xetum]
18
+
19
+ ### Thanks
20
+
21
+ * kojix2
22
+
23
+ * xetum
24
+
3
25
  ## 1.0.9 - 2019-12-10
4
26
 
5
27
  ### Improvements
@@ -21,9 +21,15 @@ class NativePackageInstaller
21
21
  class << self
22
22
  def current_platform?
23
23
  return false unless File.exist?("/etc/os-release")
24
- File.readlines("/etc/os-release").any? do |line|
25
- line.chomp == "ID=debian"
24
+ File.readlines("/etc/os-release").each do |line|
25
+ case line.chomp
26
+ when "ID=debian"
27
+ return true
28
+ when "ID=raspbian"
29
+ return true
30
+ end
26
31
  end
32
+ return false
27
33
  end
28
34
  end
29
35
 
@@ -30,7 +30,7 @@ class NativePackageInstaller
30
30
 
31
31
  def install_command
32
32
  if major_version >= 8
33
- "dnf install --enablerepo=PowerTools -y"
33
+ "dnf install --enablerepo=powertools -y"
34
34
  else
35
35
  "yum install -y"
36
36
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013-2019 Ruby-GNOME Project Team
1
+ # Copyright (C) 2013-2021 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.9"
17
+ VERSION = "1.1.1"
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.0.9
4
+ version: 1.1.1
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-12-10 00:00:00.000000000 Z
11
+ date: 2021-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,8 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubyforge_project:
113
- rubygems_version: 2.7.6.2
112
+ rubygems_version: 3.3.0.dev
114
113
  signing_key:
115
114
  specification_version: 4
116
115
  summary: native-package-installer helps to install native packages on "gem install"