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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92809bbe8fae1d623b8ed732b67cbe5efff426f4
4
- data.tar.gz: 2863fc270846f121b9733b5b39798c0c12ddf9c7
3
+ metadata.gz: a3638067938195bee415a379924b394f21100714
4
+ data.tar.gz: cda70b51964c8ed9d837fb9c0c0fc0f3ba7d3d35
5
5
  SHA512:
6
- metadata.gz: 9311c4c3dbbc9d0d300252148a15909e738254bbd3812f77d1506150b808c936ba083e4d42a3464f0b878f21067742d8fb435dad6c0cd87537e013707bfc61bd
7
- data.tar.gz: 1f51c4e1a7e4652e1d5fde405b610ec17d5237e045c08cbba9574ba71549a8b2ef8325f18a2421c971aebc70054ad9a68dd73268137313a9ee9ac9e395a365b7
6
+ metadata.gz: 1aac7d71d23f3d54ceb180c5b88e02aacfd523977d7a9eb92e41382b13cb134c6b83dba5a78c3f18bea7ad285e8bedb8704de71f86e25544ff8fee75715d7bfb
7
+ data.tar.gz: 9090dcc5f89d35a942b78a09ee93971ee1954c80c1d95e1f483ad576c4e8752f7424789ba02933a73cb6e74df2aeb9751068674d9de8092f83548778a65e37b4
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Prolegomenon
2
2
  >> "a critical or discursive introduction to a book"
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/prolego.svg)](http://badge.fury.io/rb/prolego)
5
+
4
6
  This is a gem intended for UNM to interface Ruby with Prolog.
5
7
 
6
8
  ## Installation
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 "#{parg predicate}(#{parg args}),halt"]
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
@@ -1,3 +1,3 @@
1
1
  module Prolego
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-01-28 00:00:00.000000000 Z
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.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: