prolego 0.0.9 → 0.1.0

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
  SHA1:
3
- metadata.gz: 004fc65cfa902746612bd9e80d3e5096f321c026
4
- data.tar.gz: ef1a8db194f1161b7c25aa352c1b21cca5959e41
3
+ metadata.gz: f9be9f69080fd27155e739682ec8a5651175b3b9
4
+ data.tar.gz: cc43c84a0ec0b597d6e237fc5c08875cc4f0a673
5
5
  SHA512:
6
- metadata.gz: 6f88ed13fcc3696ec0c209b16a486d5ea5c1e7a796f04afcf29766e273c1dda39631482e292a7215dee30939f371fdca51190ade8fe9758efc2faffeda7f15c7
7
- data.tar.gz: 3fa095e58b8e58240e72ab2012d22ebe1f01043292f8d12c9e597d022fca49c0607e242aa4b057ee37063d10532cf1e9c44121c15a995bc6b8014da26a035397
6
+ metadata.gz: e190e88ec592ca93099d2101bdb9e1760266d0d9d81e6d49ac0359884b99a3c89eca8c9a4e3b9e15d2bbcf6eb050164cd5cecb5add9c9d83bc926cc463cbda84
7
+ data.tar.gz: 2b68e3b6bfc04b979dbc7149cc2c0e7b369e6bf8be31c64ccc0f766f14fd23c0fadd4187db283cfd66ece44ad0b84df446a01bda4923e007ec28c27498ddced8
data/README.md CHANGED
@@ -27,9 +27,16 @@ Initiate a Prolog Query as a Ruby object. This expects a file to have some
27
27
  predicates defined that it can use from the command line.
28
28
 
29
29
  ```ruby
30
- prolog=Prolego::Query.new "Top.pl"
30
+ prolog = Prolego::Query.new("Top.pl")
31
31
  ```
32
32
 
33
+ If you would like an exception to be thrown if Prolog fails, use `whiny: true`
34
+
35
+ ```ruby
36
+ prolog = Prolego::Query.new("Top.pl", whiny: true)
37
+ ```
38
+
39
+
33
40
  After initializing this, make queries against your Prolog file. Note this runs
34
41
  Prolog from the interactive mode, so no need to compile Prolog. The command
35
42
  method takes two arguments, the predicate name and the argument list. The
@@ -37,7 +44,7 @@ argument list expects an **array**, so if you have arrays within your arguments,
37
44
  nest them.
38
45
 
39
46
  ```ruby
40
- prolog.command "ce",["BS",[["MATH 162","A"],["CE 160L","A"]]]
47
+ prolog.command("ce",["BS",[["MATH 162","A"],["CE 160L","A"]]])
41
48
  ```
42
49
 
43
50
  We have a special method called `epilog` to get our formatted output. This
@@ -5,7 +5,7 @@ require "open3"
5
5
  module Prolego
6
6
  class Query
7
7
 
8
- attr_reader :status, :whiny, :error
8
+ attr_reader :status, :whiny, :error, :output
9
9
 
10
10
  def initialize(filepath, whiny: false)
11
11
  @file = filepath
@@ -1,3 +1,3 @@
1
1
  module Prolego
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
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.9
4
+ version: 0.1.0
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.8.gem
55
+ - prolego-0.0.9.gem
56
56
  - prolego.gemspec
57
57
  homepage: https://github.com/rickpr/prolegomenon
58
58
  licenses: