How to update GR.rb - red-data-tools/GR.rb GitHub Wiki
The following workflow is written so that you can maintain GR.rb even if you are sleepy.
-
New version of sciapp/gr is released.
-
Update packages (optional)
- Homebrew: Send pull request to homebrew-core to update
libgr
package (optional). - Windows: Update the MINGW package.
- Homebrew: Send pull request to homebrew-core to update
-
Update
lib/ffi.rb
in GR, GR3, GRM. -
Update
gr.rb
andgr3.rb
. (gr/plot) -
Add some tests if possible.
-
Leave it for a few days to check if sciapp team does not release a minor update.
-
Release a new version of the gem.
Fiddle's implicit type conversion
- Ruby's
Integer
andFloat
are automatically converted to C types:int
,float
, anddouble
. - You do not need to convert the
String
. - Be careful if you want to pass an array or a pointer as an argument.
GR.rb's implicit type conversion
- Arrays are converted to the default type.
- If the argument type is not the default type, you must convert it manually.
- You can use GRCommonUtils methods such as
int
,float
,double
, anduint
for this purpose.
GR.rb DSL
inquiry
methods are provided for passing a pointer as an argument.- If you need a "pointer of pointer", you have to handle it yourself.
CI
- The CI of Github Actions takes about 20 minutes.
- If you put [skip ci] in the commit message, you can skip ci.