prolego 0.0.1 → 0.0.2
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/README.md +2 -0
- data/lib/prolego.rb +2 -3
- data/lib/prolego/version.rb +1 -1
- data/prolego-0.0.1.gem +0 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3638067938195bee415a379924b394f21100714
|
4
|
+
data.tar.gz: cda70b51964c8ed9d837fb9c0c0fc0f3ba7d3d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aac7d71d23f3d54ceb180c5b88e02aacfd523977d7a9eb92e41382b13cb134c6b83dba5a78c3f18bea7ad285e8bedb8704de71f86e25544ff8fee75715d7bfb
|
7
|
+
data.tar.gz: 9090dcc5f89d35a942b78a09ee93971ee1954c80c1d95e1f483ad576c4e8752f7424789ba02933a73cb6e74df2aeb9751068674d9de8092f83548778a65e37b4
|
data/README.md
CHANGED
data/lib/prolego.rb
CHANGED
@@ -8,11 +8,11 @@ module Prolego
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def command predicate,args
|
11
|
-
@output=%x[swipl -q -f #{@file} -g
|
11
|
+
@output=%x[swipl -q -f '#{@file}' -g '#{parg predicate}(#{parg args}),halt']
|
12
12
|
end
|
13
13
|
|
14
14
|
def parg arg
|
15
|
-
arg.to_s.gsub /^\[|"|\]$/, "[" => "", "]" => "", "\"" => "'"
|
15
|
+
arg.to_s.gsub /^\[|"|'|\]$/, "[" => "", "]" => "", "'" => "'\"'\"'", "\"" => "'\"'\"'"
|
16
16
|
end
|
17
17
|
|
18
18
|
def epilog
|
@@ -20,6 +20,5 @@ module Prolego
|
|
20
20
|
end
|
21
21
|
|
22
22
|
end
|
23
|
-
|
24
23
|
|
25
24
|
end
|
data/lib/prolego/version.rb
CHANGED
data/prolego-0.0.1.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Piro-Rael
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- Rakefile
|
53
53
|
- lib/prolego.rb
|
54
54
|
- lib/prolego/version.rb
|
55
|
+
- prolego-0.0.1.gem
|
55
56
|
- prolego.gemspec
|
56
57
|
homepage: https://github.com/rickpr/prolegomenon
|
57
58
|
licenses:
|
@@ -73,8 +74,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
74
|
version: '0'
|
74
75
|
requirements: []
|
75
76
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.4.
|
77
|
+
rubygems_version: 2.4.5
|
77
78
|
signing_key:
|
78
79
|
specification_version: 4
|
79
80
|
summary: This gem interfaces Ruby with Prolog via the shell.
|
80
81
|
test_files: []
|
82
|
+
has_rdoc:
|