unclekryon 0.4.9.pre.alpha → 0.4.12.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +10 -26
  3. data/Gemfile.lock +20 -24
  4. data/README.md +3 -2
  5. data/Rakefile +11 -30
  6. data/bin/unclekryon +4 -15
  7. data/hax/kryon.yaml +28 -0
  8. data/hax/kryon_aums_2002-2005.yaml +460 -0
  9. data/hax/kryon_aums_2006.yaml +601 -0
  10. data/hax/kryon_aums_2007.yaml +1024 -0
  11. data/hax/kryon_aums_2008.yaml +950 -0
  12. data/hax/kryon_aums_2009.yaml +496 -0
  13. data/hax/kryon_aums_2010.yaml +1443 -0
  14. data/hax/kryon_aums_2011.yaml +1458 -0
  15. data/hax/kryon_aums_2012.yaml +2123 -0
  16. data/hax/kryon_aums_2013.yaml +1647 -0
  17. data/hax/kryon_aums_2014.yaml +2478 -0
  18. data/hax/kryon_aums_2015.yaml +3386 -0
  19. data/hax/kryon_aums_2016.yaml +3476 -0
  20. data/hax/kryon_aums_2017.yaml +3712 -0
  21. data/hax/kryon_aums_2018.yaml +3654 -0
  22. data/lib/unclekryon/data/album_data.rb +74 -82
  23. data/lib/unclekryon/data/artist_data.rb +24 -36
  24. data/lib/unclekryon/data/artist_data_data.rb +29 -41
  25. data/lib/unclekryon/data/aum_data.rb +20 -32
  26. data/lib/unclekryon/data/base_data.rb +27 -39
  27. data/lib/unclekryon/data/pic_data.rb +25 -37
  28. data/lib/unclekryon/data/release_data.rb +14 -26
  29. data/lib/unclekryon/data/social_data.rb +6 -18
  30. data/lib/unclekryon/data/timespan_data.rb +16 -28
  31. data/lib/unclekryon/dev_opts.rb +7 -19
  32. data/lib/unclekryon/hacker.rb +121 -135
  33. data/lib/unclekryon/iso/base_iso.rb +69 -81
  34. data/lib/unclekryon/iso/can_prov_terr.rb +34 -47
  35. data/lib/unclekryon/iso/country.rb +34 -51
  36. data/lib/unclekryon/iso/language.rb +84 -98
  37. data/lib/unclekryon/iso/region.rb +8 -29
  38. data/lib/unclekryon/iso/subregion.rb +8 -29
  39. data/lib/unclekryon/iso/usa_state.rb +28 -41
  40. data/lib/unclekryon/iso.rb +128 -138
  41. data/lib/unclekryon/jsoner.rb +31 -50
  42. data/lib/unclekryon/log.rb +34 -46
  43. data/lib/unclekryon/parsers/kryon_aum_year_album_parser.rb +163 -167
  44. data/lib/unclekryon/parsers/kryon_aum_year_parser.rb +122 -127
  45. data/lib/unclekryon/server.rb +8 -17
  46. data/lib/unclekryon/trainer.rb +68 -85
  47. data/lib/unclekryon/uploader.rb +8 -17
  48. data/lib/unclekryon/util.rb +80 -92
  49. data/lib/unclekryon/version.rb +4 -16
  50. data/lib/unclekryon.rb +166 -166
  51. data/train/kryon.yaml +6077 -0
  52. data/unclekryon.gemspec +49 -49
  53. metadata +50 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 107b4bc7656f80b78a24776496b4136c5acf6645f0bae600386867bfc5a30388
4
- data.tar.gz: aa9905551f16b4f9bb7730eabab5e569050e00f55dfe839bf8af402f38ac911f
3
+ metadata.gz: e5e527cd33fff6fecf1e9d75b447721973d686d8134dc42682ae96bbb6a23093
4
+ data.tar.gz: 3ee613eabd3d82a9116cab630fe0343ad50314055cd7b4b6dda200f22adc9fe0
5
5
  SHA512:
6
- metadata.gz: c06f719e85b5823fc9a05552ee9ae0db24f710093a8f4ba37f504958fe8c58a86717d9bc692a74466938d620bfa28f0d30125c0a7976e1dc718780df5c18e10b
7
- data.tar.gz: 29f1fddcce30b160f352389221dd9946f9278fcf18aa64a1e0790c2b25ed769af1ff29c71c39456c5e2e90627fe05c5787942b98f6423c00598d9a6512e2dcad
6
+ metadata.gz: cce779ca1a9ef7437839846bc213da5dfabadc8350339605ed5d4eec792039f16d93307e59f1fb25a8bb7c1ccca8061e6514e78f14dda5b8e425ea11dc554178
7
+ data.tar.gz: e55d8fc15574bd60c2f9690f028614fa10a702555969ec3264dd159661bd4c229a95f9cf824a8a4a6cc39e47b8accda6abb52d7120045577d77ed4610b223bbb
data/Gemfile CHANGED
@@ -1,34 +1,18 @@
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
-
22
4
 
23
5
  source 'https://rubygems.org'
24
6
 
25
- # nbayes Gem is out-of-date, so must use GitHub.
26
- #
27
- # The version is specified in the gemspec file.
28
- # ":git" with "https" is used instead of ":github" for security.
29
- # Use "bundler show" (not "gem list") to see it.
30
- #
31
- # @see http://bundler.io/v1.16/guides/git.html
32
- gem 'nbayes',:git=>'https://github.com/oasic/nbayes.git' #:ref=>'3dd46bd'
7
+ # NOTE: The author finally updated the version on RubyGems,
8
+ # so this has been moved to the Gemspec.
9
+ # However, in case the author doesn't update it again,
10
+ # leaving this code here for possible use in the future.
11
+ #
12
+ # For training type of text (machine learning).
13
+ # - nbayes Gem is out-of-date, so must use GitHub.
14
+ # - ":git" with "https" is used instead of ":github" for security.
15
+ # - Use "bundle list" (not "gem list") to see it.
16
+ #gem 'nbayes',git: 'https://github.com/oasic/nbayes.git',ref: '3dd46bd'
33
17
 
34
18
  gemspec
data/Gemfile.lock CHANGED
@@ -1,43 +1,39 @@
1
- GIT
2
- remote: https://github.com/oasic/nbayes.git
3
- revision: 3dd46bd2c8a2258ccdb69ee9ceff7d2fb5d62ed5
4
- specs:
5
- nbayes (0.1.2)
6
-
7
1
  PATH
8
2
  remote: .
9
3
  specs:
10
- unclekryon (0.4.9.pre.alpha)
11
- nbayes (~> 0.1.2)
12
- nokogiri (~> 1.10)
4
+ unclekryon (0.4.12.pre.alpha)
5
+ nbayes (= 0.1.3)
6
+ nokogiri (~> 1.13)
13
7
 
14
8
  GEM
15
9
  remote: https://rubygems.org/
16
10
  specs:
17
- io-console (0.5.6)
18
- irb (1.2.3)
19
- reline (>= 0.0.1)
20
- mini_portile2 (2.4.0)
21
- minitest (5.14.0)
22
- nokogiri (1.10.9)
23
- mini_portile2 (~> 2.4.0)
24
- rake (13.0.1)
25
- raketeer (0.2.9)
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
+ nbayes (0.1.3)
17
+ nokogiri (1.13.8)
18
+ mini_portile2 (~> 2.8.0)
19
+ racc (~> 1.4)
20
+ racc (1.6.0)
21
+ rake (13.0.6)
22
+ raketeer (0.2.13)
26
23
  rake
27
- reline (0.1.4)
24
+ reline (0.3.1)
28
25
  io-console (~> 0.5)
29
26
 
30
27
  PLATFORMS
31
28
  ruby
32
29
 
33
30
  DEPENDENCIES
34
- bundler (~> 2.1)
35
- irb (~> 1.2)
36
- minitest (~> 5.14)
37
- nbayes!
31
+ bundler (~> 2.3)
32
+ irb (~> 1.4)
33
+ minitest (~> 5.16)
38
34
  rake (~> 13.0)
39
35
  raketeer (~> 0.2)
40
36
  unclekryon!
41
37
 
42
38
  BUNDLED WITH
43
- 2.1.4
39
+ 2.3.18
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # UncleKryon-server
2
+
2
3
  Server (and Hacker) for the Uncle Kryon mobile apps.
3
4
 
4
- Tasks include sending push notifications, building the database, and parsing/hacking the websites for the data.
5
+ Tasks include sending push notifications, building the database, and scraping the websites for the data.
5
6
 
6
7
  ## Contents
