unclekryon 0.4.11 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e78b6857ef3285c99371d4a7449a99e911853741bb8c67555d7fccda8b61e0a3
4
- data.tar.gz: 5634b2d20876ce0eff3046847f23cf2ac930ba23cac2a6f5a950283f1c32b5e3
3
+ metadata.gz: e5e527cd33fff6fecf1e9d75b447721973d686d8134dc42682ae96bbb6a23093
4
+ data.tar.gz: 3ee613eabd3d82a9116cab630fe0343ad50314055cd7b4b6dda200f22adc9fe0
5
5
  SHA512:
6
- metadata.gz: b77115fd6a69c8920b1d52e35a109825e285ba288d939718eab9ac7a688fd76e2fd4feadb190b850a22e9d5a7cc636b70e819de1f959f965089944a841d15b14
7
- data.tar.gz: 6ab4a094bf26f0bd1e6c367d5a941e8e7c90bdcbba8d578f49f616932037579d3a7ee2b65482968309616c6cba5a2ac10d54307120ec9fb48ce3c08d514cacc0
6
+ metadata.gz: cce779ca1a9ef7437839846bc213da5dfabadc8350339605ed5d4eec792039f16d93307e59f1fb25a8bb7c1ccca8061e6514e78f14dda5b8e425ea11dc554178
7
+ data.tar.gz: e55d8fc15574bd60c2f9690f028614fa10a702555969ec3264dd159661bd4c229a95f9cf824a8a4a6cc39e47b8accda6abb52d7120045577d77ed4610b223bbb
data/Gemfile.lock CHANGED
@@ -1,39 +1,39 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unclekryon (0.4.11)
4
+ unclekryon (0.4.12.pre.alpha)
5
5
  nbayes (= 0.1.3)
6
- nokogiri (~> 1.11)
6
+ nokogiri (~> 1.13)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- io-console (0.5.9)
12
- irb (1.3.6)
13
- reline (>= 0.2.5)
14
- mini_portile2 (2.5.3)
15
- minitest (5.14.4)
11
+ io-console (0.5.11)
12
+ irb (1.4.1)
13
+ reline (>= 0.3.0)
14
+ mini_portile2 (2.8.0)
15
+ minitest (5.16.2)
16
16
  nbayes (0.1.3)
17
- nokogiri (1.11.7)
18
- mini_portile2 (~> 2.5.0)
17
+ nokogiri (1.13.8)
18
+ mini_portile2 (~> 2.8.0)
19
19
  racc (~> 1.4)
20
- racc (1.5.2)
21
- rake (13.0.3)
20
+ racc (1.6.0)
21
+ rake (13.0.6)
22
22
  raketeer (0.2.13)
23
23
  rake
24
- reline (0.2.6)
24
+ reline (0.3.1)
25
25
  io-console (~> 0.5)
26
26
 
27
27
  PLATFORMS
28
28
  ruby
29
29
 
30
30
  DEPENDENCIES
31
- bundler (~> 2.2)
32
- irb (~> 1.3)
33
- minitest (~> 5.14)
31
+ bundler (~> 2.3)
32
+ irb (~> 1.4)
33
+ minitest (~> 5.16)
34
34
  rake (~> 13.0)
35
35
  raketeer (~> 0.2)
36
36
  unclekryon!
37
37
 
38
38
  BUNDLED WITH
39
- 2.2.21
39
+ 2.3.18
data/README.md CHANGED
@@ -40,7 +40,7 @@ $ bundle exec rake -T
40
40
  [GNU GPL v3+](LICENSE)
41
41
 
