native-package-installer 1.1.2 → 1.1.3

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: f81b6a31d687db3d8f2b8a18e81b1a5fcd89531561940774c31b115e2068d4ee
4
- data.tar.gz: 3f015fe58c1046a6db4adae8ca89487f136e2155ac3de47efe142fdd6b02c58f
3
+ metadata.gz: 68135b343f8f097ab9d5905665f95d7a6c7b4deb8da945ccd47c0eed1f1156ba
4
+ data.tar.gz: 14bfb527c6bb3d0c4937d2f006e19560d4d36a612b577f1e8093f27f21190c60
5
5
  SHA512:
6
- metadata.gz: e6ce52d9eb449fe1ec2a98a83d6e719eb9e301e00122dc676e18871c5d00660c1c5331dc9dfa5903eabebecef4fe891e60479b1893f96f95f50a4f9d992f2510
7
- data.tar.gz: feaa63f0b76edeea500b41ec03d442122763f63b7abbf8aa05cb47f614d301eb9eccbc36584568e86e60d3c294eb4e945aa97949515d0134f3d19f43ea95ba7f
6
+ metadata.gz: d039cc554f6faeb998243befd314030beb4a5b5cffe7c01ccdcefc66d41458292dd7432b4ae7899297f2338b630adb75730184e9f9726f4558bea16bb06fb6b7
7
+ data.tar.gz: efd8b4e759b7b195d9b0bf7a81645f28e8575c3aa1747333cced3ceac9fc980e3ed55b30e205bd409a4616e92a5562391dfe608bb3b13ee77153625242e02d36
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.1.3 - 2022-01-18
4
+
5
+ ### Fixes
6
+
7
+ * Fixed wrong package install on Windows.
8
+
3
9
  ## 1.1.2 - 2022-01-18
4
10
 
5
11
  ### Improvements
@@ -33,10 +33,6 @@ class NativePackageInstaller
33
33
  end
34
34
 
35
35
 
36
- # Windows
37
- require_relative "platform/msys2"
38
-
39
-
40
36
  # macOS
41
37
  require_relative "platform/macports"
42
38
 
@@ -62,5 +58,9 @@ require_relative "platform/fedora"
62
58
  require_relative "platform/suse"
63
59
 
64
60
 
61
+ # Windows
62
+ require_relative "platform/msys2"
63
+
64
+
65
65
  # Fallback
66
66
  require_relative "platform/unknown"
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013-2021 Ruby-GNOME Project Team
1
+ # Copyright (C) 2013-2022 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.1.2"
17
+ VERSION = "1.1.3"
18
18
  end
metadata CHANGED
@@ -1,57 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: native-package-installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-17 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: test-unit-rr
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
11
+ date: 2022-01-18 00:00:00.000000000 Z
12
+ dependencies: []
55
13
  description: |-
56
14
  Users need to install native packages to install an extension library
57
15
  that depends on native packages. It bores users because users need to
@@ -89,8 +47,6 @@ files:
89
47
  - lib/native-package-installer/platform/ubuntu.rb
90
48
  - lib/native-package-installer/platform/unknown.rb
91
49
  - lib/native-package-installer/version.rb
92
- - test/run-test.rb
93
- - test/test-executable-finder.rb
94
50
  homepage: https://github.com/ruby-gnome/native-package-installer
95
51
  licenses:
96
52
  - LGPL-3+
@@ -114,6 +70,4 @@ rubygems_version: 3.4.0.dev
114
70
  signing_key:
115
71
  specification_version: 4
116
72
  summary: native-package-installer helps to install native packages on "gem install"
117
- test_files:
118
- - test/run-test.rb
119
- - test/test-executable-finder.rb
73
+ test_files: []
data/test/run-test.rb DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # Copyright (C) 2013 Ruby-GNOME Project Team
4
- #
5
- # This library is free software: you can redistribute it and/or modify
6
- # it under the terms of the GNU Lesser General Public License as published by
7
- # the Free Software Foundation, either version 3 of the License, or
8
- # (at your option) any later version.
9
- #
10
- # This program is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU Lesser General Public License for more details.
14
- #
15
- # You should have received a copy of the GNU Lesser General Public License
16
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
-
18
- $VERBOSE = true
19
-
20
- require "test-unit"
21
- require "test/unit/rr"
22
-
23
- base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
24
- lib_dir = File.join(base_dir, "lib")
25
- test_dir = File.join(base_dir, "test")
26
-
27
- $LOAD_PATH.unshift(lib_dir)
28
-
29
- exit(Test::Unit::AutoRunner.run(true, test_dir))
@@ -1,90 +0,0 @@
1
- # Copyright (C) 2013 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 "fileutils"
17
-
18
- require "native-package-installer/executable-finder"
19
-
20
- class ExecutableFinderTest < Test::Unit::TestCase
21
- def setup
22
- @original_path = ENV["PATH"]
23
- setup_base_dir
24
- setup_path
25
- end
26
-
27
- def setup_base_dir
28
- @base_dir = File.join(File.dirname(__FILE__), "tmp")
29
- FileUtils.rm_rf(@base_dir)
30
- FileUtils.mkdir_p(@base_dir)
31
- end
32
-
33
- def teardown_base_dir
34
- FileUtils.rm_rf(@base_dir)
35
- end
36
-
37
- def setup_path
38
- paths = [
39
- File.join(@base_dir, "nonexistent"),
40
- File.join(@base_dir, "bin"),
41
- File.join(@base_dir, "sbin"),
42
- ]
43
- ENV["PATH"] = paths.join(File::PATH_SEPARATOR)
44
- end
45
-
46
- def teardown
47
- teardown_base_dir
48
- ENV["PATH"] = @original_path
49
- end
50
-
51
- private
52
- def create_finder(basename)
53
- NativePackageInstaller::ExecutableFinder.new(basename)
54
- end
55
-
56
- class TestFind < self
57
- def test_found
58
- finder = create_finder("ls")
59
- ls = File.join(@base_dir, "bin", "ls")
60
- stub(File).stat(ls) do
61
- stat = stub(Object.new)
62
- stat.file? {true}
63
- stat.executable? {true}
64
- stat
65
- end
66
- stub(File).stat.with_any_args do
67
- raise Errno::ENOENT
68
- end
69
- assert_equal(ls, finder.find)
70
- end
71
- end
72
-
73
- class TestExist < self
74
- def test_true
75
- finder = create_finder("ls")
76
- stub(finder).find do
77
- File.join(@base_dir, "bin", "ls")
78
- end
79
- assert_true(finder.exist?)
80
- end
81
-
82
- def test_false
83
- finder = create_finder("ls")
84
- stub(finder).find do
85
- nil
86
- end
87
- assert_false(finder.exist?)
88
- end
89
- end
90
- end