gnumeric 3.3.9 → 3.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gnm/loader.rb +19 -15
- data/test/gnumeric-test-utils.rb +2 -2
- data/test/run-test.rb +23 -49
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc022ccd4e864e110865772276a8f72d05d49838b2185abf7a78a87621732cae
|
4
|
+
data.tar.gz: ab6945d262b64903b56a26bd7da735654088e42a1f5c74f67a5d1d6c51ee2b43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f79806770ae86350160ed8d318deb1cf0fca017eedcfacc4fc3de8aab316be82255cfa1097f496b9e95bda2b492e37c416ebda0adbff67675e8686f27b06c46
|
7
|
+
data.tar.gz: 77a16f529801feb96db7a1b2d273143f16c2d2afb43175e09d0888398576fadec2a6bac8974ce8027b2151d6cdb958ad0557f93ff434f9012675488b6e8cdd25
|
data/lib/gnm/loader.rb
CHANGED
@@ -27,27 +27,31 @@ module Gnm
|
|
27
27
|
def require_libraries
|
28
28
|
end
|
29
29
|
|
30
|
+
def load_enum_info(info)
|
31
|
+
case info.name
|
32
|
+
when "signtest_type", "ttest_type", /_t\z/
|
33
|
+
# Ignore enum that don't support introspection
|
34
|
+
return
|
35
|
+
end
|
36
|
+
super
|
37
|
+
end
|
38
|
+
|
30
39
|
def load_enum_value(value_info, enum_module)
|
31
|
-
name =
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
value_info.name.upcase
|
40
|
+
name = value_info.name.upcase
|
41
|
+
case name
|
42
|
+
when "3D_NAME"
|
43
|
+
name = "NAME_3D"
|
36
44
|
end
|
37
45
|
enum_module.const_set(name, value_info.value)
|
38
46
|
end
|
39
47
|
|
40
|
-
def
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
component[0] = component[0].upcase
|
46
|
-
component
|
47
|
-
end.join
|
48
|
-
else
|
49
|
-
name
|
48
|
+
def load_flags_info(info)
|
49
|
+
case info.name
|
50
|
+
when /_t\z/
|
51
|
+
# Ignore flags that don't support introspection
|
52
|
+
return
|
50
53
|
end
|
54
|
+
super
|
51
55
|
end
|
52
56
|
end
|
53
57
|
end
|
data/test/gnumeric-test-utils.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2016 Ruby-
|
1
|
+
# Copyright (C) 2016-2021 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
require "tempfile"
|
18
18
|
|
19
|
-
require "
|
19
|
+
require "gnumeric"
|
20
20
|
|
21
21
|
module GnumericTestUtils
|
22
22
|
def fixture_file(*components)
|
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2016-
|
3
|
+
# Copyright (C) 2016-2021 Ruby-GNOME 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
|
@@ -16,55 +16,29 @@
|
|
16
16
|
# License along with this library; if not, write to the Free Software
|
17
17
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
18
|
|
19
|
-
|
20
|
-
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
|
19
|
+
require_relative "../../glib2/test/run-test"
|
21
20
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
21
|
+
run_test(__dir__,
|
22
|
+
[
|
23
|
+
"glib2",
|
24
|
+
"gobject-introspection",
|
25
|
+
"atk",
|
26
|
+
"cairo-gobject",
|
27
|
+
"pango",
|
28
|
+
"gio2",
|
29
|
+
"gdk_pixbuf2",
|
30
|
+
"gdk3",
|
31
|
+
"gtk3",
|
32
|
+
"gsf",
|
33
|
+
"goffice",
|
34
|
+
"gnumeric",
|
35
|
+
]) do |context|
|
36
|
+
require_relative "gnumeric-test-utils"
|
34
37
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
[gdk_pixbuf_base, "gdk_pixbuf2"],
|
41
|
-
[gobject_introspection_base, "gobject-introspection"],
|
42
|
-
[gio2_base, "gio2"],
|
43
|
-
[gdk3_base, "gdk3"],
|
44
|
-
[gtk3_base, "gtk3"],
|
45
|
-
[gsf_base, "gsf"],
|
46
|
-
[goffice_base, "goffice"],
|
47
|
-
[gnumeric_base, "gnumeric"]
|
48
|
-
]
|
49
|
-
|
50
|
-
modules.each do |target, module_name|
|
51
|
-
makefile = File.join(target, "Makefile")
|
52
|
-
if File.exist?(makefile) and system("which make > /dev/null")
|
53
|
-
`make -C #{target.dump} > /dev/null` or exit(false)
|
38
|
+
begin
|
39
|
+
Gnm.init
|
40
|
+
rescue GObjectIntrospection::RepositoryError
|
41
|
+
puts("Omit because typelib file doesn't exist: #{$!.message}")
|
42
|
+
exit(true)
|
54
43
|
end
|
55
|
-
$LOAD_PATH.unshift(File.join(target, "ext", module_name))
|
56
|
-
$LOAD_PATH.unshift(File.join(target, "lib"))
|
57
44
|
end
|
58
|
-
|
59
|
-
$LOAD_PATH.unshift(File.join(gnumeric_base, "test"))
|
60
|
-
require "gnumeric-test-utils"
|
61
|
-
|
62
|
-
require "gnumeric"
|
63
|
-
begin
|
64
|
-
Gnm.init
|
65
|
-
rescue GObjectIntrospection::RepositoryError
|
66
|
-
puts("Omit because typelib file doesn't exist: #{$!.message}")
|
67
|
-
exit(true)
|
68
|
-
end
|
69
|
-
|
70
|
-
exit Test::Unit::AutoRunner.run(true, File.join(gnumeric_base, "test"))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gnumeric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: goffice
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.4.4
|
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.
|
26
|
+
version: 3.4.4
|
27
27
|
description: Ruby/Gnumeric is a Ruby binding of Gnumeric.
|
28
28
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
29
29
|
executables: []
|
@@ -62,8 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
|
66
|
-
rubygems_version: 2.7.6.2
|
65
|
+
rubygems_version: 3.3.0.dev
|
67
66
|
signing_key:
|
68
67
|
specification_version: 4
|
69
68
|
summary: Ruby/Gnumeric is a Ruby binding of Gnumeric.
|