wwwjdic 14.0.0 → 15.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +19 -0
  3. data/Gemfile +5 -1
  4. data/README.md +461 -192
  5. data/Rakefile +7 -2
  6. data/copyright.md +17 -29
  7. data/examples/basics.rb +51 -45
  8. data/examples/translate.rb +135 -86
  9. data/examples/uri.rb +34 -78
  10. data/html/CHANGELOG.html +48 -31
  11. data/html/COPYING_md.html +31 -35
  12. data/html/Gemfile.html +28 -32
  13. data/html/Object.html +71 -71
  14. data/html/README_md.html +326 -159
  15. data/html/Rakefile.html +29 -33
  16. data/html/WWWJDic.html +137 -98
  17. data/html/WWWJDic/ParsableDuckType.html +55 -55
  18. data/html/WWWJDic/Parser.html +88 -88
  19. data/html/WWWJDic/Parsers.html +33 -33
  20. data/html/WWWJDic/Parsers/Dict.html +71 -73
  21. data/html/WWWJDic/Parsers/Display.html +66 -66
  22. data/html/WWWJDic/Parsers/Key.html +67 -67
  23. data/html/WWWJDic/Parsers/Search.html +59 -58
  24. data/html/WWWJDic/Parsers/Server.html +66 -66
  25. data/html/WWWJDic/Splitter.html +173 -172
  26. data/html/WWWJDic/Utils.html +34 -34
  27. data/html/WWWJDic/Utils/Downloader.html +33 -33
  28. data/html/WWWJDic/Utils/Downloader/Downloader.html +91 -89
  29. data/html/WWWJDic/Utils/Raisers.html +95 -95
  30. data/html/WWWJDic/WWWJDic.html +343 -345
  31. data/html/copyright_md.html +37 -51
  32. data/html/created.rid +55 -57
  33. data/html/index.html +334 -164
  34. data/html/js/darkfish.js +84 -84
  35. data/html/js/navigation.js.gz +0 -0
  36. data/html/js/search.js +110 -110
  37. data/html/js/search_index.js +1 -1
  38. data/html/js/search_index.js.gz +0 -0
  39. data/html/js/searcher.js +229 -229
  40. data/html/js/searcher.js.gz +0 -0
  41. data/html/table_of_contents.html +44 -75
  42. data/lib/wwwjdic.rb +7 -11
  43. data/lib/wwwjdic/application.rb +13 -7
  44. data/lib/wwwjdic/constants.rb +16 -8
  45. data/lib/wwwjdic/locales/de.yml +5 -4
  46. data/lib/wwwjdic/locales/en.yml +5 -4
  47. data/lib/wwwjdic/locales/es.yml +5 -4
  48. data/lib/wwwjdic/locales/fr.yml +6 -4
  49. data/lib/wwwjdic/locales/hu.yml +6 -4
  50. data/lib/wwwjdic/locales/it.yml +6 -4
  51. data/lib/wwwjdic/locales/ja.yml +8 -4
  52. data/lib/wwwjdic/locales/nl.yml +5 -4
  53. data/lib/wwwjdic/locales/ru.yml +5 -4
  54. data/lib/wwwjdic/locales/sl.yml +5 -4
  55. data/lib/wwwjdic/locales/sv.yml +5 -4
  56. data/lib/wwwjdic/parser.rb +8 -4
  57. data/lib/wwwjdic/parsers/dict.rb +9 -7
  58. data/lib/wwwjdic/parsers/display.rb +6 -2
  59. data/lib/wwwjdic/parsers/key.rb +8 -3
  60. data/lib/wwwjdic/parsers/search.rb +8 -3
  61. data/lib/wwwjdic/parsers/server.rb +6 -2
  62. data/lib/wwwjdic/utils/downloader.rb +21 -23
  63. data/lib/wwwjdic/utils/raisers.rb +7 -3
  64. data/lib/wwwjdic/utils/splitter.rb +20 -14
  65. data/lib/wwwjdic/version.rb +2 -6
  66. data/test/test_helper.rb +5 -1
  67. data/test/test_wwwjdic.rb +6 -2
  68. data/test/wwwjdic/locales/de.yml +7 -1
  69. data/test/wwwjdic/locales/en.yml +7 -1
  70. data/test/wwwjdic/locales/es.yml +7 -1
  71. data/test/wwwjdic/locales/fr.yml +7 -1
  72. data/test/wwwjdic/locales/hu.yml +7 -1
  73. data/test/wwwjdic/locales/it.yml +10 -3
  74. data/test/wwwjdic/locales/ja.yml +9 -2
  75. data/test/wwwjdic/locales/nl.yml +7 -1
  76. data/test/wwwjdic/locales/ru.yml +7 -1
  77. data/test/wwwjdic/locales/sl.yml +7 -1
  78. data/test/wwwjdic/locales/sv.yml +7 -1
  79. data/test/wwwjdic/locales/test_locales.rb +12 -9
  80. data/test/wwwjdic/parsers/test_dict.rb +6 -2
  81. data/test/wwwjdic/parsers/test_display.rb +6 -2
  82. data/test/wwwjdic/parsers/test_key.rb +6 -2
  83. data/test/wwwjdic/parsers/test_server.rb +6 -2
  84. data/test/wwwjdic/test_application.rb +12 -8
  85. data/test/wwwjdic/test_parsable_duck_type.rb +6 -2
  86. data/test/wwwjdic/utils/test_downloader.rb +5 -1
  87. data/test/wwwjdic/utils/test_raisers.rb +10 -6
  88. data/wwwjdic.gemspec +30 -14
  89. metadata +50 -22
  90. data/acknowledgements.md +0 -55
  91. data/authors.md +0 -67
  92. data/html/acknowledgements_md.html +0 -150
  93. data/html/authors_md.html +0 -182
