unclekryon 0.4.9.pre.alpha → 0.4.12.pre.alpha
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/Gemfile +10 -26
- data/Gemfile.lock +20 -24
- data/README.md +3 -2
- data/Rakefile +11 -30
- data/bin/unclekryon +4 -15
- data/hax/kryon.yaml +28 -0
- data/hax/kryon_aums_2002-2005.yaml +460 -0
- data/hax/kryon_aums_2006.yaml +601 -0
- data/hax/kryon_aums_2007.yaml +1024 -0
- data/hax/kryon_aums_2008.yaml +950 -0
- data/hax/kryon_aums_2009.yaml +496 -0
- data/hax/kryon_aums_2010.yaml +1443 -0
- data/hax/kryon_aums_2011.yaml +1458 -0
- data/hax/kryon_aums_2012.yaml +2123 -0
- data/hax/kryon_aums_2013.yaml +1647 -0
- data/hax/kryon_aums_2014.yaml +2478 -0
- data/hax/kryon_aums_2015.yaml +3386 -0
- data/hax/kryon_aums_2016.yaml +3476 -0
- data/hax/kryon_aums_2017.yaml +3712 -0
- data/hax/kryon_aums_2018.yaml +3654 -0
- data/lib/unclekryon/data/album_data.rb +74 -82
- data/lib/unclekryon/data/artist_data.rb +24 -36
- data/lib/unclekryon/data/artist_data_data.rb +29 -41
- data/lib/unclekryon/data/aum_data.rb +20 -32
- data/lib/unclekryon/data/base_data.rb +27 -39
- data/lib/unclekryon/data/pic_data.rb +25 -37
- data/lib/unclekryon/data/release_data.rb +14 -26
- data/lib/unclekryon/data/social_data.rb +6 -18
- data/lib/unclekryon/data/timespan_data.rb +16 -28
- data/lib/unclekryon/dev_opts.rb +7 -19
- data/lib/unclekryon/hacker.rb +121 -135
- data/lib/unclekryon/iso/base_iso.rb +69 -81
- data/lib/unclekryon/iso/can_prov_terr.rb +34 -47
- data/lib/unclekryon/iso/country.rb +34 -51
- data/lib/unclekryon/iso/language.rb +84 -98
- data/lib/unclekryon/iso/region.rb +8 -29
- data/lib/unclekryon/iso/subregion.rb +8 -29
- data/lib/unclekryon/iso/usa_state.rb +28 -41
- data/lib/unclekryon/iso.rb +128 -138
- data/lib/unclekryon/jsoner.rb +31 -50
- data/lib/unclekryon/log.rb +34 -46
- data/lib/unclekryon/parsers/kryon_aum_year_album_parser.rb +163 -167
- data/lib/unclekryon/parsers/kryon_aum_year_parser.rb +122 -127
- data/lib/unclekryon/server.rb +8 -17
- data/lib/unclekryon/trainer.rb +68 -85
- data/lib/unclekryon/uploader.rb +8 -17
- data/lib/unclekryon/util.rb +80 -92
- data/lib/unclekryon/version.rb +4 -16
- data/lib/unclekryon.rb +166 -166
- data/train/kryon.yaml +6077 -0
- data/unclekryon.gemspec +49 -49
- metadata +50 -22
data/unclekryon.gemspec
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
# encoding: UTF-8
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
#--
|
|
5
|
-
# This file is part of UncleKryon-server.
|
|
6
|
-
# Copyright (c) 2017-2019 Jonathan Bradley Whited (@esotericpig)
|
|
7
|
-
#
|
|
8
|
-
# UncleKryon-server is free software: you can redistribute it and/or modify
|
|
9
|
-
# it under the terms of the GNU General Public License as published by
|
|
10
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
11
|
-
# (at your option) any later version.
|
|
12
|
-
#
|
|
13
|
-
# UncleKryon-server is distributed in the hope that it will be useful,
|
|
14
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
# GNU General Public License for more details.
|
|
17
|
-
#
|
|
18
|
-
# You should have received a copy of the GNU General Public License
|
|
19
|
-
# along with UncleKryon-server. If not, see <https://www.gnu.org/licenses/>.
|
|
20
|
-
#++
|
|
21
4
|
|
|
5
|
+
require_relative 'lib/unclekryon/version'
|
|
22
6
|
|
|
23
|
-
|
|
24
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
25
|
-
|
|
26
|
-
require 'unclekryon/version'
|
|
27
|
-
|
|
28
|
-
Gem::Specification.new() do |spec|
|
|
7
|
+
Gem::Specification.new do |spec|
|
|
29
8
|
spec.name = 'unclekryon'
|
|
30
9
|
spec.version = UncleKryon::VERSION
|
|
31
|
-
spec.authors = ['Jonathan Bradley Whited
|
|
32
|
-
spec.email = ['
|
|
10
|
+
spec.authors = ['Jonathan Bradley Whited']
|
|
11
|
+
spec.email = ['code@esotericpig.com']
|
|
33
12
|
spec.licenses = ['GPL-3.0-or-later']
|
|
34
13
|
spec.homepage = 'https://github.com/esotericpig/UncleKryon-server'
|
|
35
14
|
spec.summary = 'Uncle Kryon server (& hacker).'
|
|
36
15
|
spec.description = 'Uncle Kryon server (& hacker) for the Uncle Kryon mobile apps.'
|
|
37
|
-
|
|
16
|
+
|
|
38
17
|
spec.metadata = {
|
|
39
|
-
'bug_tracker_uri' => 'https://github.com/esotericpig/UncleKryon-server/issues',
|
|
40
18
|
'homepage_uri' => 'https://github.com/esotericpig/UncleKryon-server',
|
|
41
|
-
'source_code_uri' => 'https://github.com/esotericpig/UncleKryon-server'
|
|
19
|
+
'source_code_uri' => 'https://github.com/esotericpig/UncleKryon-server',
|
|
20
|
+
'changelog_uri' => 'https://github.com/esotericpig/UncleKryon-server/releases',
|
|
21
|
+
'bug_tracker_uri' => 'https://github.com/esotericpig/UncleKryon-server/issues',
|
|
42
22
|
}
|
|
43
|
-
|
|
23
|
+
|
|
24
|
+
spec.required_ruby_version = '>= 2.5.0'
|
|
25
|
+
spec.requirements = [
|
|
26
|
+
'Nokogiri: https://www.nokogiri.org/tutorials/installing_nokogiri.html',
|
|
27
|
+
]
|
|
28
|
+
|
|
44
29
|
spec.require_paths = ['lib']
|
|
45
30
|
spec.bindir = 'bin'
|
|
46
31
|
spec.executables = [spec.name]
|
|
47
|
-
|
|
48
|
-
spec.files =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
spec.add_development_dependency
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
32
|
+
|
|
33
|
+
spec.files = [
|
|
34
|
+
Dir.glob(File.join("{#{spec.require_paths.join(',')},test}",'**','*.{erb,rb}')),
|
|
35
|
+
Dir.glob(File.join(spec.bindir,'*')),
|
|
36
|
+
Dir.glob(File.join('{hax,iso,train}','**','*.{yaml,yml}')),
|
|
37
|
+
%W[ Gemfile Gemfile.lock #{spec.name}.gemspec Rakefile ],
|
|
38
|
+
%w[ LICENSE README.md ],
|
|
39
|
+
].flatten
|
|
40
|
+
|
|
41
|
+
run_dep = spec.method(:add_runtime_dependency)
|
|
42
|
+
# Uses exact version in case the author breaks something.
|
|
43
|
+
# Please see the Gemfile for more details.
|
|
44
|
+
run_dep[ 'nbayes' ,'0.1.3' ] # Training type of text (machine learning).
|
|
45
|
+
run_dep[ 'nokogiri','~> 1.13' ] # Hacking HTML.
|
|
46
|
+
|
|
47
|
+
dev_dep = spec.method(:add_development_dependency)
|
|
48
|
+
dev_dep[ 'bundler' ,'~> 2.3' ]
|
|
49
|
+
dev_dep[ 'irb' ,'~> 1.4' ] # IRB rake task.
|
|
50
|
+
dev_dep[ 'minitest','~> 5.16' ]
|
|
51
|
+
dev_dep[ 'rake' ,'~> 13.0' ]
|
|
52
|
+
dev_dep[ 'raketeer','~> 0.2' ] # Nokogiri & IRB rake tasks.
|
|
53
|
+
|
|
54
|
+
spec.post_install_message = <<~MSG
|
|
55
|
+
+=============================================================================+
|
|
56
|
+
| UncleKryon v#{UncleKryon::VERSION}
|
|
57
|
+
|
|
|
58
|
+
| You can now use [#{spec.executables.join(', ')}] on the command line.
|
|
59
|
+
|
|
|
60
|
+
| Homepage: #{spec.homepage}
|
|
61
|
+
|
|
|
62
|
+
| Code: #{spec.metadata['source_code_uri']}
|
|
63
|
+
| Changelog: #{spec.metadata['changelog_uri']}
|
|
64
|
+
| Bugs: #{spec.metadata['bug_tracker_uri']}
|
|
65
|
+
+=============================================================================+
|
|
66
|
+
MSG
|
|
67
67
|
end
|
metadata
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unclekryon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.12.pre.alpha
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Jonathan Bradley Whited
|
|
8
|
-
autorequire:
|
|
7
|
+
- Jonathan Bradley Whited
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-07-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nbayes
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.1.
|
|
19
|
+
version: 0.1.3
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.1.
|
|
26
|
+
version: 0.1.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: nokogiri
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.
|
|
33
|
+
version: '1.13'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.
|
|
40
|
+
version: '1.13'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: bundler
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '2.
|
|
47
|
+
version: '2.3'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '2.
|
|
54
|
+
version: '2.3'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: irb
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '1.
|
|
61
|
+
version: '1.4'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '1.
|
|
68
|
+
version: '1.4'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: minitest
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '5.
|
|
75
|
+
version: '5.16'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '5.
|
|
82
|
+
version: '5.16'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: rake
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -110,7 +110,7 @@ dependencies:
|
|
|
110
110
|
version: '0.2'
|
|
111
111
|
description: Uncle Kryon server (& hacker) for the Uncle Kryon mobile apps.
|
|
112
112
|
email:
|
|
113
|
-
-
|
|
113
|
+
- code@esotericpig.com
|
|
114
114
|
executables:
|
|
115
115
|
- unclekryon
|
|
116
116
|
extensions: []
|
|
@@ -122,6 +122,21 @@ files:
|
|
|
122
122
|
- README.md
|
|
123
123
|
- Rakefile
|
|
124
124
|
- bin/unclekryon
|
|
125
|
+
- hax/kryon.yaml
|
|
126
|
+
- hax/kryon_aums_2002-2005.yaml
|
|
127
|
+
- hax/kryon_aums_2006.yaml
|
|
128
|
+
- hax/kryon_aums_2007.yaml
|
|
129
|
+
- hax/kryon_aums_2008.yaml
|
|
130
|
+
- hax/kryon_aums_2009.yaml
|
|
131
|
+
- hax/kryon_aums_2010.yaml
|
|
132
|
+
- hax/kryon_aums_2011.yaml
|
|
133
|
+
- hax/kryon_aums_2012.yaml
|
|
134
|
+
- hax/kryon_aums_2013.yaml
|
|
135
|
+
- hax/kryon_aums_2014.yaml
|
|
136
|
+
- hax/kryon_aums_2015.yaml
|
|
137
|
+
- hax/kryon_aums_2016.yaml
|
|
138
|
+
- hax/kryon_aums_2017.yaml
|
|
139
|
+
- hax/kryon_aums_2018.yaml
|
|
125
140
|
- iso/can_provs_terrs.yaml
|
|
126
141
|
- iso/countries.yaml
|
|
127
142
|
- iso/iso.yaml
|
|
@@ -158,15 +173,28 @@ files:
|
|
|
158
173
|
- lib/unclekryon/uploader.rb
|
|
159
174
|
- lib/unclekryon/util.rb
|
|
160
175
|
- lib/unclekryon/version.rb
|
|
176
|
+
- train/kryon.yaml
|
|
161
177
|
- unclekryon.gemspec
|
|
162
178
|
homepage: https://github.com/esotericpig/UncleKryon-server
|
|
163
179
|
licenses:
|
|
164
180
|
- GPL-3.0-or-later
|
|
165
181
|
metadata:
|
|
166
|
-
bug_tracker_uri: https://github.com/esotericpig/UncleKryon-server/issues
|
|
167
182
|
homepage_uri: https://github.com/esotericpig/UncleKryon-server
|
|
168
183
|
source_code_uri: https://github.com/esotericpig/UncleKryon-server
|
|
169
|
-
|
|
184
|
+
changelog_uri: https://github.com/esotericpig/UncleKryon-server/releases
|
|
185
|
+
bug_tracker_uri: https://github.com/esotericpig/UncleKryon-server/issues
|
|
186
|
+
post_install_message: |
|
|
187
|
+
+=============================================================================+
|
|
188
|
+
| UncleKryon v0.4.12-alpha
|
|
189
|
+
|
|
|
190
|
+
| You can now use [unclekryon] on the command line.
|
|
191
|
+
|
|
|
192
|
+
| Homepage: https://github.com/esotericpig/UncleKryon-server
|
|
193
|
+
|
|
|
194
|
+
| Code: https://github.com/esotericpig/UncleKryon-server
|
|
195
|
+
| Changelog: https://github.com/esotericpig/UncleKryon-server/releases
|
|
196
|
+
| Bugs: https://github.com/esotericpig/UncleKryon-server/issues
|
|
197
|
+
+=============================================================================+
|
|
170
198
|
rdoc_options: []
|
|
171
199
|
require_paths:
|
|
172
200
|
- lib
|
|
@@ -174,7 +202,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
174
202
|
requirements:
|
|
175
203
|
- - ">="
|
|
176
204
|
- !ruby/object:Gem::Version
|
|
177
|
-
version: 2.
|
|
205
|
+
version: 2.5.0
|
|
178
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
207
|
requirements:
|
|
180
208
|
- - ">"
|
|
@@ -182,8 +210,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
182
210
|
version: 1.3.1
|
|
183
211
|
requirements:
|
|
184
212
|
- 'Nokogiri: https://www.nokogiri.org/tutorials/installing_nokogiri.html'
|
|
185
|
-
rubygems_version: 3.
|
|
186
|
-
signing_key:
|
|
213
|
+
rubygems_version: 3.2.22
|
|
214
|
+
signing_key:
|
|
187
215
|
specification_version: 4
|
|
188
216
|
summary: Uncle Kryon server (& hacker).
|
|
189
217
|
test_files: []
|