native-package-installer 1.0.7 → 1.0.8

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: d1512b1034b94b0fd4736ef480f54590966fa9a8cd47ec892e6ac86c9e9609c5
4
- data.tar.gz: fb28f0ce5fad1bc0ea709c59a69ce7ece4e5cb3e70519d3140d1e7e898b98193
3
+ metadata.gz: e75e3db5462b9e638373b5d7f6be55f21e15f08de233f85d95b33a39b63b2ce8
4
+ data.tar.gz: 2c4fbd4bd8aa65d71e8019e6651ee807a633d30f83305eba018cb48a2ca12acf
5
5
  SHA512:
6
- metadata.gz: 67fc4d5659cf17182219b2da57c258121fbed07e6a6644243e18c47ab9b55bb0c69baaaeac0b3b13c06d1f821ec730e837602703c112490ab2d8089a625cb8ff
7
- data.tar.gz: d294351fb473be5c88bd43fb0cf3e4c34f9d245b7b806e9b6e19f7d4d9d99b6079647b157e28981e8782c283af6a920284b76b4e617d300ca56dc770579b07b8
6
+ metadata.gz: 506b9730b332f1af6376c247bbfbf236861adf7dfe98526687500682e77e195ea6e82a069e66243ae88525d1bff06240f8bd7a3edb6eca4a0b478be3f4ca8fda
7
+ data.tar.gz: 51b0992631efacd9b31652f2160f938727f921a127ac82320911bfa6a3b18ec6da1473772b53e2193fe3f90ba548a5e5a9fc97d9b72c900465d07b42bc9c1feb
data/README.md CHANGED
@@ -4,6 +4,6 @@ TODO...
4
4
 
5
5
  ## License
6
6
 
7
- Copyright (C) 2013-2017 Ruby-GNOME2 Project Team
7
+ Copyright (C) 2013-2019 Ruby-GNOME Project Team
8
8
 
9
9
  LGPL-3 or later. See doc/text/lgpl-3.txt for details.
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.0.8 - 2019-10-10
4
+
5
+ ### Improvements
6
+
7
+ * Enabled PowerTools repository on CentOS 8.
8
+
3
9
  ## 1.0.7 - 2019-03-09
4
10
 
5
11
  ### Fixes
@@ -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
@@ -29,12 +29,22 @@ class NativePackageInstaller
29
29
  end
30
30
 
31
31
  def install_command
32
- "yum install -y"
32
+ if major_version >= 8
33
+ "dnf install --enablerepo=PowerTools -y"
34
+ else
35
+ "yum install -y"
36
+ end
33
37
  end
34
38
 
35
39
  def need_super_user_priviledge?
36
40
  true
37
41
  end
42
+
43
+ private
44
+ def major_version
45
+ major_version_string = File.read("/etc/redhat-release")[/(\d+)/, 0]
46
+ Integer(major_version_string, 10)
47
+ end
38
48
  end
39
49
  end
40
50
  end
@@ -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.7"
17
+ VERSION = "1.0.8"
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.7
4
+ version: 1.0.8
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-03-09 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -89,7 +89,7 @@ files:
89
89
  - lib/native-package-installer/version.rb
90
90
  - test/run-test.rb
91
91
  - test/test-executable-finder.rb
92
- homepage: https://github.com/ruby-gnome2/native-package-installer
92
+ homepage: https://github.com/ruby-gnome/native-package-installer
93
93
  licenses:
94
94
  - LGPL-3+
95
95
  metadata: {}
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.7.6
112
+ rubygems_version: 2.7.6.2
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: native-package-installer helps to install native packages on "gem install"