prolog_mqi 0.1.2 → 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: c140e8137101d2baf02d0a584c067e9eab8129848c9180c0b4f0385afe24b916
4
- data.tar.gz: ccd2b9ef79061e9c5eff1fb2292f2a8c8f986b50d302f7c4b7a7d1447ba6d71e
3
+ metadata.gz: 9f35b738ec7ec89d245a4e28da19b5de4e25914eedd96cf39089d45e3784eb71
4
+ data.tar.gz: 6b329338aa908127711306beef8eb0a69adeafb8d121a721e44713132200cb1d
5
5
  SHA512:
6
- metadata.gz: 3891f27ddd92e97506998ba3ee15bf273bd575e846a478dba657307bbf4d3adea65e7a135ea992aa5c5dd9f668184255e472ddb42ecee9efc1a96c033e30351c
7
- data.tar.gz: 6d21ed8b6dc2efd65132df959ae904625780c6138e50d3a3c2c598aa74371337d5d30516f0fee40d800a981d0918e8696e015d25a1c4dbc70b3a88beda63807c
6
+ metadata.gz: 936772746937d42e180bc0b7c67f660552fac2dfef5214ebfd799bd4575f688afec94d3f98512fc3814ef44c83cdfe2c01625d9388d6c65cc050f308bd24dea9
7
+ data.tar.gz: 88c5b5427abb9a06b8dd815f31467c68effacdfbe078c92d38f36456d050336e33cd274424cb1830812c1d8b3ee78a097dac4c21b197f6478ed0287a613462fc
data/.rubocop.yml CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
@@ -6,17 +6,11 @@ require 'rake/testtask'
6
6
  Rake::TestTask.new(:test) do |t|
7
7
  t.libs << 'test'
8
8
  t.libs << 'lib'
9
- t.test_files = FileList['test/**/test_*.rb']
10
- end
11
-
12
- Rake::TestTask.new(:bench) do |t|
13
- t.libs << 'test'
14
- t.libs << 'lib'
15
- t.test_files = FileList['test/**/bench_*.rb']
9
+ t.test_files = FileList['test/**/test_*.rb', 'test/**/bench_*.rb']
16
10
  end
17
11
 
18
12
  require 'rubocop/rake_task'
19
13
 
20
14
  RuboCop::RakeTask.new
21
15
 
22
- task default: %i[test bench rubocop]
16
+ task default: %i[test rubocop]
File without changes
@@ -15,7 +15,7 @@ module PrologMQI
15
15
  # rubocop:disable Metrics/CyclomaticComplexity
16
16
  def handle_error
17
17
  return unless @term.name == 'exception'
18
- raise PrologError, @term unless result.key?('args') && @term.args.length >= 1
18
+ raise PrologError, @term unless @term.args && @term.args.length >= 1
19
19
 
20
20
  case @term.args[0]
21
21
  when 'no_more_results'
File without changes
@@ -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.2'
4
+ VERSION = '0.1.4'
5
5
  end
data/lib/prolog_mqi.rb CHANGED
File without changes
data/prolog_mqi.gemspec CHANGED
File without changes
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prolog_mqi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delton Ding
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2023-07-02 00:00:00.000000000 Z
@@ -38,7 +38,7 @@ metadata:
38
38
  homepage_uri: https://github.com/yet-another-ai/prologmqi.rb
39
39
  source_code_uri: https://github.com/yet-another-ai/prologmqi.rb
40
40
  rubygems_mfa_required: 'true'
41
- post_install_message:
41
+ post_install_message:
42
42
  rdoc_options: []
43
43
  require_paths:
44
44
  - lib
@@ -53,8 +53,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
- rubygems_version: 3.4.12
57
- signing_key:
56
+ rubygems_version: 3.4.10
57
+ signing_key:
58
58
  specification_version: 4
59
59
  summary: Yet Another Prolog Interface for Ruby.
60
60
  test_files: []