prolog_mqi 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dec293caa1b54a261cf73751e98851919ca9a7333e009f66ea773156b0881f2
4
- data.tar.gz: 07c7cc80fafeb347f8a0556cd28df349cf042e2ddc670cea88fbbfe7d6e2d1b2
3
+ metadata.gz: 9f35b738ec7ec89d245a4e28da19b5de4e25914eedd96cf39089d45e3784eb71
4
+ data.tar.gz: 6b329338aa908127711306beef8eb0a69adeafb8d121a721e44713132200cb1d
5
5
  SHA512:
6
- metadata.gz: ebd83c3a190c45558926a57d4c98318294e017ad5ae34f2f46ab4b132edb72996bfb9896f3d10cfe0fc16534d0d681aeb06138d39b36d49a3e35731b1c79e0be
7
- data.tar.gz: 98decf4439ef0aa4f92063dc8c0274de84f845b8657396ab46926e7058cff7c9af1ea1e622abfb24ef5886fa43b5b3174b3560408915369fc8df44625d344ec0
6
+ metadata.gz: 936772746937d42e180bc0b7c67f660552fac2dfef5214ebfd799bd4575f688afec94d3f98512fc3814ef44c83cdfe2c01625d9388d6c65cc050f308bd24dea9
7
+ data.tar.gz: 88c5b5427abb9a06b8dd815f31467c68effacdfbe078c92d38f36456d050336e33cd274424cb1830812c1d8b3ee78a097dac4c21b197f6478ed0287a613462fc
@@ -29,6 +29,8 @@ module PrologMQI
29
29
  end
30
30
 
31
31
  def args
32
+ return nil unless @term.is_a?(Hash) && @term.key?('args')
33
+
32
34
  @term['args'].map do |arg|
33
35
  next nil if arg == 'nil'
34
36
  next arg.to_i if arg.is_a?(String) && arg.to_i.to_s == arg
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrologMQI
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prolog_mqi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delton Ding