wwwjdic 13.0.1 → 14.0.0
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 +4 -4
- data/CHANGELOG +19 -1
- data/Gemfile +1 -1
- data/README.md +79 -73
- data/Rakefile +2 -2
- data/acknowledgements.md +2 -2
- data/authors.md +2 -2
- data/copyright.md +4 -4
- data/examples/basics.rb +1 -1
- data/examples/translate.rb +1 -1
- data/examples/uri.rb +1 -1
- data/html/CHANGELOG.html +28 -7
- data/html/COPYING_md.html +7 -6
- data/html/Gemfile.html +8 -7
- data/html/Object.html +7 -4
- data/html/README_md.html +34 -47
- data/html/Rakefile.html +10 -9
- data/html/WWWJDic.html +11 -8
- data/html/WWWJDic/ParsableDuckType.html +9 -6
- data/html/WWWJDic/Parser.html +9 -6
- data/html/WWWJDic/Parsers.html +7 -4
- data/html/WWWJDic/Parsers/Dict.html +8 -5
- data/html/WWWJDic/Parsers/Display.html +8 -5
- data/html/WWWJDic/Parsers/Key.html +8 -5
- data/html/WWWJDic/Parsers/Search.html +8 -5
- data/html/WWWJDic/Parsers/Server.html +8 -5
- data/html/WWWJDic/Splitter.html +8 -5
- data/html/WWWJDic/Utils.html +8 -5
- data/html/WWWJDic/Utils/Downloader.html +7 -4
- data/html/WWWJDic/Utils/Downloader/Downloader.html +7 -4
- data/html/WWWJDic/Utils/Raisers.html +23 -20
- data/html/WWWJDic/WWWJDic.html +14 -11
- data/html/acknowledgements_md.html +9 -8
- data/html/authors_md.html +9 -8
- data/html/copyright_md.html +198 -195
- data/html/created.rid +57 -58
- data/html/css/rdoc.css +35 -6
- data/html/index.html +34 -47
- data/html/js/darkfish.js +22 -99
- data/html/js/navigation.js +4 -40
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +32 -31
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +6 -6
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +10 -10
- data/lib/wwwjdic.rb +4 -2
- data/lib/wwwjdic/application.rb +8 -8
- data/lib/wwwjdic/constants.rb +1 -1
- data/lib/wwwjdic/locales/de.yml +3 -1
- data/lib/wwwjdic/locales/en.yml +3 -1
- data/lib/wwwjdic/locales/es.yml +3 -1
- data/lib/wwwjdic/locales/fr.yml +3 -2
- data/lib/wwwjdic/locales/hu.yml +3 -2
- data/lib/wwwjdic/locales/it.yml +3 -2
- data/lib/wwwjdic/locales/ja.yml +3 -3
- data/lib/wwwjdic/locales/nl.yml +3 -1
- data/lib/wwwjdic/locales/ru.yml +3 -1
- data/lib/wwwjdic/locales/sl.yml +3 -1
- data/lib/wwwjdic/locales/sv.yml +3 -1
- data/lib/wwwjdic/parser.rb +3 -3
- data/lib/wwwjdic/parsers/dict.rb +2 -2
- data/lib/wwwjdic/parsers/display.rb +2 -2
- data/lib/wwwjdic/parsers/key.rb +2 -2
- data/lib/wwwjdic/parsers/search.rb +2 -2
- data/lib/wwwjdic/parsers/server.rb +2 -2
- data/lib/wwwjdic/utils/downloader.rb +2 -2
- data/lib/wwwjdic/utils/raisers.rb +4 -3
- data/lib/wwwjdic/utils/splitter.rb +2 -2
- data/lib/wwwjdic/version.rb +16 -8
- data/test/test_helper.rb +4 -1
- data/test/test_wwwjdic.rb +4 -4
- data/test/wwwjdic/locales/de.yml +1 -1
- data/test/wwwjdic/locales/en.yml +1 -1
- data/test/wwwjdic/locales/es.yml +1 -1
- data/test/wwwjdic/locales/fr.yml +1 -1
- data/test/wwwjdic/locales/hu.yml +1 -1
- data/test/wwwjdic/locales/it.yml +3 -3
- data/test/wwwjdic/locales/ja.yml +1 -1
- data/test/wwwjdic/locales/nl.yml +1 -1
- data/test/wwwjdic/locales/ru.yml +1 -1
- data/test/wwwjdic/locales/sl.yml +1 -1
- data/test/wwwjdic/locales/sv.yml +1 -1
- data/test/wwwjdic/locales/test_locales.rb +11 -11
- data/test/wwwjdic/parsers/test_dict.rb +4 -4
- data/test/wwwjdic/parsers/test_display.rb +4 -4
- data/test/wwwjdic/parsers/test_key.rb +3 -3
- data/test/wwwjdic/parsers/test_server.rb +4 -4
- data/test/wwwjdic/test_application.rb +30 -30
- data/test/wwwjdic/test_parsable_duck_type.rb +3 -3
- data/test/wwwjdic/utils/test_downloader.rb +1 -1
- data/test/wwwjdic/utils/test_raisers.rb +1 -1
- data/wwwjdic.gemspec +15 -14
- metadata +26 -28
- data/html/js/jquery.js +0 -4
- data/html/wwwjdic_gemspec.html +0 -161
data/html/COPYING_md.html
CHANGED
@@ -4,15 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>COPYING - wwwjdic
|
7
|
+
<title>COPYING - wwwjdic 14.0.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
11
11
|
var index_rel_prefix = "./";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="./js/
|
15
|
-
<script src="./js/
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
16
19
|
|
17
20
|
<link href="./css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
@@ -105,8 +108,6 @@
|
|
105
108
|
|
106
109
|
<li><a href="./copyright_md.html">copyright</a>
|
107
110
|
|
108
|
-
<li><a href="./wwwjdic_gemspec.html">wwwjdic.gemspec</a>
|
109
|
-
|
110
111
|
</ul>
|
111
112
|
</div>
|
112
113
|
|
@@ -383,7 +384,7 @@
|
|
383
384
|
|
384
385
|
<footer id="validator-badges" role="contentinfo">
|
385
386
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
386
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
387
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
|
387
388
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
388
389
|
</footer>
|
389
390
|
|
data/html/Gemfile.html
CHANGED
@@ -4,15 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>Gemfile - wwwjdic
|
7
|
+
<title>Gemfile - wwwjdic 14.0.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
11
11
|
var index_rel_prefix = "./";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="./js/
|
15
|
-
<script src="./js/
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
16
19
|
|
17
20
|
<link href="./css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
@@ -76,8 +79,6 @@
|
|
76
79
|
|
77
80
|
<li><a href="./copyright_md.html">copyright</a>
|
78
81
|
|
79
|
-
<li><a href="./wwwjdic_gemspec.html">wwwjdic.gemspec</a>
|
80
|
-
|
81
82
|
</ul>
|
82
83
|
</div>
|
83
84
|
|
@@ -86,7 +87,7 @@
|
|
86
87
|
|
87
88
|
<main role="main" aria-label="Page Gemfile">
|
88
89
|
|
89
|
-
<p># wwwjdic # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani # # This file is part of wwwjdic. # # wwwjdic is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # wwwjdic is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with wwwjdic. If not, see <<a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/>.</p>
|
90
|
+
<p># wwwjdic # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani # # This file is part of wwwjdic. # # wwwjdic is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # wwwjdic is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with wwwjdic. If not, see <<a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/>.</p>
|
90
91
|
|
91
92
|
<p>source '<a href="https://rubygems.org">rubygems.org</a>'</p>
|
92
93
|
|
@@ -98,7 +99,7 @@
|
|
98
99
|
|
99
100
|
<footer id="validator-badges" role="contentinfo">
|
100
101
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
101
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
102
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
|
102
103
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
103
104
|
</footer>
|
104
105
|
|
data/html/Object.html
CHANGED
@@ -4,15 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class Object - wwwjdic
|
7
|
+
<title>class Object - wwwjdic 14.0.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
11
11
|
var index_rel_prefix = "./";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="./js/
|
15
|
-
<script src="./js/
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
16
19
|
|
17
20
|
<link href="./css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
@@ -179,7 +182,7 @@
|
|
179
182
|
|
180
183
|
<footer id="validator-badges" role="contentinfo">
|
181
184
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
182
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
185
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
|
183
186
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
184
187
|
</footer>
|
185
188
|
|
data/html/README_md.html
CHANGED
@@ -4,15 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>README - wwwjdic
|
7
|
+
<title>README - wwwjdic 14.0.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
11
11
|
var index_rel_prefix = "./";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="./js/
|
15
|
-
<script src="./js/
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
16
19
|
|
17
20
|
<link href="./css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
@@ -97,8 +100,6 @@
|
|
97
100
|
|
98
101
|
<li><a href="./copyright_md.html">copyright</a>
|
99
102
|
|
100
|
-
<li><a href="./wwwjdic_gemspec.html">wwwjdic.gemspec</a>
|
101
|
-
|
102
103
|
</ul>
|
103
104
|
</div>
|
104
105
|
|
@@ -109,7 +110,7 @@
|
|
109
110
|
<!--
|
110
111
|
wwwjdic
|
111
112
|
|
112
|
-
Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
113
|
+
Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
113
114
|
|
114
115
|
This file is part of wwwjdic.
|
115
116
|
|
@@ -130,7 +131,7 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
130
131
|
|
131
132
|
<p><img src="https://img.shields.io/gem/v/wwwjdic.svg?style=plastic"> <img src="https://img.shields.io/gem/dt/wwwjdic.svg?style=plastic"> <img src="https://img.shields.io/gem/dtv/wwwjdic.svg?style=plastic"> <img src="https://img.shields.io/gem/rt/wwwjdic.svg?style=plastic"> <img src="https://img.shields.io/gem/rd/wwwjdic.svg?style=plastic"> <img src="https://img.shields.io/librariesio/dependent-repos/rubygems/wwwjdic.svg?style=plastic"></p>
|
132
133
|
|
133
|
-
<p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani</p>
|
134
|
+
<p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani</p>
|
134
135
|
|
135
136
|
<p>This file is part of wwwjdic.</p>
|
136
137
|
|
@@ -146,9 +147,11 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
146
147
|
|
147
148
|
<p><a href="WWWJDic.html"><code>WWWJDic</code></a> is an online Japanese translation server made by Jim Breen and available at <a href="http://www.edrdg.org/cgi-bin/wwwjdic/wwwjdic?1C">www.edrdg.org/cgi-bin/wwwjdic/wwwjdic?1C</a> .</p>
|
148
149
|
|
149
|
-
<p>GNU GPLv3 license; source code
|
150
|
+
<p>GNU GPLv3 license; source code available through anonymous checkout: <code>hg clone http://hg.savannah.nongnu.org/hgweb/wwwjdic/</code> or write me and I'll send it.</p>
|
151
|
+
|
152
|
+
<p>You can even decide to contribute to this little free software project by registering to Savannah and ask to be part of the 'WWWJDic' project!</p>
|
150
153
|
|
151
|
-
<p>
|
154
|
+
<p>With great contributions from: Jim Breen, 新部裕, Jon Maken.</p>
|
152
155
|
|
153
156
|
<h2 id="label-Documentation">Documentation<span><a href="#label-Documentation">¶</a> <a href="#top">↑</a></span></h2>
|
154
157
|
|
@@ -162,7 +165,7 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
162
165
|
|
163
166
|
<h3 id="label-Supported+Ruby+Versions+and+Implementations">Supported Ruby Versions and Implementations<span><a href="#label-Supported+Ruby+Versions+and+Implementations">¶</a> <a href="#top">↑</a></span></h3>
|
164
167
|
|
165
|
-
<p>Because <a href="WWWJDic.html"><code>WWWJDic</code></a> is pure Ruby, it should run pretty much anywhere, including Rubinius, JRuby, MacRuby, etc. Officially the support is for 2.
|
168
|
+
<p>Because <a href="WWWJDic.html"><code>WWWJDic</code></a> is pure Ruby, it should run pretty much anywhere, including Rubinius, JRuby, MacRuby, etc. Officially the support is for >= 2.7 YARV/KRI.</p>
|
166
169
|
|
167
170
|
<h3 id="label-Support">Support<span><a href="#label-Support">¶</a> <a href="#top">↑</a></span></h3>
|
168
171
|
|
@@ -184,7 +187,7 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
184
187
|
|
185
188
|
<h3 id="label-License">License<span><a href="#label-License">¶</a> <a href="#top">↑</a></span></h3>
|
186
189
|
|
187
|
-
<p><a href="WWWJDic.html"><code>WWWJDic</code></a> is released under GNU GPL v3 license: if you wish to contribute to <a href="WWWJDic.html"><code>WWWJDic</code></a>, you will retain your own <a href="copyright_md.html">copyright</a> but must agree to license your code under the same terms as the project itself (or any compatible license according to <a href="http://www.gnu.org/licenses/license-list.en.html#GPLCompatibleLicenses">GPL
|
190
|
+
<p><a href="WWWJDic.html"><code>WWWJDic</code></a> is released under GNU GPL v3 license: if you wish to contribute to <a href="WWWJDic.html"><code>WWWJDic</code></a>, you will retain your own <a href="copyright_md.html">copyright</a> but must agree to license your code under the same terms as the project itself (or any compatible license according to <a href="http://www.gnu.org/licenses/license-list.en.html#GPLCompatibleLicenses">GPL-Compatible Free Software Licenses</a>).</p>
|
188
191
|
|
189
192
|
<h3 id="label-Links">Links<span><a href="#label-Links">¶</a> <a href="#top">↑</a></span></h3>
|
190
193
|
|
@@ -221,14 +224,7 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
221
224
|
|
222
225
|
<h3 id="label-Usage+Examples">Usage Examples<span><a href="#label-Usage+Examples">¶</a> <a href="#top">↑</a></span></h3>
|
223
226
|
|
224
|
-
<p>See <code>examples</code> folder. To run the examples just run <code>ruby examples/</code>{EXAMPLE_NAME}<code>.rb</code>. Running the examples you'll see both the example description and correct code usage to perform such action. Here below are listed the currently available examples
|
225
|
-
<ul><li>
|
226
|
-
<p>The <code>basics.rb</code> example (run <code>ruby examples/basics.rb</code>) shows how to initialize and use a <a href="WWWJDic.html"><code>WWWJDic</code></a> object through the <code>breener</code> factory method;</p>
|
227
|
-
</li><li>
|
228
|
-
<p>The <code>uri.rb</code> example (run <code>ruby examples/uri.rb</code>) shows how to ask for translation URI at <a href="WWWJDic.html"><code>WWWJDic</code></a>, with all available options and configurations.</p>
|
229
|
-
</li><li>
|
230
|
-
<p>The <code>translate.rb</code> example (run <code>ruby examples/translate.rb</code>) shows how to ask for an actual translation through <a href="WWWJDic.html"><code>WWWJDic</code></a> Backdoor/API, with all available options and configurations. It will also show how to download such translation;</p>
|
231
|
-
</li></ul>
|
227
|
+
<p>See <code>examples</code> folder. To run the examples just run <code>ruby examples/</code>{EXAMPLE_NAME}<code>.rb</code>. Running the examples you'll see both the example description and correct code usage to perform such action. Here below are listed the currently available examples: * The <code>basics.rb</code> example (run <code>ruby examples/basics.rb</code>) shows how to initialize and use a <a href="WWWJDic.html"><code>WWWJDic</code></a> object through the <code>breener</code> factory method; * The <code>uri.rb</code> example (run <code>ruby examples/uri.rb</code>) shows how to ask for translation URI at <a href="WWWJDic.html"><code>WWWJDic</code></a>, with all available options and configurations. * The <code>translate.rb</code> example (run <code>ruby examples/translate.rb</code>) shows how to ask for an actual translation through <a href="WWWJDic.html"><code>WWWJDic</code></a> Backdoor/API, with all available options and configurations. It will also show how to download such translation;</p>
|
232
228
|
|
233
229
|
<p>Using this API is pretty simple. First, get a reference to the <a href="WWWJDic.html"><code>WWWJDic</code></a> object, through its factory method with</p>
|
234
230
|
|
@@ -239,25 +235,23 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
239
235
|
|
240
236
|
<h4 id="label-Parameters">Parameters<span><a href="#label-Parameters">¶</a> <a href="#top">↑</a></span></h4>
|
241
237
|
|
242
|
-
<p>You can then start possibly manipulating some basic parameters that can be set and read from the API. These are not mandatory settings, but are useful whether you'll use your <code>my_wwwjdic</code> object for further similar requests: settings these values internally will save you type more parameters in the request, leaving only the word to search/translate as needed
|
243
|
-
<ul><li>
|
244
|
-
<p>the <code>server</code> name/URL to use:</p>
|
238
|
+
<p>You can then start possibly manipulating some basic parameters that can be set and read from the API. These are not mandatory settings, but are useful whether you'll use your <code>my_wwwjdic</code> object for further similar requests: settings these values internally will save you type more parameters in the request, leaving only the word to search/translate as needed. * the <code>server</code> name/URL to use:</p>
|
245
239
|
|
246
|
-
<pre class="ruby"
|
247
|
-
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-comment"># contains the URL above</span>
|
240
|
+
<pre class="ruby"> <span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">server</span> <span class="ruby-comment"># returns the default server URL http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?</span>
|
241
|
+
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-comment"># contains the URL above</span>
|
248
242
|
|
249
|
-
<span class="ruby-comment"># this below is (again) the default configured server</span>
|
250
|
-
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">server</span> = <span class="ruby-value">:edrdg</span>
|
251
|
-
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">server</span> <span class="ruby-comment"># returns the URL http://www.edrdg.org/cgi-bin/wwwjdic/wwwjdic.cgi?</span>
|
252
|
-
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-comment"># contains the URL above</span>
|
243
|
+
<span class="ruby-comment"># this below is (again) the default configured server</span>
|
244
|
+
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">server</span> = <span class="ruby-value">:edrdg</span>
|
245
|
+
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">server</span> <span class="ruby-comment"># returns the URL http://www.edrdg.org/cgi-bin/wwwjdic/wwwjdic.cgi?</span>
|
246
|
+
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-comment"># contains the URL above</span>
|
253
247
|
|
254
|
-
<span class="ruby-comment"># this is the additional server</span>
|
255
|
-
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">server</span> = <span class="ruby-value">:monash</span>
|
256
|
-
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">server</span> <span class="ruby-comment"># returns the URL http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?</span>
|
257
|
-
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-comment"># contains the URL above</span>
|
248
|
+
<span class="ruby-comment"># this is the additional server</span>
|
249
|
+
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">server</span> = <span class="ruby-value">:monash</span>
|
250
|
+
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">server</span> <span class="ruby-comment"># returns the URL http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?</span>
|
251
|
+
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-comment"># contains the URL above</span>
|
258
252
|
</pre>
|
259
|
-
|
260
|
-
<p>the default reference <code>dictionary</code> to use for translations.
|
253
|
+
<ul><li>
|
254
|
+
<p>the default reference <code>dictionary</code> to use for translations. All currently available dictionaries strings can be used: <code>'1'</code>, <code>'2'</code>, <code>'3'</code>, <code>'4'</code>, <code>'5'</code>, <code>'6'</code>, <code>'7'</code>, <code>'8'</code>, <code>'9'</code>, <code>'A'</code>, <code>'B'</code>, <code>'C'</code>, <code>'D'</code>, <code>'E'</code>, <code>'F'</code>, <code>'G'</code>, <code>'H'</code>, <code>'I'</code>, <code>'J'</code>, <code>'K'</code>, <code>'L'</code>, <code>'M'</code>, <code>'N'</code>, <code>'O'</code>, <code>'P'</code>, <code>'Q'</code> and <code>'R'</code>. You can even use the whole (exact) dictionary strings as listed in the <a href="WWWJDic.html"><code>WWWJDic</code></a> HTML source code: <code>'Jpn-Eng General (EDICT)'</code>, <code>'Japanese Names (ENAMDICT)'</code>, <code>'Computing/Telecomms'</code>, <code>'Life Sciences/Bio-Med'</code>, <code>'Legal Terms'</code>, <code>'Finance/Marketing'</code>, <code>'Buddhism'</code>, <code>'Miscellaneous'</code>, <code>'Special Text-glossing'</code>, <code>'Engineering/Science'</code>, <code>'Linguistics'</code>, <code>'River & Water Systems'</code>, <code>'Automobile Industry'</code>, <code>'Japanese Wordnet'</code>, <code>'Work-in-progress File'</code>, <code>'Japanese-German (WaDoku)'</code>, <code>'Japanese-French'</code>, <code>'Japanese-Russian'</code>, <code>'Japanese-Swedish'</code>, <code>'Japanese-Hungarian'</code>, <code>'Japanese-Spanish'</code>, <code>'Japanese-Dutch'</code>, <code>'Japanese-Slovenian'</code>, <code>'Japanese-Italian'</code>, <code>'Untranslated'</code>, <code>'Combined Jpn-Eng'</code>, <code>'Expanded Text-glossing'</code>.</p>
|
261
255
|
|
262
256
|
<pre class="ruby"><span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">dictionary</span> <span class="ruby-comment"># returns 0 as default, if not set</span>
|
263
257
|
|
@@ -265,7 +259,7 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
265
259
|
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">dictionary</span> <span class="ruby-comment"># returns the string '7'</span>
|
266
260
|
</pre>
|
267
261
|
</li><li>
|
268
|
-
<p>Then you can obviously ask for a translation reference URL.
|
262
|
+
<p>Then you can obviously ask for a translation reference URL. Basic examples:</p>
|
269
263
|
|
270
264
|
<pre class="ruby"><span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">uri</span> <span class="ruby-string">'word'</span> <span class="ruby-comment"># this return the URL for translation of 'word', with normal display format</span>
|
271
265
|
|
@@ -295,17 +289,11 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
295
289
|
'message' : possible error message or result (extracted from <p>MESSAGE\n raw display format
|
296
290
|
}</pre>
|
297
291
|
</li><li>
|
298
|
-
<p>Now let's come to the second parameter of the methods above (set to <code>nil</code> in the examples), the arguments for the translation.
|
299
|
-
|
300
|
-
<p>Valid parameters, and their values are:</p>
|
301
|
-
<ul><li>
|
302
|
-
<p><code>dict</code> parameter allows both numbers and (exact) strings to select dictionaries: <code>'1'</code>, <code>'2'</code>, <code>'3'</code>, <code>'4'</code>, <code>'5'</code>, <code>'6'</code>, <code>'7'</code>, <code>'8'</code>, <code>'9'</code>, <code>'A'</code>, <code>'B'</code>, <code>'C'</code>, <code>'D'</code>, <code>'E'</code>, <code>'F'</code>, <code>'G'</code>, <code>'H'</code>, <code>'I'</code>, <code>'J'</code>, <code>'K'</code>, <code>'L'</code>, <code>'M'</code>, <code>'N'</code>, <code>'O'</code>, <code>'P'</code>, <code>'Q'</code>, and <code>'R'</code>, together with the full (exact) strings <code>'Jpn-Eng General (EDICT)'</code>, <code>'Japanese Names (ENAMDICT)'</code>, <code>'Computing/Telecomms'</code>, <code>'Life Sciences/Bio-Med'</code>, <code>'Legal Terms'</code>, <code>'Finance/Marketing'</code>, <code>'Buddhism'</code>, <code>'Miscellaneous'</code>, <code>'Special Text-glossing'</code>, <code>'Engineering/Science'</code>, <code>'Linguistics'</code>, <code>'River & Water Systems'</code>, <code>'Automobile Industry'</code>, <code>'Japanese Wordnet'</code>, <code>'Work-in-progress File'</code>, <code>'Japanese-German (WaDoku)'</code>, <code>'Japanese-French'</code>, <code>'Japanese-Russian'</code>, <code>'Japanese-Swedish'</code>, <code>'Japanese-Hungarian'</code>, <code>'Japanese-Spanish'</code>, <code>'Japanese-Dutch'</code>, <code>'Japanese-Slovenian'</code>, <code>'Japanese-Italian'</code>, <code>'Untranslated'</code>, <code>'Combined Jpn-Eng'</code> and <code>'Expanded Text-glossing'</code>.</p>
|
303
|
-
</li><li>
|
304
|
-
<p><code>display</code> parameter to select the final format of the referred HTML page (either regular HTML or raw): <code>:regular</code>, <code>:raw</code>.</p>
|
305
|
-
</li><li>
|
306
|
-
<p><code>server</code> allows the user to select from the default URL (at Electronic Dictionaries R&D Group) or the Monash university URL: <code>:edrdg</code>, <code>:monash</code>.</p>
|
292
|
+
<p>Now let's come to the second parameter of the methods above (set to <code>nil</code> in the examples), the arguments for the translation. The default is to translate to/from English/Japanese with normal display layout and no other specificities, except that the API automatically identifies Japanese or English and manages the romaji and so on. The returned URL is the default EDR&DG one. What if the user wants to customize something? The <code>args</code>, second parameter of all those methods above, is a dictionary (hash map) that allows to specify which parameters and to which values they shall be set.</p>
|
307
293
|
</li></ul>
|
308
294
|
|
295
|
+
<p>Valid parameters, and their values are: * <code>dict</code> parameter allows both numbers and (exact) strings to select dictionaries: <code>'1'</code>, <code>'2'</code>, <code>'3'</code>, <code>'4'</code>, <code>'5'</code>, <code>'6'</code>, <code>'7'</code>, <code>'8'</code>, <code>'9'</code>, <code>'A'</code>, <code>'B'</code>, <code>'C'</code>, <code>'D'</code>, <code>'E'</code>, <code>'F'</code>, <code>'G'</code>, <code>'H'</code>, <code>'I'</code>, <code>'J'</code>, <code>'K'</code>, <code>'L'</code>, <code>'M'</code>, <code>'N'</code>, <code>'O'</code>, <code>'P'</code>, <code>'Q'</code>, and <code>'R'</code>, together with the full (exact) strings <code>'Jpn-Eng General (EDICT)'</code>, <code>'Japanese Names (ENAMDICT)'</code>, <code>'Computing/Telecomms'</code>, <code>'Life Sciences/Bio-Med'</code>, <code>'Legal Terms'</code>, <code>'Finance/Marketing'</code>, <code>'Buddhism'</code>, <code>'Miscellaneous'</code>, <code>'Special Text-glossing'</code>, <code>'Engineering/Science'</code>, <code>'Linguistics'</code>, <code>'River & Water Systems'</code>, <code>'Automobile Industry'</code>, <code>'Japanese Wordnet'</code>, <code>'Work-in-progress File'</code>, <code>'Japanese-German (WaDoku)'</code>, <code>'Japanese-French'</code>, <code>'Japanese-Russian'</code>, <code>'Japanese-Swedish'</code>, <code>'Japanese-Hungarian'</code>, <code>'Japanese-Spanish'</code>, <code>'Japanese-Dutch'</code>, <code>'Japanese-Slovenian'</code>, <code>'Japanese-Italian'</code>, <code>'Untranslated'</code>, <code>'Combined Jpn-Eng'</code> and <code>'Expanded Text-glossing'</code>. * <code>display</code> parameter to select the final format of the referred HTML page (either regular HTML or raw): <code>:regular</code>, <code>:raw</code>. * <code>server</code> allows the user to select from the default URL (at Electronic Dictionaries R&D Group) or the Monash university URL: <code>:edrdg</code>, <code>:monash</code>.</p>
|
296
|
+
|
309
297
|
<p>Some examples of these parameters' usage:</p>
|
310
298
|
|
311
299
|
<pre class="ruby"> <span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">translate</span> <span class="ruby-string">'sprache'</span>, <span class="ruby-value">dict:</span> <span class="ruby-string">'F'</span> <span class="ruby-comment"># this translates using the 'F' dictionary, that is the German one</span>
|
@@ -316,12 +304,11 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
316
304
|
|
317
305
|
<span class="ruby-identifier">my_wwwjdic</span>.<span class="ruby-identifier">uri</span> <span class="ruby-string">'sprache'</span>, <span class="ruby-value">dict:</span> <span class="ruby-string">'F'</span>, <span class="ruby-value">display:</span> <span class="ruby-identifier">raw</span> <span class="ruby-comment"># same as above</span>
|
318
306
|
</pre>
|
319
|
-
</li></ul>
|
320
307
|
<hr>
|
321
308
|
|
322
309
|
<p>wwwjdic</p>
|
323
310
|
|
324
|
-
<p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani</p>
|
311
|
+
<p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani</p>
|
325
312
|
|
326
313
|
<p>This file is part of wwwjdic.</p>
|
327
314
|
|
@@ -337,7 +324,7 @@ with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
|
337
324
|
|
338
325
|
<footer id="validator-badges" role="contentinfo">
|
339
326
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
340
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
327
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
|
341
328
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
342
329
|
</footer>
|
343
330
|
|
data/html/Rakefile.html
CHANGED
@@ -4,15 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>Rakefile - wwwjdic
|
7
|
+
<title>Rakefile - wwwjdic 14.0.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
11
11
|
var index_rel_prefix = "./";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="./js/
|
15
|
-
<script src="./js/
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
16
19
|
|
17
20
|
<link href="./css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
@@ -76,8 +79,6 @@
|
|
76
79
|
|
77
80
|
<li><a href="./copyright_md.html">copyright</a>
|
78
81
|
|
79
|
-
<li><a href="./wwwjdic_gemspec.html">wwwjdic.gemspec</a>
|
80
|
-
|
81
82
|
</ul>
|
82
83
|
</div>
|
83
84
|
|
@@ -86,7 +87,7 @@
|
|
86
87
|
|
87
88
|
<main role="main" aria-label="Page Rakefile">
|
88
89
|
|
89
|
-
<p># wwwjdic # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani # # This file is part of wwwjdic. # # wwwjdic is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # wwwjdic is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with wwwjdic. If not, see <<a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/>.</p>
|
90
|
+
<p># wwwjdic # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani # # This file is part of wwwjdic. # # wwwjdic is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # wwwjdic is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with wwwjdic. If not, see <<a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/>.</p>
|
90
91
|
|
91
92
|
<p>require 'rake' require 'rake/clean' require 'rake/testtask' require 'rdoc/task' require 'rubygems/package_task'</p>
|
92
93
|
|
@@ -110,7 +111,7 @@
|
|
110
111
|
<pre class="ruby"><span class="ruby-identifier">rdoc</span>.<span class="ruby-identifier">rdoc_files</span>.<span class="ruby-identifier">add</span> <span class="ruby-identifier">wwwjdic</span>.<span class="ruby-identifier">files</span>
|
111
112
|
<span class="ruby-identifier">rdoc</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">wwwjdic</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-string">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">wwwjdic</span>.<span class="ruby-identifier">version</span>.<span class="ruby-identifier">to_s</span>
|
112
113
|
<span class="ruby-identifier">rdoc</span>.<span class="ruby-identifier">main</span> = <span class="ruby-string">'README.md'</span>
|
113
|
-
<span class="ruby-identifier">rdoc</span>.<span class="ruby-identifier">options</span> <span class="ruby-operator">+=</span> <span class="ruby-node">%w
|
114
|
+
<span class="ruby-identifier">rdoc</span>.<span class="ruby-identifier">options</span> <span class="ruby-operator">+=</span> <span class="ruby-node">%w[-e UTF-8 --hyperlink-all --line-numbers]</span>
|
114
115
|
</pre>
|
115
116
|
|
116
117
|
<p>end</p>
|
@@ -118,7 +119,7 @@
|
|
118
119
|
<p>desc “Run the gem unit tests (task 'rake test')” Rake::TestTask.new do |test_task|</p>
|
119
120
|
|
120
121
|
<pre class="ruby"><span class="ruby-identifier">test_task</span>.<span class="ruby-identifier">libs</span> <span class="ruby-operator"><<</span> <span class="ruby-string">'test'</span>
|
121
|
-
<span class="ruby-identifier">test_task</span>.<span class="ruby-identifier">test_files</span> = <span class="ruby-constant">FileList</span>[<span class="ruby-string">'test
|
122
|
+
<span class="ruby-identifier">test_task</span>.<span class="ruby-identifier">test_files</span> = <span class="ruby-constant">FileList</span>[<span class="ruby-string">'test/**/test_*.rb'</span>]
|
122
123
|
<span class="ruby-identifier">test_task</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword">true</span>
|
123
124
|
<span class="ruby-identifier">test_task</span>.<span class="ruby-identifier">warning</span> = <span class="ruby-keyword">true</span>
|
124
125
|
</pre>
|
@@ -131,7 +132,7 @@
|
|
131
132
|
|
132
133
|
<footer id="validator-badges" role="contentinfo">
|
133
134
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
134
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
135
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
|
135
136
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
136
137
|
</footer>
|
137
138
|
|
data/html/WWWJDic.html
CHANGED
@@ -4,15 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module WWWJDic - wwwjdic
|
7
|
+
<title>module WWWJDic - wwwjdic 14.0.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
11
11
|
var index_rel_prefix = "./";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="./js/
|
15
|
-
<script src="./js/
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
16
19
|
|
17
20
|
<link href="./css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
@@ -84,7 +87,7 @@
|
|
84
87
|
<p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
|
85
88
|
</dd><dt>Copyright
|
86
89
|
<dd>
|
87
|
-
<p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani</p>
|
90
|
+
<p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani</p>
|
88
91
|
</dd><dt>License
|
89
92
|
<dd>
|
90
93
|
<p>GNU General Public License version 3</p>
|
@@ -320,9 +323,9 @@
|
|
320
323
|
|
321
324
|
<div class="method-source-code" id="breener-source">
|
322
325
|
<pre> <span class="ruby-comment"># File lib/wwwjdic.rb</span>
|
323
|
-
<span class="line-num">
|
324
|
-
<span class="line-num">
|
325
|
-
<span class="line-num">
|
326
|
+
<span class="line-num">43</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">breener</span>
|
327
|
+
<span class="line-num">44</span> <span class="ruby-constant">WWWJDic</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">parser</span>)
|
328
|
+
<span class="line-num">45</span> <span class="ruby-keyword">end</span></pre>
|
326
329
|
</div>
|
327
330
|
|
328
331
|
</div>
|
@@ -342,7 +345,7 @@
|
|
342
345
|
|
343
346
|
<footer id="validator-badges" role="contentinfo">
|
344
347
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
345
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
348
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
|
346
349
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
347
350
|
</footer>
|
348
351
|
|
@@ -4,15 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module WWWJDic::ParsableDuckType - wwwjdic
|
7
|
+
<title>module WWWJDic::ParsableDuckType - wwwjdic 14.0.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
11
11
|
var index_rel_prefix = "../";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="../js/
|
15
|
-
<script src="../js/
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
16
19
|
|
17
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
@@ -86,7 +89,7 @@
|
|
86
89
|
<p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
|
87
90
|
</dd><dt>Copyright
|
88
91
|
<dd>
|
89
|
-
<p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani</p>
|
92
|
+
<p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani</p>
|
90
93
|
</dd><dt>License
|
91
94
|
<dd>
|
92
95
|
<p>GNU General Public License version 3</p>
|
@@ -132,7 +135,7 @@
|
|
132
135
|
<div class="method-source-code" id="test_parsable_duck_type-source">
|
133
136
|
<pre> <span class="ruby-comment"># File test/wwwjdic/test_parsable_duck_type.rb</span>
|
134
137
|
<span class="line-num">33</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_parsable_duck_type</span>
|
135
|
-
<span class="line-num">34</span> <span class="ruby-identifier">subject</span
|
138
|
+
<span class="line-num">34</span> <span class="ruby-identifier">_</span>(<span class="ruby-identifier">subject</span>).<span class="ruby-identifier">must_respond_to</span> <span class="ruby-value">:parse</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">subject</span>.<span class="ruby-identifier">nil?</span>
|
136
139
|
<span class="line-num">35</span> <span class="ruby-keyword">end</span></pre>
|
137
140
|
</div>
|
138
141
|
|
@@ -153,7 +156,7 @@
|
|
153
156
|
|
154
157
|
<footer id="validator-badges" role="contentinfo">
|
155
158
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
156
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
159
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
|
157
160
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
158
161
|
</footer>
|
159
162
|
|