gnumeric 3.4.2 → 3.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a84c0d1f2a4e80f17488d2061bd524d18b4f64f2d3bc414bd7547803f4e5e688
|
4
|
+
data.tar.gz: 14e12ec2636d4e7aedc9e0e8b2318eb898a9cc426f58bcbac470700a1f61cc98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db8ce6729f37d53d4d46c5281ce6b2df3c869bc5a1b9c83233fc958a0853010d5b517cb36225cb47e6ab1bade81832e07a11455f327d6335accdcd5d7090a907
|
7
|
+
data.tar.gz: 1a7ddaa7020f5eedb7b76fcf49898fdd8ac269ea794f16edc769a70145234975249761fdd9ab14e571e5c630712bf14f52fcd0ad2fd0759be454414db21e537a
|
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_gnome_base = File.expand_path(ruby_gnome_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.
|
4
|
+
version: 3.4.6
|
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-07-16 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.4.
|
19
|
+
version: 3.4.6
|
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.4.
|
26
|
+
version: 3.4.6
|
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,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
rubygems_version: 3.
|
65
|
+
rubygems_version: 3.3.0.dev
|
66
66
|
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Ruby/Gnumeric is a Ruby binding of Gnumeric.
|