ruby-qt6-qtquickcontrols2 1.0.0 → 2.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e992f458564b7058ce93531deca50c6bd441d2cd1899ce78e5024be509d73cc
4
- data.tar.gz: e2e56277694eec298e1887cabf3cdbb54bdb66cceca7463bd9688aabc11eb3bd
3
+ metadata.gz: cf0108aa0cd51fd27fa3bae7016d25e9163f505eb71b938c22725dcc4d90198d
4
+ data.tar.gz: 3d96c57de658c83e12da2ebdf592025539e8850e030d9bd6c19be9e5e4d3f7ea
5
5
  SHA512:
6
- metadata.gz: 8653d2725a465c0e8907e1333d56e6c72da01be517a0369f9a24e147813f8a5e49f5d8945c152ab65af4074aa3fcbab597556fb27fe91f526cf7de14cf75e12c
7
- data.tar.gz: 34c9765983727103b27a7f3af1897b762cbb370dfff93e33094ef0a62d2246a2ce355d69a1b56a47f8e0c4ba105bb0bc849073061574553908cf90de2f552963
6
+ metadata.gz: d7a6a70fea36955bcdc77aaac508e45eac2b7ed93f78358d7ea317979787326b34ac18b09f689534352b6b0db45bb8564ee052ef2654dc8dcf2b1a0136843c49
7
+ data.tar.gz: afe9b027e649b124850e4c46c24ddf244dd18767f26d3274272ac9a135eabbb10987c80959094685731e68b06aa92950d08122239130c4701014cb56bd24b98c
data/Rakefile CHANGED
@@ -8,6 +8,10 @@ Rake::ExtensionTask.new("qtquickcontrols2", GEMSPEC) do |ext|
8
8
  ext.ext_dir = "ext/qt6/qtquickcontrols2"
9
9
  ext.lib_dir = "lib/qt6/qtquickcontrols2"
10
10
  end
11
+ Rake::Task["rake:compile"].enhance do
12
+ mkdir_p Pathname.new(GEMSPEC.gem_build_complete_path).parent
13
+ touch GEMSPEC.gem_build_complete_path
14
+ end
11
15
 
12
16
  require "rubocop/rake_task"
13
17
  RuboCop::RakeTask.new
@@ -1,19 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- RUBYQT6_RICE_LIB_PATH = File.join(__dir__, "../../../../rice/lib")
4
- if File.exist?(RUBYQT6_RICE_LIB_PATH)
5
- require File.join(RUBYQT6_RICE_LIB_PATH, "mkmf-rubyqt6.rb")
6
- else
7
- require "mkmf-rubyqt6"
8
- end
3
+ RUBYQT6_RICE_GEM_PATH = Gem::Specification.find_by_name("ruby-qt6-rice").full_gem_path
4
+ require File.join(RUBYQT6_RICE_GEM_PATH, "lib/mkmf-rubyqt6.rb")
9
5
 
10
- includedir = qt_install_headers
11
- append_cppflags("-I#{includedir}")
12
- append_cppflags("-I#{includedir}/QtCore")
13
- append_cppflags("-I#{includedir}/QtGui")
14
- append_cppflags("-I#{includedir}/QtQml")
15
- append_cppflags("-I#{includedir}/QtQuick")
16
- append_cppflags("-I#{includedir}/QtQuickControls2")
17
- abort "libQt6QuickControls2 is missing, please install qt6-declarative" unless have_library("Qt6QuickControls2")
18
-
19
- create_makefile("qt6/qtquickcontrols2/qtquickcontrols2")
6
+ rubyqt6_extconf("QtQuickControls2", depends: ["QtCore", "QtGui", "QtQml", "QtQuick"])
@@ -1,11 +1,11 @@
1
1
  #include "qquickstyle-rb.hpp"
2
2
  #include <qquickstyle.h>
3
3
 
4
- using namespace Rice;
4
+ RICE4RUBYQT6_USE_NAMESPACE
5
5
 
6
- Rice::Class rb_cQQuickStyle;
6
+ Class rb_cQQuickStyle;
7
7
 