7
8
  - [Setup](#setup)
@@ -39,7 +40,7 @@ $ bundle exec rake -T
39
40
  [GNU GPL v3+](LICENSE)
40
41
 
41
42
  > UncleKryon-server (https://github.com/esotericpig/UncleKryon-server)
42
- > Copyright (c) 2017-2020 Jonathan Bradley Whited (@esotericpig)
43
+ > Copyright (c) 2017-2022 Jonathan Bradley Whited
43
44
  >
44
45
  > UncleKryon-server is free software: you can redistribute it and/or modify
45
46
  > it under the terms of the GNU General Public License as published by
data/Rakefile CHANGED
@@ -1,30 +1,11 @@
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
-
22
4
 
23
5
  require 'bundler/gem_tasks'
24
6
 
25
7
  require 'rake/clean'
26
8
  require 'rake/testtask'
27
-
28
9
  require 'raketeer/irb'
29
10
  require 'raketeer/nokogiri_installs'
30
11
  require 'raketeer/run'
@@ -33,24 +14,24 @@ require 'unclekryon/version'
33
14
 
34
15
  PKG_DIR = 'pkg'
35
16
 
36
- CLEAN.exclude('.git/','stock/')
17
+ CLEAN.exclude('{.git,stock}/**/*')
37
18
  CLOBBER.include('doc/',File.join(PKG_DIR,''))
38
19
 
39
- task :default => [:irb]
20
+ task default: [:irb]
21
+
22
+ desc "Package data as a Zip file into '#{File.join(PKG_DIR,'')}'"
23
+ task :pkg_data do
24
+ pattern = File.join('{hax,train}','**','*.{yaml,yml}')
25
+ zip_name = "unclekryon-data-#{UncleKryon::VERSION}.zip"
40
26
 
41
- desc "Package YAML data as a Zip file into '#{File.join(PKG_DIR,'')}'"
42
- task :pkg_yaml do
43
- pattern = File.join('{hax,train}','**','*.yaml')
44
- zip_name = "unclekryon-yaml-#{UncleKryon::VERSION}.zip"
45
-
46
27
  zip_file = File.join(PKG_DIR,zip_name)
47
-
28
+
48
29
  mkdir_p PKG_DIR
49
-
50
- sh 'zip','-9rv',zip_file,*Dir.glob(pattern).sort()
30
+
31
+ sh 'zip','-9rv',zip_file,*Dir.glob(pattern).sort
51
32
  end
52
33
 
53
- Rake::TestTask.new() do |task|
34
+ Rake::TestTask.new do |task|
54
35
  task.libs = ['lib','test']
55
36
  task.pattern = File.join('test','**','*_test.rb')
56
37
  task.description += " ('#{task.pattern}')"
data/bin/unclekryon CHANGED
@@ -4,20 +4,9 @@
4
4
 
5
5
  #--
6
6
  # This file is part of UncleKryon-server.
7
- # Copyright (c) 2017-2019 Jonathan Bradley Whited (@esotericpig)
8
- #
9
- # UncleKryon-server is free software: you can redistribute it and/or modify
10
- # it under the terms of the GNU General Public License as published by
11
- # the Free Software Foundation, either version 3 of the License, or
12
- # (at your option) any later version.
13
- #
14
- # UncleKryon-server is distributed in the hope that it will be useful,
15
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- # GNU General Public License for more details.
18
- #
19
- # You should have received a copy of the GNU General Public License
20
- # along with UncleKryon-server. If not, see <https://www.gnu.org/licenses/>.
7
+ # Copyright (c) 2017-2021 Jonathan Bradley Whited
8
+ #
9
+ # SPDX-License-Identifier: GPL-3.0-or-later
21
10
  #++
22
11
 
23
12
 
@@ -27,4 +16,4 @@ require 'bundler/setup'
27
16
  require 'unclekryon'
28
17
 
29
18
  main = UncleKryon::Main.new(ARGV)
30
- main.run()
19
+ main.run
data/hax/kryon.yaml ADDED
@@ -0,0 +1,28 @@
1
+ ---
2
+ Artist: !ruby/object:UncleKryon::ArtistData
3
+ updated_on: '2018-06-12 02:33:24'
4
+ updated_releases_on: '2018-06-12 02:33:24'
5
+ updated_albums_on: '2018-06-12 02:33:24'
6
+ updated_aums_on: '2018-06-12 02:33:24'
7
+ updated_scrolls_on: '2018-06-12 02:33:24'
8
+ updated_visions_on: '2018-06-12 02:33:24'
9
+ updated_pics_on: '2018-06-12 02:33:24'
10
+
11
+ id: 'Kryon'
12
+ name: 'Kryon'
13
+ long_name: 'Kryon - Lee Carroll'
14
+ desc: |-
15
+ This website is an esoteric spiritual site featuring channeled information from Kryon, a loving angelic entity.
16
+
17
+ url: 'https://www.kryon.com'
18
+ mirrors: {}
19
+
20
+ facebook: !ruby/object:UncleKryon::SocialData
21
+ username: 'KryonLeeCarroll'
22
+ url: 'https://www.facebook.com/KryonLeeCarroll'
23
+ twitter: !ruby/object:UncleKryon::SocialData
24
+ username: 'KryonLeeCarroll'
25
+ url: 'https://twitter.com/kryonleecarroll'
26
+ youtube: !ruby/object:UncleKryon::SocialData
27
+ username: 'Kryon-Official Posting Lee Carroll'
28
+ url: 'https://www.youtube.com/channel/UCMiuw8FLujKn06dnlxpbWGQ'