ruby-dcl 1.8.1 → 1.8.2
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 +5 -5
- data/ChangeLog +97 -14
- data/LICENSE.txt +1 -1
- data/demo/gokuraku/jump/jump2.rb +1 -1
- data/demo/grph1/sgpack/sgfont.rb +1 -1
- data/demo/grph1/sgpack/sgfonz.rb +1 -1
- data/demo/grph1/sgpack/sgpk07.rb +8 -6
- data/demo/grph1/slpack/slpk04.rb +1 -1
- data/demo/grph2/udegpk/u2df03.rb +2 -2
- data/demo/grph2/umpack/test04.rb +1 -1
- data/demo/grph2/umpack/test05r.rb +86 -0
- data/demo/grph2/uspack/uspk06.rb +1 -1
- data/demo/grph2/uspack/uspk08.rb +1 -1
- data/demo/grph2/ximage/ximg01.rb +1 -1
- data/demo/misc2/tmpack/tmpk01.rb +46 -0
- data/demo/misc2/tmpack/tmpk02.rb +58 -0
- data/demo/misc2/tmpack/tmpk03.rb +56 -0
- data/demo/rakuraku/color/color2.rb +4 -3
- data/demo/rakuraku/kihon/kihon7.rb +9 -3
- data/demo/rakuraku/kihon/kihonb.rb +11 -9
- data/demo/rakuraku/uspack/uspac1.rb +1 -1
- data/demo/rakuraku/uspack/uspac3.rb +1 -1
- data/ext/numru/dcl_cary2obj.c +1 -1
- data/ext/numru/dcl_narrayed_funcs.c +21 -21
- data/ext/numru/dcl_obj2cary.c +1 -1
- data/ext/numru/dcl_rubydcloriginal.c +0 -1
- data/ext/numru/extconf.rb +28 -9
- data/ext/numru/grph1_csgi.c +29 -3
- data/ext/numru/grph1_scpack.c +40 -41
- data/ext/numru/grph1_sgpack.c +158 -159
- data/ext/numru/grph1_slpack.c +14 -15
- data/ext/numru/grph1_stpack.c +35 -36
- data/ext/numru/grph1_swpack.c +89 -90
- data/ext/numru/grph2_grpack.c +13 -14
- data/ext/numru/grph2_ucpack.c +46 -47
- data/ext/numru/grph2_udpack.c +52 -53
- data/ext/numru/grph2_uepack.c +51 -52
- data/ext/numru/grph2_ugpack.c +40 -41
- data/ext/numru/grph2_uhpack.c +16 -17
- data/ext/numru/grph2_uipack.c +48 -49
- data/ext/numru/grph2_ulpack.c +50 -51
- data/ext/numru/grph2_umpack.c +66 -67
- data/ext/numru/grph2_uspack.c +88 -89
- data/ext/numru/grph2_uupack.c +69 -70
- data/ext/numru/grph2_uvpack.c +16 -17
- data/ext/numru/grph2_uwpack.c +21 -22
- data/ext/numru/grph2_uxpack.c +14 -15
- data/ext/numru/grph2_uypack.c +14 -15
- data/ext/numru/grph2_uzpack.c +60 -61
- data/ext/numru/init.c.default +5 -2
- data/ext/numru/math1_blklib.c +4 -5
- data/ext/numru/math1_chrlib.c +7 -8
- data/ext/numru/math1_clsplib.c +4 -5
- data/ext/numru/math1_fnclib.c +7 -8
- data/ext/numru/math1_gnmlib.c +12 -13
- data/ext/numru/math1_gt2dlib.c +9 -10
- data/ext/numru/math1_ifalib.c +9 -10
- data/ext/numru/math1_indxlib.c +15 -16
- data/ext/numru/math1_intlib.c +4 -5
- data/ext/numru/math1_lrllib.c +24 -25
- data/ext/numru/math1_maplib.c +5 -6
- data/ext/numru/math1_oslib.c +2 -3
- data/ext/numru/math1_rfalib.c +30 -31
- data/ext/numru/math1_rfblib.c +3 -4
- data/ext/numru/math1_sublib.c +4 -5
- data/ext/numru/math1_syslib.c +73 -74
- data/ext/numru/math1_vialib.c +22 -23
- data/ext/numru/math1_viblib.c +15 -16
- data/ext/numru/math1_vralib.c +22 -23
- data/ext/numru/math1_vrblib.c +15 -16
- data/ext/numru/math1_xfclib.c +3 -4
- data/ext/numru/math2_fftlib.c +19 -20
- data/ext/numru/math2_intrlib.c +2 -3
- data/ext/numru/math2_rnmlib.c +3 -4
- data/ext/numru/math2_shtlib.c +25 -26
- data/ext/numru/math2_vstlib.c +6 -7
- data/ext/numru/misc1_chnlib.c +3 -4
- data/ext/numru/misc1_datelib.c +27 -28
- data/ext/numru/misc1_fmtlib.c +1 -2
- data/ext/numru/misc1_misclib.c +2 -3
- data/ext/numru/misc1_randlib.c +4 -5
- data/ext/numru/misc1_timelib.c +11 -12
- data/ext/numru/misc2_tmpack.c +1200 -0
- data/lib/numru/dcl/dcl.rb +73 -1
- data/lib/numru/dcl/version.rb +1 -1
- data/ruby-dcl.gemspec +2 -2
- metadata +12 -4
data/lib/numru/dcl/dcl.rb
CHANGED
@@ -36,7 +36,7 @@ module NumRu
|
|
36
36
|
|
37
37
|
#<<< ??p(set|stx|get) >>>
|
38
38
|
|
39
|
-
%w!gl sl sg uc ud ue ug ui ul um uu uz!.each do |pkg|
|
39
|
+
%w!gl sl sg uc ud ue ug ui ul um uu uz tm!.each do |pkg|
|
40
40
|
%w!set stx!.each do |set|
|
41
41
|
eval <<-EOS
|
42
42
|
def #{pkg}p#{set}( name, value )
|
@@ -5571,6 +5571,78 @@ module NumRu
|
|
5571
5571
|
if DCLVERSION < '5.4.4'
|
5572
5572
|
end
|
5573
5573
|
|
5574
|
+
if DCLVERSION >= '7.3'
|
5575
|
+
alias __tmstla tmstla
|
5576
|
+
def tmstla( r,t,u,v )
|
5577
|
+
|
5578
|
+
#< extract array size(s) (which was(were) formerly an argument(s)) >
|
5579
|
+
len_r_0 = r.length
|
5580
|
+
nx = len_r_0
|
5581
|
+
len_t_0 = t.length
|
5582
|
+
ny = len_t_0
|
5583
|
+
|
5584
|
+
#< check array size(s) >
|
5585
|
+
raise "Invalid array length: r.length != nx" if r.length != (nx)
|
5586
|
+
raise "Invalid array length: t.length != ny" if t.length != (ny)
|
5587
|
+
raise "Invalid array shape: u.shape[0] != nx" if u.shape[0] != (nx)
|
5588
|
+
raise "Invalid array shape: u.shape[1] != ny" if u.shape[1] != (ny)
|
5589
|
+
raise "Invalid array shape: v.shape[0] != nx" if v.shape[0] != (nx)
|
5590
|
+
raise "Invalid array shape: v.shape[1] != ny" if v.shape[1] != (ny)
|
5591
|
+
|
5592
|
+
#< call the original method >
|
5593
|
+
__tmstla( r,t,u,v,nx,ny )
|
5594
|
+
end
|
5595
|
+
module_function :tmstla, :__tmstla
|
5596
|
+
private_class_method :__tmstla
|
5597
|
+
|
5598
|
+
alias __tmstlc tmstlc
|
5599
|
+
def tmstlc( x,y,u,v )
|
5600
|
+
|
5601
|
+
#< extract array size(s) (which was(were) formerly an argument(s)) >
|
5602
|
+
len_x_0 = x.length
|
5603
|
+
nx = len_x_0
|
5604
|
+
len_y_0 = y.length
|
5605
|
+
ny = len_y_0
|
5606
|
+
|
5607
|
+
#< check array size(s) >
|
5608
|
+
raise "Invalid array length: x.length != nx" if x.length != (nx)
|
5609
|
+
raise "Invalid array length: y.length != ny" if y.length != (ny)
|
5610
|
+
raise "Invalid array shape: u.shape[0] != nx" if u.shape[0] != (nx)
|
5611
|
+
raise "Invalid array shape: u.shape[1] != ny" if u.shape[1] != (ny)
|
5612
|
+
raise "Invalid array shape: v.shape[0] != nx" if v.shape[0] != (nx)
|
5613
|
+
raise "Invalid array shape: v.shape[1] != ny" if v.shape[1] != (ny)
|
5614
|
+
|
5615
|
+
#< call the original method >
|
5616
|
+
__tmstlc( x,y,u,v,nx,ny )
|
5617
|
+
end
|
5618
|
+
module_function :tmstlc, :__tmstlc
|
5619
|
+
private_class_method :__tmstlc
|
5620
|
+
|
5621
|
+
alias __tmstls tmstls
|
5622
|
+
def tmstls( l,t,u,v )
|
5623
|
+
|
5624
|
+
#< extract array size(s) (which was(were) formerly an argument(s)) >
|
5625
|
+
len_l_0 = l.length
|
5626
|
+
nx = len_l_0
|
5627
|
+
len_t_0 = t.length
|
5628
|
+
ny = len_t_0
|
5629
|
+
|
5630
|
+
#< check array size(s) >
|
5631
|
+
raise "Invalid array length: l.length != nx" if l.length != (nx)
|
5632
|
+
raise "Invalid array length: t.length != ny" if t.length != (ny)
|
5633
|
+
raise "Invalid array shape: u.shape[0] != nx" if u.shape[0] != (nx)
|
5634
|
+
raise "Invalid array shape: u.shape[1] != ny" if u.shape[1] != (ny)
|
5635
|
+
raise "Invalid array shape: v.shape[0] != nx" if v.shape[0] != (nx)
|
5636
|
+
raise "Invalid array shape: v.shape[1] != ny" if v.shape[1] != (ny)
|
5637
|
+
|
5638
|
+
#< call the original method >
|
5639
|
+
__tmstls( l,t,u,v,nx,ny )
|
5640
|
+
end
|
5641
|
+
module_function :tmstls, :__tmstls
|
5642
|
+
private_class_method :__tmstls
|
5643
|
+
|
5644
|
+
end
|
5645
|
+
|
5574
5646
|
# //// Ruby-DCL original extention methods ////
|
5575
5647
|
|
5576
5648
|
alias __uemrkz uemrkz
|
data/lib/numru/dcl/version.rb
CHANGED
data/ruby-dcl.gemspec
CHANGED
@@ -10,9 +10,9 @@ require 'numru/dcl/version'
|
|
10
10
|
#old# filelist.concat(Dir::glob('lib/**/*.rb'))
|
11
11
|
|
12
12
|
filelist = %w!ChangeLog Gemfile LICENSE.txt Rakefile ruby-dcl.gemspec!
|
13
|
-
filelist.concat( Dir::glob("ext/**/*.c
|
13
|
+
filelist.concat( Dir::glob(["ext/**/*.c","ext/**/*.rb","ext/**/*.default"]) )
|
14
14
|
filelist.concat( Dir::glob('lib/**/*.rb') )
|
15
|
-
filelist.concat( Dir::glob("demo/**/*.rb
|
15
|
+
filelist.concat( Dir::glob(["demo/**/*.rb","demo/**/*.dat"]) )
|
16
16
|
filelist.uniq!
|
17
17
|
|
18
18
|
Gem::Specification.new do |spec|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-dcl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- T. Horinouchi
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2022-03-20 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: narray
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- demo/grph2/umpack/test03.rb
|
146
146
|
- demo/grph2/umpack/test04.rb
|
147
147
|
- demo/grph2/umpack/test05.rb
|
148
|
+
- demo/grph2/umpack/test05r.rb
|
148
149
|
- demo/grph2/umpack/test06.rb
|
149
150
|
- demo/grph2/umpack/test07.rb
|
150
151
|
- demo/grph2/umpack/test08.rb
|
@@ -195,6 +196,9 @@ files:
|
|
195
196
|
- demo/math2/rnmlib/rnml01.rb
|
196
197
|
- demo/math2/vstlib/vstl01.rb
|
197
198
|
- demo/math2/vstlib/vstl02.rb
|
199
|
+
- demo/misc2/tmpack/tmpk01.rb
|
200
|
+
- demo/misc2/tmpack/tmpk02.rb
|
201
|
+
- demo/misc2/tmpack/tmpk03.rb
|
198
202
|
- demo/rakuraku/color/color1.rb
|
199
203
|
- demo/rakuraku/color/color2.rb
|
200
204
|
- demo/rakuraku/color/color3.rb
|
@@ -307,6 +311,7 @@ files:
|
|
307
311
|
- ext/numru/misc1_misclib.c
|
308
312
|
- ext/numru/misc1_randlib.c
|
309
313
|
- ext/numru/misc1_timelib.c
|
314
|
+
- ext/numru/misc2_tmpack.c
|
310
315
|
- lib/numru/dcl.rb
|
311
316
|
- lib/numru/dcl/dcl.rb
|
312
317
|
- lib/numru/dcl/version.rb
|
@@ -331,8 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
331
336
|
- !ruby/object:Gem::Version
|
332
337
|
version: '0'
|
333
338
|
requirements: []
|
334
|
-
|
335
|
-
rubygems_version: 2.2.2
|
339
|
+
rubygems_version: 3.2.5
|
336
340
|
signing_key:
|
337
341
|
specification_version: 4
|
338
342
|
summary: one-to-one interface to the DCL graphic library
|
@@ -412,6 +416,7 @@ test_files:
|
|
412
416
|
- demo/grph2/umpack/test03.rb
|
413
417
|
- demo/grph2/umpack/test04.rb
|
414
418
|
- demo/grph2/umpack/test05.rb
|
419
|
+
- demo/grph2/umpack/test05r.rb
|
415
420
|
- demo/grph2/umpack/test06.rb
|
416
421
|
- demo/grph2/umpack/test07.rb
|
417
422
|
- demo/grph2/umpack/test08.rb
|
@@ -462,6 +467,9 @@ test_files:
|
|
462
467
|
- demo/math2/rnmlib/rnml01.rb
|
463
468
|
- demo/math2/vstlib/vstl01.rb
|
464
469
|
- demo/math2/vstlib/vstl02.rb
|
470
|
+
- demo/misc2/tmpack/tmpk01.rb
|
471
|
+
- demo/misc2/tmpack/tmpk02.rb
|
472
|
+
- demo/misc2/tmpack/tmpk03.rb
|
465
473
|
- demo/rakuraku/color/color1.rb
|
466
474
|
- demo/rakuraku/color/color2.rb
|
467
475
|
- demo/rakuraku/color/color3.rb
|