conjugatefr 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. checksums.yaml +4 -4
  2. metadata +46 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87362c4221617c2625e90c78bda16876536213a7
4
- data.tar.gz: 83c504e5139117a9ca1a7ca5c5ae7676ad4c14a6
3
+ metadata.gz: 42a8e9a0eb9b93519d82efe5949473a95a109f88
4
+ data.tar.gz: 4304ce81f353d76144858bbe218b2bdf138a3dfb
5
5
  SHA512:
6
- metadata.gz: 271d9ea391997af2de123c736747babea7df9fbee0363bc7724ca2ead3a54fccd98d591517b359e25889c1efa22cf49a8748f7f8c51a2d19c8dd11f37afd6162
7
- data.tar.gz: e6f2145bbcf1b1adb7064c769b576241f618efeab29298fa7d41c9c79e7b47bee07436cff142aca902bad4f2dc421fbcc6a5fa4d426efc75c5db71bf21f9c2ee
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.2
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: "\n A simple program and library to conjugate french verbs.\n Parses
14
- responses to requests to an online reference site.\n\n == Executable\n ConjugateFR
15
- comes with the executable binary +conjugatefr+.\n To view information about it's
16
- supported arguments, run\n conjugatefr --help\n\n == Custom Renderers\n To make
17
- a custom renderer, just type\n require conjugatefr/renderer\n and then make a
18
- class that extends +Renderer+.\n An example is as follows:\n\n require 'conjugatefr/renderer'\n
19
- \ class ExampleRenderer < Renderer\n def pre\n puts \"This goes before
20
- the words.\"\n end\n def word (name, words)\n print \"#{name}:\"\n
21
- \ words.each do |word|\n print \" #{word}\"\n end\n end\n
22
- \ def post\n puts \"This goes after the words.\"\n end\n def
23
- description; \"Renders an example format.\"; end\n end\n # Add to the Renderers
24
- list (For CLI and other programs that use it.)\n $renderers[\"Example\"] = ExampleRenderer.new\n
25
- \ To try this out, save it as +erend.rb+ and then run:\n conjugatefr -R ./erend.rb
26
- -r Example\n It will produce the output:\n This goes before the words.\n someword:
27
- someconjugation etc etc\n ... (more words will be here)\n This goes after
28
- the words.\n\n == The Library\n The library can be included with +require conjugatefr+.
29
- It includes the\n +ConjugateFR+ class.\n "
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