@@ -4,18 +4,18 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module WWWJDic::Utils - wwwjdic 14.0.0</title>
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" 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>
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" class="module">
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" class="nav-section">
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 id="search-section" role="search" class="project-section initially-hidden">
42
- <form action="#" method="get" accept-charset="utf-8">
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 id="search-field" role="combobox" aria-label="Search"
45
- aria-autocomplete="list" aria-controls="search-results"
46
- type="text" name="search" placeholder="Search" spellcheck="false"
47
- title="Type to search, Up and Down to navigate, Enter to load">
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 id="search-results" aria-label="Search Results"
51
- aria-busy="false" aria-expanded="false"
52
- aria-atomic="false" class="initially-hidden"></ul>
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 role="main" aria-labelledby="module-WWWJDic::Utils">
70
- <h1 id="module-WWWJDic::Utils" class="module">
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>Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani</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 14.0.0</title>
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" 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>
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" class="module">
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" class="nav-section">
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 id="search-section" role="search" class="project-section initially-hidden">
42
- <form action="#" method="get" accept-charset="utf-8">
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 id="search-field" role="combobox" aria-label="Search"
45
- aria-autocomplete="list" aria-controls="search-results"
46
- type="text" name="search" placeholder="Search" spellcheck="false"
47
- title="Type to search, Up and Down to navigate, Enter to load">
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 id="search-results" aria-label="Search Results"
51
- aria-busy="false" aria-expanded="false"
52
- aria-atomic="false" class="initially-hidden"></ul>
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 role="main" aria-labelledby="module-WWWJDic::Utils::Downloader">
70
- <h1 id="module-WWWJDic::Utils::Downloader" class="module">
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&#39;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 14.0.0</title>
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" 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>
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" class="class">
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" class="nav-section">
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 id="search-section" role="search" class="project-section initially-hidden">
42
- <form action="#" method="get" accept-charset="utf-8">
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 id="search-field" role="combobox" aria-label="Search"
45
- aria-autocomplete="list" aria-controls="search-results"
46
- type="text" name="search" placeholder="Search" spellcheck="false"
47
- title="Type to search, Up and Down to navigate, Enter to load">
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 id="search-results" aria-label="Search Results"
51
- aria-busy="false" aria-expanded="false"
52
- aria-atomic="false" class="initially-hidden"></ul>
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 id="parent-class-section" class="nav-section">
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 id="method-list-section" class="nav-section">
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 role="main" aria-labelledby="class-WWWJDic::Utils::Downloader::Downloader">
87
- <h1 id="class-WWWJDic::Utils::Downloader::Downloader" class="class">
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&#39;s HTTP implementation.
97
92
 
98
- Author:: Jon Maken
99
- License:: 3-clause BSD
100
- Revision:: 2012-03-25 23:01:19 -0600</pre>
93
+ <p>An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile&#39;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" class="method-detail">
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" class="method-detail">
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" class="method-detail">
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
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
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 id="method-c-download_file" class="method-detail ">
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">59</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>)
203
- <span class="line-num">60</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">RuntimeError</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">&#39;error.nil&#39;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">nil?</span>
204
- <span class="line-num">61</span> <span class="ruby-comment"># return if File.exist?(full_path)</span>
205
- <span class="line-num">62</span>
206
- <span class="line-num">63</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>)
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">&#39;error.nil&#39;</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>