42
42
  > UncleKryon-server (https://github.com/esotericpig/UncleKryon-server)
43
- > Copyright (c) 2017-2021 Jonathan Bradley Whited
43
+ > Copyright (c) 2017-2022 Jonathan Bradley Whited
44
44
  >
45
45
  > UncleKryon-server is free software: you can redistribute it and/or modify
46
46
  > it under the terms of the GNU General Public License as published by
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of UncleKryon-server.
6
- # Copyright (c) 2017-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2017-2022 Jonathan Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: GPL-3.0-or-later
9
9
  #++
@@ -198,7 +198,7 @@ module UncleKryon
198
198
 
199
199
  if !begin_album.nil?
200
200
  album_index = find_kryon_aum_year_album(artist,begin_album,year,index)[1]
201
- albums = albums[album_index..-1]
201
+ albums = albums[album_index..]
202
202
  end
203
203
 
204
204
  albums.each do |album_id|
@@ -262,7 +262,7 @@ module UncleKryon
262
262
 
263
263
  if !begin_album.nil?
264
264
  album_index = find_kryon_aum_year_album(artist,begin_album,year,index)[1]
265
- albums = albums[album_index..-1]
265
+ albums = albums[album_index..]
266
266
  end
267
267
 
268
268
  albums.each do |album_id|
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of UncleKryon-server.
6
- # Copyright (c) 2018-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2018-2022 Jonathan Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: GPL-3.0-or-later
9
9
  #++
@@ -63,10 +63,6 @@ module UncleKryon
63
63
  class Countries < BaseIsos
64
64
  DEFAULT_FILEPATH = "#{DEFAULT_DIR}/countries.yaml"
65
65
 
66
- def initialize
67
- super()
68
- end
69
-
70
66
  def self.load_file(filepath=DEFAULT_FILEPATH)
71
67
  return Countries.new.load_file(filepath)
72
68
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of UncleKryon-server.
6
- # Copyright (c) 2018-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2018-2022 Jonathan Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: GPL-3.0-or-later
9
9
  #++
@@ -111,10 +111,6 @@ module UncleKryon
111
111
  class Languages < BaseIsos
112
112
  DEFAULT_FILEPATH = "#{DEFAULT_DIR}/languages.yaml"
113
113
 
114
- def initialize
115
- super()
116
- end
117
-
118
114
  def find_by_kryon(text,add_english: false,**options)
119
115
  langs = []
120
116
  regexes = [
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of UncleKryon-server.
6
- # Copyright (c) 2018-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2018-2022 Jonathan Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: GPL-3.0-or-later
9
9
  #++
@@ -16,18 +16,11 @@ require 'unclekryon/iso/base_iso'
16
16
  ##
17
17
  module UncleKryon
18
18
  class Region < BaseIso
19
- def initialize
20
- super()
21
- end
22
19
  end
23
20
 
24
21
  class Regions < BaseIsos
25
22
  DEFAULT_FILEPATH = "#{DEFAULT_DIR}/regions.yaml"
26
23
 
27
- def initialize
28
- super()
29
- end
30
-
31
24
  def self.load_file(filepath=DEFAULT_FILEPATH)
32
25
  return Regions.new.load_file(filepath)
33
26
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of UncleKryon-server.
6
- # Copyright (c) 2019-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2019-2022 Jonathan Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: GPL-3.0-or-later
9
9
  #++
@@ -16,18 +16,11 @@ require 'unclekryon/iso/base_iso'
16
16
  ##
17
17
  module UncleKryon
18
18
  class Subregion < BaseIso
19
- def initialize
20
- super()
21
- end
22
19
  end
23
20
 
24
21
  class Subregions < BaseIsos
25
22
  DEFAULT_FILEPATH = "#{DEFAULT_DIR}/subregions.yaml"
26
23
 
27
- def initialize
28
- super()
29
- end
30
-
31
24
  def self.load_file(filepath=DEFAULT_FILEPATH)
32
25
  return Subregions.new.load_file(filepath)
33
26
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of UncleKryon-server.
6
- # Copyright (c) 2017-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2017-2022 Jonathan Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: GPL-3.0-or-later
9
9
  #++
@@ -15,6 +15,6 @@ module UncleKryon
15
15
  end
16
16
  end
17
17
 
18
- if $PROGRAM_NAME == __FILE__
19
- # Test here.
20
- end
18
+ #if $PROGRAM_NAME == __FILE__
19
+ # # Test here.
20
+ #end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of UncleKryon-server.
6
- # Copyright (c) 2017-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2017-2022 Jonathan Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: GPL-3.0-or-later
9
9
  #++
@@ -147,10 +147,7 @@ module UncleKryon
147
147
  end
148
148
 
149
149
  Util.mk_dirs_from_filepath(@filepath)
150
-
151
- File.open(@filepath,'w') do |f|
152
- f.write(to_s)
153
- end
150
+ File.write(@filepath,to_s)
154
151
  end
155
152
 
156
153
  def [](id)
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of UncleKryon-server.
6
- # Copyright (c) 2017-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2017-2022 Jonathan Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: GPL-3.0-or-later
9
9
  #++
@@ -15,6 +15,6 @@ module UncleKryon
15
15
  end
16
16
  end
17
17
 
18
- if $PROGRAM_NAME == __FILE__
19
- # Test here.
20
- end
18
+ #if $PROGRAM_NAME == __FILE__
19
+ # # Test here.
20
+ #end
@@ -10,5 +10,5 @@
10
10
 
11
11
 
12
12
  module UncleKryon
13
- VERSION = '0.4.11'
13
+ VERSION = '0.4.12-alpha'
14
14
  end
data/lib/unclekryon.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of UncleKryon-server.
6
- # Copyright (c) 2017-2021 Jonathan Bradley Whited
6
+ # Copyright (c) 2017-2022 Jonathan Bradley Whited
7
7
  #
8
8
  # SPDX-License-Identifier: GPL-3.0-or-later
9
9
  #++
@@ -355,7 +355,7 @@ module UncleKryon
355
355
  updated_on = Util.format_datetime(updated_on)
356
356
 
357
357
  Dir.glob(File.join(dirname,'*.yaml')) do |filepath|
358
- lines = IO.readlines(filepath)
358
+ lines = File.readlines(filepath)
359
359
  update_count = 0
360
360
 
361
361
  lines.each_with_index do |line,i|
data/unclekryon.gemspec CHANGED
@@ -2,10 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
 
5
- lib = File.expand_path(File.join('..','lib'),__FILE__)
6
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
-
8
- require 'unclekryon/version'
5
+ require_relative 'lib/unclekryon/version'
9
6
 
10
7
  Gem::Specification.new do |spec|
11
8
  spec.name = 'unclekryon'
@@ -24,6 +21,11 @@ Gem::Specification.new do |spec|
24
21
  'bug_tracker_uri' => 'https://github.com/esotericpig/UncleKryon-server/issues',
25
22
  }
26
23
 
24
+ spec.required_ruby_version = '>= 2.5.0'
25
+ spec.requirements = [
26
+ 'Nokogiri: https://www.nokogiri.org/tutorials/installing_nokogiri.html',
27
+ ]
28
+
27
29
  spec.require_paths = ['lib']
28
30
  spec.bindir = 'bin'
29
31
  spec.executables = [spec.name]
@@ -36,33 +38,30 @@ Gem::Specification.new do |spec|
36
38
  %w[ LICENSE README.md ],
37
39
  ].flatten
38
40
 
39
- spec.required_ruby_version = '>= 2.5.0'
40
- spec.requirements = [
41
- 'Nokogiri: https://www.nokogiri.org/tutorials/installing_nokogiri.html',
42
- ]
43
-
41
+ run_dep = spec.method(:add_runtime_dependency)
44
42
  # Uses exact version in case the author breaks something.
45
- # Please see the Gemfile for more details.
46
- spec.add_runtime_dependency 'nbayes' ,'0.1.3' # Training type of text (machine learning).
47
- spec.add_runtime_dependency 'nokogiri','~> 1.11' # Hacking HTML.
48
-
49
- spec.add_development_dependency 'bundler' ,'~> 2.2'
50
- spec.add_development_dependency 'irb' ,'~> 1.3' # IRB rake task.
51
- spec.add_development_dependency 'minitest','~> 5.14'
52
- spec.add_development_dependency 'rake' ,'~> 13.0'
53
- spec.add_development_dependency 'raketeer','~> 0.2' # Nokogiri & IRB rake tasks.
54
-
55
- spec.post_install_message = <<-MSG
56
-
57
- UncleKryon v#{UncleKryon::VERSION}
58
-
59
- You can now use [#{spec.executables.join(', ')}] on the command line.
60
-
61
- Homepage: #{spec.homepage}
62
-
63
- Code: #{spec.metadata['source_code_uri']}
64
- Changelog: #{spec.metadata['changelog_uri']}
65
- Bugs: #{spec.metadata['bug_tracker_uri']}
66
-
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
+ +=============================================================================+
67
66
  MSG
68
67
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unclekryon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12.pre.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Bradley Whited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-30 00:00:00.000000000 Z
11
+ date: 2022-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nbayes
@@ -30,56 +30,56 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.11'
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.11'
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.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.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.3'
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.3'
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.14'
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.14'
82
+ version: '5.16'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -183,18 +183,18 @@ metadata:
183
183
  source_code_uri: https://github.com/esotericpig/UncleKryon-server
184
184
  changelog_uri: https://github.com/esotericpig/UncleKryon-server/releases
185
185
  bug_tracker_uri: https://github.com/esotericpig/UncleKryon-server/issues
186
- post_install_message: |2+
187
-
188
- UncleKryon v0.4.11
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
-
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
+ +=============================================================================+
198
198
  rdoc_options: []
199
199
  require_paths:
200
200
  - lib
@@ -205,14 +205,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  version: 2.5.0
206
206
  required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  requirements:
208
- - - ">="
208
+ - - ">"
209
209
  - !ruby/object:Gem::Version
210
- version: '0'
210
+ version: 1.3.1
211
211
  requirements:
212
212
  - 'Nokogiri: https://www.nokogiri.org/tutorials/installing_nokogiri.html'
213
- rubygems_version: 3.2.15
213
+ rubygems_version: 3.2.22
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: Uncle Kryon server (& hacker).
217
217
  test_files: []
218
- ...