From b3aab20adff9778522775e704d4eeac73bda6ec5 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 5 May 2025 00:27:21 -0700 Subject: [PATCH 1/5] Bump JSoup to version 1.20.1 --- src/bld/java/net/thauvin/erik/MobibotBuild.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bld/java/net/thauvin/erik/MobibotBuild.java b/src/bld/java/net/thauvin/erik/MobibotBuild.java index 08367ef..b7e1b71 100644 --- a/src/bld/java/net/thauvin/erik/MobibotBuild.java +++ b/src/bld/java/net/thauvin/erik/MobibotBuild.java @@ -117,7 +117,7 @@ public class MobibotBuild extends Project { .include(dependency("net.aksingh", "owm-japis", "2.5.3.0")) .include(dependency("net.objecthunter", "exp4j", "0.4.8")) .include(dependency("org.json", "json", "20250107")) - .include(dependency("org.jsoup", "jsoup", "1.19.1")) + .include(dependency("org.jsoup", "jsoup", "1.20.1")) // Thauvin .include(dependency("net.thauvin.erik", "cryptoprice", "1.0.3-SNAPSHOT")) .include(dependency("net.thauvin.erik", "jokeapi", "1.0.1-SNAPSHOT")) From 5bedd323ca8f8ab07e4643723057c6edf291a991 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 5 May 2025 00:28:06 -0700 Subject: [PATCH 2/5] Cleanup tests and KDocs --- .idea/kotlinc.xml | 6 +- .idea/misc.xml | 112 +++- .idea/runConfigurations/Run Tests.xml | 9 - config/detekt/baseline.xml | 9 +- pom.xml | 4 +- properties/mobibot.properties | 4 +- .../java/net/thauvin/erik/MobibotBuild.java | 10 +- .../kotlin/net/thauvin/erik/mobibot/Addons.kt | 2 +- .../net/thauvin/erik/mobibot/Constants.kt | 23 +- .../net/thauvin/erik/mobibot/FeedReader.kt | 34 +- .../net/thauvin/erik/mobibot/Mobibot.kt | 286 +++++----- .../net/thauvin/erik/mobibot/Pinboard.kt | 34 +- .../net/thauvin/erik/mobibot/ReleaseInfo.kt | 4 +- .../kotlin/net/thauvin/erik/mobibot/Utils.kt | 62 +-- .../erik/mobibot/commands/AbstractCommand.kt | 6 + .../erik/mobibot/commands/ChannelFeed.kt | 3 + .../thauvin/erik/mobibot/commands/Cycle.kt | 3 + .../net/thauvin/erik/mobibot/commands/Die.kt | 19 +- .../thauvin/erik/mobibot/commands/Ignore.kt | 25 +- .../net/thauvin/erik/mobibot/commands/Info.kt | 29 +- .../net/thauvin/erik/mobibot/commands/Me.kt | 3 + .../thauvin/erik/mobibot/commands/Modules.kt | 3 + .../net/thauvin/erik/mobibot/commands/Msg.kt | 3 + .../net/thauvin/erik/mobibot/commands/Nick.kt | 3 + .../thauvin/erik/mobibot/commands/Recap.kt | 3 + .../net/thauvin/erik/mobibot/commands/Say.kt | 3 + .../thauvin/erik/mobibot/commands/Users.kt | 3 + .../thauvin/erik/mobibot/commands/Versions.kt | 3 + .../erik/mobibot/commands/links/Comment.kt | 4 + .../mobibot/commands/links/LinksManager.kt | 28 +- .../erik/mobibot/commands/links/Posting.kt | 33 +- .../erik/mobibot/commands/links/Tags.kt | 7 + .../erik/mobibot/commands/links/View.kt | 12 +- .../mobibot/commands/seen/NickComparator.kt | 4 +- .../erik/mobibot/commands/seen/Seen.kt | 11 +- .../erik/mobibot/commands/seen/SeenNick.kt | 4 +- .../erik/mobibot/commands/tell/Tell.kt | 2 +- .../erik/mobibot/commands/tell/TellManager.kt | 2 +- .../erik/mobibot/commands/tell/TellMessage.kt | 3 +- .../thauvin/erik/mobibot/entries/Entries.kt | 3 + .../erik/mobibot/entries/EntriesUtils.kt | 2 +- .../erik/mobibot/entries/EntryComment.kt | 3 +- .../thauvin/erik/mobibot/entries/EntryLink.kt | 13 +- .../erik/mobibot/modules/AbstractModule.kt | 5 +- .../net/thauvin/erik/mobibot/modules/Calc.kt | 34 +- .../thauvin/erik/mobibot/modules/ChatGpt2.kt | 58 +- .../erik/mobibot/modules/CryptoPrices.kt | 4 +- .../erik/mobibot/modules/CurrencyConverter.kt | 132 ++--- .../net/thauvin/erik/mobibot/modules/Dice.kt | 24 +- .../thauvin/erik/mobibot/modules/Gemini2.kt | 74 +-- .../erik/mobibot/modules/GoogleSearch.kt | 66 +-- .../net/thauvin/erik/mobibot/modules/Joke.kt | 38 +- .../thauvin/erik/mobibot/modules/Lookup.kt | 90 ++-- .../thauvin/erik/mobibot/modules/Mastodon.kt | 55 +- .../erik/mobibot/modules/ModuleException.kt | 4 - .../net/thauvin/erik/mobibot/modules/Ping.kt | 10 +- .../erik/mobibot/modules/RockPaperScissors.kt | 30 +- .../erik/mobibot/modules/StockQuote.kt | 48 +- .../net/thauvin/erik/mobibot/modules/War.kt | 45 +- .../thauvin/erik/mobibot/modules/Weather2.kt | 58 +- .../erik/mobibot/modules/WolframAlpha.kt | 71 +-- .../thauvin/erik/mobibot/modules/WorldTime.kt | 20 +- .../thauvin/erik/mobibot/msg/ErrorMessage.kt | 2 +- .../net/thauvin/erik/mobibot/msg/Message.kt | 3 +- .../thauvin/erik/mobibot/msg/NoticeMessage.kt | 2 +- .../erik/mobibot/msg/PrivateMessage.kt | 3 +- .../thauvin/erik/mobibot/msg/PublicMessage.kt | 2 +- .../erik/mobibot/social/SocialManager.kt | 2 +- .../erik/mobibot/social/SocialModule.kt | 4 + .../erik/mobibot/social/SocialTimer.kt | 3 + .../net/thauvin/erik/mobibot/AddonsTest.kt | 2 +- .../net/thauvin/erik/mobibot/DisableOnCi.kt | 3 - .../erik/mobibot/DisableOnCiCondition.kt | 3 - .../thauvin/erik/mobibot/FeedReaderTest.kt | 73 ++- .../thauvin/erik/mobibot/LocalProperties.kt | 4 +- .../net/thauvin/erik/mobibot/PinboardTest.kt | 68 ++- .../net/thauvin/erik/mobibot/UtilsTest.kt | 495 ++++++++++++------ .../thauvin/erik/mobibot/commands/InfoTest.kt | 79 ++- .../erik/mobibot/commands/RecapTest.kt | 4 +- .../commands/links/LinksManagerTest.kt | 133 ++++- .../erik/mobibot/commands/links/ViewTest.kt | 127 +++-- .../erik/mobibot/commands/seen/SeenTest.kt | 66 +-- .../mobibot/commands/tell/TellMessageTest.kt | 2 +- .../commands/tell/TellMessagesMgrTest.kt | 24 +- .../erik/mobibot/entries/EntriesUtilsTest.kt | 48 +- .../erik/mobibot/entries/EntryLinkTest.kt | 79 ++- .../erik/mobibot/entries/FeedMgrTest.kt | 30 +- .../thauvin/erik/mobibot/modules/CalcTest.kt | 25 +- .../erik/mobibot/modules/ChatGpt2Test.kt | 37 +- .../erik/mobibot/modules/CryptoPricesTest.kt | 66 ++- .../mobibot/modules/CurrencyConverterTest.kt | 65 ++- .../thauvin/erik/mobibot/modules/DiceTest.kt | 67 ++- .../erik/mobibot/modules/Gemini2Test.kt | 62 ++- .../erik/mobibot/modules/GoogleSearchTest.kt | 100 ++-- .../thauvin/erik/mobibot/modules/JokeTest.kt | 2 +- .../erik/mobibot/modules/LookupTest.kt | 26 +- .../erik/mobibot/modules/MastodonTest.kt | 2 +- .../mobibot/modules/ModuleExceptionTest.kt | 98 ++-- .../thauvin/erik/mobibot/modules/PingTest.kt | 12 +- .../mobibot/modules/RockPaperScissorsTest.kt | 58 +- .../erik/mobibot/modules/StockQuoteTest.kt | 79 ++- .../erik/mobibot/modules/Weather2Test.kt | 160 ++++-- .../erik/mobibot/modules/WolframAlphaTest.kt | 60 ++- .../erik/mobibot/modules/WordTimeTest.kt | 60 ++- .../thauvin/erik/mobibot/msg/MessageTest.kt | 120 +++-- 105 files changed, 2523 insertions(+), 1542 deletions(-) delete mode 100644 .idea/runConfigurations/Run Tests.xml diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index 0273acf..f70d82d 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -7,10 +7,10 @@