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 +4 -4
- data/README.md +9 -2
- data/lib/prolego.rb +1 -1
- data/lib/prolego/version.rb +1 -1
- data/{prolego-0.0.8.gem → prolego-0.0.9.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: f9be9f69080fd27155e739682ec8a5651175b3b9
|
4
|
+
data.tar.gz: cc43c84a0ec0b597d6e237fc5c08875cc4f0a673
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
data/lib/prolego.rb
CHANGED
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.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.
|
55
|
+
- prolego-0.0.9.gem
|
56
56
|
- prolego.gemspec
|
57
57
|
homepage: https://github.com/rickpr/prolegomenon
|
58
58
|
licenses:
|