gsf 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dependency-check/Rakefile +40 -0
- data/test/run-test.rb +9 -1
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 963321f4370c34334b59392c05a234c11b618241
|
4
|
+
data.tar.gz: 8a1c723c7753976a1a3c11b020baa3685eb56bdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c467adec906df9ae031ec11bf7e0a0f9a153814dfc2a70594c9634f8afedac48c8673a84e6ad6fdfe2bbe174ecf68b1890f30ea06072745996878df6baa871c
|
7
|
+
data.tar.gz: a5a5d65518c6014eb49f6c57e387339d0f238d85ce4689298b058c22bff4a0020a9883bee857e1a56742846a91a58a761f2226e202663b66055ec3d571463df5
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Copyright (C) 2017 Ruby-GNOME2 Project Team
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library 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 GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
require "pkg-config"
|
18
|
+
require "native-package-installer"
|
19
|
+
|
20
|
+
case RUBY_PLATFORM
|
21
|
+
when /mingw|mswin/
|
22
|
+
task :default => "nothing"
|
23
|
+
else
|
24
|
+
task :default => "dependency:check"
|
25
|
+
end
|
26
|
+
|
27
|
+
task :nothing do
|
28
|
+
end
|
29
|
+
|
30
|
+
namespace :dependency do
|
31
|
+
desc "Check dependency"
|
32
|
+
task :check do
|
33
|
+
unless PKGConfig.check_version?("libgsf-1")
|
34
|
+
unless NativePackageInstaller.install(:debian => "libgsf-1-dev",
|
35
|
+
:homebrew => "libgsf")
|
36
|
+
exit(false)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2016 Ruby-GNOME2 Project Team
|
3
|
+
# Copyright (C) 2016-2017 Ruby-GNOME2 Project Team
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -19,11 +19,13 @@
|
|
19
19
|
ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
|
20
20
|
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
|
21
21
|
|
22
|
+
glib2_base = File.join(ruby_gnome2_base, "glib2")
|
22
23
|
gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
|
23
24
|
gio2_base = File.join(ruby_gnome2_base, "gio2")
|
24
25
|
gsf_base = File.join(ruby_gnome2_base, "gsf")
|
25
26
|
|
26
27
|
modules = [
|
28
|
+
[glib2_base, "glib2"],
|
27
29
|
[gobject_introspection_base, "gobject-introspection"],
|
28
30
|
[gio2_base, "gio2"],
|
29
31
|
[gsf_base, "gsf"]
|
@@ -42,5 +44,11 @@ $LOAD_PATH.unshift(File.join(gsf_base, "test"))
|
|
42
44
|
require "gsf-test-utils"
|
43
45
|
|
44
46
|
require "gsf"
|
47
|
+
begin
|
48
|
+
Gsf.init
|
49
|
+
rescue GObjectIntrospection::RepositoryError
|
50
|
+
puts("Omit because typelib file doesn't exist: #{$!.message}")
|
51
|
+
exit(true)
|
52
|
+
end
|
45
53
|
|
46
54
|
exit Test::Unit::AutoRunner.run(true, File.join(gsf_base, "test"))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gsf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME2 Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gio2
|
@@ -16,35 +16,37 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.1.
|
19
|
+
version: 3.1.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.1.
|
26
|
+
version: 3.1.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gobject-introspection
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.1.
|
33
|
+
version: 3.1.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.1.
|
40
|
+
version: 3.1.2
|
41
41
|
description: Ruby/GSF is a Ruby binding of GSF.
|
42
42
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
43
43
|
executables: []
|
44
|
-
extensions:
|
44
|
+
extensions:
|
45
|
+
- dependency-check/Rakefile
|
45
46
|
extra_rdoc_files: []
|
46
47
|
files:
|
47
48
|
- Rakefile
|
49
|
+
- dependency-check/Rakefile
|
48
50
|
- lib/gsf.rb
|
49
51
|
- lib/gsf/input.rb
|
50
52
|
- lib/gsf/loader.rb
|
@@ -53,7 +55,7 @@ files:
|
|
53
55
|
- test/test-input-stdio.rb
|
54
56
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
55
57
|
licenses:
|
56
|
-
-
|
58
|
+
- LGPL-2.1+
|
57
59
|
metadata: {}
|
58
60
|
post_install_message:
|
59
61
|
rdoc_options: []
|