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/lib/wwwjdic/locales/fr.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
#--
|
1
2
|
# wwwjdic
|
2
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
3
4
|
#
|
4
5
|
# This file is part of wwwjdic.
|
5
6
|
#
|
@@ -15,7 +16,7 @@
|
|
15
16
|
#
|
16
17
|
# You should have received a copy of the GNU General Public License
|
17
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
|
19
|
+
#++
|
19
20
|
fr:
|
20
21
|
error:
|
21
22
|
nil: paramètre nul pas autorisé.
|
data/lib/wwwjdic/locales/hu.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
#--
|
1
2
|
# wwwjdic
|
2
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
3
4
|
#
|
4
5
|
# This file is part of wwwjdic.
|
5
6
|
#
|
@@ -15,7 +16,7 @@
|
|
15
16
|
#
|
16
17
|
# You should have received a copy of the GNU General Public License
|
17
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
|
19
|
+
#++
|
19
20
|
hu:
|
20
21
|
error:
|
21
22
|
nil: nulla paraméter nem megengedett.
|
data/lib/wwwjdic/locales/it.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
#--
|
1
2
|
# wwwjdic
|
2
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
3
4
|
#
|
4
5
|
# This file is part of wwwjdic.
|
5
6
|
#
|
@@ -15,7 +16,7 @@
|
|
15
16
|
#
|
16
17
|
# You should have received a copy of the GNU General Public License
|
17
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
|
19
|
+
#++
|
19
20
|
it:
|
20
21
|
error:
|
21
22
|
nil: Parametro nil non consentito.
|
data/lib/wwwjdic/locales/ja.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
+
#--
|
1
2
|
# wwwjdic
|
2
|
-
# Copyright ©
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 新部裕, Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,7 +16,7 @@
|
|
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
|
-
|
19
|
+
#++
|
20
20
|
ja:
|
21
21
|
error:
|
22
22
|
nil: nil パラメータは許されません。
|
data/lib/wwwjdic/locales/nl.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
#--
|
1
2
|
# wwwjdic
|
2
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
3
4
|
#
|
4
5
|
# This file is part of wwwjdic.
|
5
6
|
#
|
@@ -15,6 +16,7 @@
|
|
15
16
|
#
|
16
17
|
# You should have received a copy of the GNU General Public License
|
17
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#++
|
18
20
|
|
19
21
|
nl:
|
20
22
|
error:
|
data/lib/wwwjdic/locales/ru.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
#--
|
1
2
|
# wwwjdic
|
2
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
3
4
|
#
|
4
5
|
# This file is part of wwwjdic.
|
5
6
|
#
|
@@ -15,6 +16,7 @@
|
|
15
16
|
#
|
16
17
|
# You should have received a copy of the GNU General Public License
|
17
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#++
|
18
20
|
|
19
21
|
ru:
|
20
22
|
error:
|
data/lib/wwwjdic/locales/sl.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
#--
|
1
2
|
# wwwjdic
|
2
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
3
4
|
#
|
4
5
|
# This file is part of wwwjdic.
|
5
6
|
#
|
@@ -15,6 +16,7 @@
|
|
15
16
|
#
|
16
17
|
# You should have received a copy of the GNU General Public License
|
17
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#++
|
18
20
|
|
19
21
|
sl:
|
20
22
|
error:
|
data/lib/wwwjdic/locales/sv.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
#--
|
1
2
|
# wwwjdic
|
2
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
3
4
|
#
|
4
5
|
# This file is part of wwwjdic.
|
5
6
|
#
|
@@ -15,6 +16,7 @@
|
|
15
16
|
#
|
16
17
|
# You should have received a copy of the GNU General Public License
|
17
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#++
|
18
20
|
|
19
21
|
sv:
|
20
22
|
error:
|
data/lib/wwwjdic/parser.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -26,14 +26,14 @@ module WWWJDic
|
|
26
26
|
# parameters for wwwjdic.
|
27
27
|
#
|
28
28
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
29
|
-
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
29
|
+
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
30
30
|
# License:: GNU General Public License version 3
|
31
31
|
class Parser
|
32
32
|
attr_reader :parsers
|
33
33
|
|
34
34
|
def initialize(args = {})
|
35
35
|
@parsers = Hash.new
|
36
|
-
ALL_PARAMS.each {|param| parsers[param] = args[param]} unless args.nil?
|
36
|
+
ALL_PARAMS.each { |param| parsers[param] = args[param] } unless args.nil?
|
37
37
|
end
|
38
38
|
|
39
39
|
# Provides the duck type for a generic parsing object.
|
data/lib/wwwjdic/parsers/dict.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -32,7 +32,7 @@ module WWWJDic
|
|
32
32
|
# source of one of the pages to get the full list of codes.)
|
33
33
|
#
|
34
34
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
35
|
-
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
35
|
+
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
36
36
|
# License:: GNU General Public License version 3
|
37
37
|
class Dict
|
38
38
|
include Utils::Raisers
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -31,7 +31,7 @@ module WWWJDic
|
|
31
31
|
# dictionary display)
|
32
32
|
#
|
33
33
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
34
|
-
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
34
|
+
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
35
35
|
# License:: GNU General Public License version 3
|
36
36
|
class Display
|
37
37
|
include Utils::Raisers
|
data/lib/wwwjdic/parsers/key.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -56,7 +56,7 @@ module WWWJDic
|
|
56
56
|
# displayed.
|
57
57
|
#
|
58
58
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
59
|
-
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
59
|
+
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
60
60
|
# License:: GNU General Public License version 3
|
61
61
|
class Key
|
62
62
|
include Utils::Raisers
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -47,7 +47,7 @@ module WWWJDic
|
|
47
47
|
# * for example sentence lookups using a regular expression, use T.
|
48
48
|
#
|
49
49
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
50
|
-
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
50
|
+
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
51
51
|
# License:: GNU General Public License version 3
|
52
52
|
class Search
|
53
53
|
# The parsable duck type interface to every parser usage.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -28,7 +28,7 @@ module WWWJDic
|
|
28
28
|
# with +true+ for regular.
|
29
29
|
#
|
30
30
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
31
|
-
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
31
|
+
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
32
32
|
# License:: GNU General Public License version 3
|
33
33
|
class Server
|
34
34
|
include Utils::Raisers
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -101,7 +101,7 @@ module WWWJDic
|
|
101
101
|
return false
|
102
102
|
|
103
103
|
when Net::HTTPRedirection
|
104
|
-
raise 'Too many redirections
|
104
|
+
raise 'Too many redirections, halting.' if count <= 0
|
105
105
|
url = response['location']
|
106
106
|
return http_download(url, full_path, count - 1)
|
107
107
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -18,6 +18,7 @@
|
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
#++
|
20
20
|
|
21
|
+
|
21
22
|
require 'i18n'
|
22
23
|
|
23
24
|
module WWWJDic
|
@@ -27,7 +28,7 @@ module WWWJDic
|
|
27
28
|
# methods...
|
28
29
|
#
|
29
30
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
30
|
-
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
31
|
+
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
31
32
|
# License:: GNU General Public License version 3
|
32
33
|
module Utils
|
33
34
|
|
@@ -35,7 +36,7 @@ module WWWJDic
|
|
35
36
|
# to (possibly) common conditions.
|
36
37
|
#
|
37
38
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
38
|
-
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
39
|
+
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
39
40
|
# License:: GNU General Public License version 3
|
40
41
|
module Raisers
|
41
42
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -27,7 +27,7 @@ module WWWJDic
|
|
27
27
|
# This class is a simple API to interact with WWWJDic Backboor
|
28
28
|
# Entry/API.
|
29
29
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
30
|
-
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
30
|
+
# Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
31
31
|
# License:: GNU General Public License version 3
|
32
32
|
class Splitter
|
33
33
|
# Creates a +Splitter+ object.
|
data/lib/wwwjdic/version.rb
CHANGED
@@ -1,20 +1,28 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
7
|
-
# wwwjdic is free software: you can redistribute it and/or modify it
|
8
|
-
#
|
7
|
+
# wwwjdic is free software: you can redistribute it and/or modify it
|
8
|
+
# under the terms of the GNU General Public License as published by the
|
9
|
+
# Free Software Foundation, either version 3 of the License, or (at your
|
10
|
+
# option) any later version.
|
9
11
|
#
|
10
|
-
# wwwjdic is distributed in the hope that it will be useful, but WITHOUT
|
11
|
-
#
|
12
|
+
# wwwjdic is distributed in the hope that it will be useful, but WITHOUT
|
13
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
14
|
+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
15
|
+
# for more details.
|
12
16
|
#
|
13
|
-
# You should have received a copy of the GNU General Public License
|
14
|
-
# <http://www.gnu.org/licenses/>.
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
15
19
|
#++
|
16
20
|
|
21
|
+
require 'digest/md5'
|
22
|
+
require 'i18n'
|
23
|
+
require 'uri'
|
24
|
+
|
17
25
|
module WWWJDic
|
18
26
|
# Current version number for WWWJDic gem.
|
19
|
-
VERSION = '
|
27
|
+
VERSION = '14.0.0'
|
20
28
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -18,6 +18,9 @@
|
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
#++
|
20
20
|
|
21
|
+
require 'simplecov'
|
22
|
+
SimpleCov.start
|
23
|
+
|
21
24
|
require 'i18n'
|
22
25
|
require 'json'
|
23
26
|
require 'minitest/autorun'
|
data/test/test_wwwjdic.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
3
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -22,11 +22,11 @@ require_relative 'test_helper'
|
|
22
22
|
|
23
23
|
describe WWWJDic::WWWJDic do
|
24
24
|
describe 'when created' do
|
25
|
-
subject {WWWJDic::breener}
|
25
|
+
subject { WWWJDic::breener }
|
26
26
|
|
27
27
|
it 'must create a wwwjdic object' do
|
28
|
-
subject.wont_be_nil
|
29
|
-
subject.must_be_instance_of WWWJDic::WWWJDic
|
28
|
+
_(subject).wont_be_nil
|
29
|
+
_(subject).must_be_instance_of WWWJDic::WWWJDic
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
data/test/wwwjdic/locales/de.yml
CHANGED
data/test/wwwjdic/locales/en.yml
CHANGED
data/test/wwwjdic/locales/es.yml
CHANGED
data/test/wwwjdic/locales/fr.yml
CHANGED
data/test/wwwjdic/locales/hu.yml
CHANGED
data/test/wwwjdic/locales/it.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# wwwjdic
|
2
|
-
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
|
2
|
+
# Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani
|
3
3
|
#
|
4
4
|
# This file is part of wwwjdic.
|
5
5
|
#
|
@@ -17,5 +17,5 @@
|
|
17
17
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
|
19
19
|
it:
|
20
|
-
|
21
|
-
|
20
|
+
kotoba: parola
|
21
|
+
test: dato di prova
|