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
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # wwwjdic
3
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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__), '/../../../lib/wwwjdic/locales/', '*.yml')]
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
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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__), '/../../../lib/wwwjdic/locales/', '*.yml')]
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
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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__), '/../../../lib/wwwjdic/locales/', '*.yml')]
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
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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__), '/../../../lib/wwwjdic/locales/', '*.yml')]
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
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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::parser) }
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__), '/../../lib/wwwjdic/locales/', '*.yml')]
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
- [:uri, :raw_uri, :json_uri].each do |a_method|
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
- [:uri, :raw_uri, :json_uri].each do |a_method|
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::escape(a_word).to_s
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
- [:translate, :json_translate].each do |a_method|
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__), '/../../lib/wwwjdic/locales/', '*.yml')]
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
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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 © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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__), '/../../../lib/wwwjdic/locales/', '*.yml')]
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 = Hash.new
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 = self.method method_name
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 = Hash.new
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 = self.method method_name
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
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+ #--
1
3
  # wwwjdic
2
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
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.'.freeze
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 = 'https://savannah.nongnu.org/projects/wwwjdic/'
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/wwwjdic/wwwjdic?1C. GNU GPLv3 license;
38
- source code available through anonymous checkout: `hg clone
39
- http://hg.savannah.nongnu.org/hgweb/wwwjdic/` or write me and I'll send
40
- it. You can even decide to contribute to this little free software
41
- project by registering to Savannah and ask to be part of the 'wwwjdic'
42
- project!"
43
-
44
- COMMON_FILES = %w[acknowledgements.md authors.md CHANGELOG COPYING.md
45
- copyright.md Gemfile wwwjdic.gemspec Rakefile
46
- README.md]
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 'simplecov', '~>0.18'
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: 14.0.0
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-03-16 00:00:00.000000000 Z
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.18'
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.18'
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 license;
119
- source code available through anonymous checkout: `hg clone
120
- http://hg.savannah.nongnu.org/hgweb/wwwjdic/` or write me and I'll send
121
- it. You can even decide to contribute to this little free software
122
- project by registering to Savannah and ask to be part of the 'wwwjdic'
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
- post_install_message: Thank you for using wwwjdic version 14.0.0.
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="simplecov" requirements="~> 0.18">]'
291
- rubygems_version: 3.1.2
292
- signing_key:
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.