conjugatefr 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +46 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42a8e9a0eb9b93519d82efe5949473a95a109f88
|
4
|
+
data.tar.gz: 4304ce81f353d76144858bbe218b2bdf138a3dfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbba514ceea7d790f1feb35a0aa57774894f8564993d9efc3883ba98c40148ae20ff639e637d22fc8fe3247476ff82ac88bcdd5c9eb48c34d70e2379e57dad98
|
7
|
+
data.tar.gz: a0b65413fae6e2cacfa2426651b9d3a23736b037feb961422903f9672e3f8b11cd768e963541a4de1e6b5126158dd40ebe829ce7d5fca60ae956095526eba27a
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjugatefr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- htmlguy
|
@@ -10,23 +10,51 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2015-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
13
|
+
description: |2
|
14
|
+
== ConjugateFR
|
15
|
+
A simple program and library to conjugate french verbs.
|
16
|
+
Parses responses to requests to an online reference site.
|
17
|
+
|
18
|
+
=== Executable
|
19
|
+
ConjugateFR comes with the executable binary +conjugatefr+.
|
20
|
+
To view information about it's supported arguments, run
|
21
|
+
conjugatefr --help
|
22
|
+
|
23
|
+
=== Custom Renderers
|
24
|
+
To make a custom renderer, just type
|
25
|
+
require conjugatefr/renderer
|
26
|
+
and then make a class that extends +Renderer+.
|
27
|
+
An example is as follows:
|
28
|
+
|
29
|
+
require 'conjugatefr/renderer'
|
30
|
+
class ExampleRenderer < Renderer
|
31
|
+
def pre
|
32
|
+
puts "This goes before the words."
|
33
|
+
end
|
34
|
+
def word (name, words)
|
35
|
+
print "#{name}:"
|
36
|
+
words.each do |word|
|
37
|
+
print " #{word}"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
def post
|
41
|
+
puts "This goes after the words."
|
42
|
+
end
|
43
|
+
def description; "Renders an example format."; end
|
44
|
+
end
|
45
|
+
# Add to the Renderers list (For CLI and other programs that use it.)
|
46
|
+
$renderers["Example"] = ExampleRenderer.new
|
47
|
+
To try this out, save it as +erend.rb+ and then run:
|
48
|
+
conjugatefr -R ./erend.rb -r Example
|
49
|
+
It will produce the output:
|
50
|
+
This goes before the words.
|
51
|
+
someword: someconjugation etc etc
|
52
|
+
... (more words will be here)
|
53
|
+
This goes after the words.
|
54
|
+
|
55
|
+
=== The Library
|
56
|
+
The library can be included with +require conjugatefr+. It includes the
|
57
|
+
+ConjugateFR+ class.
|
30
58
|
email: htmlguy@pdum.xyz
|
31
59
|
executables:
|
32
60
|
- conjugatefr
|