tk 0.5.1 → 0.6.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 +4 -4
- data/.github/workflows/test.yml +3 -2
- data/ext/tk/extconf.rb +6 -7
- data/ext/tk/stubs.c +1 -2
- data/ext/tk/tcltklib.c +419 -868
- data/ext/tk/tkutil/tkutil.c +79 -200
- data/tk.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 356bef4bb16300343f7aa7b9ea28cb5311a700a6e009d105df35b30f5c318e37
|
|
4
|
+
data.tar.gz: 96a40437b8786917ae8311276d0a0898345cd546310e79a5706ba435ad55d74f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 417bac098785d55c22b102dc4be5bf51972cc203bf9cc82ed9ad2be3dc4d8ce6bbf34fa86f643c748ad645f0c30dde36dfa58872de27262e7ddf310bf45f0832
|
|
7
|
+
data.tar.gz: '038a06e6300648cec1217270a9b930bd4fe7c2cc1f0f82ea68ab831e8dbbfdff7f8721dab691d15cbbeca1cd47c7fce9f1f378f7f68d7be97c9e925982468342'
|
data/.github/workflows/test.yml
CHANGED
|
@@ -6,11 +6,12 @@ jobs:
|
|
|
6
6
|
build:
|
|
7
7
|
name: build (${{ matrix.ruby }}
|
|
8
8
|
strategy:
|
|
9
|
+
fail-fast: false
|
|
9
10
|
matrix:
|
|
10
11
|
ruby: [ 3.4, 3.3, 3.2, 3.1, head ]
|
|
11
|
-
runs-on: ubuntu-
|
|
12
|
+
runs-on: ubuntu-24.04
|
|
12
13
|
steps:
|
|
13
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v6
|
|
14
15
|
- name: Set up Ruby
|
|
15
16
|
uses: ruby/setup-ruby@v1
|
|
16
17
|
with:
|
data/ext/tk/extconf.rb
CHANGED
|
@@ -12,12 +12,12 @@ TkLib_Config['search_versions'] =
|
|
|
12
12
|
# %w[8.9 8.8 8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.6 4.2]
|
|
13
13
|
# %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0]
|
|
14
14
|
# %w[8.7 8.6 8.5 8.4 8.0] # to shorten search steps
|
|
15
|
-
%w[8.6 8.5 8.4]
|
|
15
|
+
%w[8.6 8.5 8.4 9.0]
|
|
16
16
|
|
|
17
17
|
TkLib_Config['unsupported_versions'] =
|
|
18
18
|
%w[8.8 8.7]
|
|
19
19
|
|
|
20
|
-
TkLib_Config['major_nums'] = '
|
|
20
|
+
TkLib_Config['major_nums'] = '90'
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
##############################################################
|
|
@@ -608,17 +608,17 @@ def libcheck_for_tclConfig(tcldir, tkdir, tclconf, tkconf)
|
|
|
608
608
|
|
|
609
609
|
if tclver
|
|
610
610
|
tcl_glob = "*tcl#{stub}#{tclver}.*"
|
|
611
|
-
tcl_regexp =
|
|
611
|
+
tcl_regexp = /(tcl#{stub}#{tclver}.*)\.(#{exts})/
|
|
612
612
|
elsif tclconf
|
|
613
613
|
tcl_glob = "*tcl#{stub}#{tclconf['TCL_MAJOR_VERSION']}{.,}#{tclconf['TCL_MINOR_VERSION']}*.*"
|
|
614
|
-
tcl_regexp =
|
|
614
|
+
tcl_regexp = /(tcl#{stub}#{tclconf['TCL_MAJOR_VERSION']}(?:\.|)#{tclconf['TCL_MINOR_VERSION']}.*)\.(#{exts})/
|
|
615
615
|
end
|
|
616
616
|
if tkver
|
|
617
617
|
tk_glob = "*tk#{stub}#{tkver}.*"
|
|
618
|
-
tk_regexp =
|
|
618
|
+
tk_regexp = /(tk#{stub}#{tkver}.*)\.(#{exts})/
|
|
619
619
|
elsif tkconf
|
|
620
620
|
tk_glob = "*tk#{stub}#{tkconf['TK_MAJOR_VERSION']}{.,}#{tkconf['TK_MINOR_VERSION']}*.*"
|
|
621
|
-
tk_regexp =
|
|
621
|
+
tk_regexp = /((?:tcl#{tclconf['TCL_MAJOR_VERSION']})?tk#{stub}#{tkconf['TK_MAJOR_VERSION']}\.?#{tkconf['TK_MINOR_VERSION']}.*)\.#{exts}/
|
|
622
622
|
end
|
|
623
623
|
|
|
624
624
|
tcllib_ok ||= !tclconf || Dir.glob(File.join(tcldir, tcl_glob), File::FNM_CASEFOLD).find{|file|
|
|
@@ -2096,5 +2096,4 @@ if (TkLib_Config["tcltk-framework"] ||
|
|
|
2096
2096
|
else
|
|
2097
2097
|
puts "\nCan't find proper Tcl/Tk libraries. So, can't make tcltklib.so which is required by Ruby/Tk."
|
|
2098
2098
|
puts "If you have Tcl/Tk libraries on your environment, you may be able to use them with configure options (see ext/tk/README.tcltklib)."
|
|
2099
|
-
puts "At present, Tcl/Tk8.6 is not supported. Although you can try to use Tcl/Tk8.6 with configure options, it will not work correctly. I recommend you to use Tcl/Tk8.5 or 8.4."
|
|
2100
2099
|
end
|
data/ext/tk/stubs.c
CHANGED