prolego 0.0.8 → 0.0.9
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 +4 -4
- data/lib/prolego.rb +2 -2
- data/lib/prolego/version.rb +1 -1
- data/{prolego-0.0.7.gem → prolego-0.0.8.gem} +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 004fc65cfa902746612bd9e80d3e5096f321c026
|
4
|
+
data.tar.gz: ef1a8db194f1161b7c25aa352c1b21cca5959e41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f88ed13fcc3696ec0c209b16a486d5ea5c1e7a796f04afcf29766e273c1dda39631482e292a7215dee30939f371fdca51190ade8fe9758efc2faffeda7f15c7
|
7
|
+
data.tar.gz: 3fa095e58b8e58240e72ab2012d22ebe1f01043292f8d12c9e597d022fca49c0607e242aa4b057ee37063d10532cf1e9c44121c15a995bc6b8014da26a035397
|
data/lib/prolego.rb
CHANGED
@@ -15,7 +15,7 @@ module Prolego
|
|
15
15
|
def command(predicate, args)
|
16
16
|
command = "swipl -qf '#{@file}' -g '#{escape(predicate)}(#{escape(args)}),halt'"
|
17
17
|
@output, @error, status = Open3.capture3(command)
|
18
|
-
@status = status.exitstatus
|
18
|
+
(@status = status.exitstatus) == 0
|
19
19
|
end
|
20
20
|
|
21
21
|
def escape(arg)
|
@@ -23,7 +23,7 @@ module Prolego
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def epilog
|
26
|
-
fail "Prolog exit status #{@status}. Check errors with
|
26
|
+
fail "Prolog exit status #{@status}. Check errors with Query#error" if @status != 0 && whiny
|
27
27
|
JSON.parse @output.gsub("'", "\"") rescue @output
|
28
28
|
end
|
29
29
|
|
data/lib/prolego/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prolego
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Piro-Rael
|
@@ -52,7 +52,7 @@ files:
|
|
52
52
|
- Rakefile
|
53
53
|
- lib/prolego.rb
|
54
54
|
- lib/prolego/version.rb
|
55
|
-
- prolego-0.0.
|
55
|
+
- prolego-0.0.8.gem
|
56
56
|
- prolego.gemspec
|
57
57
|
homepage: https://github.com/rickpr/prolegomenon
|
58
58
|
licenses:
|