wwwjdic 14.0.0 → 15.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +19 -0
- data/Gemfile +5 -1
- data/README.md +461 -192
- data/Rakefile +7 -2
- data/copyright.md +17 -29
- data/examples/basics.rb +51 -45
- data/examples/translate.rb +135 -86
- data/examples/uri.rb +34 -78
- data/html/CHANGELOG.html +48 -31
- data/html/COPYING_md.html +31 -35
- data/html/Gemfile.html +28 -32
- data/html/Object.html +71 -71
- data/html/README_md.html +326 -159
- data/html/Rakefile.html +29 -33
- data/html/WWWJDic.html +137 -98
- data/html/WWWJDic/ParsableDuckType.html +55 -55
- data/html/WWWJDic/Parser.html +88 -88
- data/html/WWWJDic/Parsers.html +33 -33
- data/html/WWWJDic/Parsers/Dict.html +71 -73
- data/html/WWWJDic/Parsers/Display.html +66 -66
- data/html/WWWJDic/Parsers/Key.html +67 -67
- data/html/WWWJDic/Parsers/Search.html +59 -58
- data/html/WWWJDic/Parsers/Server.html +66 -66
- data/html/WWWJDic/Splitter.html +173 -172
- data/html/WWWJDic/Utils.html +34 -34
- data/html/WWWJDic/Utils/Downloader.html +33 -33
- data/html/WWWJDic/Utils/Downloader/Downloader.html +91 -89
- data/html/WWWJDic/Utils/Raisers.html +95 -95
- data/html/WWWJDic/WWWJDic.html +343 -345
- data/html/copyright_md.html +37 -51
- data/html/created.rid +55 -57
- data/html/index.html +334 -164
- data/html/js/darkfish.js +84 -84
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +110 -110
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +229 -229
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +44 -75
- data/lib/wwwjdic.rb +7 -11
- data/lib/wwwjdic/application.rb +13 -7
- data/lib/wwwjdic/constants.rb +16 -8
- data/lib/wwwjdic/locales/de.yml +5 -4
- data/lib/wwwjdic/locales/en.yml +5 -4
- data/lib/wwwjdic/locales/es.yml +5 -4
- data/lib/wwwjdic/locales/fr.yml +6 -4
- data/lib/wwwjdic/locales/hu.yml +6 -4
- data/lib/wwwjdic/locales/it.yml +6 -4
- data/lib/wwwjdic/locales/ja.yml +8 -4
- data/lib/wwwjdic/locales/nl.yml +5 -4
- data/lib/wwwjdic/locales/ru.yml +5 -4
- data/lib/wwwjdic/locales/sl.yml +5 -4
- data/lib/wwwjdic/locales/sv.yml +5 -4
- data/lib/wwwjdic/parser.rb +8 -4
- data/lib/wwwjdic/parsers/dict.rb +9 -7
- data/lib/wwwjdic/parsers/display.rb +6 -2
- data/lib/wwwjdic/parsers/key.rb +8 -3
- data/lib/wwwjdic/parsers/search.rb +8 -3
- data/lib/wwwjdic/parsers/server.rb +6 -2
- data/lib/wwwjdic/utils/downloader.rb +21 -23
- data/lib/wwwjdic/utils/raisers.rb +7 -3
- data/lib/wwwjdic/utils/splitter.rb +20 -14
- data/lib/wwwjdic/version.rb +2 -6
- data/test/test_helper.rb +5 -1
- data/test/test_wwwjdic.rb +6 -2
- data/test/wwwjdic/locales/de.yml +7 -1
- data/test/wwwjdic/locales/en.yml +7 -1
- data/test/wwwjdic/locales/es.yml +7 -1
- data/test/wwwjdic/locales/fr.yml +7 -1
- data/test/wwwjdic/locales/hu.yml +7 -1
- data/test/wwwjdic/locales/it.yml +10 -3
- data/test/wwwjdic/locales/ja.yml +9 -2
- data/test/wwwjdic/locales/nl.yml +7 -1
- data/test/wwwjdic/locales/ru.yml +7 -1
- data/test/wwwjdic/locales/sl.yml +7 -1
- data/test/wwwjdic/locales/sv.yml +7 -1
- data/test/wwwjdic/locales/test_locales.rb +12 -9
- data/test/wwwjdic/parsers/test_dict.rb +6 -2
- data/test/wwwjdic/parsers/test_display.rb +6 -2
- data/test/wwwjdic/parsers/test_key.rb +6 -2
- data/test/wwwjdic/parsers/test_server.rb +6 -2
- data/test/wwwjdic/test_application.rb +12 -8
- data/test/wwwjdic/test_parsable_duck_type.rb +6 -2
- data/test/wwwjdic/utils/test_downloader.rb +5 -1
- data/test/wwwjdic/utils/test_raisers.rb +10 -6
- data/wwwjdic.gemspec +30 -14
- metadata +50 -22
- data/acknowledgements.md +0 -55
- data/authors.md +0 -67
- data/html/acknowledgements_md.html +0 -150
- data/html/authors_md.html +0 -182
data/html/WWWJDic/Utils.html
CHANGED
@@ -4,18 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module WWWJDic::Utils - wwwjdic
|
7
|
+
<title>module WWWJDic::Utils - wwwjdic 15.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/navigation.js"
|
15
|
-
<script src="../js/search.js"
|
16
|
-
<script src="../js/search_index.js"
|
17
|
-
<script src="../js/searcher.js"
|
18
|
-
<script src="../js/darkfish.js"
|
14
|
+
<script defer src="../js/navigation.js"></script>
|
15
|
+
<script defer src="../js/search.js"></script>
|
16
|
+
<script defer src="../js/search_index.js"></script>
|
17
|
+
<script defer src="../js/searcher.js"></script>
|
18
|
+
<script defer src="../js/darkfish.js"></script>
|
19
19
|
|
20
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
21
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
@@ -23,10 +23,10 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
<body id="top" role="document"
|
26
|
+
<body class="module" id="top" role="document">
|
27
27
|
<nav role="navigation">
|
28
28
|
<div id="project-navigation">
|
29
|
-
<div id="home-section" role="region" title="Quick navigation"
|
29
|
+
<div class="nav-section" id="home-section" role="region" title="Quick navigation">
|
30
30
|
<h2>
|
31
31
|
<a href="../index.html" rel="home">Home</a>
|
32
32
|
</h2>
|
@@ -38,48 +38,48 @@
|
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
|
41
|
-
<div
|
42
|
-
<form action="#" method="get"
|
41
|
+
<div class="project-section initially-hidden" id="search-section" role="search">
|
42
|
+
<form accept-charset="utf-8" action="#" method="get">
|
43
43
|
<div id="search-field-wrapper">
|
44
|
-
<input
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
<input aria-autocomplete="list" aria-controls="search-results" aria-label="Search"
|
45
|
+
id="search-field" name="search"
|
46
|
+
placeholder="Search" role="combobox" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"
|
47
|
+
type="text">
|
48
48
|
</div>
|
49
49
|
|
50
|
-
<ul
|
51
|
-
aria-
|
52
|
-
|
50
|
+
<ul aria-atomic="false" aria-busy="false"
|
51
|
+
aria-expanded="false" aria-label="Search Results"
|
52
|
+
class="initially-hidden" id="search-results"></ul>
|
53
53
|
</form>
|
54
54
|
</div>
|
55
55
|
|
56
56
|
</div>
|
57
57
|
|
58
|
-
|
58
|
+
|
59
59
|
|
60
60
|
<div id="class-metadata">
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
66
|
</div>
|
67
67
|
</nav>
|
68
68
|
|
69
|
-
<main
|
70
|
-
<h1 id="module-WWWJDic::Utils"
|
69
|
+
<main aria-labelledby="module-WWWJDic::Utils" role="main">
|
70
|
+
<h1 class="module" id="module-WWWJDic::Utils">
|
71
71
|
module WWWJDic::Utils
|
72
72
|
</h1>
|
73
73
|
|
74
74
|
<section class="description">
|
75
|
-
|
75
|
+
|
76
76
|
<p>This module is a simple collection of useful things and methods that I prefer to keep as DRYer as possible. Just include it and use the methods…</p>
|
77
77
|
<dl class="rdoc-list note-list"><dt>Author
|
78
78
|
<dd>
|
79
79
|
<p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
|
80
80
|
</dd><dt>Copyright
|
81
81
|
<dd>
|
82
|
-
<p>
|
82
|
+
<p>(C) 2014 Marco Bresciani</p>
|
83
83
|
</dd><dt>License
|
84
84
|
<dd>
|
85
85
|
<p>GNU General Public License version 3</p>
|
@@ -87,17 +87,17 @@
|
|
87
87
|
|
88
88
|
</section>
|
89
89
|
|
90
|
-
|
91
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
92
|
-
|
93
90
|
|
94
|
-
|
91
|
+
<section class="documentation-section" id="5Buntitled-5D">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
95
98
|
|
96
|
-
|
97
99
|
|
98
|
-
|
99
100
|
|
100
|
-
|
101
101
|
</section>
|
102
102
|
|
103
103
|
</main>
|
@@ -4,18 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module WWWJDic::Utils::Downloader - wwwjdic
|
7
|
+
<title>module WWWJDic::Utils::Downloader - wwwjdic 15.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/navigation.js"
|
15
|
-
<script src="../../js/search.js"
|
16
|
-
<script src="../../js/search_index.js"
|
17
|
-
<script src="../../js/searcher.js"
|
18
|
-
<script src="../../js/darkfish.js"
|
14
|
+
<script defer src="../../js/navigation.js"></script>
|
15
|
+
<script defer src="../../js/search.js"></script>
|
16
|
+
<script defer src="../../js/search_index.js"></script>
|
17
|
+
<script defer src="../../js/searcher.js"></script>
|
18
|
+
<script defer src="../../js/darkfish.js"></script>
|
19
19
|
|
20
20
|
<link href="../../css/fonts.css" rel="stylesheet">
|
21
21
|
<link href="../../css/rdoc.css" rel="stylesheet">
|
@@ -23,10 +23,10 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
<body id="top" role="document"
|
26
|
+
<body class="module" id="top" role="document">
|
27
27
|
<nav role="navigation">
|
28
28
|
<div id="project-navigation">
|
29
|
-
<div id="home-section" role="region" title="Quick navigation"
|
29
|
+
<div class="nav-section" id="home-section" role="region" title="Quick navigation">
|
30
30
|
<h2>
|
31
31
|
<a href="../../index.html" rel="home">Home</a>
|
32
32
|
</h2>
|
@@ -38,41 +38,41 @@
|
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
|
41
|
-
<div
|
42
|
-
<form action="#" method="get"
|
41
|
+
<div class="project-section initially-hidden" id="search-section" role="search">
|
42
|
+
<form accept-charset="utf-8" action="#" method="get">
|
43
43
|
<div id="search-field-wrapper">
|
44
|
-
<input
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
<input aria-autocomplete="list" aria-controls="search-results" aria-label="Search"
|
45
|
+
id="search-field" name="search"
|
46
|
+
placeholder="Search" role="combobox" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"
|
47
|
+
type="text">
|
48
48
|
</div>
|
49
49
|
|
50
|
-
<ul
|
51
|
-
aria-
|
52
|
-
|
50
|
+
<ul aria-atomic="false" aria-busy="false"
|
51
|
+
aria-expanded="false" aria-label="Search Results"
|
52
|
+
class="initially-hidden" id="search-results"></ul>
|
53
53
|
</form>
|
54
54
|
</div>
|
55
55
|
|
56
56
|
</div>
|
57
57
|
|
58
|
-
|
58
|
+
|
59
59
|
|
60
60
|
<div id="class-metadata">
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
66
|
</div>
|
67
67
|
</nav>
|
68
68
|
|
69
|
-
<main
|
70
|
-
<h1 id="module-WWWJDic::Utils::Downloader"
|
69
|
+
<main aria-labelledby="module-WWWJDic::Utils::Downloader" role="main">
|
70
|
+
<h1 class="module" id="module-WWWJDic::Utils::Downloader">
|
71
71
|
module WWWJDic::Utils::Downloader
|
72
72
|
</h1>
|
73
73
|
|
74
74
|
<section class="description">
|
75
|
-
|
75
|
+
|
76
76
|
<p>This module is a simple wrapper container for Peter R. Marreck's gist.</p>
|
77
77
|
<dl class="rdoc-list note-list"><dt>Author
|
78
78
|
<dd>
|
@@ -87,17 +87,17 @@
|
|
87
87
|
|
88
88
|
</section>
|
89
89
|
|
90
|
-
|
91
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
92
|
-
|
93
90
|
|
94
|
-
|
91
|
+
<section class="documentation-section" id="5Buntitled-5D">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
95
98
|
|
96
|
-
|
97
99
|
|
98
|
-
|
99
100
|
|
100
|
-
|
101
101
|
</section>
|
102
102
|
|
103
103
|
</main>
|
@@ -4,18 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class WWWJDic::Utils::Downloader::Downloader - wwwjdic
|
7
|
+
<title>class WWWJDic::Utils::Downloader::Downloader - wwwjdic 15.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/navigation.js"
|
15
|
-
<script src="../../../js/search.js"
|
16
|
-
<script src="../../../js/search_index.js"
|
17
|
-
<script src="../../../js/searcher.js"
|
18
|
-
<script src="../../../js/darkfish.js"
|
14
|
+
<script defer src="../../../js/navigation.js"></script>
|
15
|
+
<script defer src="../../../js/search.js"></script>
|
16
|
+
<script defer src="../../../js/search_index.js"></script>
|
17
|
+
<script defer src="../../../js/searcher.js"></script>
|
18
|
+
<script defer src="../../../js/darkfish.js"></script>
|
19
19
|
|
20
20
|
<link href="../../../css/fonts.css" rel="stylesheet">
|
21
21
|
<link href="../../../css/rdoc.css" rel="stylesheet">
|
@@ -23,10 +23,10 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
<body id="top" role="document"
|
26
|
+
<body class="class" id="top" role="document">
|
27
27
|
<nav role="navigation">
|
28
28
|
<div id="project-navigation">
|
29
|
-
<div id="home-section" role="region" title="Quick navigation"
|
29
|
+
<div class="nav-section" id="home-section" role="region" title="Quick navigation">
|
30
30
|
<h2>
|
31
31
|
<a href="../../../index.html" rel="home">Home</a>
|
32
32
|
</h2>
|
@@ -38,185 +38,187 @@
|
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
|
41
|
-
<div
|
42
|
-
<form action="#" method="get"
|
41
|
+
<div class="project-section initially-hidden" id="search-section" role="search">
|
42
|
+
<form accept-charset="utf-8" action="#" method="get">
|
43
43
|
<div id="search-field-wrapper">
|
44
|
-
<input
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
<input aria-autocomplete="list" aria-controls="search-results" aria-label="Search"
|
45
|
+
id="search-field" name="search"
|
46
|
+
placeholder="Search" role="combobox" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"
|
47
|
+
type="text">
|
48
48
|
</div>
|
49
49
|
|
50
|
-
<ul
|
51
|
-
aria-
|
52
|
-
|
50
|
+
<ul aria-atomic="false" aria-busy="false"
|
51
|
+
aria-expanded="false" aria-label="Search Results"
|
52
|
+
class="initially-hidden" id="search-results"></ul>
|
53
53
|
</form>
|
54
54
|
</div>
|
55
55
|
|
56
56
|
</div>
|
57
57
|
|
58
|
-
|
58
|
+
|
59
59
|
|
60
60
|
<div id="class-metadata">
|
61
|
-
|
62
|
-
<div
|
61
|
+
|
62
|
+
<div class="nav-section" id="parent-class-section">
|
63
63
|
<h3>Parent</h3>
|
64
64
|
|
65
|
-
|
65
|
+
|
66
66
|
<p class="link"><a href="../../../Object.html">Object</a>
|
67
|
-
|
67
|
+
|
68
68
|
</div>
|
69
69
|
|
70
|
-
|
71
|
-
|
70
|
+
|
71
|
+
|
72
72
|
<!-- Method Quickref -->
|
73
|
-
<div
|
73
|
+
<div class="nav-section" id="method-list-section">
|
74
74
|
<h3>Methods</h3>
|
75
75
|
|
76
76
|
<ul class="link-list" role="directory">
|
77
|
-
|
77
|
+
|
78
78
|
<li ><a href="#method-c-download_file">::download_file</a>
|
79
|
-
|
79
|
+
|
80
80
|
</ul>
|
81
81
|
</div>
|
82
82
|
|
83
83
|
</div>
|
84
84
|
</nav>
|
85
85
|
|
86
|
-
<main
|
87
|
-
<h1 id="class-WWWJDic::Utils::Downloader::Downloader"
|
86
|
+
<main aria-labelledby="class-WWWJDic::Utils::Downloader::Downloader" role="main">
|
87
|
+
<h1 class="class" id="class-WWWJDic::Utils::Downloader::Downloader">
|
88
88
|
class WWWJDic::Utils::Downloader::Downloader
|
89
89
|
</h1>
|
90
90
|
|
91
91
|
<section class="description">
|
92
|
-
|
93
|
-
<p>!/usr/bin/env ruby</p>
|
94
|
-
|
95
|
-
<pre>An HTTP/HTTPS/FTP file downloader library/CLI based upon
|
96
|
-
MiniPortile's HTTP implementation.
|
97
92
|
|
98
|
-
|
99
|
-
|
100
|
-
|
93
|
+
<p>An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile's HTTP implementation.</p>
|
94
|
+
<dl class="rdoc-list note-list"><dt>Author
|
95
|
+
<dd>
|
96
|
+
<p>Jon Maken</p>
|
97
|
+
</dd><dt>License
|
98
|
+
<dd>
|
99
|
+
<p>3-clause BSD</p>
|
100
|
+
</dd><dt>Revision
|
101
|
+
<dd>
|
102
|
+
<p>2012-03-25 23:01:19 -0600</p>
|
103
|
+
</dd></dl>
|
101
104
|
|
102
105
|
</section>
|
103
106
|
|
104
|
-
|
105
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
106
|
-
|
107
107
|
|
108
|
-
|
108
|
+
<section class="documentation-section" id="5Buntitled-5D">
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
109
113
|
|
110
|
-
|
111
114
|
<section class="constants-list">
|
112
115
|
<header>
|
113
116
|
<h3>Constants</h3>
|
114
117
|
</header>
|
115
118
|
<dl>
|
116
|
-
|
119
|
+
|
117
120
|
<dt id="VERSION">VERSION
|
118
|
-
|
121
|
+
|
119
122
|
<dd>
|
120
|
-
|
121
|
-
|
123
|
+
|
124
|
+
|
122
125
|
</dl>
|
123
126
|
</section>
|
124
|
-
|
125
127
|
|
126
|
-
|
128
|
+
|
129
|
+
|
127
130
|
<section class="attribute-method-details" class="method-section">
|
128
131
|
<header>
|
129
132
|
<h3>Attributes</h3>
|
130
133
|
</header>
|
131
134
|
|
132
|
-
|
133
|
-
<div id="attribute-c-ftp_data_chunk_size"
|
135
|
+
|
136
|
+
<div class="method-detail" id="attribute-c-ftp_data_chunk_size">
|
134
137
|
<div class="method-heading attribute-method-heading">
|
135
138
|
<span class="method-name">ftp_data_chunk_size</span><span
|
136
139
|
class="attribute-access-type">[RW]</span>
|
137
140
|
</div>
|
138
141
|
|
139
142
|
<div class="method-description">
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
+
|
144
|
+
|
145
|
+
|
143
146
|
</div>
|
144
147
|
</div>
|
145
|
-
|
146
|
-
<div id="attribute-c-logger"
|
148
|
+
|
149
|
+
<div class="method-detail" id="attribute-c-logger">
|
147
150
|
<div class="method-heading attribute-method-heading">
|
148
151
|
<span class="method-name">logger</span><span
|
149
152
|
class="attribute-access-type">[RW]</span>
|
150
153
|
</div>
|
151
154
|
|
152
155
|
<div class="method-description">
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
+
|
157
|
+
|
158
|
+
|
156
159
|
</div>
|
157
160
|
</div>
|
158
|
-
|
159
|
-
<div id="attribute-c-max_ca_verify_depth"
|
161
|
+
|
162
|
+
<div class="method-detail" id="attribute-c-max_ca_verify_depth">
|
160
163
|
<div class="method-heading attribute-method-heading">
|
161
164
|
<span class="method-name">max_ca_verify_depth</span><span
|
162
165
|
class="attribute-access-type">[RW]</span>
|
163
166
|
</div>
|
164
167
|
|
165
168
|
<div class="method-description">
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
+
|
170
|
+
|
171
|
+
|
169
172
|
</div>
|
170
173
|
</div>
|
171
|
-
|
174
|
+
|
172
175
|
</section>
|
173
|
-
|
174
176
|
|
175
|
-
|
176
|
-
|
177
|
+
|
178
|
+
|
179
|
+
<section class="method-section" id="public-class-5Buntitled-5D-method-details">
|
177
180
|
<header>
|
178
181
|
<h3>Public Class Methods</h3>
|
179
182
|
</header>
|
180
183
|
|
181
|
-
|
182
|
-
<div
|
183
|
-
|
184
|
+
|
185
|
+
<div class="method-detail " id="method-c-download_file">
|
186
|
+
|
184
187
|
<div class="method-heading">
|
185
188
|
<span class="method-name">download_file</span><span
|
186
189
|
class="method-args">(url, full_path, count = 3)</span>
|
187
|
-
|
190
|
+
|
188
191
|
<span class="method-click-advice">click to toggle source</span>
|
189
|
-
|
192
|
+
|
190
193
|
</div>
|
191
|
-
|
194
|
+
|
192
195
|
|
193
196
|
<div class="method-description">
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
197
|
|
199
|
-
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
200
203
|
<div class="method-source-code" id="download_file-source">
|
201
204
|
<pre> <span class="ruby-comment"># File lib/wwwjdic/utils/downloader.rb</span>
|
202
|
-
<span class="line-num">
|
203
|
-
<span class="line-num">
|
204
|
-
<span class="line-num">
|
205
|
-
<span class="line-num">
|
206
|
-
<span class="line-num">
|
207
|
-
<span class="line-num">64</span> <span class="ruby-keyword">end</span></pre>
|
205
|
+
<span class="line-num">61</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">download_file</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">full_path</span>, <span class="ruby-identifier">count</span> = <span class="ruby-value">3</span>)
|
206
|
+
<span class="line-num">62</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'error.nil'</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">nil?</span>
|
207
|
+
<span class="line-num">63</span>
|
208
|
+
<span class="line-num">64</span> <span class="ruby-identifier">http_download</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">full_path</span>, <span class="ruby-identifier">count</span>)
|
209
|
+
<span class="line-num">65</span> <span class="ruby-keyword">end</span></pre>
|
208
210
|
</div>
|
209
|
-
|
211
|
+
|
210
212
|
</div>
|
211
213
|
|
212
|
-
|
213
214
|
|
214
|
-
|
215
|
+
|
216
|
+
|
215
217
|
</div>
|
216
218
|
|
217
|
-
|
219
|
+
|
218
220
|
</section>
|
219
|
-
|
221
|
+
|
220
222
|
</section>
|
221
223
|
|
222
224
|
</main>
|