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
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
require_relative '../../test_helper'
|
@@ -26,7 +30,7 @@ describe WWWJDic::WWWJDic do
|
|
26
30
|
|
27
31
|
before do
|
28
32
|
@parser = subject
|
29
|
-
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '
|
33
|
+
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '../locales/', '*.yml')]
|
30
34
|
end
|
31
35
|
|
32
36
|
subject { WWWJDic::Parsers::Dict.new }
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
require_relative '../../test_helper'
|
@@ -26,7 +30,7 @@ describe WWWJDic::WWWJDic do
|
|
26
30
|
|
27
31
|
before do
|
28
32
|
@parser = subject
|
29
|
-
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '
|
33
|
+
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '../locales/', '*.yml')]
|
30
34
|
end
|
31
35
|
|
32
36
|
subject { WWWJDic::Parsers::Display.new }
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
require_relative '../../test_helper'
|
@@ -26,7 +30,7 @@ describe WWWJDic::WWWJDic do
|
|
26
30
|
|
27
31
|
before do
|
28
32
|
@parser = subject
|
29
|
-
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '
|
33
|
+
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '../locales/', '*.yml')]
|
30
34
|
end
|
31
35
|
|
32
36
|
subject { WWWJDic::Parsers::Key.new }
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
require_relative '../../test_helper'
|
@@ -26,7 +30,7 @@ describe WWWJDic::WWWJDic do
|
|
26
30
|
|
27
31
|
before do
|
28
32
|
@parser = subject
|
29
|
-
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '
|
33
|
+
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '../locales/', '*.yml')]
|
30
34
|
end
|
31
35
|
|
32
36
|
subject { WWWJDic::Parsers::Server.new }
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
require_relative '../test_helper'
|
@@ -23,7 +27,7 @@ require_relative '../test_helper'
|
|
23
27
|
describe WWWJDic::WWWJDic do
|
24
28
|
describe 'when created' do
|
25
29
|
|
26
|
-
subject { WWWJDic::WWWJDic.new(WWWJDic
|
30
|
+
subject { WWWJDic::WWWJDic.new(WWWJDic.parser) }
|
27
31
|
|
28
32
|
# Basic checks for instance and default results
|
29
33
|
it 'shall return a valid object' do
|
@@ -115,13 +119,13 @@ describe WWWJDic::WWWJDic do
|
|
115
119
|
|
116
120
|
# Tests for translations
|
117
121
|
describe 'when asking for a translation' do
|
118
|
-
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '
|
122
|
+
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '/locales/', '*.yml')]
|
119
123
|
|
120
124
|
# Tests for translation URIs
|
121
125
|
describe 'when asking for URI' do
|
122
126
|
['', nil].each do |a_word|
|
123
127
|
describe "when providing an invalid parameter '#{a_word}'" do
|
124
|
-
[
|
128
|
+
%i[uri raw_uri json_uri].each do |a_method|
|
125
129
|
it "shall raise an error for #{a_method} request" do
|
126
130
|
assert_raises ArgumentError do
|
127
131
|
subject.send a_method
|
@@ -136,13 +140,13 @@ describe WWWJDic::WWWJDic do
|
|
136
140
|
I18n.locale = dict.to_s
|
137
141
|
a_word = I18n.t('test.kotoba')
|
138
142
|
|
139
|
-
[
|
143
|
+
%i[uri raw_uri json_uri].each do |a_method|
|
140
144
|
it "shall return URI containing '#{number}' for a '#{dict}' word for '#{a_method}' request" do
|
141
145
|
_(subject.send(a_method, a_word, dict: WWWJDic::AVAIL_LANGS[dict])).must_include number
|
142
146
|
end
|
143
147
|
|
144
148
|
it "shall return URI containing '#{a_word}' for a '#{dict}' word for '#{a_method}' request" do
|
145
|
-
_(subject.send(a_method, a_word, dict: WWWJDic::AVAIL_LANGS[dict])).must_include CGI
|
149
|
+
_(subject.send(a_method, a_word, dict: WWWJDic::AVAIL_LANGS[dict])).must_include CGI.escape(a_word).to_s
|
146
150
|
end
|
147
151
|
end
|
148
152
|
|
@@ -164,7 +168,7 @@ describe WWWJDic::WWWJDic do
|
|
164
168
|
|
165
169
|
# Tests for translation URIs
|
166
170
|
describe 'when asking to retrieve a translation' do
|
167
|
-
[
|
171
|
+
%i[translate json_translate].each do |a_method|
|
168
172
|
describe "when the translation is '#{a_method}'" do
|
169
173
|
['', nil].each do |a_word|
|
170
174
|
it "shall raise ArgumentError when an invalid word '#{a_word}' is proposed" do
|
@@ -181,7 +185,7 @@ describe WWWJDic::WWWJDic do
|
|
181
185
|
end
|
182
186
|
|
183
187
|
describe 'when considering multiple languages' do
|
184
|
-
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '
|
188
|
+
I18n.load_path = Dir[File.join(File.dirname(__FILE__), 'locales/', '*.yml')]
|
185
189
|
|
186
190
|
WWWJDic::AVAIL_LANGS.each_pair do |dict, number|
|
187
191
|
I18n.locale = dict.to_s
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
module WWWJDic
|
@@ -24,7 +28,7 @@ module WWWJDic
|
|
24
28
|
# purposes.
|
25
29
|
#
|
26
30
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
27
|
-
# Copyright:: Copyright
|
31
|
+
# Copyright:: Copyright (C) 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
28
32
|
# License:: GNU General Public License version 3
|
29
33
|
module ParsableDuckType
|
30
34
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
require_relative '../../test_helper'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
require_relative '../../test_helper'
|
@@ -25,18 +29,18 @@ describe WWWJDic::Utils::Raisers do
|
|
25
29
|
include WWWJDic::Utils::Raisers
|
26
30
|
|
27
31
|
before do
|
28
|
-
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '
|
32
|
+
I18n.load_path = Dir[File.join(File.dirname(__FILE__), '../locales/', '*.yml')]
|
29
33
|
I18n.locale = 'it'
|
30
34
|
end
|
31
35
|
|
32
36
|
describe 'when running any raiser method' do
|
33
37
|
it 'does not raise an ArgumentError when value is nil or in the array' do
|
34
|
-
all_methods =
|
38
|
+
all_methods = {}
|
35
39
|
all_methods[:raiser_downcase] = [[nil, nil], ['value', ['value']]]
|
36
40
|
all_methods[:raiser_to_i] = [[nil, nil], ['42', [42]]]
|
37
41
|
|
38
42
|
all_methods.each_key do |method_name|
|
39
|
-
a_method =
|
43
|
+
a_method = method method_name
|
40
44
|
all_methods[method_name.to_sym].each do |params|
|
41
45
|
a_method.call 'error.value', params[0], params[1]
|
42
46
|
end
|
@@ -44,12 +48,12 @@ describe WWWJDic::Utils::Raisers do
|
|
44
48
|
end
|
45
49
|
|
46
50
|
it 'raises ArgumentError when value is not nil and not in the array' do
|
47
|
-
all_methods =
|
51
|
+
all_methods = {}
|
48
52
|
all_methods[:raiser_downcase] = ['value', ['no value']]
|
49
53
|
all_methods[:raiser_to_i] = ['42', [47]]
|
50
54
|
|
51
55
|
all_methods.each_key do |method_name|
|
52
|
-
a_method =
|
56
|
+
a_method = method method_name
|
53
57
|
assert_raises ArgumentError do
|
54
58
|
a_method.call 'error.value', all_methods[method_name.to_sym][0], all_methods[method_name.to_sym][1]
|
55
59
|
end
|
data/wwwjdic.gemspec
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#--
|
1
3
|
# wwwjdic
|
2
|
-
#
|
4
|
+
# © 2014 Marco Bresciani
|
3
5
|
#
|
4
6
|
# This file is part of wwwjdic.
|
5
7
|
#
|
@@ -15,12 +17,20 @@
|
|
15
17
|
#
|
16
18
|
# You should have received a copy of the GNU General Public License
|
17
19
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
20
|
+
#
|
21
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
22
|
+
#
|
23
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
24
|
+
#++
|
18
25
|
|
19
26
|
require_relative 'lib/wwwjdic/version'
|
20
27
|
|
21
28
|
SUMMARY = 'This gem uses WWWJDic Backdoor Entry/API as described by
|
22
29
|
http://www.edrdg.org/wwwjdic/wwwjdicinf.html#backdoor_tag to to
|
23
|
-
interact with WWWJDic and translate to and from Japanese language.'
|
30
|
+
interact with WWWJDic and translate to and from Japanese language.'
|
31
|
+
|
32
|
+
COMMON_FILES = %w[CHANGELOG COPYING.md copyright.md Gemfile
|
33
|
+
wwwjdic.gemspec Rakefile README.md]
|
24
34
|
|
25
35
|
Gem::Specification.new do |a_gem|
|
26
36
|
a_gem.name = 'wwwjdic'
|
@@ -30,20 +40,25 @@ Gem::Specification.new do |a_gem|
|
|
30
40
|
a_gem.author = 'Marco Bresciani'
|
31
41
|
a_gem.authors = ['Marco Bresciani', '新部裕', 'Jon Maken']
|
32
42
|
a_gem.email = 'marcobresciani_1974@libero.it'
|
33
|
-
a_gem.homepage =
|
43
|
+
a_gem.homepage = "https://savannah.nongnu.org/projects/#{a_gem.name}/"
|
34
44
|
a_gem.summary = SUMMARY
|
35
45
|
a_gem.description = "#{SUMMARY} WWWJDic is an online Japanese
|
36
46
|
translation server made by Jim Breen and available at
|
37
|
-
http://www.edrdg.org/cgi-bin
|
38
|
-
source code available through anonymous checkout: `hg clone
|
39
|
-
http://hg.savannah.nongnu.org/hgweb
|
40
|
-
it. You can even decide to contribute to this little free
|
41
|
-
project by registering to Savannah and ask to be part of the
|
42
|
-
project!"
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
+
http://www.edrdg.org/cgi-bin/#{a_gem.name}/#{a_gem.name}?1C. GNU GPLv3
|
48
|
+
license; source code available through anonymous checkout: `hg clone
|
49
|
+
http://hg.savannah.nongnu.org/hgweb/#{a_gem.name}/` or write me and
|
50
|
+
I'll send it. You can even decide to contribute to this little free
|
51
|
+
software project by registering to Savannah and ask to be part of the
|
52
|
+
'#{a_gem.name}' project!"
|
53
|
+
a_gem.metadata = {
|
54
|
+
'homepage_uri' => "https://savannah.nongnu.org/projects/#{a_gem.name}",
|
55
|
+
'changelog_uri' => "http://hg.savannah.nongnu.org/hgweb/#{a_gem.name}/file/tip/CHANGELOG",
|
56
|
+
'source_code_uri' => "http://hg.savannah.nongnu.org/hgweb/#{a_gem.name}/file/",
|
57
|
+
'bug_tracker_uri' => "https://savannah.nongnu.org/bugs/?group=#{a_gem.name}",
|
58
|
+
'documentation_uri' => "http://hg.savannah.nongnu.org/hgweb/#{a_gem.name}/tag/#{a_gem.version}/"
|
59
|
+
# 'mailing_list_uri' => 'https://groups.example.com/bestgemever',
|
60
|
+
# 'wiki_uri' => 'https://example.com/user/bestgemever/wiki'
|
61
|
+
}
|
47
62
|
|
48
63
|
a_gem.files = Dir.glob('{examples,html,lib,test}/**/*') + COMMON_FILES
|
49
64
|
a_gem.test_files = Dir.glob('test/**/test_*.rb')
|
@@ -61,7 +76,8 @@ Gem::Specification.new do |a_gem|
|
|
61
76
|
a_gem.add_development_dependency 'minitest', '~>5.14'
|
62
77
|
a_gem.add_development_dependency 'rake', '~>13.0'
|
63
78
|
a_gem.add_development_dependency 'rdoc', '~>6.2'
|
64
|
-
a_gem.add_development_dependency '
|
79
|
+
a_gem.add_development_dependency 'rubocop', '~>1.4'
|
80
|
+
a_gem.add_development_dependency 'simplecov', '~>0.19'
|
65
81
|
|
66
82
|
a_gem.requirements = a_gem.required_ruby_version.to_s, a_gem.dependencies.to_s
|
67
83
|
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wwwjdic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 15.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Bresciani
|
8
8
|
- 新部裕
|
9
9
|
- Jon Maken
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-11-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: i18n
|
@@ -96,37 +96,49 @@ dependencies:
|
|
96
96
|
- - "~>"
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '6.2'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: rubocop
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '1.4'
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '1.4'
|
99
113
|
- !ruby/object:Gem::Dependency
|
100
114
|
name: simplecov
|
101
115
|
requirement: !ruby/object:Gem::Requirement
|
102
116
|
requirements:
|
103
117
|
- - "~>"
|
104
118
|
- !ruby/object:Gem::Version
|
105
|
-
version: '0.
|
119
|
+
version: '0.19'
|
106
120
|
type: :development
|
107
121
|
prerelease: false
|
108
122
|
version_requirements: !ruby/object:Gem::Requirement
|
109
123
|
requirements:
|
110
124
|
- - "~>"
|
111
125
|
- !ruby/object:Gem::Version
|
112
|
-
version: '0.
|
126
|
+
version: '0.19'
|
113
127
|
description: |-
|
114
128
|
This gem uses WWWJDic Backdoor Entry/API as described by
|
115
129
|
http://www.edrdg.org/wwwjdic/wwwjdicinf.html#backdoor_tag to to
|
116
130
|
interact with WWWJDic and translate to and from Japanese language. WWWJDic is an online Japanese
|
117
131
|
translation server made by Jim Breen and available at
|
118
|
-
http://www.edrdg.org/cgi-bin/wwwjdic/wwwjdic?1C. GNU GPLv3
|
119
|
-
source code available through anonymous checkout: `hg clone
|
120
|
-
http://hg.savannah.nongnu.org/hgweb/wwwjdic/` or write me and
|
121
|
-
it. You can even decide to contribute to this little free
|
122
|
-
project by registering to Savannah and ask to be part of the
|
123
|
-
project!
|
132
|
+
http://www.edrdg.org/cgi-bin/wwwjdic/wwwjdic?1C. GNU GPLv3
|
133
|
+
license; source code available through anonymous checkout: `hg clone
|
134
|
+
http://hg.savannah.nongnu.org/hgweb/wwwjdic/` or write me and
|
135
|
+
I'll send it. You can even decide to contribute to this little free
|
136
|
+
software project by registering to Savannah and ask to be part of the
|
137
|
+
'wwwjdic' project!
|
124
138
|
email: marcobresciani_1974@libero.it
|
125
139
|
executables: []
|
126
140
|
extensions: []
|
127
141
|
extra_rdoc_files:
|
128
|
-
- acknowledgements.md
|
129
|
-
- authors.md
|
130
142
|
- CHANGELOG
|
131
143
|
- COPYING.md
|
132
144
|
- copyright.md
|
@@ -140,8 +152,6 @@ files:
|
|
140
152
|
- Gemfile
|
141
153
|
- README.md
|
142
154
|
- Rakefile
|
143
|
-
- acknowledgements.md
|
144
|
-
- authors.md
|
145
155
|
- copyright.md
|
146
156
|
- examples/basics.rb
|
147
157
|
- examples/translate.rb
|
@@ -167,8 +177,6 @@ files:
|
|
167
177
|
- html/WWWJDic/Utils/Downloader/Downloader.html
|
168
178
|
- html/WWWJDic/Utils/Raisers.html
|
169
179
|
- html/WWWJDic/WWWJDic.html
|
170
|
-
- html/acknowledgements_md.html
|
171
|
-
- html/authors_md.html
|
172
180
|
- html/copyright_md.html
|
173
181
|
- html/created.rid
|
174
182
|
- html/css/fonts.css
|
@@ -265,8 +273,27 @@ homepage: https://savannah.nongnu.org/projects/wwwjdic/
|
|
265
273
|
licenses:
|
266
274
|
- GPL-3.0
|
267
275
|
- BSD-3-Clause
|
268
|
-
metadata:
|
269
|
-
|
276
|
+
metadata:
|
277
|
+
homepage_uri: https://savannah.nongnu.org/projects/wwwjdic
|
278
|
+
changelog_uri: http://hg.savannah.nongnu.org/hgweb/wwwjdic/file/tip/CHANGELOG
|
279
|
+
source_code_uri: http://hg.savannah.nongnu.org/hgweb/wwwjdic/file/
|
280
|
+
bug_tracker_uri: https://savannah.nongnu.org/bugs/?group=wwwjdic
|
281
|
+
documentation_uri: http://hg.savannah.nongnu.org/hgweb/wwwjdic/tag/15.0.0/
|
282
|
+
post_install_message: "[\e[32mVersion 15.0.0\e[0m] MAJOR changed key search type default
|
283
|
+
from \"exact\" to \"english\".\n[\e[32mVersion 15.0.0\e[0m] MAJOR changed Monash
|
284
|
+
dictionary server reference URL.\n[\e[32mVersion 15.0.0\e[0m] MINOR introduce compliance
|
285
|
+
to REUSE tool from FSF Europe\n[\e[32mVersion 15.0.0\e[0m] MINOR add dependency
|
286
|
+
to Rubocop\n[\e[32mVersion 15.0.0\e[0m] PATCH update copyright notices\n[\e[32mVersion
|
287
|
+
15.0.0\e[0m] PATCH remove test data form I18N files.\n[\e[32mVersion 15.0.0\e[0m]
|
288
|
+
PATCH update gem dependencies.\n[\e[32mVersion 15.0.0\e[0m] PATCH update IntelliJ
|
289
|
+
IDEA (RubyGem) project configuration.\n[\e[32mVersion 15.0.0\e[0m] PATCH update
|
290
|
+
to Ruby 2.7.x new things\n[\e[32mVersion 15.0.0\e[0m] IN PROGRESS: restoring key
|
291
|
+
configuration as allowed parameter, to allow user asking for specific searches.
|
292
|
+
Search key currently fixed to 'E' (exact match) type search.\n[\e[32mVersion 15.0.0\e[0m]
|
293
|
+
IN PROGRESS: improving application RDoc to better comply with SemVer point 1 (Software
|
294
|
+
using Semantic Versioning MUST declare a public API. This API could be declared
|
295
|
+
in the code itself or exist strictly in documentation. However it is done, it should
|
296
|
+
be precise and comprehensive.)\n"
|
270
297
|
rdoc_options: []
|
271
298
|
require_paths:
|
272
299
|
- lib
|
@@ -287,9 +314,10 @@ requirements:
|
|
287
314
|
name="bundler" requirements="~> 2.1">, <Gem::Dependency type=:development name="minitest"
|
288
315
|
requirements="~> 5.14">, <Gem::Dependency type=:development name="rake" requirements="~>
|
289
316
|
13.0">, <Gem::Dependency type=:development name="rdoc" requirements="~> 6.2">, <Gem::Dependency
|
290
|
-
type=:development name="
|
291
|
-
|
292
|
-
|
317
|
+
type=:development name="rubocop" requirements="~> 1.4">, <Gem::Dependency type=:development
|
318
|
+
name="simplecov" requirements="~> 0.19">]'
|
319
|
+
rubygems_version: 3.1.4
|
320
|
+
signing_key:
|
293
321
|
specification_version: 4
|
294
322
|
summary: This gem uses WWWJDic Backdoor Entry/API as described by http://www.edrdg.org/wwwjdic/wwwjdicinf.html#backdoor_tag
|
295
323
|
to to interact with WWWJDic and translate to and from Japanese language.
|