clipsruby 0.0.36 → 0.0.37

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/clipsruby/clipsruby.c +7 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50cc209eb6a473cd3a980b8d551079a4db6632f86afbc43bff8a582a89efb2cf
4
- data.tar.gz: 2e2dd6648850df2dc496111334e68aebb9048fb2f823a6b6ddd865449cb34254
3
+ metadata.gz: 6bdf3718a68644b1772e951c9a1056581d95b53a0d63d691d7cd434076d8877a
4
+ data.tar.gz: d76e7156d421d9cb0db3bd73314f061377c2972ecdafcd3eef1c480c113d4d2f
5
5
  SHA512:
6
- metadata.gz: 9bf9b814174620c68ee826d8051f09bb4d3e989537f4dcce642ba84a651b9dcdfa5acb403378865e05429b1dd03019e07568163c121a58e05368bc664ebd96e4
7
- data.tar.gz: e3690e9f5b2f28203366e75d845d06dc3ad22173db4ed0a0cdb0ff7246cb0b31f804fc60fde0b6e2be58b29b074f3692ade5f3da6c4f947a2acfc40b1ab1ae21
6
+ metadata.gz: 4b4e7e0f16be94698e19d4b8d53bfbc07eeecbcb26e71eb9347ee2d36a9526c4a50708ca2b8cefc042b846fa81197500a1c03a46020f61ebe6111c6d715b574b
7
+ data.tar.gz: a29961896b77bd1cb0874bd51dc001d94b31c8b7000137b27fca0ef4820055895d69cc3302145514163a5b628791d625cb4208722feea618fb9488d25a5a049a
@@ -282,10 +282,16 @@ static VALUE clips_environment_defclass_static_defmodule_name(VALUE self, VALUE
282
282
  static VALUE clips_environment_defclass_pp_form(VALUE self)
283
283
  {
284
284
  Defclass *defclass;
285
+ const char *pp_form;
285
286
 
286
287
  TypedData_Get_Struct(self, Defclass, &Defclass_type, defclass);
287
288
 
288
- return rb_str_new2(DefclassPPForm(defclass));
289
+ pp_form = DefclassPPForm(defclass);
290
+ if (pp_form == NULL) {
291
+ return Qnil;
292
+ } else {
293
+ return rb_str_new2(pp_form);
294
+ }
289
295
  }
290
296
 
291
297
  static VALUE clips_environment_defclass_static_pp_form(VALUE self, VALUE rbDefclass)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clipsruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36
4
+ version: 0.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Johnston