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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13b86bcb564d759989b7e5e83975297ef392ae336b645f3fa694b3be7cc30bd2
4
- data.tar.gz: c66e71de0be43f22dcc7681ba85ddcf16c5224efc2ffe577b722596be133496c
3
+ metadata.gz: cc022ccd4e864e110865772276a8f72d05d49838b2185abf7a78a87621732cae
4
+ data.tar.gz: ab6945d262b64903b56a26bd7da735654088e42a1f5c74f67a5d1d6c51ee2b43
5
5
  SHA512:
6
- metadata.gz: c157fd704d36e7a09940b1a3b20821b62ea4996951816f289b018215edf24800217f147594516e564350acba0dfe603fdc9a4ba128b8ae9f20061c44a1be1a4b
7
- data.tar.gz: 19250ab095b9ee451940ec51dbc9c210ddfc2ec10dbc9529c50c0ca6cc4ac4f5d33b45767dce697e56888c5f69735c02395458940e3e30765fe56f79dc5888c6
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 = case value_info.name.upcase
32
- when /\A3D_NAME\z/
33
- "NAME_3D"
34
- else
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 rubyish_class_name(info)
41
- name = info.name.gsub(/Class\z/, "")
42
- case name
43
- when /\A.*_t\z/
44
- name.gsub(/_t\z/, "").split("_").map do |component|
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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2016 Ruby-GNOME2 Project Team
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 "test-unit"
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-2017 Ruby-GNOME2 Project Team
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
- ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
20
- ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
19
+ require_relative "../../glib2/test/run-test"
21
20
 
22
- glib_base = File.join(ruby_gnome2_base, "glib2")
23
- atk_base = File.join(ruby_gnome2_base, "atk")
24
- pango_base = File.join(ruby_gnome2_base, "pango")
25
- gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
26
- cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
27
- gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
28
- gio2_base = File.join(ruby_gnome2_base, "gio2")
29
- gdk3_base = File.join(ruby_gnome2_base, "gdk3")
30
- gtk3_base = File.join(ruby_gnome2_base, "gtk3")
31
- gsf_base = File.join(ruby_gnome2_base, "gsf")
32
- goffice_base = File.join(ruby_gnome2_base, "goffice")
33
- gnumeric_base = File.join(ruby_gnome2_base, "gnumeric")
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
- modules = [
36
- [glib_base, "glib2"],
37
- [atk_base, "atk"],
38
- [pango_base, "pango"],
39
- [cairo_gobject_base, "cairo-gobject"],
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.3.9
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: 2019-10-10 00:00:00.000000000 Z
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.3.9
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.3.9
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
- rubyforge_project:
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.