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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2daffd367a147178f4e0f2144ada2fa9b697d3f3a691feb35cbc0dd2897d5096
4
- data.tar.gz: c77e8a1a311131c912dd1abfd877479dfe5284e1392aa74ff654d9bcad21a245
3
+ metadata.gz: 356bef4bb16300343f7aa7b9ea28cb5311a700a6e009d105df35b30f5c318e37
4
+ data.tar.gz: 96a40437b8786917ae8311276d0a0898345cd546310e79a5706ba435ad55d74f
5
5
  SHA512:
6
- metadata.gz: 769d8de0a68b1e1f3ce86a74723d62b1e969cd0e2558f32ee0042c13a57c0c63f36fa8fe0aeb1f9c2a9a6fc2fbb1fa879c3013a83e247f8145b1b0873a8fea09
7
- data.tar.gz: b7a29534b49f7fcb5f53390ed98fee637f8b9cf8a347b4a0d68a1edc6d951a16214074d007dab4204a59ee2a37eae383cb9fc4180d0aba179a5751edac62a6eb
6
+ metadata.gz: 417bac098785d55c22b102dc4be5bf51972cc203bf9cc82ed9ad2be3dc4d8ce6bbf34fa86f643c748ad645f0c30dde36dfa58872de27262e7ddf310bf45f0832
7
+ data.tar.gz: '038a06e6300648cec1217270a9b930bd4fe7c2cc1f0f82ea68ab831e8dbbfdff7f8721dab691d15cbbeca1cd47c7fce9f1f378f7f68d7be97c9e925982468342'
@@ -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-20.04
12
+ runs-on: ubuntu-24.04
12
13
  steps:
13
- - uses: actions/checkout@v4
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'] = '87'
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 = /^.*(tcl#{stub}#{tclver}.*)\.(#{exts}).*$/
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 = /^.*(tcl#{stub}#{tclconf['TCL_MAJOR_VERSION']}(?:\.|)#{tclconf['TCL_MINOR_VERSION']}.*)\.(#{exts}).*$/
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 = /^.*(tk#{stub}#{tkver}.*)\.(#{exts}).*$/
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 = /^.*(tk#{stub}#{tkconf['TK_MAJOR_VERSION']}(?:\.|)#{tkconf['TK_MINOR_VERSION']}.*)\.#{exts}.*$/
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
@@ -39,8 +39,7 @@ _macinit(void)
39
39
  static int nativethread_checked = 0;
40
40
 
41
41
  static void
42
- _nativethread_consistency_check(ip)
43
- Tcl_Interp *ip;
42
+ _nativethread_consistency_check(Tcl_Interp *ip)
44
43
  {
45
44
  if (nativethread_checked || ip == (Tcl_Interp *)NULL) {
46
45
  return;