8
- void Init_qquickstyle(Rice::Module rb_mQt6QtQuickControls2)
8
+ void Init_qquickstyle(Module rb_mQt6QtQuickControls2)
9
9
  {
10
10
  rb_cQQuickStyle =
11
11
  // RubyQt6::QtQuickControls2::QQuickStyle
@@ -1,4 +1,5 @@
1
- #include <rice/rice.hpp>
2
- #include <rice/stl.hpp>
1
+ #include <rice/qt6.hpp>
3
2
 
4
- void Init_qquickstyle(Rice::Module rb_mQt6QtQuickControls2);
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qquickstyle(Module rb_mQt6QtQuickControls2);
@@ -3,11 +3,13 @@
3
3
 
4
4
  #include "qquickstyle-rb.hpp"
5
5
 
6
+ RICE4RUBYQT6_USE_NAMESPACE
7
+
6
8
  extern "C" void Init_qtquickcontrols2()
7
9
  {
8
- return Rice::detail::cpp_protect([] {
9
- Rice::Module rb_mQt6 = Rice::define_module("RubyQt6");
10
- Rice::Module rb_mQt6QtQuickControls2 = define_module_under(rb_mQt6, "QtQuickControls2");
10
+ return detail::cpp_protect([] {
11
+ Module rb_mQt6 = define_module("RubyQt6");
12
+ Module rb_mQt6QtQuickControls2 = define_module_under(rb_mQt6, "QtQuickControls2");
11
13
 
12
14
  Init_qtquickcontrols2version(rb_mQt6QtQuickControls2);
13
15
 
@@ -1,3 +1,3 @@
1
- #include <rice/rice.hpp>
1
+ #include <rice/qt6.hpp>
2
2
 
3
3
  extern "C" void Init_qtquickcontrols2();
@@ -1,9 +1,9 @@
1
1
  #include "qtquickcontrols2version-rb.hpp"
2
2
  #include <qtquickcontrols2version.h>
3
3
 
4
- using namespace Rice;
4
+ RICE4RUBYQT6_USE_NAMESPACE
5
5
 
6
- void Init_qtquickcontrols2version(Rice::Module rb_mQt6QtQuickControls2)
6
+ void Init_qtquickcontrols2version(Module rb_mQt6QtQuickControls2)
7
7
  {
8
8
  rb_mQt6QtQuickControls2.define_constant("QTQUICKCONTROLS2_VERSION", QTQUICKCONTROLS2_VERSION_STR);
9
9
  }
@@ -1,4 +1,5 @@
1
- #include <rice/rice.hpp>
2
- #include <rice/stl.hpp>
1
+ #include <rice/qt6.hpp>
3
2
 
4
- void Init_qtquickcontrols2version(Rice::Module rb_mQt6QtQuickControls2);
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qtquickcontrols2version(Module rb_mQt6QtQuickControls2);
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RubyQt6
4
4
  module QtQuickControls2
5
- QTQUICKCONTROLS2_RUBYGEM_VERSION = "1.0.0"
5
+ QTQUICKCONTROLS2_RUBYGEM_VERSION = "2.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-qt6-qtquickcontrols2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Doe
@@ -15,70 +15,70 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 1.0.0
18
+ version: 2.0.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 1.0.0
25
+ version: 2.0.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: ruby-qt6-qtcore
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 1.0.0
32
+ version: 2.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 1.0.0
39
+ version: 2.0.0
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: ruby-qt6-qtgui
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 1.0.0
46
+ version: 2.0.0
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.0.0
53
+ version: 2.0.0
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: ruby-qt6-qtqml
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.0.0
60
+ version: 2.0.0
61
61
  type: :runtime
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 1.0.0
67
+ version: 2.0.0
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: ruby-qt6-qtquick
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 1.0.0
74
+ version: 2.0.0
75
75
  type: :runtime
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 1.0.0
81
+ version: 2.0.0
82
82
  description: Ruby Bindings for Qt Quick Controls.
83
83
  email:
84
84
  - johndoe@example.com
@@ -103,12 +103,12 @@ files:
103
103
  - lib/qt6/qtquickcontrols2/qquickstyle.rb
104
104
  - lib/qt6/qtquickcontrols2/qtquickcontrols2version.rb
105
105
  - lib/qt6/qtquickcontrols2/version.rb
106
- homepage: https://github.com/souk4711/ruby-qt6/qtquickcontrols2
106
+ homepage: https://github.com/souk4711/ruby-qt6
107
107
  licenses: []
108
108
  metadata:
109
- homepage_uri: https://github.com/souk4711/ruby-qt6/qtquickcontrols2
110
- source_code_uri: https://github.com/souk4711/ruby-qt6/qtquickcontrols2
111
- changelog_uri: https://github.com/souk4711/ruby-qt6/qtquickcontrols2
109
+ homepage_uri: https://github.com/souk4711/ruby-qt6
110
+ source_code_uri: https://github.com/souk4711/ruby-qt6
111
+ changelog_uri: https://github.com/souk4711/ruby-qt6
112
112
  rdoc_options: []
113
113
  require_paths:
114
114
  - lib
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 3.1.0
119
+ version: 3.3.0
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="